Help us shape the future of Go! Take the 2026 Go Developer Survey

chaingerreader

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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