diff --git a/docs/api/runtime-calls.md b/docs/api/runtime-calls.md index f10d43642c2d99358086ca6a7bf70b027babc197..e681f236dcf02fc18ee0aa732ce3ee80cd77e949 100644 --- a/docs/api/runtime-calls.md +++ b/docs/api/runtime-calls.md @@ -20,7 +20,7 @@ There are **78** user calls from **23** pallets. #### unlink_identity - 0 <details><summary><code>unlink_identity()</code></summary> -Taking 0.00314045 % of a block. +Taking 0.0031 % of a block. ```rust ``` @@ -34,7 +34,7 @@ unlink the identity associated with the account #### schedule - 0 <details><summary><code>schedule(when, maybe_periodic, priority, call)</code></summary> -Taking 0.0045085128 % of a block. +Taking 0.0045 % of a block. ```rust when: T::BlockNumber @@ -50,7 +50,7 @@ Anonymously schedule a task. #### cancel - 1 <details><summary><code>cancel(when, index)</code></summary> -Taking 0.00771074795 % of a block. +Taking 0.0077 % of a block. ```rust when: T::BlockNumber @@ -64,7 +64,7 @@ Cancel an anonymously scheduled task. #### schedule_named - 2 <details><summary><code>schedule_named(id, when, maybe_periodic, priority, call)</code></summary> -Taking 0.00775320855 % of a block. +Taking 0.0078 % of a block. ```rust id: TaskName @@ -81,7 +81,7 @@ Schedule a named task. #### cancel_named - 3 <details><summary><code>cancel_named(id)</code></summary> -Taking 0.008208497 % of a block. +Taking 0.0082 % of a block. ```rust id: TaskName @@ -148,7 +148,7 @@ be reported. #### transfer_allow_death - 0 <details><summary><code>transfer_allow_death(dest, value)</code></summary> -Taking 0.008295249999999999 % of a block. +Taking 0.0083 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -188,7 +188,7 @@ 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.0074474499999999996 % of a block. +Taking 0.0074 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -207,7 +207,7 @@ kill the origin account. #### transfer_all - 4 <details><summary><code>transfer_all(dest, keep_alive)</code></summary> -Taking 0.00788335 % of a block. +Taking 0.0079 % of a block. ```rust dest: AccountIdLookupOf<T> @@ -269,7 +269,7 @@ The dispatch origin for this call is `root`. #### create_oneshot_account - 0 <details><summary><code>create_oneshot_account(dest, value)</code></summary> -Taking 0.00407265 % of a block. +Taking 0.0041 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -288,7 +288,7 @@ Origin account is kept alive. #### consume_oneshot_account - 1 <details><summary><code>consume_oneshot_account(block_height, dest)</code></summary> -Taking 0.0076215499999999995 % of a block. +Taking 0.0076 % of a block. ```rust block_height: T::BlockNumber @@ -306,7 +306,7 @@ 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.01110345 % of a block. +Taking 0.0111 % of a block. ```rust block_height: T::BlockNumber @@ -333,7 +333,7 @@ and the remaining amount to another account. #### go_offline - 0 <details><summary><code>go_offline()</code></summary> -Taking 0.0089219 % of a block. +Taking 0.0089 % of a block. ```rust ``` @@ -345,7 +345,7 @@ ask to leave the set of validators two sessions after #### go_online - 1 <details><summary><code>go_online()</code></summary> -Taking 0.0103085 % of a block. +Taking 0.0103 % of a block. ```rust ``` @@ -357,7 +357,7 @@ 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.009799450000000001 % of a block. +Taking 0.0098 % of a block. ```rust keys: T::Keys @@ -370,7 +370,7 @@ 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.00349335 % of a block. +Taking 0.0035 % of a block. ```rust member_id: T::MemberId @@ -424,7 +424,7 @@ The weight of this call is defined by the caller. #### note_preimage - 0 <details><summary><code>note_preimage(bytes)</code></summary> -Taking 0.2963431912 % of a block. +Taking 0.2963 % of a block. ```rust bytes: Vec<u8> @@ -440,7 +440,7 @@ 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.0081516 % of a block. +Taking 0.0082 % of a block. ```rust hash: T::Hash @@ -458,7 +458,7 @@ 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.0045000000000000005 % of a block. +Taking 0.0045 % of a block. ```rust hash: T::Hash @@ -474,7 +474,7 @@ 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.0070914 % of a block. +Taking 0.0071 % of a block. ```rust hash: T::Hash @@ -491,7 +491,7 @@ 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.00114356225 % of a block. +Taking 0.0011 % of a block. ```rust proposal: Box<<T as Config<I>>::Proposal> @@ -541,7 +541,7 @@ or put up for voting. #### vote - 3 <details><summary><code>vote(proposal, index, approve)</code></summary> -Taking 0.0044604425 % of a block. +Taking 0.0045 % of a block. ```rust proposal: T::Hash @@ -605,7 +605,7 @@ proposal. #### claim_uds - 0 <details><summary><code>claim_uds()</code></summary> -Taking 0.008628653549999999 % of a block. +Taking 0.0086 % of a block. ```rust ``` @@ -617,7 +617,7 @@ Claim Universal Dividends #### transfer_ud - 1 <details><summary><code>transfer_ud(dest, value)</code></summary> -Taking 0.00899295 % of a block. +Taking 0.009 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -631,7 +631,7 @@ 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.008015949999999999 % of a block. +Taking 0.008 % of a block. ```rust dest: <T::Lookup as StaticLookup>::Source @@ -647,7 +647,7 @@ Transfer some liquid free balance to another account, in milliUD. #### create_identity - 0 <details><summary><code>create_identity(owner_key)</code></summary> -Taking 0.04084285 % of a block. +Taking 0.0408 % of a block. ```rust owner_key: T::AccountId @@ -664,7 +664,7 @@ The origin must be allowed to create an identity. #### confirm_identity - 1 <details><summary><code>confirm_identity(idty_name)</code></summary> -Taking 0.013745 % of a block. +Taking 0.0137 % of a block. ```rust idty_name: IdtyName @@ -681,7 +681,7 @@ 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.02070725 % of a block. +Taking 0.0207 % of a block. ```rust new_key: T::AccountId @@ -701,7 +701,7 @@ 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.0217495 % of a block. +Taking 0.0217 % of a block. ```rust idty_index: T::IdtyIndex @@ -723,7 +723,7 @@ Any signed origin can execute this call. #### fix_sufficients - 7 <details><summary><code>fix_sufficients(owner_key, inc)</code></summary> -Taking 0.0033105499999999998 % of a block. +Taking 0.0033 % of a block. ```rust owner_key: T::AccountId @@ -737,7 +737,7 @@ change sufficient ref count for given key #### link_account - 8 <details><summary><code>link_account(account_id, payload_sig)</code></summary> -Taking 0.006794100000000001 % of a block. +Taking 0.0068 % of a block. ```rust account_id: T::AccountId @@ -753,7 +753,7 @@ Link an account to an identity #### claim_membership - 1 <details><summary><code>claim_membership()</code></summary> -Taking 0.01685205 % of a block. +Taking 0.0169 % of a block. ```rust ``` @@ -768,7 +768,7 @@ for smith wot, it means joining the authority members #### renew_membership - 2 <details><summary><code>renew_membership()</code></summary> -Taking 0.0120386 % of a block. +Taking 0.012 % of a block. ```rust ``` @@ -780,7 +780,7 @@ extend the validity period of an active membership #### revoke_membership - 3 <details><summary><code>revoke_membership()</code></summary> -Taking 0.01760525 % of a block. +Taking 0.0176 % of a block. ```rust ``` @@ -795,7 +795,7 @@ revoke an active membership #### add_cert - 0 <details><summary><code>add_cert(issuer, receiver)</code></summary> -Taking 0.0146154 % of a block. +Taking 0.0146 % of a block. ```rust issuer: T::IdtyIndex @@ -815,7 +815,7 @@ The origin must be allow to certify. #### request_distance_evaluation - 0 <details><summary><code>request_distance_evaluation()</code></summary> -Taking 0.01423585 % of a block. +Taking 0.0142 % of a block. ```rust ``` @@ -827,7 +827,7 @@ Request an identity to be evaluated #### update_evaluation - 1 <details><summary><code>update_evaluation(computation_result)</code></summary> -Taking 0.0146744083 % of a block. +Taking 0.0147 % of a block. ```rust computation_result: ComputationResult @@ -840,7 +840,7 @@ computation_result: ComputationResult #### force_update_evaluation - 2 <details><summary><code>force_update_evaluation(evaluator, computation_result)</code></summary> -Taking 0.00751112 % of a block. +Taking 0.0075 % of a block. ```rust evaluator: <T as frame_system::Config>::AccountId @@ -854,7 +854,7 @@ 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.006575900000000001 % of a block. +Taking 0.0066 % of a block. ```rust identity: <T as pallet_identity::Config>::IdtyIndex @@ -876,7 +876,7 @@ Removes the status if `status` is `None`. #### claim_membership - 1 <details><summary><code>claim_membership()</code></summary> -Taking 0.01139385 % of a block. +Taking 0.0114 % of a block. ```rust ``` @@ -891,7 +891,7 @@ for smith wot, it means joining the authority members #### renew_membership - 2 <details><summary><code>renew_membership()</code></summary> -Taking 0.011403100000000001 % of a block. +Taking 0.0114 % of a block. ```rust ``` @@ -903,7 +903,7 @@ extend the validity period of an active membership #### revoke_membership - 3 <details><summary><code>revoke_membership()</code></summary> -Taking 0.0404213 % of a block. +Taking 0.0404 % of a block. ```rust ``` @@ -918,7 +918,7 @@ revoke an active membership #### add_cert - 0 <details><summary><code>add_cert(issuer, receiver)</code></summary> -Taking 0.0148997 % of a block. +Taking 0.0149 % of a block. ```rust issuer: T::IdtyIndex @@ -1006,7 +1006,7 @@ 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.0004697393 % of a block. +Taking 0.0005 % of a block. ```rust other_signatories: Vec<T::AccountId> @@ -1132,7 +1132,7 @@ 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.0044154068 % of a block. +Taking 0.0044 % of a block. ```rust threshold: u16 @@ -1170,7 +1170,7 @@ transaction for this dispatch. #### request - 0 <details><summary><code>request(randomness_type, salt)</code></summary> -Taking 0.014593 % of a block. +Taking 0.0146 % of a block. ```rust randomness_type: RandomnessType @@ -1186,7 +1186,7 @@ Request a randomness #### proxy - 0 <details><summary><code>proxy(real, force_proxy_type, call)</code></summary> -Taking 0.00112542355 % of a block. +Taking 0.0011 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1209,7 +1209,7 @@ Parameters: #### add_proxy - 1 <details><summary><code>add_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.00408791445 % of a block. +Taking 0.0041 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1232,7 +1232,7 @@ zero. #### remove_proxy - 2 <details><summary><code>remove_proxy(delegate, proxy_type, delay)</code></summary> -Taking 0.00409451075 % of a block. +Taking 0.0041 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1253,7 +1253,7 @@ Parameters: #### remove_proxies - 3 <details><summary><code>remove_proxies()</code></summary> -Taking 0.00398709485 % of a block. +Taking 0.004 % of a block. ```rust ``` @@ -1270,7 +1270,7 @@ 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.0041442946999999996 % of a block. +Taking 0.0041 % of a block. ```rust proxy_type: T::ProxyType @@ -1302,7 +1302,7 @@ 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.00403936515 % of a block. +Taking 0.004 % of a block. ```rust spawner: AccountIdLookupOf<T> @@ -1334,7 +1334,7 @@ account whose `pure` call has corresponding parameters. #### announce - 6 <details><summary><code>announce(real, call_hash)</code></summary> -Taking 0.0079946957 % of a block. +Taking 0.008 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1362,7 +1362,7 @@ Parameters: #### remove_announcement - 7 <details><summary><code>remove_announcement(real, call_hash)</code></summary> -Taking 0.00720332345 % of a block. +Taking 0.0072 % of a block. ```rust real: AccountIdLookupOf<T> @@ -1385,7 +1385,7 @@ Parameters: #### reject_announcement - 8 <details><summary><code>reject_announcement(delegate, call_hash)</code></summary> -Taking 0.00721393205 % of a block. +Taking 0.0072 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1408,7 +1408,7 @@ Parameters: #### proxy_announced - 9 <details><summary><code>proxy_announced(delegate, real, force_proxy_type, call)</code></summary> -Taking 0.0081714508 % of a block. +Taking 0.0082 % of a block. ```rust delegate: AccountIdLookupOf<T> @@ -1436,7 +1436,7 @@ Parameters: #### batch - 0 <details><summary><code>batch(calls)</code></summary> -Taking 0.1978951879 % of a block. +Taking 0.1979 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1466,7 +1466,7 @@ event is deposited. #### as_derivative - 1 <details><summary><code>as_derivative(index, call)</code></summary> -Taking 0.0001795 % of a block. +Taking 0.0002 % of a block. ```rust index: u16 @@ -1492,7 +1492,7 @@ The dispatch origin for this call must be _Signed_. #### batch_all - 2 <details><summary><code>batch_all(calls)</code></summary> -Taking 0.2050479986 % of a block. +Taking 0.205 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1517,7 +1517,7 @@ includes bypassing `frame_system::Config::BaseCallFilter`). #### force_batch - 4 <details><summary><code>force_batch(calls)</code></summary> -Taking 0.19725465265000003 % of a block. +Taking 0.1973 % of a block. ```rust calls: Vec<<T as Config>::RuntimeCall> @@ -1563,7 +1563,7 @@ The dispatch origin for this call must be _Root_. #### propose_spend - 0 <details><summary><code>propose_spend(value, beneficiary)</code></summary> -Taking 0.0066688 % of a block. +Taking 0.0067 % of a block. ```rust value: BalanceOf<T, I> @@ -1582,7 +1582,7 @@ proposal is awarded. #### spend - 3 <details><summary><code>spend(amount, beneficiary)</code></summary> -Taking 0.00000915 % of a block. +Taking 0 % of a block. ```rust amount: BalanceOf<T, I> @@ -1603,7 +1603,7 @@ beneficiary. #### remove_approval - 4 <details><summary><code>remove_approval(proposal_id)</code></summary> -Taking 0.0032549499999999995 % of a block. +Taking 0.0033 % of a block. ```rust proposal_id: ProposalIndex @@ -1636,7 +1636,7 @@ There are **19** root calls from **10** pallets. #### set_heap_pages - 1 <details><summary><code>set_heap_pages(pages)</code></summary> -Taking 0.00571225 % of a block. +Taking 0.0057 % of a block. ```rust pages: u64 @@ -1681,7 +1681,7 @@ 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.61958365 % of a block. +Taking 2.6196 % of a block. ```rust items: Vec<KeyValue> @@ -1694,7 +1694,7 @@ Set some items of storage. #### kill_storage - 5 <details><summary><code>kill_storage(keys)</code></summary> -Taking 2.6116451499999997 % of a block. +Taking 2.6116 % of a block. ```rust keys: Vec<Key> @@ -1707,7 +1707,7 @@ Kill some items from storage. #### kill_prefix - 6 <details><summary><code>kill_prefix(prefix, subkeys)</code></summary> -Taking 2.9997642 % of a block. +Taking 2.9998 % of a block. ```rust prefix: Key @@ -1744,7 +1744,7 @@ not been enacted yet. #### force_transfer - 2 <details><summary><code>force_transfer(source, dest, value)</code></summary> -Taking 0.0114141 % of a block. +Taking 0.0114 % of a block. ```rust source: AccountIdLookupOf<T> @@ -1760,7 +1760,7 @@ may be specified. #### force_unreserve - 5 <details><summary><code>force_unreserve(who, amount)</code></summary> -Taking 0.0037478999999999998 % of a block. +Taking 0.0037 % of a block. ```rust who: AccountIdLookupOf<T> @@ -1778,7 +1778,7 @@ Can only be called by ROOT. #### remove_member - 3 <details><summary><code>remove_member(member_id)</code></summary> -Taking 0.04294555 % of a block. +Taking 0.0429 % of a block. ```rust member_id: T::MemberId @@ -1820,7 +1820,7 @@ Only callable by root. #### set_members - 0 <details><summary><code>set_members(new_members, prime, old_count)</code></summary> -Taking 0.078102428 % of a block. +Taking 0.0781 % of a block. ```rust new_members: Vec<T::AccountId> @@ -1858,7 +1858,7 @@ with other logic managing the member set. #### disapprove_proposal - 5 <details><summary><code>disapprove_proposal(proposal_hash)</code></summary> -Taking 0.009028286299999999 % of a block. +Taking 0.009 % of a block. ```rust proposal_hash: T::Hash @@ -1882,7 +1882,7 @@ 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.6528971500000003 % of a block. +Taking 2.6529 % of a block. ```rust names: Vec<IdtyName> @@ -1897,7 +1897,7 @@ remove identity names from storage #### del_cert - 1 <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.010917300000000001 % of a block. +Taking 0.0109 % of a block. ```rust issuer: T::IdtyIndex @@ -1911,7 +1911,7 @@ 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.50323325 % of a block. +Taking 3.5032 % of a block. ```rust idty_index: T::IdtyIndex @@ -1926,7 +1926,7 @@ remove all certifications received by an identity (only root) #### del_cert - 1 <details><summary><code>del_cert(issuer, receiver)</code></summary> -Taking 0.010896999999999999 % of a block. +Taking 0.0109 % of a block. ```rust issuer: T::IdtyIndex @@ -1940,7 +1940,7 @@ 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.4988980000000005 % of a block. +Taking 3.4989 % of a block. ```rust idty_index: T::IdtyIndex @@ -1955,7 +1955,7 @@ remove all certifications received by an identity (only root) #### dispatch_as - 3 <details><summary><code>dispatch_as(as_origin, call)</code></summary> -Taking 0.00036205 % of a block. +Taking 0.0004 % of a block. ```rust as_origin: Box<T::PalletsOrigin> @@ -1985,7 +1985,7 @@ There are **4** disabled calls from **2** pallets. #### remark - 0 <details><summary><code>remark(remark)</code></summary> -Taking 0.05257243599999999 % of a block. +Taking 0.0526 % of a block. ```rust remark: Vec<u8> @@ -2001,7 +2001,7 @@ Make some on-chain remark. #### remark_with_event - 7 <details><summary><code>remark_with_event(remark)</code></summary> -Taking 0.21203131600000003 % of a block. +Taking 0.212 % of a block. ```rust remark: Vec<u8> @@ -2016,7 +2016,7 @@ Make some on-chain remark and emit event. #### set_keys - 0 <details><summary><code>set_keys(keys, proof)</code></summary> -Taking 0.01598685 % of a block. +Taking 0.016 % of a block. ```rust keys: T::Keys @@ -2038,7 +2038,7 @@ The dispatch origin of this function must be signed. #### purge_keys - 1 <details><summary><code>purge_keys()</code></summary> -Taking 0.01406905 % of a block. +Taking 0.0141 % of a block. ```rust ``` diff --git a/xtask/src/gen_doc.rs b/xtask/src/gen_doc.rs index 81d8b2e67a880ca69db16f5ffc651178c5278367..1160b0c180563fb1ea51445405f06f25a6eb6caf 100644 --- a/xtask/src/gen_doc.rs +++ b/xtask/src/gen_doc.rs @@ -301,7 +301,9 @@ pub(super) fn gen_doc() -> Result<()> { .get(&pallet.name) .expect(&("No weight for ".to_owned() + &pallet.name)) .get(&call.name) - .map_or(-1f64, |weight| weight.relative_weight) + .map_or(-1f64, |weight| { + (weight.relative_weight * 10000.).round() / 10000. + }) }) });