Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContractEvent ¶
type L1Client ¶
type L1Client interface {
GetLatestBlockNumber(ctx context.Context) (uint64, error)
GetBlockByNumber(ctx context.Context, blockNumber uint64) (*L1Block, error)
GetContractEvents(ctx context.Context, contractAddr string, fromBlock, toBlock uint64) ([]ContractEvent, error)
SubscribeToContractEvents(ctx context.Context, contractAddr string) (<-chan ContractEvent, error)
}
type RollupInfo ¶
type Service ¶
type Service interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
GetActiveRollups(ctx context.Context) ([][]byte, error)
GetRollupEndpoint(ctx context.Context, chainID []byte) (string, error)
GetRollupPublicKey(ctx context.Context, chainID []byte) ([]byte, error)
IsRollupActive(ctx context.Context, chainID []byte) (bool, error)
WatchRegistry(ctx context.Context) (<-chan Event, error)
GetRollupInfo(chainID []byte) (*RollupInfo, error)
GetAllRollups() map[string]*RollupInfo
SetPollingInterval(interval time.Duration)
}
Click to show internal directories.
Click to hide internal directories.