chaingerreader

package
v0.3.0-beta7-tmp-bridge Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMChainGERReader

type EVMChainGERReader struct {
	// contains filtered or unexported fields
}

EVMChainGERReader is a component used to read GlobalExitRootManager L2 contract

func NewEVMChainGERReader

func NewEVMChainGERReader(
	l2GERManagerAddr common.Address,
	l2Client aggkittypes.BaseEthereumClienter) (*EVMChainGERReader, error)

NewEVMChainGERReader creates a new L2Etherman

func (*EVMChainGERReader) GetInjectedGERsForRange

func (e *EVMChainGERReader) GetInjectedGERsForRange(ctx context.Context,
	fromBlock, toBlock uint64) (map[common.Hash]InjectedGER, error)

GetInjectedGERsForRange returns the injected GlobalExitRoots for the given block range

type InjectedGER

type InjectedGER struct {
	// BlockNumber is the block number of the event
	BlockNumber uint64
	// BlockIndex is the index of the event in the block
	BlockIndex uint
	// NewGlobalExitRoot is the new GlobalExitRoot injected
	GlobalExitRoot common.Hash
}

InjectedGER is a struct that represents the injected GlobalExitRoot event

Jump to

Keyboard shortcuts

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