Erc20Peg
Calls
activateDeposits
Activate/deactivate deposits (root only)
Namespace
Type
activateWithdrawals
Activate/deactivate withdrawals (root only)
Namespace
Type
setErc20AssetMap
Namespace
Type
setErc20Meta
Namespace
Type
setErc20PegAddress
Namespace
Type
setPaymentDelay
Namespace
Type
setRootPegAddress
Namespace
Type
withdraw
Namespace
Type
Storage
assetIdToErc20
Map GA asset Id to ERC20 address
Namespace
Type
contractAddress
The peg contract address on Ethereum
Namespace
Type
delayedPayments
Map from DelayedPaymentId to PendingPayment
Namespace
Type
delayedPaymentSchedule
Map from block number to DelayedPaymentIds scheduled for that block
Namespace
Type
depositsActive
Whether deposit are active
Namespace
Type
erc20Meta
Metadata for well-known erc20 tokens (symbol, decimals)
Namespace
Type
erc20ToAssetId
Map ERC20 address to GA asset Id
Namespace
Type
nextDelayedPaymentId
The next available payment id for withdrawals and deposits
Namespace
Type
paymentDelay
Map from asset_id to minimum amount and delay
Namespace
Type
readyBlocks
The blocks with payments that are ready to be processed
Namespace
Type
rootPegContractAddress
The ROOT peg contract address on Ethereum
Namespace
Type
withdrawalsActive
Whether withdrawals are active
Namespace
Type
Events
DelayedErc20DepositFailed
A delayed erc20 deposit has failed (payment_id, beneficiary)
Namespace
Type
DelayedErc20WithdrawalFailed
A delayed erc20 withdrawal has failed (asset_id, beneficiary)
Namespace
Type
Erc20Deposit
A bridged erc20 deposit succeeded. (asset, amount, beneficiary)
Namespace
Type
Erc20DepositDelayed
An erc20 deposit has been delayed.(payment_id, scheduled block, amount, beneficiary)
Namespace
Type
Erc20DepositFail
A bridged erc20 deposit failed. (source address, abi data)
Namespace
Type
Erc20Withdraw
Tokens were burnt for withdrawal on Ethereum as ERC20s (asset, amount, beneficiary)
Namespace
Type
Erc20WithdrawalDelayed
A withdrawal has been delayed.(payment_id, scheduled block, amount, beneficiary)
Namespace
Type
NoAvailableDelayedPaymentIds
There are no more payment ids available, they've been exhausted
Namespace
Type
PaymentDelaySet
A delay was added for an asset_id (asset_id, min_balance, delay)
Namespace
Type
SetContractAddress
The peg contract address has been set
Namespace
Type
SetRootPegContract
The ROOT peg contract address has been set
Namespace
Type
Errors
CreateAssetFailed
Could not create the bridged asset
Namespace
DepositsPaused
Deposits are inactive
Namespace
EvmWithdrawalFailed
Withdrawals over the set payment delay for EVM calls are disabled
Namespace
InvalidAbiEncoding
The abi received does not match the encoding scheme
Namespace
InvalidAmount
Deposit has bad amount
Namespace
InvalidPalletId
Could not convert pallet id to account
Namespace
InvalidSourceAddress
The peg source address is incorrect for the token being bridged
Namespace
UnsupportedAsset
Withdrawals of this asset are not supported
Namespace
WithdrawalsPaused
Withdrawals are inactive
Namespace
undefined
Last updated