receipt

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthReceipt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowReceipt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupReceipt = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Receipt

type Receipt struct {
	Value   *math_big.Int `` /* 132-byte string literal not displayed */
	SndAddr []byte        `protobuf:"bytes,2,opt,name=SndAddr,proto3" json:"sender"`
	Data    []byte        `protobuf:"bytes,3,opt,name=Data,proto3" json:"data,omitempty"`
	TxHash  []byte        `protobuf:"bytes,4,opt,name=TxHash,proto3" json:"txHash"`
}

Receipt holds all the data needed for a transaction receipt

func (*Receipt) Descriptor

func (*Receipt) Descriptor() ([]byte, []int)

func (*Receipt) Equal

func (this *Receipt) Equal(that interface{}) bool

func (*Receipt) GetData

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

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

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

GetRcvAddr returns the receiver address from the receipt

func (*Receipt) GetRcvUserName added in v1.1.24

func (_ *Receipt) GetRcvUserName() []byte

GetRcvUserName returns the receiver user name from the receipt

func (*Receipt) GetSndAddr

func (m *Receipt) GetSndAddr() []byte

func (*Receipt) GetTxHash

func (m *Receipt) GetTxHash() []byte

func (*Receipt) GetValue

func (m *Receipt) GetValue() *math_big.Int

func (*Receipt) GoString

func (this *Receipt) GoString() string

func (*Receipt) IsInterfaceNil

func (rpt *Receipt) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying object is nil

func (*Receipt) Marshal

func (m *Receipt) Marshal() (dAtA []byte, err error)

func (*Receipt) MarshalTo

func (m *Receipt) MarshalTo(dAtA []byte) (int, error)

func (*Receipt) MarshalToSizedBuffer

func (m *Receipt) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) Reset

func (m *Receipt) Reset()

func (*Receipt) SetData

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

SetData sets the data of the receipt

func (*Receipt) SetRcvAddr

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

SetRcvAddr sets the receiver address of the receipt

func (*Receipt) SetSndAddr

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

SetSndAddr sets the sender address of the receipt

func (*Receipt) SetValue

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

SetValue sets the value of the receipt

func (*Receipt) Size

func (m *Receipt) Size() (n int)

func (*Receipt) String

func (this *Receipt) String() string

func (*Receipt) Unmarshal

func (m *Receipt) Unmarshal(dAtA []byte) error

func (*Receipt) XXX_DiscardUnknown

func (m *Receipt) XXX_DiscardUnknown()

func (*Receipt) XXX_Marshal

func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Receipt) XXX_Merge

func (m *Receipt) XXX_Merge(src proto.Message)

func (*Receipt) XXX_Size

func (m *Receipt) XXX_Size() int

func (*Receipt) XXX_Unmarshal

func (m *Receipt) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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