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
Click to show internal directories.
Click to hide internal directories.