types

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DataFormat

type DataFormat string
const (
	DataFormatFile      DataFormat = "file"
	DataFormatDirectory DataFormat = "directory"
	DataFormatPebble    DataFormat = "pebble"
)

type L2Source added in v1.11.0

type L2Source interface {
	InfoAndTxsByHash(ctx context.Context, blockHash common.Hash) (eth.BlockInfo, types.Transactions, error)
	NodeByHash(ctx context.Context, hash common.Hash) ([]byte, error)
	CodeByHash(ctx context.Context, hash common.Hash) ([]byte, error)
	FetchReceipts(ctx context.Context, blockHash common.Hash) (eth.BlockInfo, types.Receipts, error)
	OutputByRoot(ctx context.Context, blockRoot common.Hash) (eth.Output, error)
	OutputByNumber(ctx context.Context, blockNumber uint64) (eth.Output, error)
	RollupConfig() *rollup.Config
	ExperimentalEnabled() bool
}

type L2Sources added in v1.11.0

type L2Sources interface {
	ForChainID(chainID eth.ChainID) (L2Source, error)
	ForChainIDWithoutRetries(chainID eth.ChainID) (L2Source, error)
}

Jump to

Keyboard shortcuts

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