# Functions
RenderFailure renders failure response with json.
RenderFatal renders fatal response with json.
RenderJSON renders response with json.
RenderSuccess renders success response with json.
# Constants
BlockStatusTypeInvalid represents an invalid block.
BlockStatusTypeValid represents a valid block.
CrossChainStatusTypeInvalid represents an invalid cross-chain transaction.
CrossChainStatusTypeValid represents a valid cross-chain transaction.
CustomERC20 represents a custom ERC20 token.
DAI represents DAI stablecoin token.
ERC1155EventCategory represents the ERC1155 gateway events.
ERC20EventCategory represents the ERC20 gateway events.
ERC20Unknown represents an unknown or undefined ERC20 token.
ERC721EventCategory represents the ERC721 gateway events.
ErrParameterInvalidNo is invalid params.
ETHAmountStatusTypeSet represents the eth amount is set.
ETHAmountStatusTypeUnset represents the eth amount is unset.
ETHBalanceStatusTypeInvalid represents an invalid balance.
ETHBalanceStatusTypeValid represents a valid balance.
EventCategoryUnknown represents an unknown or undefined event category.
EventTypeUnknown represents an unknown or undefined event.
InternalServerError shows a fatal error in the server.
L1BatchDepositERC1155 represents the event for batch depositing ERC1155 tokens on Layer 1.
L1BatchDepositERC721 represents the event for batch depositing ERC721 tokens on Layer 1.
L1BatchRefundERC1155 represents the event for batch refunding ERC1155 tokens on Layer 1.
L1BatchRefundERC721 represents the event for batch refunding ERC721 tokens on Layer 1.
L1DepositERC1155 represents the event for depositing ERC1155 tokens on Layer 1.
L1DepositERC20 represents the event for depositing ERC20 tokens (e.g., WETH, standard erc20, custom erc20, usdc, dai, lido, etc) on Layer 1.
L1DepositERC721 represents the event for depositing ERC721 tokens on Layer 1.
L1DepositETH represents the event for depositing ETH on Layer 1.
L1FinalizeBatchWithdrawERC1155 represents the event for batch finalizing ERC1155 token withdrawals on Layer 1.
L1FinalizeBatchWithdrawERC721 represents the event for batch finalizing ERC721 token withdrawals on Layer 1.
L1FinalizeWithdrawERC1155 represents the event for finalizing ERC1155 token withdrawal on Layer 1.
L1FinalizeWithdrawERC20 represents the event for finalizing ERC20 tokens withdrawal on Layer 1.
L1FinalizeWithdrawERC721 represents the event for finalizing ERC721 token withdrawal on Layer 1.
L1FinalizeWithdrawETH represents the event for finalizing ETH withdrawal on Layer 1.
L1RefundERC1155 represents the event for refunding ERC1155 tokens on Layer 1.
L1RefundERC20 represents the event for refunding ERC20 tokens on Layer 1.
L1RefundERC721 represents the event for refunding ERC721 tokens on Layer 1.
L1RefundETH represents the event for refunding ETH on Layer 1.
L1RelayedMessage represents a message relayed on Layer 1.
L1SentMessage represents a message sent on Layer 1.
L2BatchWithdrawERC1155 represents the event for batch withdrawing ERC1155 tokens on Layer 2.
L2BatchWithdrawERC721 represents the event for batch withdrawing ERC721 tokens on Layer 2.
L2FinalizeBatchDepositERC1155 represents the event for batch finalizing ERC1155 token deposits on Layer 2.
L2FinalizeBatchDepositERC721 represents the event for batch finalizing ERC721 token deposits on Layer 2.
L2FinalizeDepositERC1155 represents the event for finalizing ERC1155 token deposit on Layer 2.
L2FinalizeDepositERC20 represents the event for finalizing ERC20 tokens (e.g., WETH, standard erc20, custom erc20, usdc, dai, lido, etc) deposit on Layer 2.
L2FinalizeDepositERC721 represents the event for finalizing ERC721 token deposit on Layer 2.
L2FinalizeDepositETH represents the event for finalizing ETH deposit on Layer 2.
L2RelayedMessage represents a message relayed on Layer 2.
L2SentMessage represents a message sent on Layer 2.
L2WithdrawERC1155 represents the event for withdrawing ERC1155 tokens on Layer 2.
L2WithdrawERC20 represents the event for withdrawing ERC20 tokens on Layer 2.
L2WithdrawERC721 represents the event for withdrawing ERC721 tokens on Layer 2.
L2WithdrawETH represents the event for withdrawing ETH on Layer 2.
Layer1 represents a Layer 1 chain type.
Layer2 represents a Layer 2 chain type.
LayerUnknown represents an unknown or undefined chain type.
LIDO represents Lido DAO token.
MessengerEventCategory represents the messenger events.
MismatchTypeL1AmountNotMatch represents a mismatch where the layer1 amount does not match the Layer 2.
MismatchTypeL1EventNotMatch represents a mismatch where the Layer 1 event does not match the Layer 2 event.
MismatchTypeL2AmountNotMatch represents a mismatch where the layer2 amount does not match the Layer 1.
MismatchTypeL2EventNotMatch represents a mismatch where the Layer 2 event does not match the Layer 1 event.
MismatchTypeUnknown represents an unknown or undefined mismatch.
MismatchTypeValid represents a no mismatch condition, meaning the transaction is valid.
PUFETH represents pufETH.
StandardERC20 represents a standard ERC20 token.
Success shows OK.
TokenTypeERC1155 represents semi-fungible tokens complying with ERC1155 standard.
TokenTypeERC20 represents fungible tokens complying with ERC20 standard.
TokenTypeERC721 represents non-fungible tokens complying with ERC721 standard.
TokenTypeETH represents the native currency of Ethereum.
TokenTypeUnknown represents an unknown or undefined TokenType.
USDC represents USD Coin (USDC) token.
WETH represents Wrapped Ethereum (WETH) token.
WithdrawRootStatusTypeUnknown represents an unknown l2 withdraw root status.
WithdrawRootStatusTypeValid represents a valid l2 withdraw root status.
# Structs
FinalizeBatchCheckParam the param of batch status check.
Response the response schema.
WrapIterator is a struct that wraps an Iterator with an additional EventType field.
# Interfaces
Iterator is an interface that provides a way to access elements in a sequence or collection.
# Type aliases
BlockStatus represents the status of a block in the blockchain.
CrossChainStatusType represents the status of a cross-chain transaction.
ERC20 represents the type of ERC20 token.
ETHAmountStatus represents if the eth amount of this message is set.
ETHBalanceStatus represents the status of an Ethereum balance check.
EventCategory represents the category of events.
EventType represents the type of blockchain event.
LayerType represents the type of the chain, which can be Layer 1 or Layer 2.
MismatchType represents the type of mismatch in cross-chain transactions.
TokenType represents the type of token in Ethereum.
WithdrawRootStatus represents the status of withdraw root check in layer 2.