eth

package
v0.0.0-...-d5881eb Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(blockStore store.BlockStoreReader, adapter monomer.CosmosTxAdapter) *Block

func (*Block) GetBlockByHash

func (e *Block) GetBlockByHash(hash common.Hash, inclTx bool) (map[string]any, error)

func (*Block) GetBlockByNumber

func (e *Block) GetBlockByNumber(id BlockID, inclTx bool) (map[string]any, error)

type BlockID

type BlockID struct {
	Label  eth.BlockLabel
	Height int64
}

func (*BlockID) Get

func (*BlockID) UnmarshalJSON

func (id *BlockID) UnmarshalJSON(data []byte) error

type ChainID

type ChainID struct {
	// contains filtered or unexported fields
}

var errBlockNotFound = errors.New("block not found") // the op-node checks for this exact string.

func NewChainID

func NewChainID(chainID *hexutil.Big) *ChainID

func (*ChainID) ChainId

func (e *ChainID) ChainId() *hexutil.Big

Jump to

Keyboard shortcuts

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