frontend

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminFrontend

type AdminFrontend struct {
	Supervisor Backend
}

func (*AdminFrontend) AddL2RPC added in v1.9.3

func (a *AdminFrontend) AddL2RPC(ctx context.Context, rpc string, jwtSecret eth.Bytes32) error

AddL2RPC adds a new L2 chain to the supervisor backend

func (*AdminFrontend) Rewind added in v1.13.3

func (a *AdminFrontend) Rewind(ctx context.Context, chain eth.ChainID, block eth.BlockID) error

Rewind removes some L2 chain data from the supervisor backend, starting from the given block.

func (*AdminFrontend) Start

func (a *AdminFrontend) Start(ctx context.Context) error

Start starts the service, if it was previously stopped.

func (*AdminFrontend) Stop

func (a *AdminFrontend) Stop(ctx context.Context) error

Stop stops the service, if it was previously started.

type Backend

type Backend interface {
	apis.SupervisorAdminAPI
	apis.SupervisorQueryAPI
}

type QueryFrontend

type QueryFrontend struct {
	Supervisor apis.SupervisorQueryAPI
}

func (*QueryFrontend) AllSafeDerivedAt added in v1.11.0

func (q *QueryFrontend) AllSafeDerivedAt(ctx context.Context, derivedFrom eth.BlockID) (derived map[eth.ChainID]eth.BlockID, err error)

func (*QueryFrontend) CheckAccessList added in v1.12.2

func (q *QueryFrontend) CheckAccessList(ctx context.Context, inboxEntries []common.Hash,
	minSafety types.SafetyLevel, executingDescriptor types.ExecutingDescriptor) error

func (*QueryFrontend) CrossDerivedToSource added in v1.11.0

func (q *QueryFrontend) CrossDerivedToSource(ctx context.Context, chainID eth.ChainID, derived eth.BlockID) (derivedFrom eth.BlockRef, err error)

func (*QueryFrontend) CrossSafe added in v1.11.0

func (q *QueryFrontend) CrossSafe(ctx context.Context, chainID eth.ChainID) (types.DerivedIDPair, error)

func (*QueryFrontend) Finalized added in v1.9.5

func (q *QueryFrontend) Finalized(ctx context.Context, chainID eth.ChainID) (eth.BlockID, error)

func (*QueryFrontend) FinalizedL1 added in v1.11.0

func (q *QueryFrontend) FinalizedL1(ctx context.Context) (eth.BlockRef, error)

func (*QueryFrontend) LocalUnsafe added in v1.11.0

func (q *QueryFrontend) LocalUnsafe(ctx context.Context, chainID eth.ChainID) (eth.BlockID, error)

func (*QueryFrontend) SuperRootAtTimestamp added in v1.11.0

func (q *QueryFrontend) SuperRootAtTimestamp(ctx context.Context, timestamp hexutil.Uint64) (eth.SuperRootResponse, error)

func (*QueryFrontend) SyncStatus added in v1.11.0

Jump to

Keyboard shortcuts

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