eth

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AccessListItem

type AccessListItem struct {
	Address *types.H160   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Slots   []*types.H256 `protobuf:"bytes,2,rep,name=slots,proto3" json:"slots,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessListItem) Descriptor deprecated

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

Deprecated: Use AccessListItem.ProtoReflect.Descriptor instead.

func (*AccessListItem) GetAddress

func (x *AccessListItem) GetAddress() *types.H160

func (*AccessListItem) GetSlots

func (x *AccessListItem) GetSlots() []*types.H256

func (*AccessListItem) ProtoMessage

func (*AccessListItem) ProtoMessage()

func (*AccessListItem) ProtoReflect

func (x *AccessListItem) ProtoReflect() protoreflect.Message

func (*AccessListItem) Reset

func (x *AccessListItem) Reset()

func (*AccessListItem) String

func (x *AccessListItem) String() string

type AccessTuple added in v1.2.8

type AccessTuple struct {
	Address     []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessTuple) Descriptor deprecated added in v1.2.8

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

Deprecated: Use AccessTuple.ProtoReflect.Descriptor instead.

func (*AccessTuple) GetAddress added in v1.2.8

func (x *AccessTuple) GetAddress() []byte

func (*AccessTuple) GetStorageKeys added in v1.2.8

func (x *AccessTuple) GetStorageKeys() [][]byte

func (*AccessTuple) ProtoMessage added in v1.2.8

func (*AccessTuple) ProtoMessage()

func (*AccessTuple) ProtoReflect added in v1.2.8

func (x *AccessTuple) ProtoReflect() protoreflect.Message

func (*AccessTuple) Reset added in v1.2.8

func (x *AccessTuple) Reset()

func (*AccessTuple) String added in v1.2.8

func (x *AccessTuple) String() string

type Block

type Block struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Body   *Body   `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBody

func (x *Block) GetBody() *Body

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockId

type BlockId struct {

	// Types that are assignable to Id:
	//	*BlockId_Hash
	//	*BlockId_Number
	Id isBlockId_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

func (*BlockId) Descriptor deprecated

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

Deprecated: Use BlockId.ProtoReflect.Descriptor instead.

func (*BlockId) GetHash

func (x *BlockId) GetHash() *types.H256

func (*BlockId) GetId

func (m *BlockId) GetId() isBlockId_Id

func (*BlockId) GetNumber

func (x *BlockId) GetNumber() *BlockNumber

func (*BlockId) ProtoMessage

func (*BlockId) ProtoMessage()

func (*BlockId) ProtoReflect

func (x *BlockId) ProtoReflect() protoreflect.Message

func (*BlockId) Reset

func (x *BlockId) Reset()

func (*BlockId) String

func (x *BlockId) String() string

type BlockId_Hash

type BlockId_Hash struct {
	Hash *types.H256 `protobuf:"bytes,1,opt,name=hash,proto3,oneof"`
}

type BlockId_Number

type BlockId_Number struct {
	Number *BlockNumber `protobuf:"bytes,2,opt,name=number,proto3,oneof"`
}

type BlockNumber

type BlockNumber struct {

	// Types that are assignable to BlockNumber:
	//	*BlockNumber_Latest
	//	*BlockNumber_Pending
	//	*BlockNumber_Number
	BlockNumber isBlockNumber_BlockNumber `protobuf_oneof:"block_number"`
	// contains filtered or unexported fields
}

func (*BlockNumber) Descriptor deprecated

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

Deprecated: Use BlockNumber.ProtoReflect.Descriptor instead.

func (*BlockNumber) GetBlockNumber

func (m *BlockNumber) GetBlockNumber() isBlockNumber_BlockNumber

func (*BlockNumber) GetLatest

func (x *BlockNumber) GetLatest() *emptypb.Empty

func (*BlockNumber) GetNumber

func (x *BlockNumber) GetNumber() uint64

func (*BlockNumber) GetPending

func (x *BlockNumber) GetPending() *emptypb.Empty

func (*BlockNumber) ProtoMessage

func (*BlockNumber) ProtoMessage()

func (*BlockNumber) ProtoReflect

func (x *BlockNumber) ProtoReflect() protoreflect.Message

func (*BlockNumber) Reset

func (x *BlockNumber) Reset()

func (*BlockNumber) String

func (x *BlockNumber) String() string

type BlockNumber_Latest

type BlockNumber_Latest struct {
	Latest *emptypb.Empty `protobuf:"bytes,1,opt,name=latest,proto3,oneof"`
}

type BlockNumber_Number

type BlockNumber_Number struct {
	Number uint64 `protobuf:"varint,3,opt,name=number,proto3,oneof"`
}

type BlockNumber_Pending

type BlockNumber_Pending struct {
	Pending *emptypb.Empty `protobuf:"bytes,2,opt,name=pending,proto3,oneof"`
}

type Body

type Body struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	Ommers       [][]byte       `protobuf:"bytes,2,rep,name=ommers,proto3" json:"ommers,omitempty"`
	// contains filtered or unexported fields
}

func (*Body) Descriptor deprecated

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

Deprecated: Use Body.ProtoReflect.Descriptor instead.

func (*Body) GetOmmers

func (x *Body) GetOmmers() [][]byte

func (*Body) GetTransactions

func (x *Body) GetTransactions() []*Transaction

func (*Body) ProtoMessage

func (*Body) ProtoMessage()

func (*Body) ProtoReflect

func (x *Body) ProtoReflect() protoreflect.Message

func (*Body) Reset

func (x *Body) Reset()

func (*Body) String

func (x *Body) String() string

type CanonicalTransactionData

type CanonicalTransactionData struct {
	BlockHash   *types.H256 `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	BlockNumber uint64      `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
	Index       uint64      `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*CanonicalTransactionData) Descriptor deprecated

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

Deprecated: Use CanonicalTransactionData.ProtoReflect.Descriptor instead.

func (*CanonicalTransactionData) GetBlockHash

func (x *CanonicalTransactionData) GetBlockHash() *types.H256

func (*CanonicalTransactionData) GetBlockNumber

func (x *CanonicalTransactionData) GetBlockNumber() uint64

func (*CanonicalTransactionData) GetIndex

func (x *CanonicalTransactionData) GetIndex() uint64

func (*CanonicalTransactionData) ProtoMessage

func (*CanonicalTransactionData) ProtoMessage()

func (*CanonicalTransactionData) ProtoReflect

func (x *CanonicalTransactionData) ProtoReflect() protoreflect.Message

func (*CanonicalTransactionData) Reset

func (x *CanonicalTransactionData) Reset()

func (*CanonicalTransactionData) String

func (x *CanonicalTransactionData) String() string
type Header struct {
	Number          uint64  `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Hash            []byte  `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	ParentHash      []byte  `protobuf:"bytes,3,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	Nonce           uint64  `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	UncleHash       []byte  `protobuf:"bytes,5,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"`
	StateRoot       []byte  `protobuf:"bytes,6,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	ReceiptRoot     []byte  `protobuf:"bytes,7,opt,name=receipt_root,json=receiptRoot,proto3" json:"receipt_root,omitempty"`
	Coinbase        []byte  `protobuf:"bytes,8,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	Difficulty      uint64  `protobuf:"varint,9,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	TotalDifficulty *uint64 `protobuf:"varint,10,opt,name=total_difficulty,json=totalDifficulty,proto3,oneof" json:"total_difficulty,omitempty"`
	ExtraData       []byte  `protobuf:"bytes,11,opt,name=extra_data,json=extraData,proto3,oneof" json:"extra_data,omitempty"`
	Size            *uint64 `protobuf:"varint,12,opt,name=size,proto3,oneof" json:"size,omitempty"`
	GasLimit        uint64  `protobuf:"varint,13,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasUsed         uint64  `protobuf:"varint,14,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Timestamp       uint64  `protobuf:"varint,15,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetCoinbase

func (x *Header) GetCoinbase() []byte

func (*Header) GetDifficulty

func (x *Header) GetDifficulty() uint64

func (*Header) GetExtraData

func (x *Header) GetExtraData() []byte

func (*Header) GetGasLimit

func (x *Header) GetGasLimit() uint64

func (*Header) GetGasUsed

func (x *Header) GetGasUsed() uint64

func (*Header) GetHash

func (x *Header) GetHash() []byte

func (*Header) GetNonce

func (x *Header) GetNonce() uint64

func (*Header) GetNumber

func (x *Header) GetNumber() uint64

func (*Header) GetParentHash

func (x *Header) GetParentHash() []byte

func (*Header) GetReceiptRoot

func (x *Header) GetReceiptRoot() []byte

func (*Header) GetSize

func (x *Header) GetSize() uint64

func (*Header) GetStateRoot

func (x *Header) GetStateRoot() []byte

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() uint64

func (*Header) GetTotalDifficulty

func (x *Header) GetTotalDifficulty() uint64

func (*Header) GetUncleHash

func (x *Header) GetUncleHash() []byte

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type StoredTransaction

type StoredTransaction struct {
	CanonicalData *CanonicalTransactionData `protobuf:"bytes,1,opt,name=canonical_data,json=canonicalData,proto3,oneof" json:"canonical_data,omitempty"`
	Transaction   *Transaction              `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*StoredTransaction) Descriptor deprecated

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

Deprecated: Use StoredTransaction.ProtoReflect.Descriptor instead.

func (*StoredTransaction) GetCanonicalData

func (x *StoredTransaction) GetCanonicalData() *CanonicalTransactionData

func (*StoredTransaction) GetTransaction

func (x *StoredTransaction) GetTransaction() *Transaction

func (*StoredTransaction) ProtoMessage

func (*StoredTransaction) ProtoMessage()

func (*StoredTransaction) ProtoReflect

func (x *StoredTransaction) ProtoReflect() protoreflect.Message

func (*StoredTransaction) Reset

func (x *StoredTransaction) Reset()

func (*StoredTransaction) String

func (x *StoredTransaction) String() string

type Transaction

type Transaction struct {
	To          []byte         `protobuf:"bytes,1,opt,name=to,proto3,oneof" json:"to,omitempty"`
	Gas         uint64         `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"`
	GasPrice    uint64         `protobuf:"varint,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	Hash        []byte         `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
	Input       []byte         `protobuf:"bytes,5,opt,name=input,proto3" json:"input,omitempty"`
	Nonce       uint64         `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Value       []byte         `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	From        []byte         `protobuf:"bytes,8,opt,name=from,proto3" json:"from,omitempty"`
	Type        uint32         `protobuf:"varint,9,opt,name=type,proto3" json:"type,omitempty"`
	MaxFee      uint64         `protobuf:"varint,10,opt,name=max_fee,json=maxFee,proto3" json:"max_fee,omitempty"`                // = maxFeePerGas = GasFeeCap
	PriorityFee uint64         `protobuf:"varint,11,opt,name=priority_fee,json=priorityFee,proto3" json:"priority_fee,omitempty"` // = maxPriorityFeePerGas = GasTipCap
	V           uint64         `protobuf:"varint,12,opt,name=v,proto3" json:"v,omitempty"`
	R           []byte         `protobuf:"bytes,13,opt,name=r,proto3" json:"r,omitempty"`
	S           []byte         `protobuf:"bytes,14,opt,name=s,proto3" json:"s,omitempty"`
	ChainId     uint32         `protobuf:"varint,15,opt,name=chainId,proto3" json:"chainId,omitempty"`
	AccessList  []*AccessTuple `protobuf:"bytes,16,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"`
	// contains filtered or unexported fields
}

TODO: make eip1559 compatible + type

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAccessList added in v1.2.8

func (x *Transaction) GetAccessList() []*AccessTuple

func (*Transaction) GetChainId

func (x *Transaction) GetChainId() uint32

func (*Transaction) GetFrom

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

func (*Transaction) GetGas

func (x *Transaction) GetGas() uint64

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() uint64

func (*Transaction) GetHash

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

func (*Transaction) GetInput

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

func (*Transaction) GetMaxFee

func (x *Transaction) GetMaxFee() uint64

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() uint64

func (*Transaction) GetPriorityFee

func (x *Transaction) GetPriorityFee() uint64

func (*Transaction) GetR

func (x *Transaction) GetR() []byte

func (*Transaction) GetS

func (x *Transaction) GetS() []byte

func (*Transaction) GetTo

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

func (*Transaction) GetType

func (x *Transaction) GetType() uint32

func (*Transaction) GetV

func (x *Transaction) GetV() uint64

func (*Transaction) GetValue

func (x *Transaction) GetValue() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

Jump to

Keyboard shortcuts

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