bridge

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConnectionTimeout = 60 * time.Second
)

Variables

This section is empty.

Functions

func BridgesByChainID

func BridgesByChainID(chainID *big.Int, client bind.ContractBackend, addrs services.AddressManager) (map[string]Bridge, error)

func FilterStateBatchAppendedWithRetry

FilterStateBatchAppendedWithRetry retries the given func until it succeeds, waiting for clientRetryInterval duration after every call.

Types

type Bridge

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

type DepositsMap

type DepositsMap map[common.Hash][]db.Deposit

DepositsMap is a collection of deposit objects keyed on block hashes.

type EthBridge

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

func (*EthBridge) Address

func (e *EthBridge) Address() common.Address

func (*EthBridge) GetDepositsByBlockRange

func (e *EthBridge) GetDepositsByBlockRange(ctx context.Context, start, end uint64) (DepositsMap, error)

func (*EthBridge) String

func (e *EthBridge) String() string

type FinalizedWithdrawalsMap

type FinalizedWithdrawalsMap map[common.Hash][]db.FinalizedWithdrawal

FinalizedWithdrawalsMap is a collection of finalized withdrawal objects keyed on block hashes.

type InitiatedWithdrawalMap

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

WithdrawalsMap is a collection of withdrawal objects keyed on block hashes.

type Portal

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

func NewPortal

func NewPortal(addrs services.AddressManager) *Portal

func (*Portal) Address

func (p *Portal) Address() common.Address

func (*Portal) GetFinalizedWithdrawalsByBlockRange

func (p *Portal) GetFinalizedWithdrawalsByBlockRange(ctx context.Context, start, end uint64) (FinalizedWithdrawalsMap, error)

func (*Portal) GetProvenWithdrawalsByBlockRange

func (p *Portal) GetProvenWithdrawalsByBlockRange(ctx context.Context, start, end uint64) (ProvenWithdrawalsMap, error)

type ProvenWithdrawalsMap

type ProvenWithdrawalsMap map[common.Hash][]db.ProvenWithdrawal

ProvenWithdrawalsMap is a collection of proven withdrawal objects keyed on block hashses

type StandardBridge

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

func (*StandardBridge) Address

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

func (*StandardBridge) GetDepositsByBlockRange

func (s *StandardBridge) GetDepositsByBlockRange(ctx context.Context, start, end uint64) (DepositsMap, error)

func (*StandardBridge) String

func (s *StandardBridge) String() string

Jump to

Keyboard shortcuts

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