diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index e681f236dcf02fc18ee0aa732ce3ee80cd77e949..88c28cd52fed161329ee833cb16e7ee32901de1a 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -20,7 +20,8 @@ There are **78** user calls from **23** pallets. #### unlink_identity - 0 <details><summary><code>unlink_identity()</code></summary> -Taking 0.0031 % of a block. + +Taking 0.0069 % of a block. ```rust ``` @@ -34,7 +35,8 @@ unlink the identity associated with the account #### schedule - 0 <details><summary><code>schedule(when, maybe_periodic, priority, call)</code></summary> -Taking 0.0045 % of a block. + +Taking 0.0083 % of a block. ```rust when: T::BlockNumber @@ -50,7 +52,8 @@ Anonymously schedule a task. #### cancel - 1 <details><summary><code>cancel(when, index)</code></summary> -Taking 0.0077 % of a block. + +Taking 0.0115 % of a block. ```rust when: T::BlockNumber @@ -64,7 +67,8 @@ Cancel an anonymously scheduled task. #### schedule_named - 2 <details><summary><code>schedule_named(id, when, maybe_periodic, priority, call)</code></summary> -Taking 0.0078 % of a block. + +Taking 0.0115 % of a block. ```rust id: TaskName @@ -81,7 +85,8 @@ Schedule a named task. #### cancel_named - 3 <details><summary><code>cancel_named(id)</code></summary> -Taking 0.0082 % of a block. + +Taking 0.012 % of a block. ```rust id: TaskName @@ -94,6 +99,7 @@ Cancel a named scheduled task. #### schedule_after - 4 <details><summary><code>schedule_after(after, maybe_periodic, priority, call)</code></summary> + Taking -1 % of a block. ```rust @@ -110,6 +116,7 @@ Anonymously schedule a task after a delay. #### schedule_named_after - 5 <details><summary><code>schedule_named_after(id, after, maybe_periodic, priority, call)</code></summary> + Taking -1 % of a block. ```rust @@ -129,6 +136,7 @@ Schedule a named task after a delay. #### report_equivocation - 0 <details><summary><code>report_equivocation(equivocation_proof, key_owner_proof)</code></summary> + Taking -1 % of a block. ```rust @@ -148,7 +156,8 @@ be reported. #### transfer_allow_death - 0 <details><summary><code>transfer_allow_death(dest, value)</code></summary> -Taking 0.0083 % of a block. + +Taking 0.0121 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -168,6 +177,7 @@ The dispatch origin for this call must be `Signed` by the transactor. #### set_balance_deprecated - 1 <details><summary><code>set_balance_deprecated(who, new_free, old_reserved)</code></summary> + Taking -1 % of a block. ```rust @@ -188,7 +198,8 @@ WARNING: This call is DEPRECATED! Use `force_set_balance` instead. #### transfer_keep_alive - 3 <details><summary><code>transfer_keep_alive(dest, value)</code></summary> -Taking 0.0074 % of a block. + +Taking 0.0112 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -207,7 +218,8 @@ kill the origin account. #### transfer_all - 4 <details><summary><code>transfer_all(dest, keep_alive)</code></summary> -Taking 0.0079 % of a block. + +Taking 0.0117 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -235,6 +247,7 @@ The dispatch origin of this call must be Signed. #### transfer - 7 <details><summary><code>transfer(dest, value)</code></summary> + Taking -1 % of a block. ```rust @@ -251,6 +264,7 @@ WARNING: DEPRECATED! Will be released in approximately 3 months. #### force_set_balance - 8 <details><summary><code>force_set_balance(who, new_free)</code></summary> + Taking -1 % of a block. ```rust @@ -269,7 +283,8 @@ The dispatch origin for this call is `root`. #### create_oneshot_account - 0 <details><summary><code>create_oneshot_account(dest, value)</code></summary> -Taking 0.0041 % of a block. + +Taking 0.0078 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -288,7 +303,8 @@ Origin account is kept alive. #### consume_oneshot_account - 1 <details><summary><code>consume_oneshot_account(block_height, dest)</code></summary> -Taking 0.0076 % of a block. + +Taking 0.0114 % of a block. ```rust block_height: T::BlockNumber @@ -306,7 +322,8 @@ Consume a oneshot account and transfer its balance to an 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.0111 % of a block. + +Taking 0.0149 % of a block. ```rust block_height: T::BlockNumber @@ -333,7 +350,8 @@ and the remaining amount to another account. #### go_offline - 0 <details><summary><code>go_offline()</code></summary> -Taking 0.0089 % of a block. + +Taking 0.0127 % of a block. ```rust ``` @@ -345,7 +363,8 @@ ask to leave the set of validators two sessions after #### go_online - 1 <details><summary><code>go_online()</code></summary> -Taking 0.0103 % of a block. + +Taking 0.0141 % of a block. ```rust ``` @@ -357,7 +376,8 @@ ask to join the set of validators two sessions after #### set_session_keys - 2 <details><summary><code>set_session_keys(keys)</code></summary> -Taking 0.0098 % of a block. + +Taking 0.0136 % of a block. ```rust keys: T::Keys @@ -370,7 +390,8 @@ declare new session keys to replace current ones #### remove_member_from_blacklist - 4 <details><summary><code>remove_member_from_blacklist(member_id)</code></summary> -Taking 0.0035 % of a block. + +Taking 0.0073 % of a block. ```rust member_id: T::MemberId @@ -385,6 +406,7 @@ remove an identity from the blacklist #### report_equivocation - 0 <details><summary><code>report_equivocation(equivocation_proof, key_owner_proof)</code></summary> + Taking -1 % of a block. ```rust @@ -404,6 +426,7 @@ will be reported. #### dispatch_as_root_unchecked_weight - 1 <details><summary><code>dispatch_as_root_unchecked_weight(call, weight)</code></summary> + Taking -1 % of a block. ```rust @@ -424,7 +447,8 @@ The weight of this call is defined by the caller. #### note_preimage - 0 <details><summary><code>note_preimage(bytes)</code></summary> -Taking 0.2963 % of a block. + +Taking 0.3001 % of a block. ```rust bytes: Vec<u8> @@ -440,7 +464,8 @@ the preimage. Otherwise, a deposit is taken proportional to the size of the prei #### unnote_preimage - 1 <details><summary><code>unnote_preimage(hash)</code></summary> -Taking 0.0082 % of a block. + +Taking 0.0119 % of a block. ```rust hash: T::Hash @@ -458,7 +483,8 @@ If `len` is provided, then it will be a much cheaper operation. #### request_preimage - 2 <details><summary><code>request_preimage(hash)</code></summary> -Taking 0.0045 % of a block. + +Taking 0.0083 % of a block. ```rust hash: T::Hash @@ -474,7 +500,8 @@ a user may have paid, and take the control of the preimage out of their hands. #### unrequest_preimage - 3 <details><summary><code>unrequest_preimage(hash)</code></summary> -Taking 0.0071 % of a block. + +Taking 0.0109 % of a block. ```rust hash: T::Hash @@ -491,7 +518,8 @@ NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`. #### execute - 1 <details><summary><code>execute(proposal, length_bound)</code></summary> -Taking 0.0011 % of a block. + +Taking 0.0049 % of a block. ```rust proposal: Box<<T as Config<I>>::Proposal> @@ -513,6 +541,7 @@ Origin must be a member of the collective. #### propose - 2 <details><summary><code>propose(threshold, proposal, length_bound)</code></summary> + Taking -1 % of a block. ```rust @@ -541,7 +570,8 @@ or put up for voting. #### vote - 3 <details><summary><code>vote(proposal, index, approve)</code></summary> -Taking 0.0045 % of a block. + +Taking 0.0082 % of a block. ```rust proposal: T::Hash @@ -564,6 +594,7 @@ fee. #### close - 6 <details><summary><code>close(proposal_hash, index, proposal_weight_bound, length_bound)</code></summary> + Taking -1 % of a block. ```rust @@ -605,7 +636,8 @@ proposal. #### claim_uds - 0 <details><summary><code>claim_uds()</code></summary> -Taking 0.0086 % of a block. + +Taking 0.0124 % of a block. ```rust ``` @@ -617,7 +649,8 @@ Claim Universal Dividends #### transfer_ud - 1 <details><summary><code>transfer_ud(dest, value)</code></summary> -Taking 0.009 % of a block. + +Taking 0.0128 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -631,7 +664,8 @@ Transfer some liquid free balance to another account, in milliUD. #### transfer_ud_keep_alive - 2 <details><summary><code>transfer_ud_keep_alive(dest, value)</code></summary> -Taking 0.008 % of a block. + +Taking 0.0118 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -647,7 +681,8 @@ Transfer some liquid free balance to another account, in milliUD. #### create_identity - 0 <details><summary><code>create_identity(owner_key)</code></summary> -Taking 0.0408 % of a block. + +Taking 0.0446 % of a block. ```rust owner_key: T::AccountId @@ -664,7 +699,8 @@ The origin must be allowed to create an identity. #### confirm_identity - 1 <details><summary><code>confirm_identity(idty_name)</code></summary> -Taking 0.0137 % of a block. + +Taking 0.0175 % of a block. ```rust idty_name: IdtyName @@ -681,7 +717,8 @@ The identity must have been created using `create_identity` before it can be con #### change_owner_key - 3 <details><summary><code>change_owner_key(new_key, new_key_sig)</code></summary> -Taking 0.0207 % of a block. + +Taking 0.0245 % of a block. ```rust new_key: T::AccountId @@ -701,7 +738,8 @@ The origin should be the old identity owner key. #### revoke_identity - 4 <details><summary><code>revoke_identity(idty_index, revocation_key, revocation_sig)</code></summary> -Taking 0.0217 % of a block. + +Taking 0.0255 % of a block. ```rust idty_index: T::IdtyIndex @@ -723,7 +761,8 @@ Any signed origin can execute this call. #### fix_sufficients - 7 <details><summary><code>fix_sufficients(owner_key, inc)</code></summary> -Taking 0.0033 % of a block. + +Taking 0.0071 % of a block. ```rust owner_key: T::AccountId @@ -737,7 +776,8 @@ change sufficient ref count for given key #### link_account - 8 <details><summary><code>link_account(account_id, payload_sig)</code></summary> -Taking 0.0068 % of a block. + +Taking 0.0106 % of a block. ```rust account_id: T::AccountId @@ -753,7 +793,8 @@ Link an account to an identity #### claim_membership - 1 <details><summary><code>claim_membership()</code></summary> -Taking 0.0169 % of a block. + +Taking 0.0206 % of a block. ```rust ``` @@ -768,7 +809,8 @@ for smith wot, it means joining the authority members #### renew_membership - 2 <details><summary><code>renew_membership()</code></summary> -Taking 0.012 % of a block. + +Taking 0.0158 % of a block. ```rust ``` @@ -780,7 +822,8 @@ extend the validity period of an active membership #### revoke_membership - 3 <details><summary><code>revoke_membership()</code></summary> -Taking 0.0176 % of a block. + +Taking 0.0214 % of a block. ```rust ``` @@ -795,7 +838,8 @@ revoke an active membership #### add_cert - 0 <details><summary><code>add_cert(issuer, receiver)</code></summary> -Taking 0.0146 % of a block. + +Taking 0.0184 % of a block. ```rust issuer: T::IdtyIndex @@ -815,7 +859,8 @@ The origin must be allow to certify. #### request_distance_evaluation - 0 <details><summary><code>request_distance_evaluation()</code></summary> -Taking 0.0142 % of a block. + +Taking 0.018 % of a block. ```rust ``` @@ -827,7 +872,8 @@ Request an identity to be evaluated #### update_evaluation - 1 <details><summary><code>update_evaluation(computation_result)</code></summary> -Taking 0.0147 % of a block. + +Taking 0.0185 % of a block. ```rust computation_result: ComputationResult @@ -840,7 +886,8 @@ computation_result: ComputationResult #### force_update_evaluation - 2 <details><summary><code>force_update_evaluation(evaluator, computation_result)</code></summary> -Taking 0.0075 % of a block. + +Taking 0.0113 % of a block. ```rust evaluator: <T as frame_system::Config>::AccountId @@ -854,7 +901,8 @@ Push an evaluation result to the pool #### force_set_distance_status - 3 <details><summary><code>force_set_distance_status(identity, status)</code></summary> -Taking 0.0066 % of a block. + +Taking 0.0104 % of a block. ```rust identity: <T as pallet_identity::Config>::IdtyIndex @@ -876,7 +924,8 @@ Removes the status if `status` is `None`. #### claim_membership - 1 <details><summary><code>claim_membership()</code></summary> -Taking 0.0114 % of a block. + +Taking 0.0152 % of a block. ```rust ``` @@ -891,7 +940,8 @@ for smith wot, it means joining the authority members #### renew_membership - 2 <details><summary><code>renew_membership()</code></summary> -Taking 0.0114 % of a block. + +Taking 0.0152 % of a block. ```rust ``` @@ -903,7 +953,8 @@ extend the validity period of an active membership #### revoke_membership - 3 <details><summary><code>revoke_membership()</code></summary> -Taking 0.0404 % of a block. + +Taking 0.0442 % of a block. ```rust ``` @@ -918,7 +969,8 @@ revoke an active membership #### add_cert - 0 <details><summary><code>add_cert(issuer, receiver)</code></summary> -Taking 0.0149 % of a block. + +Taking 0.0187 % of a block. ```rust issuer: T::IdtyIndex @@ -938,6 +990,7 @@ The origin must be allow to certify. #### create_swap - 0 <details><summary><code>create_swap(target, hashed_proof, action, duration)</code></summary> + Taking -1 % of a block. ```rust @@ -965,6 +1018,7 @@ The dispatch origin for this call must be _Signed_. #### claim_swap - 1 <details><summary><code>claim_swap(proof, action)</code></summary> + Taking -1 % of a block. ```rust @@ -985,6 +1039,7 @@ The dispatch origin for this call must be _Signed_. #### cancel_swap - 2 <details><summary><code>cancel_swap(target, hashed_proof)</code></summary> + Taking -1 % of a block. ```rust @@ -1006,7 +1061,8 @@ The dispatch origin for this call must be _Signed_. #### as_multi_threshold_1 - 0 <details><summary><code>as_multi_threshold_1(other_signatories, call)</code></summary> -Taking 0.0005 % of a block. + +Taking 0.0042 % of a block. ```rust other_signatories: Vec<T::AccountId> @@ -1031,6 +1087,7 @@ O(Z + C) where Z is the length of the call and C its execution weight. #### as_multi - 1 <details><summary><code>as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)</code></summary> + Taking -1 % of a block. ```rust @@ -1086,6 +1143,7 @@ may be found in the deposited `MultisigExecuted` event. #### approve_as_multi - 2 <details><summary><code>approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)</code></summary> + Taking -1 % of a block. ```rust @@ -1132,7 +1190,8 @@ NOTE: If this is the final approval, you will want to use `as_multi` instead. #### cancel_as_multi - 3 <details><summary><code>cancel_as_multi(threshold, other_signatories, timepoint, call_hash)</code></summary> -Taking 0.0044 % of a block. + +Taking 0.0082 % of a block. ```rust threshold: u16 @@ -1170,7 +1229,8 @@ transaction for this dispatch. #### request - 0 <details><summary><code>request(randomness_type, salt)</code></summary> -Taking 0.0146 % of a block. + +Taking 0.0184 % of a block. ```rust randomness_type: RandomnessType @@ -1186,7 +1246,8 @@ Request a randomness #### proxy - 0 <details><summary><code>proxy(real, force_proxy_type, call)</code></summary> -Taking 0.0011 % of a block. + +Taking 0.0049 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1209,7 +1270,8 @@ Parameters: #### add_proxy - 1 <details><summary><code>add_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.0041 % of a block. + +Taking 0.0079 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1232,7 +1294,8 @@ zero. #### remove_proxy - 2 <details><summary><code>remove_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.0041 % of a block. + +Taking 0.0079 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1253,7 +1316,8 @@ Parameters: #### remove_proxies - 3 <details><summary><code>remove_proxies()</code></summary> -Taking 0.004 % of a block. + +Taking 0.0078 % of a block. ```rust ``` @@ -1270,7 +1334,8 @@ the unreserved fees will be inaccessible. **All access to this account will be l #### create_pure - 4 <details><summary><code>create_pure(proxy_type, delay, index)</code></summary> -Taking 0.0041 % of a block. + +Taking 0.0079 % of a block. ```rust proxy_type: T::ProxyType @@ -1302,7 +1367,8 @@ Fails if there are insufficient funds to pay for deposit. #### kill_pure - 5 <details><summary><code>kill_pure(spawner, proxy_type, index, height, ext_index)</code></summary> -Taking 0.004 % of a block. + +Taking 0.0078 % of a block. ```rust spawner: AccountIdLookupOf<T> @@ -1334,7 +1400,8 @@ account whose `pure` call has corresponding parameters. #### announce - 6 <details><summary><code>announce(real, call_hash)</code></summary> -Taking 0.008 % of a block. + +Taking 0.0118 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1362,7 +1429,8 @@ Parameters: #### remove_announcement - 7 <details><summary><code>remove_announcement(real, call_hash)</code></summary> -Taking 0.0072 % of a block. + +Taking 0.011 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1385,7 +1453,8 @@ Parameters: #### reject_announcement - 8 <details><summary><code>reject_announcement(delegate, call_hash)</code></summary> -Taking 0.0072 % of a block. + +Taking 0.011 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1408,7 +1477,8 @@ Parameters: #### proxy_announced - 9 <details><summary><code>proxy_announced(delegate, real, force_proxy_type, call)</code></summary> -Taking 0.0082 % of a block. + +Taking 0.0119 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1436,7 +1506,8 @@ Parameters: #### batch - 0 <details><summary><code>batch(calls)</code></summary> -Taking 0.1979 % of a block. + +Taking 0.2017 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1466,7 +1537,8 @@ event is deposited. #### as_derivative - 1 <details><summary><code>as_derivative(index, call)</code></summary> -Taking 0.0002 % of a block. + +Taking 0.004 % of a block. ```rust index: u16 @@ -1492,7 +1564,8 @@ The dispatch origin for this call must be _Signed_. #### batch_all - 2 <details><summary><code>batch_all(calls)</code></summary> -Taking 0.205 % of a block. + +Taking 0.2088 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1517,7 +1590,8 @@ includes bypassing `frame_system::Config::BaseCallFilter`). #### force_batch - 4 <details><summary><code>force_batch(calls)</code></summary> -Taking 0.1973 % of a block. + +Taking 0.201 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1542,6 +1616,7 @@ includes bypassing `frame_system::Config::BaseCallFilter`). #### with_weight - 5 <details><summary><code>with_weight(call, weight)</code></summary> + Taking -1 % of a block. ```rust @@ -1563,7 +1638,8 @@ The dispatch origin for this call must be _Root_. #### propose_spend - 0 <details><summary><code>propose_spend(value, beneficiary)</code></summary> -Taking 0.0067 % of a block. + +Taking 0.0104 % of a block. ```rust value: BalanceOf<T, I> @@ -1582,7 +1658,8 @@ proposal is awarded. #### spend - 3 <details><summary><code>spend(amount, beneficiary)</code></summary> -Taking 0 % of a block. + +Taking 0.0038 % of a block. ```rust amount: BalanceOf<T, I> @@ -1603,7 +1680,8 @@ beneficiary. #### remove_approval - 4 <details><summary><code>remove_approval(proposal_id)</code></summary> -Taking 0.0033 % of a block. + +Taking 0.007 % of a block. ```rust proposal_id: ProposalIndex @@ -1636,7 +1714,8 @@ There are **19** root calls from **10** pallets. #### set_heap_pages - 1 <details><summary><code>set_heap_pages(pages)</code></summary> -Taking 0.0057 % of a block. + +Taking 0.0095 % of a block. ```rust pages: u64 @@ -1649,6 +1728,7 @@ Set the number of pages in the WebAssembly environment's heap. #### set_code - 2 <details><summary><code>set_code(code)</code></summary> + Taking -1 % of a block. ```rust @@ -1665,6 +1745,7 @@ Set the new runtime code. #### set_code_without_checks - 3 <details><summary><code>set_code_without_checks(code)</code></summary> + Taking -1 % of a block. ```rust @@ -1681,7 +1762,8 @@ Set the new runtime code without doing any checks of the given `code`. #### set_storage - 4 <details><summary><code>set_storage(items)</code></summary> -Taking 2.6196 % of a block. + +Taking 2.6234 % of a block. ```rust items: Vec<KeyValue> @@ -1694,7 +1776,8 @@ Set some items of storage. #### kill_storage - 5 <details><summary><code>kill_storage(keys)</code></summary> -Taking 2.6116 % of a block. + +Taking 2.6154 % of a block. ```rust keys: Vec<Key> @@ -1707,7 +1790,8 @@ Kill some items from storage. #### kill_prefix - 6 <details><summary><code>kill_prefix(prefix, subkeys)</code></summary> -Taking 2.9998 % of a block. + +Taking 3.0035 % of a block. ```rust prefix: Key @@ -1726,6 +1810,7 @@ the prefix we are removing to accurately calculate the weight of this function. #### plan_config_change - 2 <details><summary><code>plan_config_change(config)</code></summary> + Taking -1 % of a block. ```rust @@ -1744,7 +1829,8 @@ not been enacted yet. #### force_transfer - 2 <details><summary><code>force_transfer(source, dest, value)</code></summary> -Taking 0.0114 % of a block. + +Taking 0.0152 % of a block. ```rust source: AccountIdLookupOf<T> @@ -1760,7 +1846,8 @@ may be specified. #### force_unreserve - 5 <details><summary><code>force_unreserve(who, amount)</code></summary> -Taking 0.0037 % of a block. + +Taking 0.0075 % of a block. ```rust who: AccountIdLookupOf<T> @@ -1778,7 +1865,8 @@ Can only be called by ROOT. #### remove_member - 3 <details><summary><code>remove_member(member_id)</code></summary> -Taking 0.0429 % of a block. + +Taking 0.0467 % of a block. ```rust member_id: T::MemberId @@ -1793,6 +1881,7 @@ remove an identity from the set of authorities #### note_stalled - 2 <details><summary><code>note_stalled(delay, best_finalized_block_number)</code></summary> + Taking -1 % of a block. ```rust @@ -1820,7 +1909,8 @@ Only callable by root. #### set_members - 0 <details><summary><code>set_members(new_members, prime, old_count)</code></summary> -Taking 0.0781 % of a block. + +Taking 0.0819 % of a block. ```rust new_members: Vec<T::AccountId> @@ -1858,7 +1948,8 @@ with other logic managing the member set. #### disapprove_proposal - 5 <details><summary><code>disapprove_proposal(proposal_hash)</code></summary> -Taking 0.009 % of a block. + +Taking 0.0128 % of a block. ```rust proposal_hash: T::Hash @@ -1882,7 +1973,8 @@ O(P) where P is the number of max proposals #### prune_item_identities_names - 6 <details><summary><code>prune_item_identities_names(names)</code></summary> -Taking 2.6529 % of a block. + +Taking 2.6567 % of a block. ```rust names: Vec<IdtyName> @@ -1897,7 +1989,8 @@ remove identity names from storage #### del_cert - 1 <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.0109 % of a block. + +Taking 0.0147 % of a block. ```rust issuer: T::IdtyIndex @@ -1911,7 +2004,8 @@ remove a certification (only root) #### remove_all_certs_received_by - 2 <details><summary><code>remove_all_certs_received_by(idty_index)</code></summary> -Taking 3.5032 % of a block. + +Taking 3.507 % of a block. ```rust idty_index: T::IdtyIndex @@ -1926,7 +2020,8 @@ remove all certifications received by an identity (only root) #### del_cert - 1 <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.0109 % of a block. + +Taking 0.0147 % of a block. ```rust issuer: T::IdtyIndex @@ -1940,7 +2035,8 @@ remove a certification (only root) #### remove_all_certs_received_by - 2 <details><summary><code>remove_all_certs_received_by(idty_index)</code></summary> -Taking 3.4989 % of a block. + +Taking 3.5027 % of a block. ```rust idty_index: T::IdtyIndex @@ -1955,7 +2051,8 @@ remove all certifications received by an identity (only root) #### dispatch_as - 3 <details><summary><code>dispatch_as(as_origin, call)</code></summary> -Taking 0.0004 % of a block. + +Taking 0.0041 % of a block. ```rust as_origin: Box<T::PalletsOrigin> @@ -1985,7 +2082,8 @@ There are **4** disabled calls from **2** pallets. #### remark - 0 <details><summary><code>remark(remark)</code></summary> -Taking 0.0526 % of a block. + +Taking 0.0563 % of a block. ```rust remark: Vec<u8> @@ -2001,7 +2099,8 @@ Make some on-chain remark. #### remark_with_event - 7 <details><summary><code>remark_with_event(remark)</code></summary> -Taking 0.212 % of a block. + +Taking 0.2158 % of a block. ```rust remark: Vec<u8> @@ -2016,7 +2115,8 @@ Make some on-chain remark and emit event. #### set_keys - 0 <details><summary><code>set_keys(keys, proof)</code></summary> -Taking 0.016 % of a block. + +Taking 0.0198 % of a block. ```rust keys: T::Keys @@ -2038,7 +2138,8 @@ The dispatch origin of this function must be signed. #### purge_keys - 1 <details><summary><code>purge_keys()</code></summary> -Taking 0.0141 % of a block. + +Taking 0.0178 % of a block. ```rust ``` diff --git a/xtask/res/templates/runtime-calls-category.md b/xtask/res/templates/runtime-calls-category.md index 581b11409a459044ea8a83fd0a814133d4e45215..95801c089a81ea32ef85b4c15754728f83365447 100644 --- a/xtask/res/templates/runtime-calls-category.md +++ b/xtask/res/templates/runtime-calls-category.md @@ -11,6 +11,7 @@ There are **{{ calls_counter }}** {{ category_name }} calls from **{{ pallets | {{ param.name }}{% if loop.last != true %}, {% endif %} {%- endfor -%} )</code></summary> + Taking {{ call.weight}} % of a block. ```rust diff --git a/xtask/src/gen_doc.rs b/xtask/src/gen_doc.rs index 1160b0c180563fb1ea51445405f06f25a6eb6caf..ca8af3995011787d59beeea0c88f39636c17fad0 100644 --- a/xtask/src/gen_doc.rs +++ b/xtask/src/gen_doc.rs @@ -261,11 +261,13 @@ pub(super) fn gen_doc() -> Result<()> { bail!("unsuported metadata version") }; - let mut weights = get_weights(); // Panic if not possible - println!("{:?}", weights.get("Balances")); // Debug + // Compute the weights from the weight files. + // Require the `pallet_xxx.rs` weights, + // the `paritydb_weights.rs` and the `extrinsic_weights.rs` + let mut weights = get_weights(); // AdHoc names convertion - // TODO automatic??? + // TODO automatic, possible??? rename_key(&mut weights, &"FrameSystem".into(), "System".into()); rename_key(&mut weights, &"DuniterAccount".into(), "Account".into()); rename_key( @@ -294,7 +296,8 @@ pub(super) fn gen_doc() -> Result<()> { weights.insert("Grandpa".to_string(), Default::default()); // Manual weights.insert("Sudo".to_string(), Default::default()); // Only > v1.0 has WeightInfo TODO at update weights.insert("AtomicSwap".to_string(), Default::default()); // No weight - // Insert weights + + // Insert weights runtime.iter_mut().for_each(|pallet| { pallet.calls.iter_mut().for_each(|call| { call.weight = weights