Documentation ¶
Index ¶
- Variables
- func CrossDomainMessageCalldata(abi *abi.ABI, sentMsg *bindings.CrossDomainMessengerSentMessage, ...) ([]byte, error)
- func CrossDomainMessageCalldataV0(sentMsg *bindings.CrossDomainMessengerSentMessage) ([]byte, error)
- func DecodeVersionedNonce(nonce *big.Int) (uint16, *big.Int)
- func L2OutputProposedEvent(contractAddress common.Address, db *database.DB, fromHeight, toHeight *big.Int, ...) ([]worker.StateRoot, error)
- func LegacySCCBatchAppendedEvent(chainId string, contractAddress common.Address, db *database.DB, ...) ([]worker.StateRoot, error)
- 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 OptimismPortalProvenWithdrawal
- type OptimismPortalTransactionDepositEvent
- type OptimismPortalWithdrawalFinalizedEvent
- type OptimismPortalWithdrawalProvenEvent
- type StandardBridgeFinalizedEvent
- type StandardBridgeInitiatedEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CrossDomainMessengerLegacyRelayMessageEncoding = abi.NewMethod( "relayMessage", "relayMessage", abi.Function, "external", false, true, abi.Arguments{ {Name: "target", Type: addressType}, {Name: "sender", Type: addressType}, {Name: "data", Type: bytesType}, {Name: "nonce", Type: uint256Type}, }, abi.Arguments{}, ) )
Functions ¶
func CrossDomainMessageCalldataV0 ¶
func CrossDomainMessageCalldataV0(sentMsg *bindings.CrossDomainMessengerSentMessage) ([]byte, error)
func DecodeVersionedNonce ¶
DecodeVersionNonce is an re-implementation of Encoding.sol#decodeVersionedNonce. If the nonce is greater than 32 bytes (solidity uint256), bytes [32:] are ignored
func L2OutputProposedEvent ¶
Types ¶
type CrossDomainMessengerRelayedMessageEvent ¶
type CrossDomainMessengerRelayedMessageEvent struct { Event *event.ContractEvent MessageHash common.Hash }
type CrossDomainMessengerSentMessageEvent ¶
type CrossDomainMessengerSentMessageEvent struct { Event *event.ContractEvent Version uint16 MessageCalldata []byte MessageHash common.Hash Nonce *big.Int SentMessageEventGUID uuid.UUID GasLimit *big.Int FromAddress common.Address ToAddress common.Address ETHAmount *big.Int ERC20Amount *big.Int Data utils.Bytes HashVersion uint64 Timestamp uint64 }
type L2ToL1MessagePasserMessagePassed ¶
type LegacyBridgeEvent ¶
type LegacyBridgeEvent struct { Event *event.ContractEvent CrossDomainMessageHash *common.Hash FromAddress common.Address ToAddress common.Address ETHAmount *big.Int ERC20Amount *big.Int Data utils.Bytes LocalTokenAddress common.Address RemoteTokenAddress common.Address Timestamp uint64 }
type LegacyCTCDepositEvent ¶
type OptimismPortalTransactionDepositEvent ¶
type OptimismPortalWithdrawalFinalizedEvent ¶
type OptimismPortalWithdrawalFinalizedEvent struct { *bindings.OptimismPortalWithdrawalFinalized Event *event.ContractEvent }
type OptimismPortalWithdrawalProvenEvent ¶
type OptimismPortalWithdrawalProvenEvent struct { *bindings.OptimismPortalWithdrawalProven Event *event.ContractEvent }
type StandardBridgeFinalizedEvent ¶
type StandardBridgeFinalizedEvent struct { Event *event.ContractEvent CrossDomainMessageHash *common.Hash FromAddress common.Address ToAddress common.Address ETHAmount *big.Int ERC20Amount *big.Int Data utils.Bytes LocalTokenAddress common.Address RemoteTokenAddress common.Address Timestamp uint64 }
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 *event.ContractEvent CrossDomainMessageHash *common.Hash FromAddress common.Address ToAddress common.Address ETHAmount *big.Int ERC20Amount *big.Int Data utils.Bytes LocalTokenAddress common.Address RemoteTokenAddress common.Address Timestamp uint64 }
func StandardBridgeInitiatedEvents ¶
func StandardBridgeInitiatedEvents(chainId 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.