smartContractResult

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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