Documentation ¶
Index ¶
- Constants
- func BridgesByChainID(chainID *big.Int, client bind.ContractFilterer, ctx context.Context) (map[string]Bridge, error)
- func FilterWithdrawalInitiatedWithRetry(ctx context.Context, filterer *l2bridge.L2StandardBridgeFilterer, ...) (*l2bridge.L2StandardBridgeWithdrawalInitiatedIterator, error)
- type Bridge
- type StandardBridge
- type WithdrawalsMap
Constants ¶
View Source
const ( DefaultConnectionTimeout = 60 * time.Second L2StandardBridgeAddr = "0x4200000000000000000000000000000000000010" StandardBridgeImpl = "StandardBridge" )
Variables ¶
This section is empty.
Functions ¶
func BridgesByChainID ¶
func FilterWithdrawalInitiatedWithRetry ¶
func FilterWithdrawalInitiatedWithRetry(ctx context.Context, filterer *l2bridge.L2StandardBridgeFilterer, opts *bind.FilterOpts) (*l2bridge.L2StandardBridgeWithdrawalInitiatedIterator, error)
FilterWithdrawalInitiatedWithRetry retries the given func until it succeeds, waiting for clientRetryInterval duration after every call.
Types ¶
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(start, end uint64) (WithdrawalsMap, error)
func (*StandardBridge) String ¶
func (s *StandardBridge) String() string
type WithdrawalsMap ¶
type WithdrawalsMap map[common.Hash][]db.Withdrawal
Click to show internal directories.
Click to hide internal directories.