diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index 5b99ddfdf375453feeeb8c3957ec8bf724c99ffd..21d0d0a3236d90a80e9d464416410064625b9d34 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -3,16 +3,17 @@ Calls are categorized according to the dispatch origin they require: 1. **User calls**: the dispatch origin for this kind of call must be signed by - the transactor. This is the only call category that can be submitted with an extrinsic. +the transactor. This is the only call category that can be submitted with an extrinsic. 1. **Root calls**: This kind of call requires a special origin that can only be invoked - through on-chain governance mechanisms. +through on-chain governance mechanisms. 1. **Inherent calls**: This kind of call is invoked by the author of the block itself - (usually automatically by the node). +(usually automatically by the node). 1. **Disabled calls**: These calls can not be called directly, they are reserved for internal use by other runtime calls. + ## User calls -There are **78** user calls from **21** pallets. +There are **81** user calls from **21** pallets. ### Account - 1 @@ -20,14 +21,13 @@ There are **78** user calls from **21** pallets. <details><summary><code>unlink_identity()</code></summary> -Taking 0.0082 % of a block. +Taking 0.0113 % of a block. ```rust - ``` - </details> + See [`Pallet::unlink_identity`]. ### Scheduler - 2 @@ -36,7 +36,7 @@ See [`Pallet::unlink_identity`]. <details><summary><code>schedule(when, maybe_periodic, priority, call)</code></summary> -Taking 0.0098 % of a block. +Taking 0.013 % of a block. ```rust when: BlockNumberFor<T> @@ -44,31 +44,31 @@ maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> priority: schedule::Priority call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::schedule`]. #### cancel - 1 <details><summary><code>cancel(when, index)</code></summary> -Taking 0.0131 % of a block. +Taking 0.0195 % of a block. ```rust when: BlockNumberFor<T> index: u32 ``` - </details> + See [`Pallet::cancel`]. #### schedule_named - 2 <details><summary><code>schedule_named(id, when, maybe_periodic, priority, call)</code></summary> -Taking 0.0131 % of a block. +Taking 0.0203 % of a block. ```rust id: TaskName @@ -77,23 +77,23 @@ maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> priority: schedule::Priority call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::schedule_named`]. #### cancel_named - 3 <details><summary><code>cancel_named(id)</code></summary> -Taking 0.0137 % of a block. +Taking 0.0209 % of a block. ```rust id: TaskName ``` - </details> + See [`Pallet::cancel_named`]. #### schedule_after - 4 @@ -108,9 +108,9 @@ maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> priority: schedule::Priority call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::schedule_after`]. #### schedule_named_after - 5 @@ -126,9 +126,9 @@ maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>> priority: schedule::Priority call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::schedule_named_after`]. ### Babe - 3 @@ -143,9 +143,9 @@ No weight available. equivocation_proof: Box<EquivocationProof<HeaderFor<T>>> key_owner_proof: T::KeyOwnerProof ``` - </details> + See [`Pallet::report_equivocation`]. ### Balances - 6 @@ -154,45 +154,45 @@ See [`Pallet::report_equivocation`]. <details><summary><code>transfer_allow_death(dest, value)</code></summary> -Taking 0.0152 % of a block. +Taking 0.0216 % of a block. ```rust dest: AccountIdLookupOf<T> value: T::Balance ``` - </details> + See [`Pallet::transfer_allow_death`]. #### transfer_keep_alive - 3 <details><summary><code>transfer_keep_alive(dest, value)</code></summary> -Taking 0.0168 % of a block. +Taking 0.0232 % of a block. ```rust dest: AccountIdLookupOf<T> value: T::Balance ``` - </details> + See [`Pallet::transfer_keep_alive`]. #### transfer_all - 4 <details><summary><code>transfer_all(dest, keep_alive)</code></summary> -Taking 0.0142 % of a block. +Taking 0.0184 % of a block. ```rust dest: AccountIdLookupOf<T> keep_alive: bool ``` - </details> + See [`Pallet::transfer_all`]. #### force_set_balance - 8 @@ -205,48 +205,48 @@ No weight available. who: AccountIdLookupOf<T> new_free: T::Balance ``` - </details> + See [`Pallet::force_set_balance`]. -### OneshotAccount - 8 +### OneshotAccount - 7 #### create_oneshot_account - 0 <details><summary><code>create_oneshot_account(dest, value)</code></summary> -Taking 0.0095 % of a block. +Taking 0.0126 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source value: <T::Currency as Currency<T::AccountId>>::Balance ``` - </details> + See [`Pallet::create_oneshot_account`]. #### consume_oneshot_account - 1 <details><summary><code>consume_oneshot_account(block_height, dest)</code></summary> -Taking 0.0134 % of a block. +Taking 0.0214 % of a block. ```rust block_height: BlockNumberFor<T> dest: Account<<T::Lookup as StaticLookup>::Source> ``` - </details> + See [`Pallet::consume_oneshot_account`]. #### consume_oneshot_account_with_remaining - 2 <details><summary><code>consume_oneshot_account_with_remaining(block_height, dest, remaining_to, balance)</code></summary> -Taking 0.0175 % of a block. +Taking 0.0295 % of a block. ```rust block_height: BlockNumberFor<T> @@ -254,9 +254,9 @@ dest: Account<<T::Lookup as StaticLookup>::Source> remaining_to: Account<<T::Lookup as StaticLookup>::Source> balance: <T::Currency as Currency<T::AccountId>>::Balance ``` - </details> + See [`Pallet::consume_oneshot_account_with_remaining`]. ### SmithMembers - 10 @@ -265,43 +265,42 @@ See [`Pallet::consume_oneshot_account_with_remaining`]. <details><summary><code>invite_smith(receiver)</code></summary> -Taking 0.0153 % of a block. +Taking 0.0265 % of a block. ```rust receiver: T::IdtyIndex ``` - </details> -Invite a WoT member to try becoming a Smith + +See [`Pallet::invite_smith`]. #### accept_invitation - 1 <details><summary><code>accept_invitation()</code></summary> -Taking 0.0094 % of a block. +Taking 0.0133 % of a block. ```rust - ``` - </details> -Accept an invitation (must have been invited first) + +See [`Pallet::accept_invitation`]. #### certify_smith - 2 <details><summary><code>certify_smith(receiver)</code></summary> -Taking 0.0139 % of a block. +Taking 0.0234 % of a block. ```rust receiver: T::IdtyIndex ``` - </details> -Certify an invited smith which can lead the certified to become a Smith + +See [`Pallet::certify_smith`]. ### AuthorityMembers - 11 @@ -309,56 +308,54 @@ Certify an invited smith which can lead the certified to become a Smith <details><summary><code>go_offline()</code></summary> -Taking 0.0117 % of a block. +Taking 0.0188 % of a block. ```rust - ``` - </details> + See [`Pallet::go_offline`]. #### go_online - 1 <details><summary><code>go_online()</code></summary> -Taking 0.0138 % of a block. +Taking 0.0225 % of a block. ```rust - ``` - </details> + See [`Pallet::go_online`]. #### set_session_keys - 2 <details><summary><code>set_session_keys(keys)</code></summary> -Taking 0.0177 % of a block. +Taking 0.0296 % of a block. ```rust keys: T::Keys ``` - </details> + See [`Pallet::set_session_keys`]. #### remove_member_from_blacklist - 4 <details><summary><code>remove_member_from_blacklist(member_id)</code></summary> -Taking 0.0094 % of a block. +Taking 0.0125 % of a block. ```rust member_id: T::MemberId ``` - </details> + See [`Pallet::remove_member_from_blacklist`]. ### Grandpa - 16 @@ -373,12 +370,12 @@ No weight available. equivocation_proof: Box<EquivocationProof<T::Hash, BlockNumberFor<T>>> key_owner_proof: T::KeyOwnerProof ``` - </details> + See [`Pallet::report_equivocation`]. -### UpgradeOrigin - 20 +### UpgradeOrigin - 21 #### dispatch_as_root_unchecked_weight - 1 @@ -390,67 +387,67 @@ No weight available. call: Box<<T as Config>::Call> weight: Weight ``` - </details> + See [`Pallet::dispatch_as_root_unchecked_weight`]. -### Preimage - 21 +### Preimage - 22 #### note_preimage - 0 <details><summary><code>note_preimage(bytes)</code></summary> -Taking 0.5042 % of a block. +Taking 0.5106 % of a block. ```rust bytes: Vec<u8> ``` - </details> + See [`Pallet::note_preimage`]. #### unnote_preimage - 1 <details><summary><code>unnote_preimage(hash)</code></summary> -Taking 0.0135 % of a block. +Taking 0.0211 % of a block. ```rust hash: T::Hash ``` - </details> + See [`Pallet::unnote_preimage`]. #### request_preimage - 2 <details><summary><code>request_preimage(hash)</code></summary> -Taking 0.0092 % of a block. +Taking 0.0136 % of a block. ```rust hash: T::Hash ``` - </details> + See [`Pallet::request_preimage`]. #### unrequest_preimage - 3 <details><summary><code>unrequest_preimage(hash)</code></summary> -Taking 0.0119 % of a block. +Taking 0.0195 % of a block. ```rust hash: T::Hash ``` - </details> + See [`Pallet::unrequest_preimage`]. #### ensure_updated - 4 @@ -462,26 +459,26 @@ Taking 21.0381 % of a block. ```rust hashes: Vec<T::Hash> ``` - </details> + See [`Pallet::ensure_updated`]. -### TechnicalCommittee - 22 +### TechnicalCommittee - 23 #### execute - 1 <details><summary><code>execute(proposal, length_bound)</code></summary> -Taking 0.0061 % of a block. +Taking 0.006 % of a block. ```rust proposal: Box<<T as Config<I>>::Proposal> length_bound: u32 ``` - </details> + See [`Pallet::execute`]. #### propose - 2 @@ -495,25 +492,25 @@ threshold: MemberCount proposal: Box<<T as Config<I>>::Proposal> length_bound: u32 ``` - </details> + See [`Pallet::propose`]. #### vote - 3 <details><summary><code>vote(proposal, index, approve)</code></summary> -Taking 0.0104 % of a block. +Taking 0.0144 % of a block. ```rust proposal: T::Hash index: ProposalIndex approve: bool ``` - </details> + See [`Pallet::vote`]. #### close - 6 @@ -528,281 +525,279 @@ index: ProposalIndex proposal_weight_bound: Weight length_bound: u32 ``` - </details> + See [`Pallet::close`]. -### UniversalDividend - 23 +### UniversalDividend - 30 #### claim_uds - 0 <details><summary><code>claim_uds()</code></summary> -Taking 0.0146 % of a block. +Taking 0.0224 % of a block. ```rust - ``` - </details> + See [`Pallet::claim_uds`]. #### transfer_ud - 1 <details><summary><code>transfer_ud(dest, value)</code></summary> -Taking 0.0158 % of a block. +Taking 0.027 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source value: BalanceOf<T> ``` - </details> + See [`Pallet::transfer_ud`]. #### transfer_ud_keep_alive - 2 <details><summary><code>transfer_ud_keep_alive(dest, value)</code></summary> -Taking 0.0144 % of a block. +Taking 0.0193 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source value: BalanceOf<T> ``` - </details> + See [`Pallet::transfer_ud_keep_alive`]. -### Identity - 25 +### Identity - 41 #### create_identity - 0 <details><summary><code>create_identity(owner_key)</code></summary> -Taking 0.0484 % of a block. +Taking 0.0969 % of a block. ```rust owner_key: T::AccountId ``` - </details> + See [`Pallet::create_identity`]. #### confirm_identity - 1 <details><summary><code>confirm_identity(idty_name)</code></summary> -Taking 0.0204 % of a block. +Taking 0.0365 % of a block. ```rust idty_name: IdtyName ``` - </details> + See [`Pallet::confirm_identity`]. #### change_owner_key - 3 <details><summary><code>change_owner_key(new_key, new_key_sig)</code></summary> -Taking 0.0306 % of a block. +Taking 0.0507 % of a block. ```rust new_key: T::AccountId new_key_sig: T::Signature ``` - </details> + See [`Pallet::change_owner_key`]. #### revoke_identity - 4 <details><summary><code>revoke_identity(idty_index, revocation_key, revocation_sig)</code></summary> -Taking 0.0293 % of a block. +Taking 0.0487 % of a block. ```rust idty_index: T::IdtyIndex revocation_key: T::AccountId revocation_sig: T::Signature ``` - </details> + See [`Pallet::revoke_identity`]. #### fix_sufficients - 7 <details><summary><code>fix_sufficients(owner_key, inc)</code></summary> -Taking 0.0081 % of a block. +Taking 0.0113 % of a block. ```rust owner_key: T::AccountId inc: bool ``` - </details> + See [`Pallet::fix_sufficients`]. #### link_account - 8 <details><summary><code>link_account(account_id, payload_sig)</code></summary> -Taking 0.0135 % of a block. +Taking 0.0182 % of a block. ```rust account_id: T::AccountId payload_sig: T::Signature ``` - </details> + See [`Pallet::link_account`]. -### Certification - 27 +### Certification - 43 #### add_cert - 0 <details><summary><code>add_cert(receiver)</code></summary> -Taking 0.0214 % of a block. +Taking 0.0398 % of a block. ```rust receiver: T::IdtyIndex ``` - </details> -Add a new certification. + +See [`Pallet::add_cert`]. #### renew_cert - 3 <details><summary><code>renew_cert(receiver)</code></summary> -Taking 0.018 % of a block. +Taking 0.0324 % of a block. ```rust receiver: T::IdtyIndex ``` - </details> -Renew an existing certification. + +See [`Pallet::renew_cert`]. #### del_cert - 1 <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.0155 % of a block. +Taking 0.0276 % of a block. ```rust issuer: T::IdtyIndex receiver: T::IdtyIndex ``` - </details> + See [`Pallet::del_cert`]. #### remove_all_certs_received_by - 2 <details><summary><code>remove_all_certs_received_by(idty_index)</code></summary> -Taking 3.7485 % of a block. +Taking 7.8043 % of a block. ```rust idty_index: T::IdtyIndex ``` - </details> + See [`Pallet::remove_all_certs_received_by`]. -### Distance - 28 +### Distance - 44 #### request_distance_evaluation - 0 <details><summary><code>request_distance_evaluation()</code></summary> -Taking 0.0194 % of a block. +Taking 0.0354 % of a block. ```rust - ``` - </details> + See [`Pallet::request_distance_evaluation`]. #### request_distance_evaluation_for - 4 <details><summary><code>request_distance_evaluation_for(target)</code></summary> -Taking 0.0199 % of a block. +Taking 0.0367 % of a block. ```rust target: T::IdtyIndex ``` - </details> + See [`Pallet::request_distance_evaluation_for`]. #### update_evaluation - 1 <details><summary><code>update_evaluation(computation_result)</code></summary> -Taking 0.0214 % of a block. +Taking 0.0351 % of a block. ```rust computation_result: ComputationResult ``` - </details> + See [`Pallet::update_evaluation`]. #### force_update_evaluation - 2 <details><summary><code>force_update_evaluation(evaluator, computation_result)</code></summary> -Taking 0.014 % of a block. +Taking 0.018 % of a block. ```rust evaluator: <T as frame_system::Config>::AccountId computation_result: ComputationResult ``` - </details> + See [`Pallet::force_update_evaluation`]. #### force_valid_distance_status - 3 <details><summary><code>force_valid_distance_status(identity)</code></summary> -Taking 0.0173 % of a block. +Taking 0.0301 % of a block. ```rust identity: <T as pallet_identity::Config>::IdtyIndex ``` - </details> + See [`Pallet::force_valid_distance_status`]. -### AtomicSwap - 29 +### AtomicSwap - 50 #### create_swap - 0 @@ -816,9 +811,9 @@ hashed_proof: HashedProof action: T::SwapAction duration: BlockNumberFor<T> ``` - </details> + See [`Pallet::create_swap`]. #### claim_swap - 1 @@ -831,9 +826,9 @@ No weight available. proof: Vec<u8> action: T::SwapAction ``` - </details> + See [`Pallet::claim_swap`]. #### cancel_swap - 2 @@ -846,26 +841,26 @@ No weight available. target: T::AccountId hashed_proof: HashedProof ``` - </details> + See [`Pallet::cancel_swap`]. -### Multisig - 30 +### Multisig - 51 #### as_multi_threshold_1 - 0 <details><summary><code>as_multi_threshold_1(other_signatories, call)</code></summary> -Taking 0.0054 % of a block. +Taking 0.0045 % of a block. ```rust other_signatories: Vec<T::AccountId> call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::as_multi_threshold_1`]. #### as_multi - 1 @@ -881,9 +876,9 @@ maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>> call: Box<<T as Config>::RuntimeCall> max_weight: Weight ``` - </details> + See [`Pallet::as_multi`]. #### approve_as_multi - 2 @@ -899,16 +894,16 @@ maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>> call_hash: [u8; 32] max_weight: Weight ``` - </details> + See [`Pallet::approve_as_multi`]. #### cancel_as_multi - 3 <details><summary><code>cancel_as_multi(threshold, other_signatories, timepoint, call_hash)</code></summary> -Taking 0.0103 % of a block. +Taking 0.0135 % of a block. ```rust threshold: u16 @@ -916,113 +911,112 @@ other_signatories: Vec<T::AccountId> timepoint: Timepoint<BlockNumberFor<T>> call_hash: [u8; 32] ``` - </details> + See [`Pallet::cancel_as_multi`]. -### ProvideRandomness - 31 +### ProvideRandomness - 52 #### request - 0 <details><summary><code>request(randomness_type, salt)</code></summary> -Taking 0.0224 % of a block. +Taking 0.0393 % of a block. ```rust randomness_type: RandomnessType salt: H256 ``` - </details> + See [`Pallet::request`]. -### Proxy - 32 +### Proxy - 53 #### proxy - 0 <details><summary><code>proxy(real, force_proxy_type, call)</code></summary> -Taking 0.0064 % of a block. +Taking 0.0063 % of a block. ```rust real: AccountIdLookupOf<T> force_proxy_type: Option<T::ProxyType> call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::proxy`]. #### add_proxy - 1 <details><summary><code>add_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.0098 % of a block. +Taking 0.0129 % of a block. ```rust delegate: AccountIdLookupOf<T> proxy_type: T::ProxyType delay: BlockNumberFor<T> ``` - </details> + See [`Pallet::add_proxy`]. #### remove_proxy - 2 <details><summary><code>remove_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.0101 % of a block. +Taking 0.0133 % of a block. ```rust delegate: AccountIdLookupOf<T> proxy_type: T::ProxyType delay: BlockNumberFor<T> ``` - </details> + See [`Pallet::remove_proxy`]. #### remove_proxies - 3 <details><summary><code>remove_proxies()</code></summary> -Taking 0.0098 % of a block. +Taking 0.0129 % of a block. ```rust - ``` - </details> + See [`Pallet::remove_proxies`]. #### create_pure - 4 <details><summary><code>create_pure(proxy_type, delay, index)</code></summary> -Taking 0.0109 % of a block. +Taking 0.0141 % of a block. ```rust proxy_type: T::ProxyType delay: BlockNumberFor<T> index: u16 ``` - </details> + See [`Pallet::create_pure`]. #### kill_pure - 5 <details><summary><code>kill_pure(spawner, proxy_type, index, height, ext_index)</code></summary> -Taking 0.0094 % of a block. +Taking 0.0125 % of a block. ```rust spawner: AccountIdLookupOf<T> @@ -1031,61 +1025,61 @@ index: u16 height: BlockNumberFor<T> ext_index: u32 ``` - </details> + See [`Pallet::kill_pure`]. #### announce - 6 <details><summary><code>announce(real, call_hash)</code></summary> -Taking 0.0138 % of a block. +Taking 0.0218 % of a block. ```rust real: AccountIdLookupOf<T> call_hash: CallHashOf<T> ``` - </details> + See [`Pallet::announce`]. #### remove_announcement - 7 <details><summary><code>remove_announcement(real, call_hash)</code></summary> -Taking 0.0126 % of a block. +Taking 0.0198 % of a block. ```rust real: AccountIdLookupOf<T> call_hash: CallHashOf<T> ``` - </details> + See [`Pallet::remove_announcement`]. #### reject_announcement - 8 <details><summary><code>reject_announcement(delegate, call_hash)</code></summary> -Taking 0.0128 % of a block. +Taking 0.02 % of a block. ```rust delegate: AccountIdLookupOf<T> call_hash: CallHashOf<T> ``` - </details> + See [`Pallet::reject_announcement`]. #### proxy_announced - 9 <details><summary><code>proxy_announced(delegate, real, force_proxy_type, call)</code></summary> -Taking 0.0155 % of a block. +Taking 0.0235 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1093,68 +1087,68 @@ real: AccountIdLookupOf<T> force_proxy_type: Option<T::ProxyType> call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::proxy_announced`]. -### Utility - 33 +### Utility - 54 #### batch - 0 <details><summary><code>batch(calls)</code></summary> -Taking 0.2737 % of a block. +Taking 0.2728 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::batch`]. #### as_derivative - 1 <details><summary><code>as_derivative(index, call)</code></summary> -Taking 0.0049 % of a block. +Taking 0.004 % of a block. ```rust index: u16 call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::as_derivative`]. #### batch_all - 2 <details><summary><code>batch_all(calls)</code></summary> -Taking 0.2944 % of a block. +Taking 0.2935 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::batch_all`]. #### force_batch - 4 <details><summary><code>force_batch(calls)</code></summary> -Taking 0.3113 % of a block. +Taking 0.3104 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::force_batch`]. #### with_weight - 5 @@ -1167,55 +1161,55 @@ No weight available. call: Box<<T as Config>::RuntimeCall> weight: Weight ``` - </details> + See [`Pallet::with_weight`]. -### Treasury - 34 +### Treasury - 55 #### propose_spend - 0 <details><summary><code>propose_spend(value, beneficiary)</code></summary> -Taking 0.0119 % of a block. +Taking 0.0183 % of a block. ```rust value: BalanceOf<T, I> beneficiary: AccountIdLookupOf<T> ``` - </details> + See [`Pallet::propose_spend`]. #### spend_local - 3 <details><summary><code>spend_local(amount, beneficiary)</code></summary> -Taking 0.0035 % of a block. +Taking 0.0036 % of a block. ```rust amount: BalanceOf<T, I> beneficiary: AccountIdLookupOf<T> ``` - </details> + See [`Pallet::spend_local`]. #### remove_approval - 4 <details><summary><code>remove_approval(proposal_id)</code></summary> -Taking 0.0079 % of a block. +Taking 0.0111 % of a block. ```rust proposal_id: ProposalIndex ``` - </details> + See [`Pallet::remove_approval`]. #### spend - 5 @@ -1230,53 +1224,55 @@ amount: AssetBalanceOf<T, I> beneficiary: Box<BeneficiaryLookupOf<T, I>> valid_from: Option<BlockNumberFor<T>> ``` - </details> + See [`Pallet::spend`]. #### payout - 6 <details><summary><code>payout(index)</code></summary> -Taking 0.0035 % of a block. +Taking 0.0326 % of a block. ```rust index: SpendIndex ``` - </details> + See [`Pallet::payout`]. #### check_status - 7 <details><summary><code>check_status(index)</code></summary> -Taking 0.0035 % of a block. +Taking 0.011 % of a block. ```rust index: SpendIndex ``` - </details> + See [`Pallet::check_status`]. #### void_spend - 8 <details><summary><code>void_spend(index)</code></summary> -Taking 0.0035 % of a block. +Taking 0.011 % of a block. ```rust index: SpendIndex ``` - </details> + See [`Pallet::void_spend`]. + + ## Root calls There are **18** root calls from **8** pallets. @@ -1287,14 +1283,14 @@ There are **18** root calls from **8** pallets. <details><summary><code>set_heap_pages(pages)</code></summary> -Taking 0.0105 % of a block. +Taking 0.0169 % of a block. ```rust pages: u64 ``` - </details> + See [`Pallet::set_heap_pages`]. #### set_code - 2 @@ -1306,9 +1302,9 @@ Taking 3.9604 % of a block. ```rust code: Vec<u8> ``` - </details> + See [`Pallet::set_code`]. #### set_code_without_checks - 3 @@ -1320,52 +1316,52 @@ No weight available. ```rust code: Vec<u8> ``` - </details> + See [`Pallet::set_code_without_checks`]. #### set_storage - 4 <details><summary><code>set_storage(items)</code></summary> -Taking 2.6599 % of a block. +Taking 5.9169 % of a block. ```rust items: Vec<KeyValue> ``` - </details> + See [`Pallet::set_storage`]. #### kill_storage - 5 <details><summary><code>kill_storage(keys)</code></summary> -Taking 2.6329 % of a block. +Taking 5.8899 % of a block. ```rust keys: Vec<Key> ``` - </details> + See [`Pallet::kill_storage`]. #### kill_prefix - 6 <details><summary><code>kill_prefix(prefix, subkeys)</code></summary> -Taking 3.0283 % of a block. +Taking 7.0785 % of a block. ```rust prefix: Key subkeys: u32 ``` - </details> + See [`Pallet::kill_prefix`]. #### authorize_upgrade - 9 @@ -1377,9 +1373,9 @@ Taking 0.0098 % of a block. ```rust code_hash: T::Hash ``` - </details> + See [`Pallet::authorize_upgrade`]. #### authorize_upgrade_without_checks - 10 @@ -1391,9 +1387,9 @@ No weight available. ```rust code_hash: T::Hash ``` - </details> + See [`Pallet::authorize_upgrade_without_checks`]. #### apply_authorized_upgrade - 11 @@ -1405,9 +1401,9 @@ Taking 4.1178 % of a block. ```rust code: Vec<u8> ``` - </details> + See [`Pallet::apply_authorized_upgrade`]. ### Babe - 3 @@ -1421,9 +1417,9 @@ No weight available. ```rust config: NextConfigDescriptor ``` - </details> + See [`Pallet::plan_config_change`]. ### Balances - 6 @@ -1432,31 +1428,31 @@ See [`Pallet::plan_config_change`]. <details><summary><code>force_transfer(source, dest, value)</code></summary> -Taking 0.0242 % of a block. +Taking 0.0347 % of a block. ```rust source: AccountIdLookupOf<T> dest: AccountIdLookupOf<T> value: T::Balance ``` - </details> + See [`Pallet::force_transfer`]. #### force_unreserve - 5 <details><summary><code>force_unreserve(who, amount)</code></summary> -Taking 0.0096 % of a block. +Taking 0.0128 % of a block. ```rust who: AccountIdLookupOf<T> amount: T::Balance ``` - </details> + See [`Pallet::force_unreserve`]. ### AuthorityMembers - 11 @@ -1465,14 +1461,14 @@ See [`Pallet::force_unreserve`]. <details><summary><code>remove_member(member_id)</code></summary> -Taking 0.0366 % of a block. +Taking 0.073 % of a block. ```rust member_id: T::MemberId ``` - </details> + See [`Pallet::remove_member`]. ### Grandpa - 16 @@ -1487,76 +1483,81 @@ No weight available. delay: BlockNumberFor<T> best_finalized_block_number: BlockNumberFor<T> ``` - </details> + See [`Pallet::note_stalled`]. -### TechnicalCommittee - 22 +### TechnicalCommittee - 23 #### set_members - 0 <details><summary><code>set_members(new_members, prime, old_count)</code></summary> -Taking 0.0868 % of a block. +Taking 0.175 % of a block. ```rust new_members: Vec<T::AccountId> prime: Option<T::AccountId> old_count: MemberCount ``` - </details> + See [`Pallet::set_members`]. #### disapprove_proposal - 5 <details><summary><code>disapprove_proposal(proposal_hash)</code></summary> -Taking 0.014 % of a block. +Taking 0.0236 % of a block. ```rust proposal_hash: T::Hash ``` - </details> + See [`Pallet::disapprove_proposal`]. -### Identity - 25 +### Identity - 41 #### prune_item_identities_names - 6 <details><summary><code>prune_item_identities_names(names)</code></summary> -Taking 2.6984 % of a block. +Taking 5.9553 % of a block. ```rust names: Vec<IdtyName> ``` - </details> + See [`Pallet::prune_item_identities_names`]. -### Utility - 33 +### Utility - 54 #### dispatch_as - 3 <details><summary><code>dispatch_as(as_origin, call)</code></summary> -Taking 0.0059 % of a block. +Taking 0.005 % of a block. ```rust as_origin: Box<T::PalletsOrigin> call: Box<<T as Config>::RuntimeCall> ``` - </details> + See [`Pallet::dispatch_as`]. + + + + + ## Disabled calls There are **4** disabled calls from **2** pallets. @@ -1567,28 +1568,28 @@ There are **4** disabled calls from **2** pallets. <details><summary><code>remark(remark)</code></summary> -Taking 0.0955 % of a block. +Taking 0.0946 % of a block. ```rust remark: Vec<u8> ``` - </details> + See [`Pallet::remark`]. #### remark_with_event - 7 <details><summary><code>remark_with_event(remark)</code></summary> -Taking 0.3514 % of a block. +Taking 0.3505 % of a block. ```rust remark: Vec<u8> ``` - </details> + See [`Pallet::remark_with_event`]. ### Session - 15 @@ -1597,27 +1598,27 @@ See [`Pallet::remark_with_event`]. <details><summary><code>set_keys(keys, proof)</code></summary> -Taking 0.0212 % of a block. +Taking 0.0406 % of a block. ```rust keys: T::Keys proof: Vec<u8> ``` - </details> + See [`Pallet::set_keys`]. #### purge_keys - 1 <details><summary><code>purge_keys()</code></summary> -Taking 0.0189 % of a block. +Taking 0.0351 % of a block. ```rust - ``` - </details> + See [`Pallet::purge_keys`]. + diff --git a/docs/api/runtime-errors.md b/docs/api/runtime-errors.md index d4157539100f6c03525c2de2f048a834414c675c..2821e156c619c5dfc2433cd5fb1e7f0f69b79d54 100644 --- a/docs/api/runtime-errors.md +++ b/docs/api/runtime-errors.md @@ -1,6 +1,6 @@ # Runtime errors -There are **174** errors from **35** pallets. +There are **186** errors from **35** pallets. <ul> <li>System - 0 @@ -28,7 +28,6 @@ and the new runtime. Failed to extract the runtime version from the new runtime. Either calling `Core_version` or decoding `RuntimeVersion` failed. - </details> </li> <li> @@ -225,11 +224,11 @@ Number of freezes exceed `MaxFreezes`. </li> </ul> </li> -<li>TransactionPayment - 7 +<li>TransactionPayment - 32 <ul> </ul> </li> -<li>OneshotAccount - 8 +<li>OneshotAccount - 7 <ul> <li> <details> @@ -282,7 +281,7 @@ Source oneshot account does not exist. </li> </ul> </li> -<li>Quota - 9 +<li>Quota - 66 <ul> </ul> </li> @@ -604,7 +603,7 @@ Duplicated heartbeat. <ul> </ul> </li> -<li>Sudo - 19 +<li>Sudo - 20 <ul> <li> <details> @@ -615,11 +614,11 @@ Sender must be the Sudo account. </li> </ul> </li> -<li>UpgradeOrigin - 20 +<li>UpgradeOrigin - 21 <ul> </ul> </li> -<li>Preimage - 21 +<li>Preimage - 22 <ul> <li> <details> @@ -679,7 +678,7 @@ Too few hashes were requested to be upgraded (i.e. zero). </li> </ul> </li> -<li>TechnicalCommittee - 22 +<li>TechnicalCommittee - 23 <ul> <li> <details> @@ -760,7 +759,7 @@ Prime account is not a member </li> </ul> </li> -<li>UniversalDividend - 23 +<li>UniversalDividend - 30 <ul> <li> <details> @@ -771,7 +770,7 @@ This account is not allowed to claim UDs. </li> </ul> </li> -<li>Wot - 24 +<li>Wot - 40 <ul> <li> <details> @@ -831,7 +830,7 @@ Membership can only be renewed after an antispam delay. </li> </ul> </li> -<li>Identity - 25 +<li>Identity - 41 <ul> <li> <details> @@ -954,7 +953,7 @@ Cannot link to an inexisting account. </li> </ul> </li> -<li>Membership - 26 +<li>Membership - 42 <ul> <li> <details> @@ -972,7 +971,7 @@ Already member, can not add membership. </li> </ul> </li> -<li>Certification - 27 +<li>Certification - 43 <ul> <li> <details> @@ -1025,7 +1024,7 @@ Can not renew a non-existing cert </li> </ul> </li> -<li>Distance - 28 +<li>Distance - 44 <ul> <li> <details> @@ -1120,7 +1119,7 @@ Targeted distance evaluation request is only possible for an unvalidated identit </li> </ul> </li> -<li>AtomicSwap - 29 +<li>AtomicSwap - 50 <ul> <li> <details> @@ -1180,7 +1179,7 @@ Duration has not yet passed for the swap to be cancelled. </li> </ul> </li> -<li>Multisig - 30 +<li>Multisig - 51 <ul> <li> <details> @@ -1282,7 +1281,7 @@ The data to be stored is already stored. </li> </ul> </li> -<li>ProvideRandomness - 31 +<li>ProvideRandomness - 52 <ul> <li> <details> @@ -1293,7 +1292,7 @@ Request randomness queue is full. </li> </ul> </li> -<li>Proxy - 32 +<li>Proxy - 53 <ul> <li> <details> @@ -1353,7 +1352,7 @@ Cannot add self as proxy. </li> </ul> </li> -<li>Utility - 33 +<li>Utility - 54 <ul> <li> <details> @@ -1364,7 +1363,7 @@ Too many calls batched. </li> </ul> </li> -<li>Treasury - 34 +<li>Treasury - 55 <ul> <li> <details> @@ -1453,4 +1452,4 @@ The payment has neither failed nor succeeded yet. </li> </ul> </li> -</ul> +</ul> \ No newline at end of file diff --git a/docs/api/runtime-events.md b/docs/api/runtime-events.md index 0787b7f5f8ee5e5b077eb6c9eacd18f93aa018e5..bc1206827a529f9cb9321f72f0b0568d98155dd4 100644 --- a/docs/api/runtime-events.md +++ b/docs/api/runtime-events.md @@ -1,6 +1,6 @@ # Runtime events -There are **128** events from **35** pallets. +There are **134** events from **35** pallets. <ul> <li>System - 0 @@ -99,20 +99,7 @@ check_version: bool <li> <details> <summary> -<code>ForceDestroy(who, balance)</code> - 0</summary> -Forced destruction of an account due to insufficient free balance to cover the account creation price. - -```rust -who: T::AccountId -balance: T::Balance -``` - -</details> -</li> -<li> -<details> -<summary> -<code>AccountLinked(who, identity)</code> - 1</summary> +<code>AccountLinked(who, identity)</code> - 0</summary> account linked to identity ```rust @@ -125,7 +112,7 @@ identity: IdtyIdOf<T> <li> <details> <summary> -<code>AccountUnlinked()</code> - 2</summary> +<code>AccountUnlinked()</code> - 1</summary> The account was unlinked from its identity. ```rust @@ -510,7 +497,7 @@ amount: T::Balance </li> </ul> </li> -<li>TransactionPayment - 7 +<li>TransactionPayment - 32 <ul> <li> <details> @@ -529,7 +516,7 @@ tip: BalanceOf<T> </li> </ul> </li> -<li>OneshotAccount - 8 +<li>OneshotAccount - 7 <ul> <li> <details> @@ -576,7 +563,7 @@ balance: <T::Currency as Currency<T::AccountId>>::Balance </li> </ul> </li> -<li>Quota - 9 +<li>Quota - 66 <ul> <li> <details> @@ -937,7 +924,7 @@ offline: Vec<IdentificationTuple<T>> <ul> </ul> </li> -<li>Sudo - 19 +<li>Sudo - 20 <ul> <li> <details> @@ -990,7 +977,7 @@ sudo_result: DispatchResult </li> </ul> </li> -<li>UpgradeOrigin - 20 +<li>UpgradeOrigin - 21 <ul> <li> <details> @@ -1006,7 +993,7 @@ result: DispatchResult </li> </ul> </li> -<li>Preimage - 21 +<li>Preimage - 22 <ul> <li> <details> @@ -1046,7 +1033,7 @@ hash: T::Hash </li> </ul> </li> -<li>TechnicalCommittee - 22 +<li>TechnicalCommittee - 23 <ul> <li> <details> @@ -1147,7 +1134,7 @@ no: MemberCount </li> </ul> </li> -<li>UniversalDividend - 23 +<li>UniversalDividend - 30 <ul> <li> <details> @@ -1208,11 +1195,11 @@ who: T::AccountId </li> </ul> </li> -<li>Wot - 24 +<li>Wot - 40 <ul> </ul> </li> -<li>Identity - 25 +<li>Identity - 41 <ul> <li> <details> @@ -1258,6 +1245,7 @@ idty_index: T::IdtyIndex <summary> <code>IdtyChangedOwnerKey(idty_index, new_owner_key)</code> - 3</summary> + ```rust idty_index: T::IdtyIndex new_owner_key: T::AccountId @@ -1293,7 +1281,7 @@ reason: RemovalReason </li> </ul> </li> -<li>Membership - 26 +<li>Membership - 42 <ul> <li> <details> @@ -1336,7 +1324,7 @@ reason: MembershipRemovalReason </li> </ul> </li> -<li>Certification - 27 +<li>Certification - 43 <ul> <li> <details> @@ -1380,7 +1368,7 @@ receiver: T::IdtyIndex </li> </ul> </li> -<li>Distance - 28 +<li>Distance - 44 <ul> <li> <details> @@ -1421,7 +1409,7 @@ idty_index: T::IdtyIndex </li> </ul> </li> -<li>AtomicSwap - 29 +<li>AtomicSwap - 50 <ul> <li> <details> @@ -1466,7 +1454,7 @@ proof: HashedProof </li> </ul> </li> -<li>Multisig - 30 +<li>Multisig - 51 <ul> <li> <details> @@ -1530,7 +1518,7 @@ call_hash: CallHash </li> </ul> </li> -<li>ProvideRandomness - 31 +<li>ProvideRandomness - 52 <ul> <li> <details> @@ -1561,7 +1549,7 @@ r#type: RandomnessType </li> </ul> </li> -<li>Proxy - 32 +<li>Proxy - 53 <ul> <li> <details> @@ -1637,7 +1625,7 @@ delay: BlockNumberFor<T> </li> </ul> </li> -<li>Utility - 33 +<li>Utility - 54 <ul> <li> <details> @@ -1715,7 +1703,7 @@ result: DispatchResult </li> </ul> </li> -<li>Treasury - 34 +<li>Treasury - 55 <ul> <li> <details> @@ -1901,4 +1889,4 @@ index: SpendIndex </li> </ul> </li> -</ul> +</ul> \ No newline at end of file diff --git a/resources/metadata.scale b/resources/metadata.scale index dbdacee03619badb7ff92ebbd10897a279747ec5..2166a0563e80550fe7bb592b6b5968490ce3f0e4 100644 Binary files a/resources/metadata.scale and b/resources/metadata.scale differ