Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainContainer ¶
type ChainContainer interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
Pause(ctx context.Context) error
Resume(ctx context.Context) error
SafeBlockAtTimestamp(ctx context.Context, ts uint64) (eth.L2BlockRef, error)
SafeHeadAtL1(ctx context.Context, l1BlockNum uint64) (l1 eth.BlockID, l2 eth.BlockID, err error)
// L1AtSafeHead returns the earliest L1 block at which the given L2 block became safe.
L1AtSafeHead(ctx context.Context, l2 eth.BlockID) (eth.BlockID, error)
CurrentL1(ctx context.Context) (eth.BlockRef, error)
VerifiedAt(ctx context.Context, ts uint64) (l2, l1 eth.BlockID, err error)
OptimisticAt(ctx context.Context, ts uint64) (l2, l1 eth.BlockID, err error)
OutputRootAtL2BlockNumber(ctx context.Context, l2BlockNum uint64) (eth.Bytes32, error)
// OptimisticOutputAtTimestamp returns the full Output at the optimistic L2 block for the given timestamp.
OptimisticOutputAtTimestamp(ctx context.Context, ts uint64) (*eth.OutputResponse, error)
}
func NewChainContainer ¶
func NewChainContainer( chainID eth.ChainID, vncfg *opnodecfg.Config, log gethlog.Logger, cfg config.CLIConfig, initOverload *rollupNode.InitializationOverrides, rpcHandler *oprpc.Handler, setHandler func(chainID string, h http.Handler), setMetricsHandler func(chainID string, h http.Handler), ) ChainContainer
Click to show internal directories.
Click to hide internal directories.