db

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessListEntry

type AccessListEntry struct {
	Address     primitives.Data20
	StorageKeys tp.VarList[primitives.Data32]
}

func (*AccessListEntry) GetTinyPackChildrenPointers

func (e *AccessListEntry) GetTinyPackChildrenPointers() ([]any, error)

type Block

type Block struct {
	ParentHash       primitives.Data32
	Miner            primitives.Data20
	Timestamp        uint64
	GasLimit         primitives.Quantity
	GasUsed          primitives.Quantity
	LogsBloom        primitives.Data256
	TransactionsRoot primitives.Data32
	StateRoot        primitives.Data32
	ReceiptsRoot     primitives.Data32
	Size             uint64
}

func (*Block) GetTinyPackChildrenPointers

func (b *Block) GetTinyPackChildrenPointers() ([]any, error)

type BlockFilter

type BlockFilter struct {
	CreatedAt uint64
	Metadata  primitives.VarData
	From      BlockKey
	Next      BlockKey
	To        BlockKey
}

func (*BlockFilter) GetTinyPackChildrenPointers

func (f *BlockFilter) GetTinyPackChildrenPointers() ([]any, error)

type BlockKey

type BlockKey struct {
	Height uint64
}

func (*BlockKey) CompareTo

func (bk *BlockKey) CompareTo(other *BlockKey) int

CompareTo compares receiver block key with the argument block key and returns

 0 if they are equal
 1 if receiver is greater than argument
-1 if receiver is smaller than argument

func (*BlockKey) GetTinyPackChildrenPointers

func (bk *BlockKey) GetTinyPackChildrenPointers() ([]any, error)

func (BlockKey) Next

func (bk BlockKey) Next() *BlockKey

func (BlockKey) Prev

func (bk BlockKey) Prev() *BlockKey

type Log

type Log struct {
	Address primitives.Data20
	Data    primitives.VarData
	Topics  tp.VarList[primitives.Data32]
}

func (*Log) GetTinyPackChildrenPointers

func (l *Log) GetTinyPackChildrenPointers() ([]any, error)

type LogFilter

type LogFilter struct {
	CreatedAt uint64
	Metadata  primitives.VarData
	From      LogKey
	Next      LogKey
	To        LogKey
	Addresses tp.VarList[primitives.Data20]
	Topics    tp.VarList[tp.VarList[primitives.Data32]]
}

func (*LogFilter) GetTinyPackChildrenPointers

func (f *LogFilter) GetTinyPackChildrenPointers() ([]any, error)

type LogKey

type LogKey struct {
	BlockHeight      uint64
	TransactionIndex uint64
	LogIndex         uint64
}

func (*LogKey) CompareTo

func (lk *LogKey) CompareTo(other *LogKey) int

CompareTo compares receiver log key with the argument log key and returns

 0 if they are equal
 1 if receiver is greater than argument
-1 if receiver is smaller than argument

func (*LogKey) GetTinyPackChildrenPointers

func (lk *LogKey) GetTinyPackChildrenPointers() ([]any, error)

func (LogKey) Next

func (lk LogKey) Next() *LogKey

func (LogKey) Prev

func (lk LogKey) Prev() *LogKey

type Transaction

type Transaction struct {
	Type                 uint64
	From                 primitives.Data20
	IsContractDeployment bool
	ToOrContract         tp.Nullable[primitives.Data20]
	Nonce                primitives.Quantity
	GasPrice             primitives.Quantity
	GasLimit             primitives.Quantity
	GasUsed              uint64
	CumulativeGasUsed    primitives.Quantity
	Value                primitives.Quantity
	Input                primitives.VarData
	NearHash             tp.Nullable[primitives.Data32]
	NearReceiptHash      primitives.Data32
	Status               bool
	V                    uint64
	R                    primitives.Quantity
	S                    primitives.Quantity
	LogsBloom            primitives.Data256
	AccessList           tp.VarList[AccessListEntry] // Only for post-EIP-2930 transactions (TxType >= 0x1)
	MaxPriorityFeePerGas primitives.Quantity         // Only for post-EIP-1559 transactions (TxType >= 0x2)
	MaxFeePerGas         primitives.Quantity         // Only for post-EIP-1559 transactions (TxType >= 0x2)
}

https://docs.infura.io/infura/networks/ethereum/concepts/transaction-types

func (*Transaction) ReadTinyPack

func (tx *Transaction) ReadTinyPack(r tp.Reader, d *tp.Decoder) error

func (*Transaction) WriteTinyPack

func (tx *Transaction) WriteTinyPack(w tp.Writer, e *tp.Encoder) error

type TransactionFilter

type TransactionFilter struct {
	CreatedAt uint64
	Metadata  primitives.VarData
	From      TransactionKey
	Next      TransactionKey
	To        TransactionKey
}

func (*TransactionFilter) GetTinyPackChildrenPointers

func (f *TransactionFilter) GetTinyPackChildrenPointers() ([]any, error)

type TransactionKey

type TransactionKey struct {
	BlockHeight      uint64
	TransactionIndex uint64
}

func (*TransactionKey) CompareTo

func (tk *TransactionKey) CompareTo(other *TransactionKey) int

CompareTo compares receiver transaction key with the argument transaction key and returns

 0 if they are equal
 1 if receiver is greater than argument
-1 if receiver is smaller than argument

func (*TransactionKey) GetTinyPackChildrenPointers

func (tk *TransactionKey) GetTinyPackChildrenPointers() ([]any, error)

func (TransactionKey) Next

func (tk TransactionKey) Next() *TransactionKey

func (TransactionKey) Prev

func (tk TransactionKey) Prev() *TransactionKey

Jump to

Keyboard shortcuts

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