smartContractResult

package
v1.0.82 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SmartContractResultGoToCapn added in v1.0.3

func SmartContractResultGoToCapn(seg *capn.Segment, src *SmartContractResult) capnp.SmartContractResultCapn

SmartContractResultGoToCapn is a helper function to copy fields from a SmartContractResult object to a SmartContractResultCapn object

Types

type SmartContractResult

type SmartContractResult struct {
	Nonce    uint64   `capid:"0" json:"nonce"`
	Value    *big.Int `capid:"1" json:"value"`
	RcvAddr  []byte   `capid:"2" json:"receiver"`
	SndAddr  []byte   `capid:"3" json:"sender"`
	Code     []byte   `capid:"4" json:"code,omitempty"`
	Data     []byte   `capid:"5" json:"data,omitempty"`
	TxHash   []byte   `capid:"6" json:"txHash"`
	GasLimit uint64   `capid:"7" json:"gasLimit"`
	GasPrice uint64   `capid:"8" json:"gasPrice"`
}

SmartContractResult holds all the data needed for results coming from smart contract processing

func SmartContractResultCapnToGo added in v1.0.3

func SmartContractResultCapnToGo(src capnp.SmartContractResultCapn, dest *SmartContractResult) *SmartContractResult

SmartContractResultCapnToGo is a helper function to copy fields from a SmartContractResultCapn object to a SmartContractResult object

func TrimSlicePtr

func TrimSlicePtr(in []*SmartContractResult) []*SmartContractResult

TrimSlicePtr creates a copy of the provided slice without the excess capacity

func (*SmartContractResult) GetData

func (scr *SmartContractResult) GetData() []byte

GetData returns the data of the smart contract result

func (*SmartContractResult) GetGasLimit

func (scr *SmartContractResult) GetGasLimit() uint64

GetGasLimit returns the gas limit of the smart contract result

func (*SmartContractResult) GetGasPrice

func (scr *SmartContractResult) GetGasPrice() uint64

GetGasPrice returns the gas price of the smart contract result

func (*SmartContractResult) GetNonce

func (scr *SmartContractResult) GetNonce() uint64

GetNonce returns the nonce of the smart contract result

func (*SmartContractResult) GetRecvAddress added in v1.0.11

func (scr *SmartContractResult) GetRecvAddress() []byte

GetRecvAddress returns the receiver address from the smart contract result

func (*SmartContractResult) GetSndAddress added in v1.0.11

func (scr *SmartContractResult) GetSndAddress() []byte

GetSndAddress returns the sender address from the smart contract result

func (*SmartContractResult) GetValue

func (scr *SmartContractResult) GetValue() *big.Int

GetValue returns the value of the smart contract result

func (*SmartContractResult) IsInterfaceNil

func (scr *SmartContractResult) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*SmartContractResult) Load added in v1.0.3

func (scr *SmartContractResult) Load(r io.Reader) error

Load loads the data from the stream into a SmartContractResult object through Capnp protocol

func (*SmartContractResult) Save added in v1.0.3

func (scr *SmartContractResult) Save(w io.Writer) error

Save saves the serialized data of a SmartContractResult into a stream through Capnp protocol

func (*SmartContractResult) SetData

func (scr *SmartContractResult) SetData(data []byte)

SetData sets the data of the smart contract result

func (*SmartContractResult) SetRecvAddress added in v1.0.11

func (scr *SmartContractResult) SetRecvAddress(addr []byte)

SetRecvAddress sets the receiver address of the smart contract result

func (*SmartContractResult) SetSndAddress added in v1.0.11

func (scr *SmartContractResult) SetSndAddress(addr []byte)

SetSndAddress sets the sender address of the smart contract result

func (*SmartContractResult) SetValue

func (scr *SmartContractResult) SetValue(value *big.Int)

SetValue sets the value of the smart contract result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL