proto

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Log

type Log struct {
	Address     []byte   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	Topics      [][]byte `protobuf:"bytes,2,rep,name=Topics,proto3" json:"Topics,omitempty"`
	Data        []byte   `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	BlockNumber uint64   `protobuf:"varint,4,opt,name=BlockNumber,proto3" json:"BlockNumber,omitempty"`
	TxHash      []byte   `protobuf:"bytes,5,opt,name=TxHash,proto3" json:"TxHash,omitempty"`
	TxIndex     uint64   `protobuf:"varint,6,opt,name=TxIndex,proto3" json:"TxIndex,omitempty"`
	BlockHash   []byte   `protobuf:"bytes,7,opt,name=BlockHash,proto3" json:"BlockHash,omitempty"`
	Index       uint64   `protobuf:"varint,8,opt,name=Index,proto3" json:"Index,omitempty"`
	Removed     bool     `protobuf:"varint,9,opt,name=Removed,proto3" json:"Removed,omitempty"`
}

func (*Log) Descriptor

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

func (*Log) GetAddress

func (m *Log) GetAddress() []byte

func (*Log) GetBlockHash

func (m *Log) GetBlockHash() []byte

func (*Log) GetBlockNumber

func (m *Log) GetBlockNumber() uint64

func (*Log) GetData

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

func (*Log) GetIndex

func (m *Log) GetIndex() uint64

func (*Log) GetRemoved

func (m *Log) GetRemoved() bool

func (*Log) GetTopics

func (m *Log) GetTopics() [][]byte

func (*Log) GetTxHash

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

func (*Log) GetTxIndex

func (m *Log) GetTxIndex() uint64

func (*Log) Marshal

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

func (*Log) MarshalTo

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

func (*Log) MarshalToSizedBuffer

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

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) Size

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

func (*Log) String

func (m *Log) String() string

func (*Log) Unmarshal

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

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

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

func (*Log) XXX_Merge

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

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

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

type Transaction

type Transaction struct {
	BlockHash        []byte `protobuf:"bytes,1,opt,name=BlockHash,proto3" json:"BlockHash,omitempty"`
	BlockNumber      string `protobuf:"bytes,2,opt,name=BlockNumber,proto3" json:"BlockNumber,omitempty"`
	From             []byte `protobuf:"bytes,3,opt,name=From,proto3" json:"From,omitempty"`
	Gas              uint64 `protobuf:"varint,4,opt,name=Gas,proto3" json:"Gas,omitempty"`
	GasPrice         string `protobuf:"bytes,5,opt,name=GasPrice,proto3" json:"GasPrice,omitempty"`
	Hash             []byte `protobuf:"bytes,6,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Input            []byte `protobuf:"bytes,7,opt,name=Input,proto3" json:"Input,omitempty"`
	Nonce            uint64 `protobuf:"varint,8,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	To               []byte `protobuf:"bytes,9,opt,name=To,proto3" json:"To,omitempty"`
	TransactionIndex uint64 `protobuf:"varint,10,opt,name=TransactionIndex,proto3" json:"TransactionIndex,omitempty"`
	Value            string `protobuf:"bytes,11,opt,name=Value,proto3" json:"Value,omitempty"`
	V                string `protobuf:"bytes,12,opt,name=V,proto3" json:"V,omitempty"`
	R                string `protobuf:"bytes,13,opt,name=R,proto3" json:"R,omitempty"`
	S                string `protobuf:"bytes,14,opt,name=S,proto3" json:"S,omitempty"`
}

func (*Transaction) Descriptor

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

func (*Transaction) GetBlockHash

func (m *Transaction) GetBlockHash() []byte

func (*Transaction) GetBlockNumber

func (m *Transaction) GetBlockNumber() string

func (*Transaction) GetFrom

func (m *Transaction) GetFrom() []byte

func (*Transaction) GetGas

func (m *Transaction) GetGas() uint64

func (*Transaction) GetGasPrice

func (m *Transaction) GetGasPrice() string

func (*Transaction) GetHash

func (m *Transaction) GetHash() []byte

func (*Transaction) GetInput

func (m *Transaction) GetInput() []byte

func (*Transaction) GetNonce

func (m *Transaction) GetNonce() uint64

func (*Transaction) GetR

func (m *Transaction) GetR() string

func (*Transaction) GetS

func (m *Transaction) GetS() string

func (*Transaction) GetTo

func (m *Transaction) GetTo() []byte

func (*Transaction) GetTransactionIndex

func (m *Transaction) GetTransactionIndex() uint64

func (*Transaction) GetV

func (m *Transaction) GetV() string

func (*Transaction) GetValue

func (m *Transaction) GetValue() string

func (*Transaction) Marshal

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

func (*Transaction) MarshalTo

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

func (*Transaction) MarshalToSizedBuffer

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

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

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

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

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

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

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

func (*Transaction) XXX_Merge

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

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

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

type TransactionReceipt

type TransactionReceipt struct {
	Status            uint64 `protobuf:"varint,1,opt,name=Status,proto3" json:"Status,omitempty"`
	CumulativeGasUsed uint64 `protobuf:"varint,2,opt,name=CumulativeGasUsed,proto3" json:"CumulativeGasUsed,omitempty"`
	LogsBloom         []byte `protobuf:"bytes,3,opt,name=LogsBloom,proto3" json:"LogsBloom,omitempty"`
	Logs              []*Log `protobuf:"bytes,4,rep,name=Logs,proto3" json:"Logs,omitempty"`
	TransactionHash   string `protobuf:"bytes,5,opt,name=TransactionHash,proto3" json:"TransactionHash,omitempty"`
	ContractAddress   []byte `protobuf:"bytes,6,opt,name=ContractAddress,proto3" json:"ContractAddress,omitempty"`
	GasUsed           uint64 `protobuf:"varint,7,opt,name=GasUsed,proto3" json:"GasUsed,omitempty"`
	BlockHash         string `protobuf:"bytes,8,opt,name=BlockHash,proto3" json:"BlockHash,omitempty"`
	BlockNumber       uint64 `protobuf:"varint,9,opt,name=BlockNumber,proto3" json:"BlockNumber,omitempty"`
	TransactionIndex  uint64 `protobuf:"varint,10,opt,name=TransactionIndex,proto3" json:"TransactionIndex,omitempty"`
	From              string `protobuf:"bytes,11,opt,name=From,proto3" json:"From,omitempty"`
	To                []byte `protobuf:"bytes,12,opt,name=To,proto3" json:"To,omitempty"`
}

func (*TransactionReceipt) Descriptor

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

func (*TransactionReceipt) GetBlockHash

func (m *TransactionReceipt) GetBlockHash() string

func (*TransactionReceipt) GetBlockNumber

func (m *TransactionReceipt) GetBlockNumber() uint64

func (*TransactionReceipt) GetContractAddress

func (m *TransactionReceipt) GetContractAddress() []byte

func (*TransactionReceipt) GetCumulativeGasUsed

func (m *TransactionReceipt) GetCumulativeGasUsed() uint64

func (*TransactionReceipt) GetFrom

func (m *TransactionReceipt) GetFrom() string

func (*TransactionReceipt) GetGasUsed

func (m *TransactionReceipt) GetGasUsed() uint64

func (*TransactionReceipt) GetLogs

func (m *TransactionReceipt) GetLogs() []*Log

func (*TransactionReceipt) GetLogsBloom

func (m *TransactionReceipt) GetLogsBloom() []byte

func (*TransactionReceipt) GetStatus

func (m *TransactionReceipt) GetStatus() uint64

func (*TransactionReceipt) GetTo

func (m *TransactionReceipt) GetTo() []byte

func (*TransactionReceipt) GetTransactionHash

func (m *TransactionReceipt) GetTransactionHash() string

func (*TransactionReceipt) GetTransactionIndex

func (m *TransactionReceipt) GetTransactionIndex() uint64

func (*TransactionReceipt) Marshal

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

func (*TransactionReceipt) MarshalTo

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

func (*TransactionReceipt) MarshalToSizedBuffer

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

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) Reset

func (m *TransactionReceipt) Reset()

func (*TransactionReceipt) Size

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

func (*TransactionReceipt) String

func (m *TransactionReceipt) String() string

func (*TransactionReceipt) Unmarshal

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

func (*TransactionReceipt) XXX_DiscardUnknown

func (m *TransactionReceipt) XXX_DiscardUnknown()

func (*TransactionReceipt) XXX_Marshal

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

func (*TransactionReceipt) XXX_Merge

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

func (*TransactionReceipt) XXX_Size

func (m *TransactionReceipt) XXX_Size() int

func (*TransactionReceipt) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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