Documentation ¶
Index ¶
- func ReceiptGoToCapn(seg *capn.Segment, src *Receipt) capnp.ReceiptCapn
- type Receipt
- func (rpt *Receipt) GetData() []byte
- func (rpt *Receipt) GetGasLimit() uint64
- func (rpt *Receipt) GetGasPrice() uint64
- func (rpt *Receipt) GetNonce() uint64
- func (rpt *Receipt) GetRecvAddress() []byte
- func (rpt *Receipt) GetSndAddress() []byte
- func (rpt *Receipt) GetValue() *big.Int
- func (rpt *Receipt) IsInterfaceNil() bool
- func (rpt *Receipt) Load(r io.Reader) error
- func (rpt *Receipt) Save(w io.Writer) error
- func (rpt *Receipt) SetData(data []byte)
- func (rpt *Receipt) SetRecvAddress(_ []byte)
- func (rpt *Receipt) SetSndAddress(addr []byte)
- func (rpt *Receipt) SetValue(value *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReceiptGoToCapn ¶ added in v1.0.67
func ReceiptGoToCapn(seg *capn.Segment, src *Receipt) capnp.ReceiptCapn
ReceiptGoToCapn is a helper function to copy fields from a Receipt object to a ReceiptCapn object
Types ¶
type Receipt ¶
type Receipt struct { Value *big.Int `capid:"0" json:"value"` SndAddr []byte `capid:"1" json:"sender"` Data []byte `capid:"2" json:"data,omitempty"` TxHash []byte `capid:"3" json:"txHash"` }
Receipt holds all the data needed for a transaction receipt
func ReceiptCapnToGo ¶ added in v1.0.67
func ReceiptCapnToGo(src capnp.ReceiptCapn, dest *Receipt) *Receipt
ReceiptCapnToGo is a helper function to copy fields from a ReceiptCapn object to a Receipt object
func (*Receipt) GetGasLimit ¶
GetGasLimit returns the gas limit of the receipt
func (*Receipt) GetGasPrice ¶
GetGasPrice returns the gas price of the receipt
func (*Receipt) GetRecvAddress ¶ added in v1.0.67
GetRecvAddress returns the receiver address from the receipt
func (*Receipt) GetSndAddress ¶ added in v1.0.67
GetSndAddress returns the sender address from the receipt
func (*Receipt) IsInterfaceNil ¶
IsInterfaceNil verifies if underlying object is nil
func (*Receipt) Load ¶ added in v1.0.67
Load loads the data from the stream into a Receipt object through Capnp protocol
func (*Receipt) Save ¶ added in v1.0.67
Save saves the serialized data of a Receipt into a stream through Capnp protocol
func (*Receipt) SetRecvAddress ¶ added in v1.0.67
SetRecvAddress sets the receiver address of the receipt
func (*Receipt) SetSndAddress ¶ added in v1.0.67
SetSndAddress sets the sender address of the receipt