indexer

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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessList

type AccessList struct {
	Address     primitives.Data20   `json:"address"     json:"address"`
	StorageKeys []primitives.Data32 `json:"storageKeys" json:"storageKeys"`
}

type Block

type Block struct {
	ChainId          uint64              `cbor:"chain_id"          json:"chain_id"`
	Height           uint64              `cbor:"height"            json:"height"`
	Sequence         uint64              `cbor:"sequence"          json:"sequence"`
	GasLimit         primitives.Quantity `cbor:"gas_limit"         json:"gas_limit"`
	GasUsed          primitives.Quantity `cbor:"gas_used"          json:"gas_used"`
	Timestamp        Timestamp           `cbor:"timestamp"         json:"timestamp"`
	Hash             primitives.Data32   `cbor:"hash"              json:"hash"`
	ParentHash       primitives.Data32   `cbor:"parent_hash"       json:"parent_hash"`
	TransactionsRoot primitives.Data32   `cbor:"transactions_root" json:"transactions_root"`
	ReceiptsRoot     primitives.Data32   `cbor:"receipts_root"     json:"receipts_root"`
	StateRoot        primitives.Data32   `cbor:"state_root"        json:"state_root"`
	Size             Size                `cbor:"size"              json:"size"`
	Miner            primitives.Data20   `cbor:"miner"             json:"miner"`
	LogsBloom        primitives.Data256  `cbor:"logs_bloom"        json:"logs_bloom"`
	Transactions     []*Transaction      `cbor:"transactions"      json:"transactions"`
	NearBlock        any                 `cbor:"near_metadata"     json:"near_metadata"`
}

type InputOutputData

type InputOutputData primitives.VarData

func (*InputOutputData) UnmarshalCBOR

func (iod *InputOutputData) UnmarshalCBOR(b []byte) error

func (*InputOutputData) UnmarshalJSON

func (iod *InputOutputData) UnmarshalJSON(b []byte) error

type Log

type Log struct {
	Address primitives.Data20 `cbor:"Address" json:"address"`
	Topics  []Topic           `cbor:"Topics"  json:"topics"`
	Data    InputOutputData   `cbor:"data"    json:"data"`
}

type NearHash

type NearHash primitives.Data32

func (*NearHash) UnmarshalCBOR

func (nh *NearHash) UnmarshalCBOR(b []byte) error

func (*NearHash) UnmarshalJSON

func (nh *NearHash) UnmarshalJSON(b []byte) error

type NearTransaction

type NearTransaction struct {
	Hash        *NearHash `cbor:"transaction_hash" json:"transaction_hash"`
	ReceiptHash NearHash  `cbor:"receipt_hash"     json:"receipt_hash"`
}

type Size

type Size uint64

func (*Size) UnmarshalCBOR

func (s *Size) UnmarshalCBOR(b []byte) error

func (*Size) UnmarshalJSON

func (s *Size) UnmarshalJSON(b []byte) error

type Timestamp

type Timestamp uint64

func (*Timestamp) UnmarshalCBOR

func (ts *Timestamp) UnmarshalCBOR(b []byte) error

func (*Timestamp) UnmarshalJSON

func (ts *Timestamp) UnmarshalJSON(b []byte) error

type Topic

type Topic primitives.Data32

func (Topic) MarshalJSON added in v1.0.2

func (t Topic) MarshalJSON() ([]byte, error)

func (*Topic) UnmarshalCBOR

func (t *Topic) UnmarshalCBOR(b []byte) error

func (*Topic) UnmarshalJSON

func (t *Topic) UnmarshalJSON(b []byte) error

type Transaction

type Transaction struct {
	Hash                 primitives.Data32   `cbor:"hash"                     json:"hash"`
	BlockHash            primitives.Data32   `cbor:"block_hash"               json:"block_hash"`
	BlockHeight          uint64              `cbor:"block_height"             json:"block_height"`
	ChainId              uint64              `cbor:"chain_id"                 json:"chain_id"`
	TransactionIndex     uint64              `cbor:"transaction_index"        json:"transaction_index"`
	From                 primitives.Data20   `cbor:"from"                     json:"from"`
	To                   *primitives.Data20  `cbor:"to"                       json:"to"`
	Nonce                primitives.Quantity `cbor:"nonce"                    json:"nonce"`
	GasPrice             primitives.Quantity `cbor:"gas_price"                json:"gas_price"`
	GasLimit             primitives.Quantity `cbor:"gas_limit"                json:"gas_limit"`
	GasUsed              uint64              `cbor:"gas_used"                 json:"gas_used"`
	MaxPriorityFeePerGas primitives.Quantity `cbor:"max_priority_fee_per_gas" json:"max_priority_fee_per_gas"`
	MaxFeePerGas         primitives.Quantity `cbor:"max_fee_per_gas"          json:"max_fee_per_gas"`
	Value                primitives.Quantity `cbor:"value"                    json:"value"`
	Input                InputOutputData     `cbor:"input"                    json:"input"`
	Output               InputOutputData     `cbor:"output"                   json:"output"`
	AccessList           []AccessList        `cbor:"access_list"              json:"access_list"`
	TxType               uint64              `cbor:"tx_type"                  json:"tx_type"`
	Status               bool                `cbor:"status"                   json:"status"`
	Logs                 []*Log              `cbor:"logs"                     json:"logs"`
	LogsBloom            primitives.Data256  `cbor:"logs_bloom"               json:"logs_bloom"`
	ContractAddress      *primitives.Data20  `cbor:"contract_address"         json:"contract_address"`
	V                    uint64              `cbor:"v"                        json:"v"`
	R                    primitives.Quantity `cbor:"r"                        json:"r"`
	S                    primitives.Quantity `cbor:"s"                        json:"s"`
	NearTransaction      NearTransaction     `cbor:"near_metadata"            json:"near_metadata"`
}

Jump to

Keyboard shortcuts

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