Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedDataFormats = []DataFormat{DataFormatFile, DataFormatDirectory, DataFormatPebble}
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)
PayloadExecutionWitness(ctx context.Context, parentHash common.Hash, payload eth.PayloadAttributes) (*eth.ExecutionWitness, error)
GetProof(ctx context.Context, address common.Address, storage []common.Hash, blockTag string) (*eth.AccountResult, error)
RollupConfig() *rollup.Config
ExperimentalEnabled() bool
}
Click to show internal directories.
Click to hide internal directories.