UNPKG

@reef-defi/types

Version:

Polkadot.js type definations for Reef Chain

1,483 lines (1,482 loc) 543 kB
{ "magicNumber": 1635018093, "metadata": { "v12": { "modules": [ { "name": "System", "storage": { "prefix": "System", "items": [ { "name": "Account", "modifier": "Default", "type": { "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountInfo", "linked": false } }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " The full account information for a particular account ID." ] }, { "name": "ExtrinsicCount", "modifier": "Optional", "type": { "plain": "u32" }, "fallback": "0x00", "documentation": [ " Total extrinsics count for the current block." ] }, { "name": "BlockWeight", "modifier": "Default", "type": { "plain": "ConsumedWeight" }, "fallback": "0x000000000000000000000000000000000000000000000000", "documentation": [ " The current weight for the block." ] }, { "name": "AllExtrinsicsLen", "modifier": "Optional", "type": { "plain": "u32" }, "fallback": "0x00", "documentation": [ " Total length (in bytes) for all extrinsics put together, for the current block." ] }, { "name": "BlockHash", "modifier": "Default", "type": { "map": { "hasher": "Twox64Concat", "key": "BlockNumber", "value": "Hash", "linked": false } }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Map of block numbers to block hashes." ] }, { "name": "ExtrinsicData", "modifier": "Default", "type": { "map": { "hasher": "Twox64Concat", "key": "u32", "value": "Bytes", "linked": false } }, "fallback": "0x00", "documentation": [ " Extrinsics data for the current block (maps an extrinsic's index to its data)." ] }, { "name": "Number", "modifier": "Default", "type": { "plain": "BlockNumber" }, "fallback": "0x00000000", "documentation": [ " The current block number being processed. Set by `execute_block`." ] }, { "name": "ParentHash", "modifier": "Default", "type": { "plain": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Hash of the previous block." ] }, { "name": "Digest", "modifier": "Default", "type": { "plain": "DigestOf" }, "fallback": "0x00", "documentation": [ " Digest of the current block, also part of the block header." ] }, { "name": "Events", "modifier": "Default", "type": { "plain": "Vec<EventRecord>" }, "fallback": "0x00", "documentation": [ " Events deposited for the current block." ] }, { "name": "EventCount", "modifier": "Default", "type": { "plain": "EventIndex" }, "fallback": "0x00000000", "documentation": [ " The number of events in the `Events<T>` list." ] }, { "name": "EventTopics", "modifier": "Default", "type": { "map": { "hasher": "Blake2_128Concat", "key": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", "linked": false } }, "fallback": "0x00", "documentation": [ " Mapping between a topic (represented by T::Hash) and a vector of indexes", " of events in the `<Events<T>>` list.", "", " All topic vectors have deterministic storage locations depending on the topic. This", " allows light-clients to leverage the changes trie storage tracking mechanism and", " in case of changes fetch the list of events of interest.", "", " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just", " the `EventIndex` then in case if the topic has the same contents on the next block", " no notification will be triggered thus the event might be lost." ] }, { "name": "LastRuntimeUpgrade", "modifier": "Optional", "type": { "plain": "LastRuntimeUpgradeInfo" }, "fallback": "0x00", "documentation": [ " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened." ] }, { "name": "UpgradedToU32RefCount", "modifier": "Default", "type": { "plain": "bool" }, "fallback": "0x00", "documentation": [ " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not." ] }, { "name": "UpgradedToTripleRefCount", "modifier": "Default", "type": { "plain": "bool" }, "fallback": "0x00", "documentation": [ " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False", " (default) if not." ] }, { "name": "ExecutionPhase", "modifier": "Optional", "type": { "plain": "Phase" }, "fallback": "0x00", "documentation": [ " The execution phase of the block." ] } ] }, "calls": [ { "name": "fill_block", "args": [ { "name": "_ratio", "type": "Perbill" } ], "documentation": [ " A dispatch that will fill the block weight up to the given ratio." ] }, { "name": "remark", "args": [ { "name": "_remark", "type": "Bytes" } ], "documentation": [ " Make some on-chain remark.", "", " # <weight>", " - `O(1)`", " # </weight>" ] }, { "name": "set_heap_pages", "args": [ { "name": "pages", "type": "u64" } ], "documentation": [ " Set the number of pages in the WebAssembly environment's heap.", "", " # <weight>", " - `O(1)`", " - 1 storage write.", " - Base Weight: 1.405 µs", " - 1 write to HEAP_PAGES", " # </weight>" ] }, { "name": "set_code", "args": [ { "name": "code", "type": "Bytes" } ], "documentation": [ " Set the new runtime code.", "", " # <weight>", " - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`", " - 1 storage write (codec `O(C)`).", " - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is expensive).", " - 1 event.", " The weight of this function is dependent on the runtime, but generally this is very expensive.", " We will treat this as a full block.", " # </weight>" ] }, { "name": "set_code_without_checks", "args": [ { "name": "code", "type": "Bytes" } ], "documentation": [ " Set the new runtime code without doing any checks of the given `code`.", "", " # <weight>", " - `O(C)` where `C` length of `code`", " - 1 storage write (codec `O(C)`).", " - 1 event.", " The weight of this function is dependent on the runtime. We will treat this as a full block.", " # </weight>" ] }, { "name": "set_changes_trie_config", "args": [ { "name": "changes_trie_config", "type": "Option<ChangesTrieConfiguration>" } ], "documentation": [ " Set the new changes trie configuration.", "", " # <weight>", " - `O(1)`", " - 1 storage write or delete (codec `O(1)`).", " - 1 call to `deposit_log`: Uses `append` API, so O(1)", " - Base Weight: 7.218 µs", " - DB Weight:", " - Writes: Changes Trie, System Digest", " # </weight>" ] }, { "name": "set_storage", "args": [ { "name": "items", "type": "Vec<KeyValue>" } ], "documentation": [ " Set some items of storage.", "", " # <weight>", " - `O(I)` where `I` length of `items`", " - `I` storage writes (`O(1)`).", " - Base Weight: 0.568 * i µs", " - Writes: Number of items", " # </weight>" ] }, { "name": "kill_storage", "args": [ { "name": "keys", "type": "Vec<Key>" } ], "documentation": [ " Kill some items from storage.", "", " # <weight>", " - `O(IK)` where `I` length of `keys` and `K` length of one key", " - `I` storage deletions.", " - Base Weight: .378 * i µs", " - Writes: Number of items", " # </weight>" ] }, { "name": "kill_prefix", "args": [ { "name": "prefix", "type": "Key" }, { "name": "_subkeys", "type": "u32" } ], "documentation": [ " Kill all storage items with a key that starts with the given prefix.", "", " **NOTE:** We rely on the Root origin to provide us the number of subkeys under", " the prefix we are removing to accurately calculate the weight of this function.", "", " # <weight>", " - `O(P)` where `P` amount of keys with prefix `prefix`", " - `P` storage deletions.", " - Base Weight: 0.834 * P µs", " - Writes: Number of subkeys + 1", " # </weight>" ] }, { "name": "remark_with_event", "args": [ { "name": "remark", "type": "Bytes" } ], "documentation": [ " Make some on-chain remark and emit event.", "", " # <weight>", " - `O(b)` where b is the length of the remark.", " - 1 event.", " # </weight>" ] } ], "events": [ { "name": "ExtrinsicSuccess", "args": [ "DispatchInfo" ], "documentation": [ " An extrinsic completed successfully. \\[info\\]" ] }, { "name": "ExtrinsicFailed", "args": [ "DispatchError", "DispatchInfo" ], "documentation": [ " An extrinsic failed. \\[error, info\\]" ] }, { "name": "CodeUpdated", "args": [], "documentation": [ " `:code` was updated." ] }, { "name": "NewAccount", "args": [ "AccountId" ], "documentation": [ " A new \\[account\\] was created." ] }, { "name": "KilledAccount", "args": [ "AccountId" ], "documentation": [ " An \\[account\\] was reaped." ] }, { "name": "Remarked", "args": [ "AccountId", "Hash" ], "documentation": [ " On on-chain remark happened. \\[origin, remark_hash\\]" ] } ], "constants": [ { "name": "BlockWeights", "type": "BlockWeights", "value": "0x00f2052a0100000000204aa9d1010000405973070000000001c0ca489351010000010098f73e5d010000010000000000000000405973070000000001c0529bfdc50100000100204aa9d1010000010088526a740000004059730700000000000000", "documentation": [ " Block & extrinsics weights: base values and limits." ] }, { "name": "BlockLength", "type": "BlockLength", "value": "0x00003c000000500000005000", "documentation": [ " The maximum length of a block (in bytes)." ] }, { "name": "BlockHashCount", "type": "BlockNumber", "value": "0x84030000", "documentation": [ " Maximum number of block number to block hash mappings to keep (oldest pruned first)." ] }, { "name": "DbWeight", "type": "RuntimeDbWeight", "value": "0x40787d010000000000e1f50500000000", "documentation": [ " The weight of runtime database operations the runtime can invoke." ] }, { "name": "Version", "type": "RuntimeVersion", "value": "0x1c6d616e64616c611c6d616e64616c6101000000d20200000000000034df6acb689907609b0300000037e397fc7c91f5e40100000040fe3ad401f8959a04000000d2bc9897eed08f1502000000f78b278be53f454c02000000cbca25e39f14238702000000ab3c0572291feb8b01000000ed99c5acb25eedf502000000bc9d89904f5b923f0100000037c8bb1350a9a2a8010000006ef953004ba30e5901000000f485c9145d3f0aad01000000e3df3f2aa8a5cc570100000001000000", "documentation": [ " Get the chain's current version." ] }, { "name": "SS58Prefix", "type": "u8", "value": "0x2a", "documentation": [ " The designated SS85 prefix of this chain.", "", " This replaces the \"ss58Format\" property declared in the chain spec. Reason is", " that the runtime should know about the prefix in order to make use of it as", " an identifier of the chain." ] } ], "errors": [ { "name": "InvalidSpecName", "documentation": [ " The name of specification does not match between the current runtime", " and the new runtime." ] }, { "name": "SpecVersionNeedsToIncrease", "documentation": [ " The specification version is not allowed to decrease between the current runtime", " and the new runtime." ] }, { "name": "FailedToExtractRuntimeVersion", "documentation": [ " Failed to extract the runtime version from the new runtime.", "", " Either calling `Core_version` or decoding `RuntimeVersion` failed." ] }, { "name": "NonDefaultComposite", "documentation": [ " Suicide called when the account has non-default composite data." ] }, { "name": "NonZeroRefCount", "documentation": [ " There is a non-zero reference count preventing the account from being purged." ] } ], "index": 0 }, { "name": "Timestamp", "storage": { "prefix": "Timestamp", "items": [ { "name": "Now", "modifier": "Default", "type": { "plain": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ " Current time for the current block." ] }, { "name": "DidUpdate", "modifier": "Default", "type": { "plain": "bool" }, "fallback": "0x00", "documentation": [ " Did the timestamp get updated in this block?" ] } ] }, "calls": [ { "name": "set", "args": [ { "name": "now", "type": "Compact<Moment>" } ], "documentation": [ " Set the current time.", "", " This call should be invoked exactly once per block. It will panic at the finalization", " phase, if this call hasn't been invoked by that time.", "", " The timestamp should be greater than the previous one by the amount specified by", " `MinimumPeriod`.", "", " The dispatch origin for this call must be `Inherent`.", "", " # <weight>", " - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)", " - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)", " - 1 event handler `on_timestamp_set`. Must be `O(1)`.", " # </weight>" ] } ], "events": null, "constants": [ { "name": "MinimumPeriod", "type": "Moment", "value": "0xb80b000000000000", "documentation": [ " The minimum period between blocks. Beware that this is different to the *expected* period", " that the block production apparatus provides. Your chosen consensus system will generally", " work with this to determine a sensible block time. e.g. For Aura, it will be double this", " period on default settings." ] } ], "errors": [], "index": 1 }, { "name": "RandomnessCollectiveFlip", "storage": { "prefix": "RandomnessCollectiveFlip", "items": [ { "name": "RandomMaterial", "modifier": "Default", "type": { "plain": "Vec<Hash>" }, "fallback": "0x00", "documentation": [ " Series of block headers from the last 81 blocks that acts as random seed material. This", " is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of", " the oldest hash." ] } ] }, "calls": [], "events": null, "constants": [], "errors": [], "index": 2 }, { "name": "Balances", "storage": { "prefix": "Balances", "items": [ { "name": "TotalIssuance", "modifier": "Default", "type": { "plain": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The total units issued in the system." ] }, { "name": "Account", "modifier": "Default", "type": { "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "AccountData", "linked": false } }, "fallback": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " The balance of an account.", "", " NOTE: This is only used in the case that this pallet is used to store balances." ] }, { "name": "Locks", "modifier": "Default", "type": { "map": { "hasher": "Blake2_128Concat", "key": "AccountId", "value": "Vec<BalanceLock>", "linked": false } }, "fallback": "0x00", "documentation": [ " Any liquidity locks on some account balances.", " NOTE: Should only be accessed when setting, changing and freeing a lock." ] }, { "name": "StorageVersion", "modifier": "Default", "type": { "plain": "Releases" }, "fallback": "0x00", "documentation": [ " Storage version of the pallet.", "", " This is set to v2.0.0 for new networks." ] } ] }, "calls": [ { "name": "transfer", "args": [ { "name": "dest", "type": "LookupSource" }, { "name": "value", "type": "Compact<Balance>" } ], "documentation": [ " Transfer some liquid free balance to another account.", "", " `transfer` will set the `FreeBalance` of the sender and receiver.", " It will decrease the total issuance of the system by the `TransferFee`.", " If the sender's account is below the existential deposit as a result", " of the transfer, the account will be reaped.", "", " The dispatch origin for this call must be `Signed` by the transactor.", "", " # <weight>", " - Dependent on arguments but not critical, given proper implementations for", " input config types. See related functions below.", " - It contains a limited number of reads and writes internally and no complex computation.", "", " Related functions:", "", " - `ensure_can_withdraw` is always called internally but has a bounded complexity.", " - Transferring balances to accounts that did not exist before will cause", " `T::OnNewAccount::on_new_account` to be called.", " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.", " - `transfer_keep_alive` works the same way as `transfer`, but has an additional", " check that the transfer will not kill the origin account.", " ---------------------------------", " - Base Weight: 73.64 µs, worst case scenario (account created, account removed)", " - DB Weight: 1 Read and 1 Write to destination account", " - Origin account is already in memory, so no DB operations for them.", " # </weight>" ] }, { "name": "set_balance", "args": [ { "name": "who", "type": "LookupSource" }, { "name": "new_free", "type": "Compact<Balance>" }, { "name": "new_reserved", "type": "Compact<Balance>" } ], "documentation": [ " Set the balances of a given account.", "", " This will alter `FreeBalance` and `ReservedBalance` in storage. it will", " also decrease the total issuance of the system (`TotalIssuance`).", " If the new free or reserved balance is below the existential deposit,", " it will reset the account nonce (`frame_system::AccountNonce`).", "", " The dispatch origin for this call is `root`.", "", " # <weight>", " - Independent of the arguments.", " - Contains a limited number of reads and writes.", " ---------------------", " - Base Weight:", " - Creating: 27.56 µs", " - Killing: 35.11 µs", " - DB Weight: 1 Read, 1 Write to `who`", " # </weight>" ] }, { "name": "force_transfer", "args": [ { "name": "source", "type": "LookupSource" }, { "name": "dest", "type": "LookupSource" }, { "name": "value", "type": "Compact<Balance>" } ], "documentation": [ " Exactly as `transfer`, except the origin must be root and the source account may be", " specified.", " # <weight>", " - Same as transfer, but additional read and write because the source account is", " not assumed to be in the overlay.", " # </weight>" ] }, { "name": "transfer_keep_alive", "args": [ { "name": "dest", "type": "LookupSource" }, { "name": "value", "type": "Compact<Balance>" } ], "documentation": [ " Same as the [`transfer`] call, but with a check that the transfer will not kill the", " origin account.", "", " 99% of the time you want [`transfer`] instead.", "", " [`transfer`]: struct.Pallet.html#method.transfer", " # <weight>", " - Cheaper than transfer because account cannot be killed.", " - Base Weight: 51.4 µs", " - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)", " #</weight>" ] } ], "events": [ { "name": "Endowed", "args": [ "AccountId", "Balance" ], "documentation": [ " An account was created with some free balance. \\[account, free_balance\\]" ] }, { "name": "DustLost", "args": [ "AccountId", "Balance" ], "documentation": [ " An account was removed whose balance was non-zero but below ExistentialDeposit,", " resulting in an outright loss. \\[account, balance\\]" ] }, { "name": "Transfer", "args": [ "AccountId", "AccountId", "Balance" ], "documentation": [ " Transfer succeeded. \\[from, to, value\\]" ] }, { "name": "BalanceSet", "args": [ "AccountId", "Balance", "Balance" ], "documentation": [ " A balance was set by root. \\[who, free, reserved\\]" ] }, { "name": "Deposit", "args": [ "AccountId", "Balance" ], "documentation": [ " Some amount was deposited (e.g. for transaction fees). \\[who, deposit\\]" ] }, { "name": "Reserved", "args": [ "AccountId", "Balance" ], "documentation": [ " Some balance was reserved (moved from free to reserved). \\[who, value\\]" ] }, { "name": "Unreserved", "args": [ "AccountId", "Balance" ], "documentation": [ " Some balance was unreserved (moved from reserved to free). \\[who, value\\]" ] }, { "name": "ReserveRepatriated", "args": [ "AccountId", "AccountId", "Balance", "Status" ], "documentation": [ " Some balance was moved from the reserve of the first account to the second account.", " Final argument indicates the destination balance type.", " \\[from, to, balance, destination_status\\]" ] } ], "constants": [ { "name": "ExistentialDeposit", "type": "Balance", "value": "0x00000000000000000000000000000000", "documentation": [ " The minimum amount required to keep an account open." ] } ], "errors": [ { "name": "VestingBalance", "documentation": [ " Vesting balance too high to send value" ] }, { "name": "LiquidityRestrictions", "documentation": [ " Account liquidity restrictions prevent withdrawal" ] }, { "name": "Overflow", "documentation": [ " Got an overflow after adding" ] }, { "name": "InsufficientBalance", "documentation": [ " Balance too low to send value" ] }, { "name": "ExistentialDeposit", "documentation": [ " Value too low to create account due to existential deposit" ] }, { "name": "KeepAlive", "documentation": [ " Transfer/payment would kill account" ] }, { "name": "ExistingVestingSchedule", "documentation": [ " A vesting schedule already exists for this account" ] }, { "name": "DeadAccount", "documentation": [ " Beneficiary account must pre-exist" ] } ], "index": 3 }, { "name": "TransactionPayment", "storage": { "prefix": "TransactionPayment", "items": [ { "name": "NextFeeMultiplier", "modifier": "Default", "type": { "plain": "Multiplier" }, "fallback": "0x000064a7b3b6e00d0000000000000000", "documentation": [] }, { "name": "DefaultFeeCurrencyId", "modifier": "Optional", "type": { "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "CurrencyId", "linked": false } }, "fallback": "0x00", "documentation": [] } ] }, "calls": [ { "name": "set_default_fee_token", "args": [ { "name": "fee_token", "type": "Option<CurrencyId>" } ], "documentation": [ " Set default fee token" ] } ], "events": null, "constants": [ { "name": "AllNonNativeCurrencyIds", "type": "Vec<CurrencyId>", "value": "0x2000010003000200040005000600070008", "documentation": [ " All non-native currency ids in Acala." ] }, { "name": "NativeCurrencyId", "type": "CurrencyId", "value": "0x0000", "documentation": [ " Native currency id, the actual received currency type as fee for", " treasury. Should be ACA" ] }, { "name": "StableCurrencyId", "type": "CurrencyId", "value": "0x0001", "documentation": [ " Stable currency id, should be AUSD" ] }, { "name": "TransactionByteFee", "type": "PalletBalanceOf", "value": "0x00ca9a3b000000000000000000000000", "documentation": [ " The fee to be paid for making a transaction; the per-byte portion." ] }, { "name": "MaxSlippageSwapWithDEX", "type": "Ratio", "value": "0x0000c52ebca2b1000000000000000000", "documentation": [ " The max slippage allowed when swap fee with DEX" ] } ], "errors": [], "index": 4 }, { "name": "EvmAccounts", "storage": { "prefix": "EvmAccounts", "items": [ { "name": "Accounts", "modifier": "Optional", "type": { "map": { "hasher": "Twox64Concat", "key": "EvmAddress", "value": "AccountId", "linked": false } }, "fallback": "0x00", "documentation": [] }, { "name": "EvmAddresses", "modifier": "Optional", "type": { "map": { "hasher": "Twox64Concat", "key": "AccountId", "value": "EvmAddress", "linked": false } }, "fallback": "0x00", "documentation": [] } ] }, "calls": [ { "name": "claim_account", "args": [ { "name": "eth_address", "type": "EvmAddress" }, { "name": "eth_signature", "type": "EcdsaSignature" } ], "documentation": [ " Claim account mapping between Substrate accounts and EVM accounts.", " Ensure eth_address has not been mapped." ] }, { "name": "claim_default_account", "args": [], "documentation": [] } ], "events": [ { "name": "ClaimAccount", "args": [ "AccountId", "EvmAddress" ], "documentation": [ " Mapping between Substrate accounts and EVM accounts", " claim account. \\[account_id, evm_address\\]" ] } ], "constants": [], "errors": [ { "name": "AccountIdHasMapped", "documentation": [ " AccountId has mapped" ] }, { "name": "EthAddressHasMapped", "documentation": [ " Eth address has mapped" ] }, { "name": "BadSignature", "documentation": [ " Bad signature" ] }, { "name": "InvalidSignature", "documentation": [ " Invalid signature" ] }, { "name": "NonZeroRefCount", "documentation": [ " Account ref count is not zero" ] }, { "name": "StillHasActiveReserved", "documentation": [ " Account still has active reserved" ] } ], "index": 5 }, { "name": "Currencies", "storage": null, "calls": [ { "name": "transfer", "args": [ { "name": "dest", "type": "LookupSource" }, { "name": "currency_id", "type": "CurrencyIdOf" }, { "name": "amount", "type": "Compact<BalanceOf>" } ], "documentation": [ " Transfer some balance to another account under `currency_id`.", "", " The dispatch origin for this call must be `Signed` by the", " transactor." ] }, { "name": "transfer_native_currency", "args": [ { "name": "dest", "type": "LookupSource" }, { "name": "amount", "type": "Compact<BalanceOf>" } ], "documentation": [ " Transfer some native currency to another account.", "", " The dispatch origin for this call must be `Signed` by the", " transactor." ] }, { "name": "update_balance", "args": [ { "name": "who", "type": "LookupSource" }, { "name": "currency_id", "type": "CurrencyIdOf" }, { "name": "amount", "type": "AmountOf" } ], "documentation": [ " update amount of account `who` under `currency_id`.", "", " The dispatch origin of this call must be _Root_." ] } ], "events": [ { "name": "Transferred", "args": [ "CurrencyIdOf", "AccountId", "AccountId", "BalanceOf" ], "documentation": [ " Currency transfer success. [currency_id, from, to, amount]" ] }, { "name": "BalanceUpdated", "args": [ "CurrencyIdOf", "AccountId", "AmountOf" ], "documentation": [ " Update balance success. [currency_id, who, amount]" ] }, { "name": "Deposited", "args": [ "CurrencyIdOf", "AccountId", "BalanceOf" ], "documentation": [ " Deposit success. [currency_id, who, amount]" ] }, { "name": "Withdrawn", "args": [ "CurrencyIdOf", "AccountId", "BalanceOf" ], "documentation": [ " Withdraw success. [currency_id, who, amount]" ] } ], "constants": [], "errors": [ { "name": "AmountIntoBalanceFailed", "documentation": [ " Unable to convert the Amount type into Balance." ] }, { "name": "BalanceTooLow", "documentation": [ " Balance is too low." ] }, { "name": "ERC20InvalidOperation", "documentation": [ " ERC20 invalid operation" ] }, { "name": "EvmAccountNotFound", "documentation": [ " EVM account not found" ] } ], "index": 6 }, { "name": "Tokens", "storage": { "prefix": "Tokens", "items": [ { "name": "TotalIssuance", "modifier": "Default", "type": { "map": { "hasher": "Twox64Concat", "key": "CurrencyId", "value": "Balance", "linked": false } }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The total issuance of a token type." ] }, { "name": "Locks", "modifier": "Default", "type": { "doubleMap": { "hasher": "Blake2_128Concat", "key1": "AccountId", "key2": "CurrencyId", "value": "Vec<BalanceLock>", "key2Hasher": "Twox64Concat" } }, "fallback": "0x00", "documentation": [ " Any liquidity locks of a token type under an account.", " NOTE: Should only be accessed when setting, changing and freeing a lock." ] }, { "name": "Accounts", "modifier": "Default", "type": { "doubleMap": { "hasher": "Blake2_128Concat", "key1": "AccountId", "key2": "CurrencyId", "value": "AccountData", "key2Hasher": "Twox64Concat" } }, "fallback": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " The balance of a token type under an account.", "", " NOTE: If the total is ever zero, decrease account ref account.", "", " NOTE: This is only used in the case that this module is used to store", " balances." ] } ] }, "calls": null, "events": [ { "name": "Transferred", "args": [ "CurrencyId", "AccountId", "AccountId", "Balance" ], "documentation": [ " Token transfer success. \\[currency_id, from, to, amount\\]" ] }, { "name": "DustLost", "args": [ "AccountId", "CurrencyId", "Balance" ], "documentation": [ " An account was removed whose balance was non-zero but below", " ExistentialDeposit, resulting in an outright loss. \\[account,", " currency_id, amount\\]" ] } ], "constants": [], "errors": [ { "name": "BalanceTooLow", "documentation": [ " The balance is too low" ] }, { "name": "BalanceOverflow", "documentation": [ " This operation will cause balance to overflow" ] }, { "name": "TotalIssuanceOverflow", "documentation": [ " This operation will cause total issuance to overflow" ] }, { "name": "AmountIntoBalanceFailed", "documentation": [ " Cannot convert Amount into Balance type" ] }, { "name": "LiquidityRestrictions", "documentation": [ " Failed because liquidity restrictions due to locking" ] }, { "name": "StillHasActiveReserved", "documentation": [ " Account still has active reserved"