receipt

package
v1.0.83 Latest Latest
Warning

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

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

Documentation

Index

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) GetData

func (rpt *Receipt) GetData() []byte

GetData returns the data of the receipt

func (*Receipt) GetGasLimit

func (rpt *Receipt) GetGasLimit() uint64

GetGasLimit returns the gas limit of the receipt

func (*Receipt) GetGasPrice

func (rpt *Receipt) GetGasPrice() uint64

GetGasPrice returns the gas price of the receipt

func (*Receipt) GetNonce

func (rpt *Receipt) GetNonce() uint64

GetNonce returns the nonce of the receipt

func (*Receipt) GetRecvAddress added in v1.0.67

func (rpt *Receipt) GetRecvAddress() []byte

GetRecvAddress returns the receiver address from the receipt

func (*Receipt) GetSndAddress added in v1.0.67

func (rpt *Receipt) GetSndAddress() []byte

GetSndAddress returns the sender address from the receipt

func (*Receipt) GetValue

func (rpt *Receipt) GetValue() *big.Int

GetValue returns the value of the receipt

func (*Receipt) IsInterfaceNil

func (rpt *Receipt) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*Receipt) Load added in v1.0.67

func (rpt *Receipt) Load(r io.Reader) error

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

func (*Receipt) Save added in v1.0.67

func (rpt *Receipt) Save(w io.Writer) error

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

func (*Receipt) SetData

func (rpt *Receipt) SetData(data []byte)

SetData sets the data of the receipt

func (*Receipt) SetRecvAddress added in v1.0.67

func (rpt *Receipt) SetRecvAddress(_ []byte)

SetRecvAddress sets the receiver address of the receipt

func (*Receipt) SetSndAddress added in v1.0.67

func (rpt *Receipt) SetSndAddress(addr []byte)

SetSndAddress sets the sender address of the receipt

func (*Receipt) SetValue

func (rpt *Receipt) SetValue(value *big.Int)

SetValue sets the value of the receipt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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