bridge

package
v0.0.0-...-eb934a0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnectionTimeout = 60 * time.Second

	L2StandardBridgeAddr = "0x4200000000000000000000000000000000000010"

	StandardBridgeImpl = "StandardBridge"
)

Variables

This section is empty.

Functions

func BridgesByChainID

func BridgesByChainID(chainID *big.Int, client *ethclient.Client, isBedrock bool) (map[string]Bridge, error)

Types

type Bridge

type Bridge interface {
	Address() common.Address
	GetWithdrawalsByBlockRange(context.Context, uint64, uint64) (WithdrawalsMap, error)
	String() string
}

type StandardBridge

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

func (*StandardBridge) Address

func (s *StandardBridge) Address() common.Address

func (*StandardBridge) GetWithdrawalsByBlockRange

func (s *StandardBridge) GetWithdrawalsByBlockRange(ctx context.Context, start, end uint64) (WithdrawalsMap, error)

func (*StandardBridge) String

func (s *StandardBridge) String() string

type WithdrawalsMap

type WithdrawalsMap map[common.Hash][]db.Withdrawal

Jump to

Keyboard shortcuts

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