{ "magicNumber": 1635018093, "metadata": { "V6": { "modules": [ { "name": "system", "prefix": "System", "storage": [ { "name": "AccountNonce", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Index", "linked": false } }, "fallback": "0x0000000000000000", "documentation": [ " Extrinsics nonce for accounts." ] }, { "name": "ExtrinsicCount", "modifier": 0, "type": { "Type": "u32" }, "fallback": "0x00", "documentation": [ " Total extrinsics count for the current block." ] }, { "name": "AllExtrinsicsWeight", "modifier": 0, "type": { "Type": "u32" }, "fallback": "0x00", "documentation": [ " Total weight for all extrinsics put together, for the current block." ] }, { "name": "BlockHash", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "BlockNumber", "value": "Hash", "linked": false } }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Map of block numbers to block hashes." ] }, { "name": "ExtrinsicData", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "u32", "value": "Bytes", "linked": false } }, "fallback": "0x00", "documentation": [ " Extrinsics data for the current block (maps an extrinsic's index to its data)." ] }, { "name": "RandomMaterial", "modifier": 1, "type": { "Type": "(i8,Vec)" }, "fallback": "0x0000", "documentation": [ " Series of block headers from the last 81 blocks that acts as random seed material. This is arranged as a", " ring buffer with the `i8` prefix being the index into the `Vec` of the oldest hash." ] }, { "name": "Number", "modifier": 1, "type": { "Type": "BlockNumber" }, "fallback": "0x0000000000000000", "documentation": [ " The current block number being processed. Set by `execute_block`." ] }, { "name": "ParentHash", "modifier": 1, "type": { "Type": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Hash of the previous block." ] }, { "name": "ExtrinsicsRoot", "modifier": 1, "type": { "Type": "Hash" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Extrinsics root of the current block, also part of the block header." ] }, { "name": "Digest", "modifier": 1, "type": { "Type": "DigestOf" }, "fallback": "0x00", "documentation": [ " Digest of the current block, also part of the block header." ] }, { "name": "Events", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " Events deposited for the current block." ] }, { "name": "EventCount", "modifier": 1, "type": { "Type": "EventIndex" }, "fallback": "0x00000000", "documentation": [ " The number of events in the `Events` list." ] }, { "name": "EventTopics", "modifier": 1, "type": { "DoubleMap": { "hasher": "Blake2_256", "key1": "Null", "key2": "Hash", "value": "Vec<(BlockNumber,EventIndex)>", "key2Hasher": "Blake2_256" } }, "fallback": "0x00", "documentation": [ " Mapping between a topic (represented by T::Hash) and a vector of indexes", " of events in the `>` list.", "", " The first key serves no purpose. This field is declared as double_map just", " for convenience of using `remove_prefix`.", "", " 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." ] } ], "calls": [ { "name": "remark", "args": [ { "name": "_remark", "type": "Bytes" } ], "documentation": [ " Make some on-chain remark." ] }, { "name": "set_heap_pages", "args": [ { "name": "pages", "type": "u64" } ], "documentation": [ " Set the number of pages in the WebAssembly environment's heap." ] }, { "name": "set_code", "args": [ { "name": "new", "type": "Bytes" } ], "documentation": [ " Set the new code." ] }, { "name": "set_storage", "args": [ { "name": "items", "type": "Vec" } ], "documentation": [ " Set some items of storage." ] }, { "name": "kill_storage", "args": [ { "name": "keys", "type": "Vec" } ], "documentation": [ " Kill some items from storage." ] } ], "events": [ { "name": "ExtrinsicSuccess", "args": [], "documentation": [ " An extrinsic completed successfully." ] }, { "name": "ExtrinsicFailed", "args": [], "documentation": [ " An extrinsic failed." ] } ], "constants": [] }, { "name": "aura", "prefix": "", "storage": null, "calls": null, "events": null, "constants": [] }, { "name": "timestamp", "prefix": "Timestamp", "storage": [ { "name": "Now", "modifier": 1, "type": { "Type": "Moment" }, "fallback": "0x0000000000000000", "documentation": [ " Current time for the current block." ] }, { "name": "DidUpdate", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " Did the timestamp get updated in this block?" ] } ], "calls": [ { "name": "set", "args": [ { "name": "now", "type": "Compact" } ], "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`." ] } ], "events": null, "constants": [ { "name": "MinimumPeriod", "type": "Moment", "value": "0x0300000000000000", "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." ] } ] }, { "name": "authorship", "prefix": "Authorship", "storage": [ { "name": "Uncles", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " Uncles" ] }, { "name": "Author", "modifier": 0, "type": { "Type": "AccountId" }, "fallback": "0x00", "documentation": [ " Author of current block." ] }, { "name": "DidSetUncles", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " Whether uncles were already set in this block." ] } ], "calls": [ { "name": "set_uncles", "args": [ { "name": "new_uncles", "type": "Vec
" } ], "documentation": [ " Provide a set of uncles." ] } ], "events": null, "constants": [] }, { "name": "indices", "prefix": "Indices", "storage": [ { "name": "NextEnumSet", "modifier": 1, "type": { "Type": "AccountIndex" }, "fallback": "0x00000000", "documentation": [ " The next free enumeration set." ] }, { "name": "EnumSet", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountIndex", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " The enumeration sets." ] } ], "calls": [], "events": [ { "name": "NewAccountIndex", "args": [ "AccountId", "AccountIndex" ], "documentation": [ " A new account index was assigned.", "", " This event is not triggered when an existing index is reassigned", " to another `AccountId`." ] } ], "constants": [] }, { "name": "balances", "prefix": "Balances", "storage": [ { "name": "TotalIssuance", "modifier": 1, "type": { "Type": "Balance" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The total units issued in the system." ] }, { "name": "Vesting", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "VestingSchedule", "linked": false } }, "fallback": "0x00", "documentation": [ " Information regarding the vesting of a given account." ] }, { "name": "FreeBalance", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", "linked": false } }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The 'free' balance of a given account.", "", " This is the only balance that matters in terms of most operations on tokens. It", " alone is used to determine the balance when in the contract execution environment. When this", " balance falls below the value of `ExistentialDeposit`, then the 'current account' is", " deleted: specifically `FreeBalance`. Further, the `OnFreeBalanceZero` callback", " is invoked, giving a chance to external modules to clean up data associated with", " the deleted account.", "", " `system::AccountNonce` is also deleted if `ReservedBalance` is also zero (it also gets", " collapsed to zero if it ever becomes less than `ExistentialDeposit`." ] }, { "name": "ReservedBalance", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Balance", "linked": false } }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The amount of the balance of a given account that is externally reserved; this can still get", " slashed, but gets slashed last of all.", "", " This balance is a 'reserve' balance that other subsystems use in order to set aside tokens", " that are still 'owned' by the account holder, but which are suspendable.", "", " When this balance falls below the value of `ExistentialDeposit`, then this 'reserve account'", " is deleted: specifically, `ReservedBalance`.", "", " `system::AccountNonce` is also deleted if `FreeBalance` is also zero (it also gets", " collapsed to zero if it ever becomes less than `ExistentialDeposit`.)" ] }, { "name": "Locks", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " Any liquidity locks on some account balances." ] } ], "calls": [ { "name": "transfer", "args": [ { "name": "dest", "type": "Address" }, { "name": "value", "type": "Compact" } ], "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.", "", " # ", " - 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` and `T::OnFreeBalanceZero::on_free_balance_zero`.", "", " # " ] }, { "name": "set_balance", "args": [ { "name": "who", "type": "Address" }, { "name": "new_free", "type": "Compact" }, { "name": "new_reserved", "type": "Compact" } ], "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 (`system::AccountNonce`).", "", " The dispatch origin for this call is `root`.", "", " # ", " - Independent of the arguments.", " - Contains a limited number of reads and writes.", " # " ] } ], "events": [ { "name": "NewAccount", "args": [ "AccountId", "Balance" ], "documentation": [ " A new account was created." ] }, { "name": "ReapedAccount", "args": [ "AccountId" ], "documentation": [ " An account was reaped." ] }, { "name": "Transfer", "args": [ "AccountId", "AccountId", "Balance", "Balance" ], "documentation": [ " Transfer succeeded (from, to, value, fees)." ] } ], "constants": [ { "name": "ExistentialDeposit", "type": "Balance", "value": "0x00e40b54020000000000000000000000", "documentation": [ " The minimum amount required to keep an account open." ] }, { "name": "TransferFee", "type": "Balance", "value": "0x00e1f505000000000000000000000000", "documentation": [ " The fee required to make a transfer." ] }, { "name": "CreationFee", "type": "Balance", "value": "0x00e1f505000000000000000000000000", "documentation": [ " The fee required to create an account." ] }, { "name": "TransactionBaseFee", "type": "Balance", "value": "0x00e1f505000000000000000000000000", "documentation": [ " The fee to be paid for making a transaction; the base." ] }, { "name": "TransactionByteFee", "type": "Balance", "value": "0x40420f00000000000000000000000000", "documentation": [ " The fee to be paid for making a transaction; the per-byte portion." ] } ] }, { "name": "staking", "prefix": "Staking", "storage": [ { "name": "ValidatorCount", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " The ideal number of staking participants." ] }, { "name": "MinimumValidatorCount", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x04000000", "documentation": [ " Minimum number of staking participants before emergency conditions are imposed." ] }, { "name": "SessionReward", "modifier": 1, "type": { "Type": "Perbill" }, "fallback": "0x3c000000", "documentation": [ " Maximum reward, per validator, that is provided per acceptable session." ] }, { "name": "OfflineSlash", "modifier": 1, "type": { "Type": "Perbill" }, "fallback": "0x40420f00", "documentation": [ " Slash, per validator that is taken for the first time they are found to be offline." ] }, { "name": "OfflineSlashGrace", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " Number of instances of offline reports before slashing begins for validators." ] }, { "name": "Invulnerables", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're", " easy to initialize and the performance hit is minimal (we expect no more than four", " invulnerables) and restricted to testnets." ] }, { "name": "Bonded", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", "linked": false } }, "fallback": "0x00", "documentation": [ " Map from all locked \"stash\" accounts to the controller account." ] }, { "name": "Ledger", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "StakingLedger", "linked": false } }, "fallback": "0x00", "documentation": [ " Map from all (unlocked) \"controller\" accounts to the info regarding the staking." ] }, { "name": "Payee", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "RewardDestination", "linked": false } }, "fallback": "0x00", "documentation": [ " Where the reward payment should be made. Keyed by stash." ] }, { "name": "Validators", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "ValidatorPrefs", "linked": true } }, "fallback": "0x0c00", "documentation": [ " The map from (wannabe) validator stash key to the preferences of that validator." ] }, { "name": "Nominators", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Vec", "linked": true } }, "fallback": "0x00", "documentation": [ " The map from nominator stash key to the set of stash keys of all validators to nominate." ] }, { "name": "Stakers", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "Exposure", "linked": false } }, "fallback": "0x000000", "documentation": [ " Nominators for a particular account that is in action right now. You can't iterate", " through validators here, but you can find them in the Session module.", "", " This is keyed by the stash account." ] }, { "name": "CurrentElected", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The currently elected validator set keyed by stash account ID." ] }, { "name": "CurrentEra", "modifier": 1, "type": { "Type": "EraIndex" }, "fallback": "0x00000000", "documentation": [ " The current era index." ] }, { "name": "CurrentSessionReward", "modifier": 1, "type": { "Type": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " Maximum reward, per validator, that is provided per acceptable session." ] }, { "name": "CurrentEraReward", "modifier": 1, "type": { "Type": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The accumulated reward for the current era. Reset to zero at the beginning of the era", " and increased for every successfully finished session." ] }, { "name": "SlotStake", "modifier": 1, "type": { "Type": "BalanceOf" }, "fallback": "0x00000000000000000000000000000000", "documentation": [ " The amount of balance actively at stake for each validator slot, currently.", "", " This is used to derive rewards and punishments." ] }, { "name": "SlashCount", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "u32", "linked": false } }, "fallback": "0x00000000", "documentation": [ " The number of times a given validator has been reported offline. This gets decremented", " by one each era that passes." ] }, { "name": "RecentlyOffline", "modifier": 1, "type": { "Type": "Vec<(AccountId,BlockNumber,u32)>" }, "fallback": "0x00", "documentation": [ " Most recent `RECENT_OFFLINE_COUNT` instances. (Who it was, when it was reported, how", " many instances they were offline for)." ] }, { "name": "ForceNewEra", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " True if the next session change will be a new era regardless of index." ] }, { "name": "BondedEras", "modifier": 1, "type": { "Type": "Vec<(EraIndex,SessionIndex)>" }, "fallback": "0x00", "documentation": [ " A mapping from still-bonded eras to the first session index of that era." ] } ], "calls": [ { "name": "bond", "args": [ { "name": "controller", "type": "Address" }, { "name": "value", "type": "Compact" }, { "name": "payee", "type": "RewardDestination" } ], "documentation": [ " Take the origin account as a stash and lock up `value` of its balance. `controller` will", " be the account that controls it.", "", " `value` must be more than the `existential_deposit` defined in the Balances module.", "", " The dispatch origin for this call must be _Signed_ by the stash account.", "", " # ", " - Independent of the arguments. Moderate complexity.", " - O(1).", " - Three extra DB entries.", "", " NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned unless", " the `origin` falls below _existential deposit_ and gets removed as dust.", " # " ] }, { "name": "bond_extra", "args": [ { "name": "max_additional", "type": "Compact" } ], "documentation": [ " Add some extra amount that have appeared in the stash `free_balance` into the balance up", " for staking.", "", " Use this if there are additional funds in your stash account that you wish to bond.", " Unlike [`bond`] or [`unbond`] this function does not impose any limitation on the amount", " that can be added.", "", " The dispatch origin for this call must be _Signed_ by the stash, not the controller.", "", " # ", " - Independent of the arguments. Insignificant complexity.", " - O(1).", " - One DB entry.", " # " ] }, { "name": "unbond", "args": [ { "name": "value", "type": "Compact" } ], "documentation": [ " Schedule a portion of the stash to be unlocked ready for transfer out after the bond", " period ends. If this leaves an amount actively bonded less than", " T::Currency::existential_deposit(), then it is increased to the full amount.", "", " Once the unlock period is done, you can call `withdraw_unbonded` to actually move", " the funds out of management ready for transfer.", "", " No more than a limited number of unlocking chunks (see `MAX_UNLOCKING_CHUNKS`)", " can co-exists at the same time. In that case, [`Call::withdraw_unbonded`] need", " to be called first to remove some of the chunks (if possible).", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " See also [`Call::withdraw_unbonded`].", "", " # ", " - Independent of the arguments. Limited but potentially exploitable complexity.", " - Contains a limited number of reads.", " - Each call (requires the remainder of the bonded balance to be above `minimum_balance`)", " will cause a new entry to be inserted into a vector (`Ledger.unlocking`) kept in storage.", " The only way to clean the aforementioned storage item is also user-controlled via `withdraw_unbonded`.", " - One DB entry.", " " ] }, { "name": "withdraw_unbonded", "args": [], "documentation": [ " Remove any unlocked chunks from the `unlocking` queue from our management.", "", " This essentially frees up that balance to be used by the stash account to do", " whatever it wants.", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " See also [`Call::unbond`].", "", " # ", " - Could be dependent on the `origin` argument and how much `unlocking` chunks exist.", " It implies `consolidate_unlocked` which loops over `Ledger.unlocking`, which is", " indirectly user-controlled. See [`unbond`] for more detail.", " - Contains a limited number of reads, yet the size of which could be large based on `ledger`.", " - Writes are limited to the `origin` account key.", " # " ] }, { "name": "validate", "args": [ { "name": "prefs", "type": "ValidatorPrefs" } ], "documentation": [ " Declare the desire to validate for the origin controller.", "", " Effects will be felt at the beginning of the next era.", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " # ", " - Independent of the arguments. Insignificant complexity.", " - Contains a limited number of reads.", " - Writes are limited to the `origin` account key.", " # " ] }, { "name": "nominate", "args": [ { "name": "targets", "type": "Vec
" } ], "documentation": [ " Declare the desire to nominate `targets` for the origin controller.", "", " Effects will be felt at the beginning of the next era.", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " # ", " - The transaction's complexity is proportional to the size of `targets`,", " which is capped at `MAX_NOMINATIONS`.", " - Both the reads and writes follow a similar pattern.", " # " ] }, { "name": "chill", "args": [], "documentation": [ " Declare no desire to either validate or nominate.", "", " Effects will be felt at the beginning of the next era.", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " # ", " - Independent of the arguments. Insignificant complexity.", " - Contains one read.", " - Writes are limited to the `origin` account key.", " # " ] }, { "name": "set_payee", "args": [ { "name": "payee", "type": "RewardDestination" } ], "documentation": [ " (Re-)set the payment target for a controller.", "", " Effects will be felt at the beginning of the next era.", "", " The dispatch origin for this call must be _Signed_ by the controller, not the stash.", "", " # ", " - Independent of the arguments. Insignificant complexity.", " - Contains a limited number of reads.", " - Writes are limited to the `origin` account key.", " # " ] }, { "name": "set_controller", "args": [ { "name": "controller", "type": "Address" } ], "documentation": [ " (Re-)set the payment target for a controller.", "", " Effects will be felt at the beginning of the next era.", "", " The dispatch origin for this call must be _Signed_ by the stash, not the controller.", "", " # ", " - Independent of the arguments. Insignificant complexity.", " - Contains a limited number of reads.", " - Writes are limited to the `origin` account key.", " # " ] }, { "name": "set_validator_count", "args": [ { "name": "new", "type": "Compact" } ], "documentation": [ " The ideal number of validators." ] }, { "name": "force_new_era", "args": [], "documentation": [ " Force there to be a new era. This also forces a new session immediately after.", " `apply_rewards` should be true for validators to get the session reward.", "", " # ", " - Independent of the arguments.", " - Triggers the Phragmen election. Expensive but not user-controlled.", " - Depends on state: `O(|edges| * |validators|)`.", " # " ] }, { "name": "set_offline_slash_grace", "args": [ { "name": "new", "type": "Compact" } ], "documentation": [ " Set the offline slash grace period." ] }, { "name": "set_invulnerables", "args": [ { "name": "validators", "type": "Vec" } ], "documentation": [ " Set the validators who cannot be slashed (if any)." ] } ], "events": [ { "name": "Reward", "args": [ "Balance" ], "documentation": [ " All validators have been rewarded by the given balance." ] }, { "name": "OfflineWarning", "args": [ "AccountId", "u32" ], "documentation": [ " One validator (and its nominators) has been given an offline-warning (it is still", " within its grace). The accrued number of slashes is recorded, too." ] }, { "name": "OfflineSlash", "args": [ "AccountId", "Balance" ], "documentation": [ " One validator (and its nominators) has been slashed by the given amount." ] } ], "constants": [ { "name": "SessionsPerEra", "type": "SessionIndex", "value": "0x06000000", "documentation": [ " Number of sessions per era." ] }, { "name": "BondingDuration", "type": "EraIndex", "value": "0xa0020000", "documentation": [ " Number of eras that staked funds must remain bonded for." ] } ] }, { "name": "session", "prefix": "Session", "storage": [ { "name": "Validators", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The current set of validators." ] }, { "name": "CurrentIndex", "modifier": 1, "type": { "Type": "SessionIndex" }, "fallback": "0x00000000", "documentation": [ " Current index of the session." ] }, { "name": "Changed", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " True if anything has changed in this session." ] }, { "name": "QueuedChanged", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " Queued keys changed." ] }, { "name": "QueuedKeys", "modifier": 1, "type": { "Type": "Vec<(ValidatorId,Keys)>" }, "fallback": "0x00", "documentation": [ " The queued keys for the next session. When the next session begins, these keys", " will be used to determine the validator's session keys." ] } ], "calls": [ { "name": "set_keys", "args": [ { "name": "keys", "type": "Keys" }, { "name": "proof", "type": "Bytes" } ], "documentation": [ " Sets the session key(s) of the function caller to `key`.", " Allows an account to set its session key prior to becoming a validator.", " This doesn't take effect until the next session.", "", " The dispatch origin of this function must be signed.", "", " # ", " - O(log n) in number of accounts.", " - One extra DB entry.", " # " ] } ], "events": [ { "name": "NewSession", "args": [ "SessionIndex" ], "documentation": [ " New session has happened. Note that the argument is the session index, not the block", " number as the type might suggest." ] } ], "constants": [] }, { "name": "democracy", "prefix": "Democracy", "storage": [ { "name": "PublicPropCount", "modifier": 1, "type": { "Type": "PropIndex" }, "fallback": "0x00000000", "documentation": [ " The number of (public) proposals that have been made so far." ] }, { "name": "PublicProps", "modifier": 1, "type": { "Type": "Vec<(PropIndex,Proposal,AccountId)>" }, "fallback": "0x00", "documentation": [ " The public proposals. Unsorted." ] }, { "name": "DepositOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "PropIndex", "value": "(BalanceOf,Vec)", "linked": false } }, "fallback": "0x00", "documentation": [ " Those who have locked a deposit." ] }, { "name": "ReferendumCount", "modifier": 1, "type": { "Type": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ " The next free referendum index, aka the number of referenda started so far." ] }, { "name": "NextTally", "modifier": 1, "type": { "Type": "ReferendumIndex" }, "fallback": "0x00000000", "documentation": [ " The next referendum index that should be tallied." ] }, { "name": "ReferendumInfoOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "ReferendumInfo", "linked": false } }, "fallback": "0x00", "documentation": [ " Information concerning any given referendum." ] }, { "name": "DispatchQueue", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "BlockNumber", "value": "Vec>", "linked": false } }, "fallback": "0x00", "documentation": [ " Queue of successful referenda to be dispatched." ] }, { "name": "VotersFor", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "ReferendumIndex", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " Get the voters for the current proposal." ] }, { "name": "VoteOf", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "(ReferendumIndex,AccountId)", "value": "Vote", "linked": false } }, "fallback": "0x00", "documentation": [ " Get the vote in a given referendum of a particular voter. The result is meaningful only", " if `voters_for` includes the voter when called with the referendum (you'll get the", " default `Vote` value otherwise). If you don't want to check `voters_for`, then you can", " also check for simple existence with `VoteOf::exists` first." ] }, { "name": "Proxy", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", "linked": false } }, "fallback": "0x00", "documentation": [ " Who is able to vote for whom. Value is the fund-holding account, key is the", " vote-transaction-sending account." ] }, { "name": "Delegations", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(AccountId,Conviction)", "linked": true } }, "fallback": "0x000000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Get the account (and lock periods) to which another account is delegating vote." ] }, { "name": "LastTabledWasExternal", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [ " True if the last referendum tabled was submitted externally. False if it was a public", " proposal." ] }, { "name": "NextExternal", "modifier": 0, "type": { "Type": "(Proposal,VoteThreshold)" }, "fallback": "0x00", "documentation": [ " The referendum to be tabled whenever it would be valid to table an external proposal.", " This happens when a referendum needs to be tabled and one of two conditions are met:", " - `LastTabledWasExternal` is `false`; or", " - `PublicProps` is empty." ] }, { "name": "Blacklist", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "(BlockNumber,Vec)", "linked": false } }, "fallback": "0x00", "documentation": [ " A record of who vetoed what. Maps proposal hash to a possible existent block number", " (until when it may not be resubmitted) and who vetoed it." ] }, { "name": "Cancellations", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "bool", "linked": false } }, "fallback": "0x00", "documentation": [ " Record of all proposals that have been subject to emergency cancellation." ] } ], "calls": [ { "name": "propose", "args": [ { "name": "proposal", "type": "Proposal" }, { "name": "value", "type": "Compact" } ], "documentation": [ " Propose a sensitive action to be taken.", "", " # ", " - O(1).", " - Two DB changes, one DB entry.", " # " ] }, { "name": "second", "args": [ { "name": "proposal", "type": "Compact" } ], "documentation": [ " Propose a sensitive action to be taken.", "", " # ", " - O(1).", " - One DB entry.", " # " ] }, { "name": "vote", "args": [ { "name": "ref_index", "type": "Compact" }, { "name": "vote", "type": "Vote" } ], "documentation": [ " Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;", " otherwise it is a vote to keep the status quo.", "", " # ", " - O(1).", " - One DB change, one DB entry.", " # " ] }, { "name": "proxy_vote", "args": [ { "name": "ref_index", "type": "Compact" }, { "name": "vote", "type": "Vote" } ], "documentation": [ " Vote in a referendum on behalf of a stash. If `vote.is_aye()`, the vote is to enact", " the proposal; otherwise it is a vote to keep the status quo.", "", " # ", " - O(1).", " - One DB change, one DB entry.", " # " ] }, { "name": "emergency_propose", "args": [ { "name": "proposal", "type": "Proposal" }, { "name": "threshold", "type": "VoteThreshold" }, { "name": "voting_period", "type": "BlockNumber" }, { "name": "delay", "type": "BlockNumber" } ], "documentation": [ " Schedule an emergency referendum.", "", " This will create a new referendum for the `proposal`, approved as long as counted votes", " exceed `threshold` and, if approved, enacted after the given `delay`.", "", " It may be called from either the Root or the Emergency origin." ] }, { "name": "emergency_cancel", "args": [ { "name": "ref_index", "type": "ReferendumIndex" } ], "documentation": [ " Schedule an emergency cancellation of a referendum. Cannot happen twice to the same", " referendum." ] }, { "name": "external_propose", "args": [ { "name": "proposal", "type": "Proposal" } ], "documentation": [ " Schedule a referendum to be tabled once it is legal to schedule an external", " referendum." ] }, { "name": "external_propose_majority", "args": [ { "name": "proposal", "type": "Proposal" } ], "documentation": [ " Schedule a majority-carries referendum to be tabled next once it is legal to schedule", " an external referendum." ] }, { "name": "external_push", "args": [ { "name": "proposal_hash", "type": "Hash" }, { "name": "voting_period", "type": "BlockNumber" }, { "name": "delay", "type": "BlockNumber" } ], "documentation": [ " Schedule the currently externally-proposed majority-carries referendum to be tabled", " immediately. If there is no externally-proposed referendum currently, or if there is one", " but it is not a majority-carries referendum then it fails.", "", " - `proposal_hash`: The hash of the current external proposal.", " - `voting_period`: The period that is allowed for voting on this proposal.", " - `delay`: The number of block after voting has ended in approval and this should be", " enacted. Increased to `EmergencyVotingPeriod` if too low." ] }, { "name": "veto_external", "args": [ { "name": "proposal_hash", "type": "Hash" } ], "documentation": [ " Veto and blacklist the external proposal hash." ] }, { "name": "cancel_referendum", "args": [ { "name": "ref_index", "type": "Compact" } ], "documentation": [ " Remove a referendum." ] }, { "name": "cancel_queued", "args": [ { "name": "when", "type": "Compact" }, { "name": "which", "type": "Compact" }, { "name": "what", "type": "Compact" } ], "documentation": [ " Cancel a proposal queued for enactment." ] }, { "name": "set_proxy", "args": [ { "name": "proxy", "type": "AccountId" } ], "documentation": [ " Specify a proxy. Called by the stash.", "", " # ", " - One extra DB entry.", " # " ] }, { "name": "resign_proxy", "args": [], "documentation": [ " Clear the proxy. Called by the proxy.", "", " # ", " - One DB clear.", " # " ] }, { "name": "remove_proxy", "args": [ { "name": "proxy", "type": "AccountId" } ], "documentation": [ " Clear the proxy. Called by the stash.", "", " # ", " - One DB clear.", " # " ] }, { "name": "delegate", "args": [ { "name": "to", "type": "AccountId" }, { "name": "conviction", "type": "Conviction" } ], "documentation": [ " Delegate vote.", "", " # ", " - One extra DB entry.", " # " ] }, { "name": "undelegate", "args": [], "documentation": [ " Undelegate vote.", "", " # ", " - O(1).", " # " ] } ], "events": [ { "name": "Proposed", "args": [ "PropIndex", "Balance" ], "documentation": [] }, { "name": "Tabled", "args": [ "PropIndex", "Balance", "Vec" ], "documentation": [] }, { "name": "ExternalTabled", "args": [], "documentation": [] }, { "name": "Started", "args": [ "ReferendumIndex", "VoteThreshold" ], "documentation": [] }, { "name": "Passed", "args": [ "ReferendumIndex" ], "documentation": [] }, { "name": "NotPassed", "args": [ "ReferendumIndex" ], "documentation": [] }, { "name": "Cancelled", "args": [ "ReferendumIndex" ], "documentation": [] }, { "name": "Executed", "args": [ "ReferendumIndex", "bool" ], "documentation": [] }, { "name": "Delegated", "args": [ "AccountId", "AccountId" ], "documentation": [] }, { "name": "Undelegated", "args": [ "AccountId" ], "documentation": [] }, { "name": "Vetoed", "args": [ "AccountId", "Hash", "BlockNumber" ], "documentation": [] } ], "constants": [ { "name": "EnactmentPeriod", "type": "BlockNumber", "value": "0x8097060000000000", "documentation": [ " The minimum period of locking and the period between a proposal being approved and enacted.", "", " It should generally be a little more than the unstake period to ensure that", " voting stakers have an opportunity to remove themselves from the system in the case where", " they are on the losing side of a vote." ] }, { "name": "LaunchPeriod", "type": "BlockNumber", "value": "0x0027060000000000", "documentation": [ " How often (in blocks) new public referenda are launched." ] }, { "name": "VotingPeriod", "type": "BlockNumber", "value": "0x0027060000000000", "documentation": [ " How often (in blocks) to check for new votes." ] }, { "name": "MinimumDeposit", "type": "BalanceOf", "value": "0x0010a5d4e80000000000000000000000", "documentation": [ " The minimum amount to be used as a deposit for a public referendum proposal." ] }, { "name": "EmergencyVotingPeriod", "type": "BlockNumber", "value": "0xc0a8000000000000", "documentation": [ " Minimum voting period allowed for an emergency referendum." ] }, { "name": "CooloffPeriod", "type": "BlockNumber", "value": "0x8097060000000000", "documentation": [ " Period in blocks where an external proposal may not be re-submitted after being vetoed." ] } ] }, { "name": "collective", "prefix": "Collective", "storage": [ { "name": "Proposals", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The hashes of the active proposals." ] }, { "name": "ProposalOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", "linked": false } }, "fallback": "0x00", "documentation": [ " Actual proposal for a given hash, if it's current." ] }, { "name": "Voting", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", "linked": false } }, "fallback": "0x00", "documentation": [ " Votes on a given proposal, if it is ongoing." ] }, { "name": "ProposalCount", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " Proposals so far." ] }, { "name": "Members", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The current members of the collective. This is stored sorted (just by value)." ] } ], "calls": [ { "name": "set_members", "args": [ { "name": "new_members", "type": "Vec" } ], "documentation": [ " Set the collective's membership manually to `new_members`. Be nice to the chain and", " provide it pre-sorted.", "", " Requires root origin." ] }, { "name": "execute", "args": [ { "name": "proposal", "type": "Proposal" } ], "documentation": [ " Dispatch a proposal from a member using the `Member` origin.", "", " Origin must be a member of the collective." ] }, { "name": "propose", "args": [ { "name": "threshold", "type": "Compact" }, { "name": "proposal", "type": "Proposal" } ], "documentation": [ " # ", " - Bounded storage reads and writes.", " - Argument `threshold` has bearing on weight.", " # " ] }, { "name": "vote", "args": [ { "name": "proposal", "type": "Hash" }, { "name": "index", "type": "Compact" }, { "name": "approve", "type": "bool" } ], "documentation": [ " # ", " - Bounded storage read and writes.", " - Will be slightly heavier if the proposal is approved / disapproved after the vote.", " # " ] } ], "events": [ { "name": "_Phantom", "args": [ "Phantom" ], "documentation": [ " Dummy to manage the fact we have instancing." ] }, { "name": "Proposed", "args": [ "AccountId", "ProposalIndex", "Hash", "MemberCount" ], "documentation": [ " A motion (given hash) has been proposed (by given account) with a threshold (given", " `MemberCount`)." ] }, { "name": "Voted", "args": [ "AccountId", "Hash", "bool", "MemberCount", "MemberCount" ], "documentation": [ " A motion (given hash) has been voted on by given account, leaving", " a tally (yes votes and no votes given respectively as `MemberCount`)." ] }, { "name": "Approved", "args": [ "Hash" ], "documentation": [ " A motion was approved by the required threshold." ] }, { "name": "Disapproved", "args": [ "Hash" ], "documentation": [ " A motion was not approved by the required threshold." ] }, { "name": "Executed", "args": [ "Hash", "bool" ], "documentation": [ " A motion was executed; `bool` is true if returned without error." ] }, { "name": "MemberExecuted", "args": [ "Hash", "bool" ], "documentation": [ " A single member did some action; `bool` is true if returned without error." ] } ], "constants": [] }, { "name": "collective", "prefix": "Collective", "storage": [ { "name": "Proposals", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The hashes of the active proposals." ] }, { "name": "ProposalOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "Proposal", "linked": false } }, "fallback": "0x00", "documentation": [ " Actual proposal for a given hash, if it's current." ] }, { "name": "Voting", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Hash", "value": "Votes", "linked": false } }, "fallback": "0x00", "documentation": [ " Votes on a given proposal, if it is ongoing." ] }, { "name": "ProposalCount", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " Proposals so far." ] }, { "name": "Members", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The current members of the collective. This is stored sorted (just by value)." ] } ], "calls": [ { "name": "set_members", "args": [ { "name": "new_members", "type": "Vec" } ], "documentation": [ " Set the collective's membership manually to `new_members`. Be nice to the chain and", " provide it pre-sorted.", "", " Requires root origin." ] }, { "name": "execute", "args": [ { "name": "proposal", "type": "Proposal" } ], "documentation": [ " Dispatch a proposal from a member using the `Member` origin.", "", " Origin must be a member of the collective." ] }, { "name": "propose", "args": [ { "name": "threshold", "type": "Compact" }, { "name": "proposal", "type": "Proposal" } ], "documentation": [ " # ", " - Bounded storage reads and writes.", " - Argument `threshold` has bearing on weight.", " # " ] }, { "name": "vote", "args": [ { "name": "proposal", "type": "Hash" }, { "name": "index", "type": "Compact" }, { "name": "approve", "type": "bool" } ], "documentation": [ " # ", " - Bounded storage read and writes.", " - Will be slightly heavier if the proposal is approved / disapproved after the vote.", " # " ] } ], "events": [ { "name": "_Phantom", "args": [ "Phantom" ], "documentation": [ " Dummy to manage the fact we have instancing." ] }, { "name": "Proposed", "args": [ "AccountId", "ProposalIndex", "Hash", "MemberCount" ], "documentation": [ " A motion (given hash) has been proposed (by given account) with a threshold (given", " `MemberCount`)." ] }, { "name": "Voted", "args": [ "AccountId", "Hash", "bool", "MemberCount", "MemberCount" ], "documentation": [ " A motion (given hash) has been voted on by given account, leaving", " a tally (yes votes and no votes given respectively as `MemberCount`)." ] }, { "name": "Approved", "args": [ "Hash" ], "documentation": [ " A motion was approved by the required threshold." ] }, { "name": "Disapproved", "args": [ "Hash" ], "documentation": [ " A motion was not approved by the required threshold." ] }, { "name": "Executed", "args": [ "Hash", "bool" ], "documentation": [ " A motion was executed; `bool` is true if returned without error." ] }, { "name": "MemberExecuted", "args": [ "Hash", "bool" ], "documentation": [ " A single member did some action; `bool` is true if returned without error." ] } ], "constants": [] }, { "name": "elections", "prefix": "Council", "storage": [ { "name": "PresentationDuration", "modifier": 1, "type": { "Type": "BlockNumber" }, "fallback": "0x0000000000000000", "documentation": [ " How long to give each top candidate to present themselves after the vote ends." ] }, { "name": "TermDuration", "modifier": 1, "type": { "Type": "BlockNumber" }, "fallback": "0x0000000000000000", "documentation": [ " How long each position is active for." ] }, { "name": "DesiredSeats", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " Number of accounts that should constitute the collective." ] }, { "name": "Members", "modifier": 1, "type": { "Type": "Vec<(AccountId,BlockNumber)>" }, "fallback": "0x00", "documentation": [ " The current membership. When there's a vote going on, this should still be used for executive", " matters. The block number (second element in the tuple) is the block that their position is", " active until (calculated by the sum of the block number when the member was elected", " and their term duration)." ] }, { "name": "VoteCount", "modifier": 1, "type": { "Type": "VoteIndex" }, "fallback": "0x00000000", "documentation": [ " The total number of vote rounds that have happened or are in progress." ] }, { "name": "ApprovalsOf", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "(AccountId,SetIndex)", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " A list of votes for each voter. The votes are stored as numeric values and parsed in a bit-wise manner.", "", " In order to get a human-readable representation (`Vec`), use [`all_approvals_of`].", "", " Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`." ] }, { "name": "RegisterInfoOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "(VoteIndex,u32)", "linked": false } }, "fallback": "0x00", "documentation": [ " The vote index and list slot that the candidate `who` was registered or `None` if they are not", " currently registered." ] }, { "name": "VoterInfoOf", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "VoterInfo", "linked": false } }, "fallback": "0x00", "documentation": [ " Basic information about a voter." ] }, { "name": "Voters", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "SetIndex", "value": "Vec>", "linked": false } }, "fallback": "0x00", "documentation": [ " The present voter list (chunked and capped at [`VOTER_SET_SIZE`])." ] }, { "name": "NextVoterSet", "modifier": 1, "type": { "Type": "SetIndex" }, "fallback": "0x00000000", "documentation": [ " the next free set to store a voter in. This will keep growing." ] }, { "name": "VoterCount", "modifier": 1, "type": { "Type": "SetIndex" }, "fallback": "0x00000000", "documentation": [ " Current number of Voters." ] }, { "name": "Candidates", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " The present candidate list." ] }, { "name": "CandidateCount", "modifier": 1, "type": { "Type": "u32" }, "fallback": "0x00000000", "documentation": [ " Current number of active candidates" ] }, { "name": "NextFinalize", "modifier": 0, "type": { "Type": "(BlockNumber,u32,Vec)" }, "fallback": "0x00", "documentation": [ " The accounts holding the seats that will become free on the next tally." ] }, { "name": "Leaderboard", "modifier": 0, "type": { "Type": "Vec<(BalanceOf,AccountId)>" }, "fallback": "0x00", "documentation": [ " Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry;", " It may be the direct summed approval stakes, or a weighted version of it." ] }, { "name": "Proxy", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "AccountId", "value": "AccountId", "linked": false } }, "fallback": "0x00", "documentation": [ " Who is able to vote for whom. Value is the fund-holding account, key is the", " vote-transaction-sending account." ] } ], "calls": [ { "name": "set_approvals", "args": [ { "name": "votes", "type": "Vec" }, { "name": "index", "type": "Compact" }, { "name": "hint", "type": "SetIndex" } ], "documentation": [ " Set candidate approvals. Approval slots stay valid as long as candidates in those slots", " are registered.", "", " Locks the total balance of caller indefinitely.", " Only [`retract_voter`] or [`reap_inactive_voter`] can unlock the balance.", "", " `hint` argument is interpreted differently based on:", " - if `origin` is setting approvals for the first time: The index will be checked", " for being a valid _hole_ in the voter list.", " - if the hint is correctly pointing to a hole, no fee is deducted from `origin`.", " - Otherwise, the call will succeed but the index is ignored and simply a push to the last chunk", " with free space happens. If the new push causes a new chunk to be created, a fee indicated by", " [`VotingFee`] is deducted.", " - if `origin` is already a voter: the index __must__ be valid and point to the correct", " position of the `origin` in the current voters list.", "", " Note that any trailing `false` votes in `votes` is ignored; In approval voting, not voting for a candidate", " and voting false, are equal.", "", " # ", " - O(1).", " - Two extra DB entries, one DB change.", " - Argument `votes` is limited in length to number of candidates.", " # " ] }, { "name": "proxy_set_approvals", "args": [ { "name": "votes", "type": "Vec" }, { "name": "index", "type": "Compact" }, { "name": "hint", "type": "SetIndex" } ], "documentation": [ " Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots", " are registered.", "", " # ", " - Same as `set_approvals` with one additional storage read.", " # " ] }, { "name": "reap_inactive_voter", "args": [ { "name": "reporter_index", "type": "Compact" }, { "name": "who", "type": "Address" }, { "name": "who_index", "type": "Compact" }, { "name": "assumed_vote_index", "type": "Compact" } ], "documentation": [ " Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices", " must now be either unregistered or registered to a candidate that registered the slot after", " the voter gave their last approval set.", "", " Both indices must be provided as explained in [`voter_at`] function.", "", " May be called by anyone. Returns the voter deposit to `signed`.", "", " # ", " - O(1).", " - Two fewer DB entries, one DB change.", " # " ] }, { "name": "retract_voter", "args": [ { "name": "index", "type": "Compact" } ], "documentation": [ " Remove a voter. All votes are cancelled and the voter deposit is returned.", "", " The index must be provided as explained in [`voter_at`] function.", "", " Also removes the lock on the balance of the voter. See [`do_set_approvals()`].", "", " # ", " - O(1).", " - Two fewer DB entries, one DB change.", " # " ] }, { "name": "submit_candidacy", "args": [ { "name": "slot", "type": "Compact" } ], "documentation": [ " Submit oneself for candidacy.", "", " Account must have enough transferrable funds in it to pay the bond.", "", " NOTE: if `origin` has already assigned approvals via [`set_approvals`],", " it will NOT have any usable funds to pass candidacy bond and must first retract.", " Note that setting approvals will lock the entire balance of the voter until", " retraction or being reported.", "", " # ", " - Independent of input.", " - Three DB changes.", " # " ] }, { "name": "present_winner", "args": [ { "name": "candidate", "type": "Address" }, { "name": "total", "type": "Compact" }, { "name": "index", "type": "Compact" } ], "documentation": [ " Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates.", " Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()`", " `signed` should have at least", "", " # ", " - O(voters) compute.", " - One DB change.", " # " ] }, { "name": "set_desired_seats", "args": [ { "name": "count", "type": "Compact" } ], "documentation": [ " Set the desired member count; if lower than the current count, then seats will not be up", " election when they expire. If more, then a new vote will be started if one is not", " already in progress." ] }, { "name": "remove_member", "args": [ { "name": "who", "type": "Address" } ], "documentation": [ " Remove a particular member from the set. This is effective immediately.", "", " Note: A tally should happen instantly (if not already in a presentation", " period) to fill the seat if removal means that the desired members are not met." ] }, { "name": "set_presentation_duration", "args": [ { "name": "count", "type": "Compact" } ], "documentation": [ " Set the presentation duration. If there is currently a vote being presented for, will", " invoke `finalize_vote`." ] }, { "name": "set_term_duration", "args": [ { "name": "count", "type": "Compact" } ], "documentation": [ " Set the presentation duration. If there is current a vote being presented for, will", " invoke `finalize_vote`." ] } ], "events": [ { "name": "VoterReaped", "args": [ "AccountId", "AccountId" ], "documentation": [ " reaped voter, reaper" ] }, { "name": "BadReaperSlashed", "args": [ "AccountId" ], "documentation": [ " slashed reaper" ] }, { "name": "TallyStarted", "args": [ "u32" ], "documentation": [ " A tally (for approval votes of seat(s)) has started." ] }, { "name": "TallyFinalized", "args": [ "Vec", "Vec" ], "documentation": [ " A tally (for approval votes of seat(s)) has ended (with one or more new members)." ] } ], "constants": [ { "name": "CandidacyBond", "type": "BalanceOf", "value": "0x00e87648170000000000000000000000", "documentation": [ " How much should be locked up in order to submit one's candidacy. A reasonable", " default value is 9." ] }, { "name": "VotingBond", "type": "BalanceOf", "value": "0x00e40b54020000000000000000000000", "documentation": [ " How much should be locked up in order to be able to submit votes." ] }, { "name": "VotingFee", "type": "BalanceOf", "value": "0x00c817a8040000000000000000000000", "documentation": [ " The amount of fee paid upon each vote submission, unless if they submit a", " _hole_ index and replace it." ] }, { "name": "PresentSlashPerVoter", "type": "BalanceOf", "value": "0x00e1f505000000000000000000000000", "documentation": [ " The punishment, per voter, if you provide an invalid presentation. A", " reasonable default value is 1." ] }, { "name": "CarryCount", "type": "u32", "value": "0x06000000", "documentation": [ " How many runners-up should have their approvals persist until the next", " vote. A reasonable default value is 2." ] }, { "name": "InactiveGracePeriod", "type": "VoteIndex", "value": "0x01000000", "documentation": [ " How many vote indices need to go by after a target voter's last vote before", " they can be reaped if their approvals are moot. A reasonable default value", " is 1." ] }, { "name": "VotingPeriod", "type": "BlockNumber", "value": "0x8070000000000000", "documentation": [ " How often (in blocks) to check for new votes. A reasonable default value", " is 1000." ] }, { "name": "DecayRatio", "type": "u32", "value": "0x00000000", "documentation": [ " Decay factor of weight when being accumulated. It should typically be set to", " __at least__ `membership_size -1` to keep the collective secure.", " When set to `N`, it indicates `(1/N)^t` of staked is decayed at weight", " increment step `t`. 0 will result in no weight being added at all (normal", " approval voting). A reasonable default value is 24." ] } ] }, { "name": "finality_tracker", "prefix": "", "storage": null, "calls": [ { "name": "final_hint", "args": [ { "name": "hint", "type": "Compact" } ], "documentation": [ " Hint that the author of this block thinks the best finalized", " block is the given number." ] } ], "events": null, "constants": [ { "name": "WindowSize", "type": "BlockNumber", "value": "0x6500000000000000", "documentation": [ " The number of recent samples to keep from this chain. Default is 101." ] }, { "name": "ReportLatency", "type": "BlockNumber", "value": "0xe803000000000000", "documentation": [ " The delay after which point things become suspicious. Default is 1000." ] } ] }, { "name": "grandpa", "prefix": "GrandpaFinality", "storage": [ { "name": "Authorities", "modifier": 1, "type": { "Type": "Vec<(AuthorityId,AuthorityWeight)>" }, "fallback": "0x00", "documentation": [ " The current authority set." ] }, { "name": "PendingChange", "modifier": 0, "type": { "Type": "StoredPendingChange" }, "fallback": "0x00", "documentation": [ " Pending change: (signaled at, scheduled change)." ] }, { "name": "NextForced", "modifier": 0, "type": { "Type": "BlockNumber" }, "fallback": "0x00", "documentation": [ " next block number where we can force a change." ] }, { "name": "Stalled", "modifier": 0, "type": { "Type": "(BlockNumber,BlockNumber)" }, "fallback": "0x00", "documentation": [ " `true` if we are currently stalled." ] } ], "calls": [ { "name": "report_misbehavior", "args": [ { "name": "_report", "type": "Bytes" } ], "documentation": [ " Report some misbehavior." ] } ], "events": [ { "name": "NewAuthorities", "args": [ "Vec<(AuthorityId,u64)>" ], "documentation": [ " New authority set has been applied." ] } ], "constants": [] }, { "name": "curated_grandpa", "prefix": "CuratedGrandpa", "storage": [ { "name": "ShufflePeriod", "modifier": 1, "type": { "Type": "BlockNumber" }, "fallback": "0x0000000000000000", "documentation": [ " How often to shuffle the GRANDPA sets.", "", " 0 means never." ] } ], "calls": [ { "name": "set_voters", "args": [ { "name": "voters", "type": "Vec<(AuthorityId,u64)>" } ], "documentation": [ " Changes the GRANDPA voter set." ] } ], "events": null, "constants": [] }, { "name": "treasury", "prefix": "Treasury", "storage": [ { "name": "ProposalCount", "modifier": 1, "type": { "Type": "ProposalIndex" }, "fallback": "0x00000000", "documentation": [ " Number of proposals that have been made." ] }, { "name": "Proposals", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ProposalIndex", "value": "TreasuryProposal", "linked": false } }, "fallback": "0x00", "documentation": [ " Proposals that have been made." ] }, { "name": "Approvals", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " Proposal indices that have been approved but not yet awarded." ] } ], "calls": [ { "name": "propose_spend", "args": [ { "name": "value", "type": "Compact" }, { "name": "beneficiary", "type": "Address" } ], "documentation": [ " Put forward a suggestion for spending. A deposit proportional to the value", " is reserved and slashed if the proposal is rejected. It is returned once the", " proposal is awarded.", "", " # ", " - O(1).", " - Limited storage reads.", " - One DB change, one extra DB entry.", " # " ] }, { "name": "reject_proposal", "args": [ { "name": "proposal_id", "type": "Compact" } ], "documentation": [ " Reject a proposed spend. The original deposit will be slashed.", "", " # ", " - O(1).", " - Limited storage reads.", " - One DB clear.", " # " ] }, { "name": "approve_proposal", "args": [ { "name": "proposal_id", "type": "Compact" } ], "documentation": [ " Approve a proposal. At a later time, the proposal will be allocated to the beneficiary", " and the original deposit will be returned.", "", " # ", " - O(1).", " - Limited storage reads.", " - One DB change.", " # " ] } ], "events": [ { "name": "Proposed", "args": [ "ProposalIndex" ], "documentation": [ " New proposal." ] }, { "name": "Spending", "args": [ "Balance" ], "documentation": [ " We have ended a spend period and will now allocate funds." ] }, { "name": "Awarded", "args": [ "ProposalIndex", "Balance", "AccountId" ], "documentation": [ " Some funds have been allocated." ] }, { "name": "Burnt", "args": [ "Balance" ], "documentation": [ " Some of our funds have been burnt." ] }, { "name": "Rollover", "args": [ "Balance" ], "documentation": [ " Spending has finished; this is the amount that rolls over until next spend." ] } ], "constants": [ { "name": "ProposalBond", "type": "Permill", "value": "0x50c30000", "documentation": [ " Fraction of a proposal's value that should be bonded in order to place the proposal.", " An accepted proposal gets these back. A rejected proposal does not." ] }, { "name": "ProposalBondMinimum", "type": "BalanceOf", "value": "0x00e40b54020000000000000000000000", "documentation": [ " Minimum amount of funds that should be placed in a deposit for making a proposal." ] }, { "name": "SpendPeriod", "type": "BlockNumber", "value": "0x4038000000000000", "documentation": [ " Period between successive spends." ] }, { "name": "Burn", "type": "Permill", "value": "0x20a10700", "documentation": [ " Percentage of spare funds (if any) that are burnt per spend period." ] } ] }, { "name": "parachains", "prefix": "Parachains", "storage": [ { "name": "Parachains", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [] }, { "name": "Code", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaId", "value": "Bytes", "linked": false } }, "fallback": "0x00", "documentation": [] }, { "name": "Heads", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaId", "value": "Bytes", "linked": false } }, "fallback": "0x00", "documentation": [] }, { "name": "Watermarks", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaId", "value": "BlockNumber", "linked": false } }, "fallback": "0x00", "documentation": [] }, { "name": "UnroutedIngress", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "(BlockNumber,ParaId)", "value": "Vec<(ParaId,Hash)>", "linked": false } }, "fallback": "0x00", "documentation": [ " Unrouted ingress. Maps (BlockNumber, to_chain) pairs to [(from_chain, egress_root)].", "", " There may be an entry under (i, p) in this map for every i between the parachain's", " watermark and the current block." ] }, { "name": "RelayDispatchQueue", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaId", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " Messages ready to be dispatched onto the relay chain. It is subject to", " `MAX_MESSAGE_COUNT` and `WATERMARK_MESSAGE_SIZE`." ] }, { "name": "RelayDispatchQueueSize", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaId", "value": "(u32,u32)", "linked": false } }, "fallback": "0x0000000000000000", "documentation": [ " Size of the dispatch queues. Separated from actual data in order to avoid costly", " decoding when checking receipt validity. First item in tuple is the count of messages" ] }, { "name": "DidUpdate", "modifier": 1, "type": { "Type": "bool" }, "fallback": "0x00", "documentation": [] }, { "name": "NextFreeId", "modifier": 1, "type": { "Type": "ParaId" }, "fallback": "0x00000000", "documentation": [ " The next unused ParaId value." ] } ], "calls": [ { "name": "set_heads", "args": [ { "name": "heads", "type": "Vec" } ], "documentation": [ " Provide candidate receipts for parachains, in ascending order by id." ] }, { "name": "register_parachain", "args": [ { "name": "id", "type": "ParaId" }, { "name": "code", "type": "Bytes" }, { "name": "initial_head_data", "type": "Bytes" } ], "documentation": [ " Register a parachain with given code.", " Fails if given ID is already used." ] }, { "name": "deregister_parachain", "args": [ { "name": "id", "type": "ParaId" } ], "documentation": [ " Deregister a parachain with given id" ] } ], "events": null, "constants": [] }, { "name": "slots", "prefix": "Slots", "storage": [ { "name": "AuctionCounter", "modifier": 1, "type": { "Type": "AuctionIndex" }, "fallback": "0x00000000", "documentation": [ " The number of auctions that been started so far." ] }, { "name": "ManagedIds", "modifier": 1, "type": { "Type": "Vec" }, "fallback": "0x00", "documentation": [ " All `ParaId` values that are managed by this module. This includes chains that are not", " yet deployed (but have won an auction in the future)." ] }, { "name": "Deposits", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaIdOf", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " Various amounts on deposit for each parachain. An entry in `ManagedIds` implies a non-", " default entry here.", "", " The actual amount locked on its behalf at any time is the maximum item in this list. The", " first item in the list is the amount locked for the current Lease Period. Following", " items are for the subsequent lease periods.", "", " The default value (an empty list) implies that the parachain no longer exists (or never", " existed) as far as this module is concerned.", "", " If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it", " will be left-padded with one or more zeroes to denote the fact that nothing is held on", " deposit for the non-existent chain currently, but is held at some point in the future." ] }, { "name": "AuctionInfo", "modifier": 0, "type": { "Type": "(LeasePeriodOf,BlockNumber)" }, "fallback": "0x00", "documentation": [ " Information relating to the current auction, if there is one.", "", " The first item in the tuple is the lease period index that the first of the four", " contiguous lease periods on auction is for. The second is the block number when the", " auction will \"begin to end\", i.e. the first block of the Ending Period of the auction." ] }, { "name": "Winning", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "BlockNumber", "value": "WinningData", "linked": false } }, "fallback": "0x00", "documentation": [ " The winning bids for each of the 10 ranges at each block in the final Ending Period of", " the current auction. The map's key is the 0-based index into the Ending Period. The", " first block of the ending period is 0; the last is `EndingPeriod - 1`." ] }, { "name": "ReservedAmounts", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "Bidder", "value": "BalanceOf", "linked": false } }, "fallback": "0x00", "documentation": [ " Amounts currently reserved in the accounts of the bidders currently winning", " (sub-)ranges." ] }, { "name": "OnboardQueue", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "LeasePeriodOf", "value": "Vec", "linked": false } }, "fallback": "0x00", "documentation": [ " The set of Para IDs that have won and need to be on-boarded at an upcoming lease-period.", " This is cleared out on the first block of the lease period." ] }, { "name": "Onboarding", "modifier": 0, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaIdOf", "value": "(LeasePeriodOf,IncomingParachain)", "linked": false } }, "fallback": "0x00", "documentation": [ " The actual on-boarding information. Only exists when one of the following is true:", " - It is before the lease period that the parachain should be on-boarded.", " - The full on-boarding information has not yet been provided and the parachain is not", " yet due to be off-boarded." ] }, { "name": "Offboarding", "modifier": 1, "type": { "Map": { "hasher": "Blake2_256", "key": "ParaIdOf", "value": "AccountId", "linked": false } }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " Off-boarding account; currency held on deposit for the parachain gets placed here if the", " parachain gets off-boarded; i.e. its lease period is up and it isn't renewed." ] } ], "calls": [ { "name": "new_auction", "args": [ { "name": "duration", "type": "Compact" }, { "name": "lease_period_index", "type": "Compact" } ], "documentation": [ " Create a new auction.", "", " This can only happen when there isn't already an auction in progress and may only be", " called by the root origin. Accepts the `duration` of this auction and the", " `lease_period_index` of the initial lease period of the four that are to be auctioned." ] }, { "name": "bid", "args": [ { "name": "sub", "type": "Compact" }, { "name": "auction_index", "type": "Compact" }, { "name": "first_slot", "type": "Compact" }, { "name": "last_slot", "type": "Compact" }, { "name": "amount", "type": "Compact" } ], "documentation": [ " Make a new bid from an account (including a parachain account) for deploying a new", " parachain.", "", " Multiple simultaneous bids from the same bidder are allowed only as long as all active", " bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted.", "", " - `sub` is the sub-bidder ID, allowing for multiple competing bids to be made by (and", " funded by) the same account.", " - `auction_index` is the index of the auction to bid on. Should just be the present", " value of `AuctionCounter`.", " - `first_slot` is the first lease period index of the range to bid on. This is the", " absolute lease period index value, not an auction-specific offset.", " - `last_slot` is the last lease period index of the range to bid on. This is the", " absolute lease period index value, not an auction-specific offset.", " - `amount` is the amount to bid to be held as deposit for the parachain should the", " bid win. This amount is held throughout the range." ] }, { "name": "bid_renew", "args": [ { "name": "auction_index", "type": "Compact" }, { "name": "first_slot", "type": "Compact" }, { "name": "last_slot", "type": "Compact" }, { "name": "amount", "type": "Compact" } ], "documentation": [ " Make a new bid from a parachain account for renewing that (pre-existing) parachain.", "", " The origin *must* be a parachain account.", "", " Multiple simultaneous bids from the same bidder are allowed only as long as all active", " bids overlap each other (i.e. are mutually exclusive). Bids cannot be redacted.", "", " - `auction_index` is the index of the auction to bid on. Should just be the present", " value of `AuctionCounter`.", " - `first_slot` is the first lease period index of the range to bid on. This is the", " absolute lease period index value, not an auction-specific offset.", " - `last_slot` is the last lease period index of the range to bid on. This is the", " absolute lease period index value, not an auction-specific offset.", " - `amount` is the amount to bid to be held as deposit for the parachain should the", " bid win. This amount is held throughout the range." ] }, { "name": "set_offboarding", "args": [ { "name": "dest", "type": "Address" } ], "documentation": [ " Set the off-boarding information for a parachain.", "", " The origin *must* be a parachain account.", "", " - `dest` is the destination account to receive the parachain's deposit." ] }, { "name": "fix_deploy_data", "args": [ { "name": "sub", "type": "Compact" }, { "name": "para_id", "type": "Compact" }, { "name": "code_hash", "type": "Hash" }, { "name": "initial_head_data", "type": "Bytes" } ], "documentation": [ " Set the deploy information for a successful bid to deploy a new parachain.", "", " - `origin` must be the successful bidder account.", " - `sub` is the sub-bidder ID of the bidder.", " - `para_id` is the parachain ID allotted to the winning bidder.", " - `code_hash` is the hash of the parachain's Wasm validation function.", " - `initial_head_data` is the parachain's initial head data." ] }, { "name": "elaborate_deploy_data", "args": [ { "name": "para_id", "type": "Compact" }, { "name": "code", "type": "Bytes" } ], "documentation": [ " Note a new parachain's code.", "", " This must be called after `fix_deploy_data` and `code` must be the preimage of the", " `code_hash` passed there for the same `para_id`.", "", " This may be called before or after the beginning of the parachain's first lease period.", " If called before then the parachain will become active at the first block of its", " starting lease period. If after, then it will become active immediately after this call.", "", " - `_origin` is irrelevant.", " - `para_id` is the parachain ID whose code will be elaborated.", " - `code` is the preimage of the registered `code_hash` of `para_id`." ] } ], "events": [ { "name": "NewLeasePeriod", "args": [ "LeasePeriod" ], "documentation": [ " A new lease period is beginning." ] }, { "name": "AuctionStarted", "args": [ "AuctionIndex", "LeasePeriod", "BlockNumber" ], "documentation": [ " An auction started. Provides its index and the block number where it will begin to", " close and the first lease period of the quadruplet that is auctioned." ] }, { "name": "AuctionClosed", "args": [ "AuctionIndex" ], "documentation": [ " An auction ended. All funds become unreserved." ] }, { "name": "WonDeploy", "args": [ "NewBidder", "SlotRange", "ParaId", "Balance" ], "documentation": [ " Someone won the right to deploy a parachain. Balance amount is deducted for deposit." ] }, { "name": "WonRenewal", "args": [ "ParaId", "SlotRange", "Balance", "Balance" ], "documentation": [ " An existing parachain won the right to continue." ] }, { "name": "Reserved", "args": [ "AccountId", "Balance", "Balance" ], "documentation": [ " Funds were reserved for a winning bid. First balance is the extra amount reserved.", " Second is the total." ] }, { "name": "Unreserved", "args": [ "AccountId", "Balance" ], "documentation": [ " Funds were unreserved since bidder is no longer active." ] } ], "constants": [] }, { "name": "sudo", "prefix": "Sudo", "storage": [ { "name": "Key", "modifier": 1, "type": { "Type": "AccountId" }, "fallback": "0x0000000000000000000000000000000000000000000000000000000000000000", "documentation": [ " The `AccountId` of the sudo key." ] } ], "calls": [ { "name": "sudo", "args": [ { "name": "proposal", "type": "Proposal" } ], "documentation": [ " Authenticates the sudo key and dispatches a function call with `Root` origin.", "", " The dispatch origin for this call must be _Signed_.", "", " # ", " - O(1).", " - Limited storage reads.", " - No DB writes.", " # " ] }, { "name": "set_key", "args": [ { "name": "new", "type": "Address" } ], "documentation": [ " Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo key.", "", " The dispatch origin for this call must be _Signed_.", "", " # ", " - O(1).", " - Limited storage reads.", " - One DB change.", " # " ] } ], "events": [ { "name": "Sudid", "args": [ "bool" ], "documentation": [ " A sudo just took place." ] }, { "name": "KeyChanged", "args": [ "AccountId" ], "documentation": [ " The sudoer just switched identity; the old key is supplied." ] } ], "constants": [] } ] } } }