Skip to content
Snippets Groups Projects
  • Benjamin Gallois's avatar
    93853b2d
    Upgrade to polkadot-v1.6.0 (!229) · 93853b2d
    Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
    * check live tests
    
    * cargo check benchmarks after rebase
    
    * cargo check tests after rebase
    
    * update metadata after rebase
    
    * cargo check after rebase
    
    * cargo fmt after rebase
    
    * upgrade runtime to polkadot v1.6.0
    
    upgrade node to polkadot v1.6.0
    
    upgrade distance oracle to polkadot v1.6.0
    
    upgrade end2end tests
    
    upgrade xtask to polkadot v1.6.0
    
    update repository paths to duniter polkadot v1.6.0
    
    fix #131
    
    optimize end2end test
    
    fix review errors
    
    update subxt branch
    
    update test comment
    93853b2d
    History
    Upgrade to polkadot-v1.6.0 (!229)
    Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
    * check live tests
    
    * cargo check benchmarks after rebase
    
    * cargo check tests after rebase
    
    * update metadata after rebase
    
    * cargo check after rebase
    
    * cargo fmt after rebase
    
    * upgrade runtime to polkadot v1.6.0
    
    upgrade node to polkadot v1.6.0
    
    upgrade distance oracle to polkadot v1.6.0
    
    upgrade end2end tests
    
    upgrade xtask to polkadot v1.6.0
    
    update repository paths to duniter polkadot v1.6.0
    
    fix #131
    
    optimize end2end test
    
    fix review errors
    
    update subxt branch
    
    update test comment
runtime-calls.md 25.59 KiB

Runtime calls

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.
  2. Root calls: This kind of call requires a special origin that can only be invoked through on-chain governance mechanisms.
  3. Inherent calls: This kind of call is invoked by the author of the block itself (usually automatically by the node).
  4. 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.

Account - 1

unlink_identity - 0

unlink_identity()

Taking 0.0082 % of a block.

See [Pallet::unlink_identity].

Scheduler - 2

schedule - 0

schedule(when, maybe_periodic, priority, call)

Taking 0.0098 % of a block.

when: BlockNumberFor<T>
maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

See [Pallet::schedule].

cancel - 1

cancel(when, index)

Taking 0.0131 % of a block.

when: BlockNumberFor<T>
index: u32

See [Pallet::cancel].

schedule_named - 2

schedule_named(id, when, maybe_periodic, priority, call)

Taking 0.0131 % of a block.

id: TaskName
when: BlockNumberFor<T>
maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

See [Pallet::schedule_named].

cancel_named - 3

cancel_named(id)

Taking 0.0137 % of a block.

id: TaskName

See [Pallet::cancel_named].

schedule_after - 4

schedule_after(after, maybe_periodic, priority, call)

No weight available.

after: BlockNumberFor<T>
maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

See [Pallet::schedule_after].

schedule_named_after - 5

schedule_named_after(id, after, maybe_periodic, priority, call)

No weight available.

id: TaskName
after: BlockNumberFor<T>
maybe_periodic: Option<schedule::Period<BlockNumberFor<T>>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

See [Pallet::schedule_named_after].

Babe - 3

report_equivocation - 0

report_equivocation(equivocation_proof, key_owner_proof)

No weight available.

equivocation_proof: Box<EquivocationProof<HeaderFor<T>>>
key_owner_proof: T::KeyOwnerProof

See [Pallet::report_equivocation].

Balances - 6

transfer_allow_death - 0

transfer_allow_death(dest, value)

Taking 0.0152 % of a block.

dest: AccountIdLookupOf<T>
value: T::Balance

See [Pallet::transfer_allow_death].

transfer_keep_alive - 3

transfer_keep_alive(dest, value)

Taking 0.0168 % of a block.

dest: AccountIdLookupOf<T>
value: T::Balance

See [Pallet::transfer_keep_alive].

transfer_all - 4

transfer_all(dest, keep_alive)

Taking 0.0142 % of a block.

dest: AccountIdLookupOf<T>
keep_alive: bool

See [Pallet::transfer_all].

force_set_balance - 8

force_set_balance(who, new_free)

No weight available.

who: AccountIdLookupOf<T>
new_free: T::Balance

See [Pallet::force_set_balance].

OneshotAccount - 8

create_oneshot_account - 0

create_oneshot_account(dest, value)

Taking 0.0095 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: <T::Currency as Currency<T::AccountId>>::Balance

See [Pallet::create_oneshot_account].

consume_oneshot_account - 1

consume_oneshot_account(block_height, dest)

Taking 0.0134 % of a block.

block_height: BlockNumberFor<T>
dest: Account<<T::Lookup as StaticLookup>::Source>

See [Pallet::consume_oneshot_account].

consume_oneshot_account_with_remaining - 2

consume_oneshot_account_with_remaining(block_height, dest, remaining_to, balance)

Taking 0.0175 % of a block.

block_height: BlockNumberFor<T>
dest: Account<<T::Lookup as StaticLookup>::Source>
remaining_to: Account<<T::Lookup as StaticLookup>::Source>
balance: <T::Currency as Currency<T::AccountId>>::Balance

See [Pallet::consume_oneshot_account_with_remaining].

SmithMembers - 10

invite_smith - 0

invite_smith(receiver)

Taking 0.0153 % of a block.

receiver: T::IdtyIndex

Invite a WoT member to try becoming a Smith

accept_invitation - 1

accept_invitation()

Taking 0.0094 % of a block.

Accept an invitation (must have been invited first)

certify_smith - 2

certify_smith(receiver)

Taking 0.0139 % of a block.

receiver: T::IdtyIndex

Certify an invited smith which can lead the certified to become a Smith

AuthorityMembers - 11

go_offline - 0

go_offline()

Taking 0.0117 % of a block.

See [Pallet::go_offline].

go_online - 1

go_online()

Taking 0.0138 % of a block.

See [Pallet::go_online].

set_session_keys - 2

set_session_keys(keys)

Taking 0.0177 % of a block.

keys: T::Keys

See [Pallet::set_session_keys].

remove_member_from_blacklist - 4

remove_member_from_blacklist(member_id)

Taking 0.0094 % of a block.

member_id: T::MemberId

See [Pallet::remove_member_from_blacklist].

Grandpa - 16

report_equivocation - 0

report_equivocation(equivocation_proof, key_owner_proof)

No weight available.

equivocation_proof: Box<EquivocationProof<T::Hash, BlockNumberFor<T>>>
key_owner_proof: T::KeyOwnerProof

See [Pallet::report_equivocation].

UpgradeOrigin - 20

dispatch_as_root_unchecked_weight - 1

dispatch_as_root_unchecked_weight(call, weight)

No weight available.

call: Box<<T as Config>::Call>
weight: Weight

See [Pallet::dispatch_as_root_unchecked_weight].

Preimage - 21

note_preimage - 0

note_preimage(bytes)

Taking 0.5042 % of a block.

bytes: Vec<u8>

See [Pallet::note_preimage].

unnote_preimage - 1

unnote_preimage(hash)

Taking 0.0135 % of a block.

hash: T::Hash

See [Pallet::unnote_preimage].

request_preimage - 2

request_preimage(hash)

Taking 0.0092 % of a block.

hash: T::Hash

See [Pallet::request_preimage].

unrequest_preimage - 3

unrequest_preimage(hash)

Taking 0.0119 % of a block.

hash: T::Hash

See [Pallet::unrequest_preimage].

ensure_updated - 4

ensure_updated(hashes)

Taking 21.0381 % of a block.

hashes: Vec<T::Hash>

See [Pallet::ensure_updated].

TechnicalCommittee - 22

execute - 1

execute(proposal, length_bound)

Taking 0.0061 % of a block.

proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

See [Pallet::execute].

propose - 2

propose(threshold, proposal, length_bound)

No weight available.

threshold: MemberCount
proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

See [Pallet::propose].

vote - 3

vote(proposal, index, approve)

Taking 0.0104 % of a block.

proposal: T::Hash
index: ProposalIndex
approve: bool

See [Pallet::vote].

close - 6

close(proposal_hash, index, proposal_weight_bound, length_bound)

No weight available.

proposal_hash: T::Hash
index: ProposalIndex
proposal_weight_bound: Weight
length_bound: u32

See [Pallet::close].

UniversalDividend - 23

claim_uds - 0

claim_uds()

Taking 0.0146 % of a block.

See [Pallet::claim_uds].

transfer_ud - 1

transfer_ud(dest, value)

Taking 0.0158 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

See [Pallet::transfer_ud].

transfer_ud_keep_alive - 2

transfer_ud_keep_alive(dest, value)

Taking 0.0144 % of a block.

dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

See [Pallet::transfer_ud_keep_alive].

Identity - 25

create_identity - 0

create_identity(owner_key)

Taking 0.0484 % of a block.

owner_key: T::AccountId

See [Pallet::create_identity].

confirm_identity - 1

confirm_identity(idty_name)

Taking 0.0204 % of a block.

idty_name: IdtyName

See [Pallet::confirm_identity].

change_owner_key - 3

change_owner_key(new_key, new_key_sig)

Taking 0.0306 % of a block.

new_key: T::AccountId
new_key_sig: T::Signature

See [Pallet::change_owner_key].

revoke_identity - 4

revoke_identity(idty_index, revocation_key, revocation_sig)

Taking 0.0293 % of a block.

idty_index: T::IdtyIndex
revocation_key: T::AccountId
revocation_sig: T::Signature

See [Pallet::revoke_identity].

fix_sufficients - 7

fix_sufficients(owner_key, inc)

Taking 0.0081 % of a block.

owner_key: T::AccountId
inc: bool

See [Pallet::fix_sufficients].

link_account - 8

link_account(account_id, payload_sig)

Taking 0.0135 % of a block.

account_id: T::AccountId
payload_sig: T::Signature

See [Pallet::link_account].

Certification - 27

add_cert - 0

add_cert(receiver)

Taking 0.0214 % of a block.

receiver: T::IdtyIndex

Add a new certification.

renew_cert - 3

renew_cert(receiver)

Taking 0.018 % of a block.

receiver: T::IdtyIndex

Renew an existing certification.

del_cert - 1

del_cert(issuer, receiver)

Taking 0.0155 % of a block.

issuer: T::IdtyIndex
receiver: T::IdtyIndex

See [Pallet::del_cert].

remove_all_certs_received_by - 2

remove_all_certs_received_by(idty_index)

Taking 3.7485 % of a block.

idty_index: T::IdtyIndex

See [Pallet::remove_all_certs_received_by].

Distance - 28

request_distance_evaluation - 0

request_distance_evaluation()

Taking 0.0194 % of a block.

See [Pallet::request_distance_evaluation].

request_distance_evaluation_for - 4

request_distance_evaluation_for(target)

Taking 0.0199 % of a block.

target: T::IdtyIndex

See [Pallet::request_distance_evaluation_for].

update_evaluation - 1

update_evaluation(computation_result)

Taking 0.0214 % of a block.

computation_result: ComputationResult

See [Pallet::update_evaluation].

force_update_evaluation - 2

force_update_evaluation(evaluator, computation_result)

Taking 0.014 % of a block.

evaluator: <T as frame_system::Config>::AccountId
computation_result: ComputationResult

See [Pallet::force_update_evaluation].

force_valid_distance_status - 3

force_valid_distance_status(identity)

Taking 0.0173 % of a block.

identity: <T as pallet_identity::Config>::IdtyIndex

See [Pallet::force_valid_distance_status].

AtomicSwap - 29

create_swap - 0

create_swap(target, hashed_proof, action, duration)

No weight available.

target: T::AccountId
hashed_proof: HashedProof
action: T::SwapAction
duration: BlockNumberFor<T>

See [Pallet::create_swap].

claim_swap - 1

claim_swap(proof, action)

No weight available.

proof: Vec<u8>
action: T::SwapAction

See [Pallet::claim_swap].

cancel_swap - 2

cancel_swap(target, hashed_proof)

No weight available.

target: T::AccountId
hashed_proof: HashedProof

See [Pallet::cancel_swap].

Multisig - 30

as_multi_threshold_1 - 0

as_multi_threshold_1(other_signatories, call)

Taking 0.0054 % of a block.

other_signatories: Vec<T::AccountId>
call: Box<<T as Config>::RuntimeCall>

See [Pallet::as_multi_threshold_1].

as_multi - 1

as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)

No weight available.

threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>>
call: Box<<T as Config>::RuntimeCall>
max_weight: Weight

See [Pallet::as_multi].

approve_as_multi - 2

approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)

No weight available.

threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>>
call_hash: [u8; 32]
max_weight: Weight

See [Pallet::approve_as_multi].

cancel_as_multi - 3

cancel_as_multi(threshold, other_signatories, timepoint, call_hash)

Taking 0.0103 % of a block.

threshold: u16
other_signatories: Vec<T::AccountId>
timepoint: Timepoint<BlockNumberFor<T>>
call_hash: [u8; 32]

See [Pallet::cancel_as_multi].

ProvideRandomness - 31

request - 0

request(randomness_type, salt)

Taking 0.0224 % of a block.

randomness_type: RandomnessType
salt: H256

See [Pallet::request].

Proxy - 32

proxy - 0

proxy(real, force_proxy_type, call)

Taking 0.0064 % of a block.

real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

See [Pallet::proxy].

add_proxy - 1

add_proxy(delegate, proxy_type, delay)

Taking 0.0098 % of a block.

delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: BlockNumberFor<T>

See [Pallet::add_proxy].

remove_proxy - 2

remove_proxy(delegate, proxy_type, delay)

Taking 0.0101 % of a block.

delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: BlockNumberFor<T>

See [Pallet::remove_proxy].

remove_proxies - 3

remove_proxies()

Taking 0.0098 % of a block.

See [Pallet::remove_proxies].

create_pure - 4

create_pure(proxy_type, delay, index)

Taking 0.0109 % of a block.

proxy_type: T::ProxyType
delay: BlockNumberFor<T>
index: u16

See [Pallet::create_pure].

kill_pure - 5

kill_pure(spawner, proxy_type, index, height, ext_index)

Taking 0.0094 % of a block.

spawner: AccountIdLookupOf<T>
proxy_type: T::ProxyType
index: u16
height: BlockNumberFor<T>
ext_index: u32

See [Pallet::kill_pure].

announce - 6

announce(real, call_hash)

Taking 0.0138 % of a block.

real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

See [Pallet::announce].

remove_announcement - 7

remove_announcement(real, call_hash)

Taking 0.0126 % of a block.

real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

See [Pallet::remove_announcement].

reject_announcement - 8

reject_announcement(delegate, call_hash)

Taking 0.0128 % of a block.

delegate: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

See [Pallet::reject_announcement].

proxy_announced - 9

proxy_announced(delegate, real, force_proxy_type, call)

Taking 0.0155 % of a block.

delegate: AccountIdLookupOf<T>
real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

See [Pallet::proxy_announced].

Utility - 33

batch - 0

batch(calls)

Taking 0.2737 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

See [Pallet::batch].

as_derivative - 1

as_derivative(index, call)

Taking 0.0049 % of a block.

index: u16
call: Box<<T as Config>::RuntimeCall>

See [Pallet::as_derivative].

batch_all - 2

batch_all(calls)

Taking 0.2944 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

See [Pallet::batch_all].

force_batch - 4

force_batch(calls)

Taking 0.3113 % of a block.

calls: Vec<<T as Config>::RuntimeCall>

See [Pallet::force_batch].

with_weight - 5

with_weight(call, weight)

No weight available.

call: Box<<T as Config>::RuntimeCall>
weight: Weight

See [Pallet::with_weight].

Treasury - 34

propose_spend - 0

propose_spend(value, beneficiary)

Taking 0.0119 % of a block.

value: BalanceOf<T, I>
beneficiary: AccountIdLookupOf<T>

See [Pallet::propose_spend].

spend_local - 3

spend_local(amount, beneficiary)

Taking 0.0035 % of a block.

amount: BalanceOf<T, I>
beneficiary: AccountIdLookupOf<T>

See [Pallet::spend_local].

remove_approval - 4

remove_approval(proposal_id)

Taking 0.0079 % of a block.

proposal_id: ProposalIndex

See [Pallet::remove_approval].

spend - 5

spend(asset_kind, amount, beneficiary, valid_from)

Taking 0.0035 % of a block.

asset_kind: Box<T::AssetKind>
amount: AssetBalanceOf<T, I>
beneficiary: Box<BeneficiaryLookupOf<T, I>>
valid_from: Option<BlockNumberFor<T>>

See [Pallet::spend].

payout - 6

payout(index)

Taking 0.0035 % of a block.

index: SpendIndex

See [Pallet::payout].

check_status - 7

check_status(index)

Taking 0.0035 % of a block.

index: SpendIndex

See [Pallet::check_status].

void_spend - 8

void_spend(index)

Taking 0.0035 % of a block.

index: SpendIndex

See [Pallet::void_spend].

Root calls

There are 18 root calls from 8 pallets.

System - 0

set_heap_pages - 1

set_heap_pages(pages)

Taking 0.0105 % of a block.

pages: u64

See [Pallet::set_heap_pages].

set_code - 2

set_code(code)

Taking 3.9604 % of a block.

code: Vec<u8>

See [Pallet::set_code].

set_code_without_checks - 3

set_code_without_checks(code)

No weight available.

code: Vec<u8>

See [Pallet::set_code_without_checks].

set_storage - 4

set_storage(items)

Taking 2.6599 % of a block.

items: Vec<KeyValue>

See [Pallet::set_storage].

kill_storage - 5

kill_storage(keys)

Taking 2.6329 % of a block.

keys: Vec<Key>

See [Pallet::kill_storage].

kill_prefix - 6

kill_prefix(prefix, subkeys)

Taking 3.0283 % of a block.

prefix: Key
subkeys: u32

See [Pallet::kill_prefix].

authorize_upgrade - 9

authorize_upgrade(code_hash)

Taking 0.0098 % of a block.

code_hash: T::Hash

See [Pallet::authorize_upgrade].

authorize_upgrade_without_checks - 10

authorize_upgrade_without_checks(code_hash)

No weight available.

code_hash: T::Hash

See [Pallet::authorize_upgrade_without_checks].

apply_authorized_upgrade - 11

apply_authorized_upgrade(code)

Taking 4.1178 % of a block.

code: Vec<u8>

See [Pallet::apply_authorized_upgrade].

Babe - 3

plan_config_change - 2

plan_config_change(config)

No weight available.

config: NextConfigDescriptor

See [Pallet::plan_config_change].

Balances - 6

force_transfer - 2

force_transfer(source, dest, value)

Taking 0.0242 % of a block.

source: AccountIdLookupOf<T>
dest: AccountIdLookupOf<T>
value: T::Balance

See [Pallet::force_transfer].

force_unreserve - 5

force_unreserve(who, amount)

Taking 0.0096 % of a block.

who: AccountIdLookupOf<T>
amount: T::Balance

See [Pallet::force_unreserve].

AuthorityMembers - 11

remove_member - 3

remove_member(member_id)

Taking 0.0366 % of a block.

member_id: T::MemberId

See [Pallet::remove_member].

Grandpa - 16

note_stalled - 2

note_stalled(delay, best_finalized_block_number)

No weight available.

delay: BlockNumberFor<T>
best_finalized_block_number: BlockNumberFor<T>

See [Pallet::note_stalled].

TechnicalCommittee - 22

set_members - 0

set_members(new_members, prime, old_count)

Taking 0.0868 % of a block.

new_members: Vec<T::AccountId>
prime: Option<T::AccountId>
old_count: MemberCount

See [Pallet::set_members].

disapprove_proposal - 5

disapprove_proposal(proposal_hash)

Taking 0.014 % of a block.

proposal_hash: T::Hash

See [Pallet::disapprove_proposal].

Identity - 25

prune_item_identities_names - 6

prune_item_identities_names(names)

Taking 2.6984 % of a block.

names: Vec<IdtyName>

See [Pallet::prune_item_identities_names].

Utility - 33

dispatch_as - 3

dispatch_as(as_origin, call)

Taking 0.0059 % of a block.

as_origin: Box<T::PalletsOrigin>
call: Box<<T as Config>::RuntimeCall>

See [Pallet::dispatch_as].

Disabled calls

There are 4 disabled calls from 2 pallets.

System - 0

remark - 0

remark(remark)

Taking 0.0955 % of a block.

remark: Vec<u8>

See [Pallet::remark].

remark_with_event - 7

remark_with_event(remark)

Taking 0.3514 % of a block.

remark: Vec<u8>

See [Pallet::remark_with_event].

Session - 15

set_keys - 0

set_keys(keys, proof)

Taking 0.0212 % of a block.

keys: T::Keys
proof: Vec<u8>

See [Pallet::set_keys].

purge_keys - 1

purge_keys()

Taking 0.0189 % of a block.

See [Pallet::purge_keys].