smartContractResult

package
v1.0.34 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 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    string   `capid:"5" json:"data,omitempty"`
	TxHash  []byte   `capid:"6" json:"txHash"`
}

SmartContractResult holds all the data needed for a value transfer

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 (*SmartContractResult) GetData

func (scr *SmartContractResult) GetData() string

GetData returns the data 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 string)

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