Documentation ¶
Index ¶
- Constants
- func BridgesByChainID(chainID *big.Int, client bind.ContractBackend, addrs services.AddressManager) (map[string]Bridge, error)
- func FilterStateBatchAppendedWithRetry(ctx context.Context, filterer *legacy_bindings.StateCommitmentChainFilterer, ...) (*legacy_bindings.StateCommitmentChainStateBatchAppendedIterator, error)
- func StateCommitmentChainScanner(client bind.ContractFilterer, addrs services.AddressManager) (*legacy_bindings.StateCommitmentChainFilterer, error)
- type Bridge
- type DepositsMap
- type EthBridge
- type FinalizedWithdrawalsMap
- type InitiatedWithdrawalMap
- type Portal
- type ProvenWithdrawalsMap
- type StandardBridge
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 ¶
func FilterStateBatchAppendedWithRetry(ctx context.Context, filterer *legacy_bindings.StateCommitmentChainFilterer, opts *bind.FilterOpts) (*legacy_bindings.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 services.AddressManager) (*legacy_bindings.StateCommitmentChainFilterer, error)
Types ¶
type DepositsMap ¶
DepositsMap is a collection of deposit objects keyed on block hashes.
type EthBridge ¶
type EthBridge struct {
// contains filtered or unexported fields
}
func (*EthBridge) GetDepositsByBlockRange ¶
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) GetFinalizedWithdrawalsByBlockRange ¶
func (*Portal) GetProvenWithdrawalsByBlockRange ¶
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
Click to show internal directories.
Click to hide internal directories.