bridge

package
v0.0.0-...-412688d Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 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 *Addresses, ctx context.Context) (map[string]Bridge, error)

func FilterERC20DepositInitiatedWithRetry

func FilterERC20DepositInitiatedWithRetry(ctx context.Context, filterer *l1bridge.L1StandardBridgeFilterer, opts *bind.FilterOpts) (*l1bridge.L1StandardBridgeERC20DepositInitiatedIterator, error)

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

func FilterETHDepositInitiatedWithRetry

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

func FilterStateBatchAppendedWithRetry

func FilterStateBatchAppendedWithRetry(ctx context.Context, filterer *scc.StateCommitmentChainFilterer, opts *bind.FilterOpts) (*scc.StateCommitmentChainStateBatchAppendedIterator, error)

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

func StateCommitmentChainScanner

func StateCommitmentChainScanner(client bind.ContractFilterer, addrs *Addresses) (*scc.StateCommitmentChainFilterer, error)

Types

type Addresses

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

func NewAddresses

func NewAddresses(client bind.ContractBackend, addrMgrAddr common.Address) (*Addresses, error)

func (*Addresses) AddressManager

func (a *Addresses) AddressManager() common.Address

func (*Addresses) BondManager

func (a *Addresses) BondManager() common.Address

func (*Addresses) CanonicalTransactionChain

func (a *Addresses) CanonicalTransactionChain() common.Address

func (*Addresses) L1CrossDomainMessenger

func (a *Addresses) L1CrossDomainMessenger() common.Address

func (*Addresses) L1StandardBridge

func (a *Addresses) L1StandardBridge() common.Address

func (*Addresses) StateCommitmentChain

func (a *Addresses) StateCommitmentChain() common.Address

type Bridge

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

type DepositsMap

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

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(start, end uint64) (DepositsMap, error)

func (*EthBridge) String

func (e *EthBridge) String() string

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(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