Documentation ¶
Index ¶
- type SmartContractResult
- func (scr *SmartContractResult) GetData() []byte
- func (scr *SmartContractResult) GetGasLimit() uint64
- func (scr *SmartContractResult) GetGasPrice() uint64
- func (scr *SmartContractResult) GetNonce() uint64
- func (scr *SmartContractResult) GetRecvAddress() []byte
- func (scr *SmartContractResult) GetSndAddress() []byte
- func (scr *SmartContractResult) GetValue() *big.Int
- func (scr *SmartContractResult) IsInterfaceNil() bool
- func (scr *SmartContractResult) SetData(data []byte)
- func (scr *SmartContractResult) SetRecvAddress(addr []byte)
- func (scr *SmartContractResult) SetSndAddress(addr []byte)
- func (scr *SmartContractResult) SetValue(value *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmartContractResult ¶
type SmartContractResult struct { Nonce uint64 `json:"nonce"` Value *big.Int `json:"value"` RcvAddr []byte `json:"receiver"` SndAddr []byte `json:"sender"` Code []byte `json:"code,omitempty"` Data []byte `json:"data,omitempty"` TxHash []byte `json:"txHash"` GasLimit uint64 `json:"gasLimit"` GasPrice uint64 `json:"gasPrice"` }
SmartContractResult holds all the data needed for results coming from smart contract processing
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) 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