Name | Lookup | Parameters | |
---|---|---|---|
set_currency | cb00 | 1 | |
add_currency | cb01 | 2 | |
remove_currency | cb02 | 1 | |
reset_payment_currency | cb03 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
CurrencySet | cb00 | ["AccountId","AssetIdOf"] | |
CurrencyAdded | cb01 | ["AssetIdOf"] | |
CurrencyRemoved | cb02 | ["AssetIdOf"] | |
FeeWithdrawn | cb03 | ["AccountId","AssetIdOf","BalanceOf","BalanceOf","AccountId"] |
Name | Type | |
---|---|---|
AccountCurrencyMap | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U32","keys_id":0,"value_id":4}} | |
AcceptedCurrencies | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":83}} | |
AcceptedCurrencyPrice | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":83}} |
Name | Type | Value | |
---|---|---|---|
NativeAssetId | U32 | 00000000 | |
EvmAssetId | U32 | 14000000 |
Name | Docs |
---|---|
UnsupportedCurrency | Selected currency is not supported. |
ZeroBalance | Account balance should be non-zero. |
AlreadyAccepted | Currency is already in the list of accepted currencies. |
CoreAssetNotAllowed | It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design. |
ZeroPrice | Fallback price cannot be zero. |
FallbackPriceNotFound | Fallback price was not found. |
Overflow | Math overflow |
EvmAccountNotAllowed | It is not allowed to change payment currency of an EVM account. |