Documentation ¶
Index ¶
- func UnpackLog(out interface{}, log *types.Log, name string, contractAbi *abi.ABI) error
- type CrossDomainMessengerRelayedMessageEvent
- type CrossDomainMessengerSentMessageEvent
- type L2ToL1MessagePasserMessagePassed
- type LegacyBridgeEvent
- func L1StandardBridgeLegacyDepositInitiatedEvents(contractAddress common.Address, db *database.DB, fromHeight, toHeight *big.Int) ([]LegacyBridgeEvent, error)
- func L2StandardBridgeLegacyWithdrawalInitiatedEvents(contractAddress common.Address, db *database.DB, fromHeight, toHeight *big.Int) ([]LegacyBridgeEvent, error)
- type LegacyCTCDepositEvent
- type OptimismPortalTransactionDepositEvent
- type OptimismPortalWithdrawalFinalizedEvent
- type OptimismPortalWithdrawalProvenEvent
- type StandardBridgeFinalizedEvent
- type StandardBridgeInitiatedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrossDomainMessengerRelayedMessageEvent ¶
type CrossDomainMessengerRelayedMessageEvent struct { Event *database.ContractEvent MessageHash common.Hash }
type CrossDomainMessengerSentMessageEvent ¶
type CrossDomainMessengerSentMessageEvent struct { Event *database.ContractEvent BridgeMessage database.BridgeMessage Version uint16 }
type L2ToL1MessagePasserMessagePassed ¶
type L2ToL1MessagePasserMessagePassed struct { Event *database.ContractEvent WithdrawalHash common.Hash GasLimit *big.Int Nonce *big.Int Tx database.Transaction }
type LegacyBridgeEvent ¶
type LegacyBridgeEvent struct { Event *database.ContractEvent BridgeTransfer database.BridgeTransfer }
type LegacyCTCDepositEvent ¶
type LegacyCTCDepositEvent struct { Event *database.ContractEvent Tx database.Transaction TxHash common.Hash GasLimit *big.Int }
func LegacyCTCDepositEvents ¶
type OptimismPortalTransactionDepositEvent ¶
type OptimismPortalTransactionDepositEvent struct { Event *database.ContractEvent DepositTx *types.DepositTx Tx database.Transaction GasLimit *big.Int }
type OptimismPortalWithdrawalFinalizedEvent ¶
type OptimismPortalWithdrawalFinalizedEvent struct { *bindings.OptimismPortalWithdrawalFinalized Event *database.ContractEvent }
type OptimismPortalWithdrawalProvenEvent ¶
type OptimismPortalWithdrawalProvenEvent struct { *bindings.OptimismPortalWithdrawalProven Event *database.ContractEvent }
type StandardBridgeFinalizedEvent ¶
type StandardBridgeFinalizedEvent struct { Event *database.ContractEvent BridgeTransfer database.BridgeTransfer }
func StandardBridgeFinalizedEvents ¶
func StandardBridgeFinalizedEvents(chainSelector string, contractAddress common.Address, db *database.DB, fromHeight, toHeight *big.Int) ([]StandardBridgeFinalizedEvent, error)
StandardBridgeFinalizedEvents extracts all finalization bridge events from the contracts that follow the StandardBridge ABI. The correlated CrossDomainMessenger nonce is also parsed by looking at the parameters of the corresponding relayMessage transaction data.
type StandardBridgeInitiatedEvent ¶
type StandardBridgeInitiatedEvent struct { Event *database.ContractEvent BridgeTransfer database.BridgeTransfer }
func StandardBridgeInitiatedEvents ¶
func StandardBridgeInitiatedEvents(chainSelector string, contractAddress common.Address, db *database.DB, fromHeight, toHeight *big.Int) ([]StandardBridgeInitiatedEvent, error)
StandardBridgeInitiatedEvents extracts all initiated bridge events from the contracts that follow the StandardBridge ABI. The correlated CrossDomainMessenger nonce is also parsed from the associated messenger events.
Click to show internal directories.
Click to hide internal directories.