Table of contents

  1. User calls
    1. Account - 1
      1. unlink_identity - 0
    2. Scheduler - 2
      1. schedule - 0
      2. cancel - 1
      3. schedule_named - 2
      4. cancel_named - 3
      5. schedule_after - 4
      6. schedule_named_after - 5
    3. Babe - 3
      1. report_equivocation - 0
    4. Balances - 6
      1. transfer_allow_death - 0
      2. set_balance_deprecated - 1
      3. transfer_keep_alive - 3
      4. transfer_all - 4
      5. upgrade_accounts - 6
      6. transfer - 7
      7. force_set_balance - 8
    5. OneshotAccount - 7
      1. create_oneshot_account - 0
      2. consume_oneshot_account - 1
      3. consume_oneshot_account_with_remaining - 2
    6. AuthorityMembers - 10
      1. go_offline - 0
      2. go_online - 1
      3. set_session_keys - 2
      4. remove_member_from_blacklist - 4
    7. Grandpa - 15
      1. report_equivocation - 0
    8. UpgradeOrigin - 21
      1. dispatch_as_root_unchecked_weight - 1
    9. Preimage - 22
      1. note_preimage - 0
      2. unnote_preimage - 1
      3. request_preimage - 2
      4. unrequest_preimage - 3
    10. TechnicalCommittee - 23
      1. execute - 1
      2. propose - 2
      3. vote - 3
      4. close - 6
    11. UniversalDividend - 30
      1. claim_uds - 0
      2. transfer_ud - 1
      3. transfer_ud_keep_alive - 2
    12. Identity - 41
      1. create_identity - 0
      2. confirm_identity - 1
      3. validate_identity - 2
      4. change_owner_key - 3
      5. revoke_identity - 4
      6. fix_sufficients - 7
      7. link_account - 8
    13. Membership - 42
      1. claim_membership - 1
      2. renew_membership - 2
    14. Cert - 43
      1. add_cert - 0
    15. Distance - 44
      1. request_distance_evaluation - 0
      2. update_evaluation - 1
      3. force_update_evaluation - 2
      4. force_set_distance_status - 3
    16. SmithMembership - 52
      1. request_membership - 0
      2. claim_membership - 1
      3. renew_membership - 2
      4. revoke_membership - 3
    17. SmithCert - 53
      1. add_cert - 0
    18. AtomicSwap - 60
      1. create_swap - 0
      2. claim_swap - 1
      3. cancel_swap - 2
    19. Multisig - 61
      1. as_multi_threshold_1 - 0
      2. as_multi - 1
      3. approve_as_multi - 2
      4. cancel_as_multi - 3
    20. ProvideRandomness - 62
      1. request - 0
    21. Proxy - 63
      1. proxy - 0
      2. add_proxy - 1
      3. remove_proxy - 2
      4. remove_proxies - 3
      5. create_pure - 4
      6. kill_pure - 5
      7. announce - 6
      8. remove_announcement - 7
      9. reject_announcement - 8
      10. proxy_announced - 9
    22. Utility - 64
      1. batch - 0
      2. as_derivative - 1
      3. batch_all - 2
      4. force_batch - 4
      5. with_weight - 5
    23. Treasury - 65
      1. propose_spend - 0
      2. spend - 3
      3. remove_approval - 4
  2. Root calls
    1. System - 0
      1. set_heap_pages - 1
      2. set_code - 2
      3. set_code_without_checks - 3
      4. set_storage - 4
      5. kill_storage - 5
      6. kill_prefix - 6
    2. Babe - 3
      1. plan_config_change - 2
    3. Balances - 6
      1. force_transfer - 2
      2. force_unreserve - 5
    4. AuthorityMembers - 10
      1. remove_member - 3
    5. Grandpa - 15
      1. note_stalled - 2
    6. TechnicalCommittee - 23
      1. set_members - 0
      2. disapprove_proposal - 5
    7. Identity - 41
      1. remove_identity - 5
      2. prune_item_identities_names - 6
    8. Cert - 43
      1. del_cert - 1
      2. remove_all_certs_received_by - 2
    9. SmithCert - 53
      1. del_cert - 1
      2. remove_all_certs_received_by - 2
    10. Utility - 64
      1. dispatch_as - 3
  3. Disabled calls
    1. System - 0
      1. remark - 0
      2. remark_with_event - 7
    2. Session - 14
      1. set_keys - 0
      2. purge_keys - 1
    3. Membership - 42
      1. request_membership - 0
      2. revoke_membership - 3

This page was automatically added from https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/docs/api/runtime-calls.md. Please check here if something is broken.

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 80 user calls from 23 pallets.

Account - 1🔗

unlink_identity()

unlink the identity associated with the account

Scheduler - 2🔗

schedule - 0🔗

schedule(when, maybe_periodic, priority, call)
when: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

Anonymously schedule a task.

cancel - 1🔗

cancel(when, index)
when: T::BlockNumber
index: u32

Cancel an anonymously scheduled task.

schedule_named - 2🔗

schedule_named(id, when, maybe_periodic, priority, call)
id: TaskName
when: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

Schedule a named task.

cancel_named - 3🔗

cancel_named(id)
id: TaskName

Cancel a named scheduled task.

schedule_after - 4🔗

schedule_after(after, maybe_periodic, priority, call)
after: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

Anonymously schedule a task after a delay.

schedule_named_after - 5🔗

schedule_named_after(id, after, maybe_periodic, priority, call)
id: TaskName
after: T::BlockNumber
maybe_periodic: Option<schedule::Period<T::BlockNumber>>
priority: schedule::Priority
call: Box<<T as Config>::RuntimeCall>

Schedule a named task after a delay.

Babe - 3🔗

report_equivocation - 0🔗

report_equivocation(equivocation_proof, key_owner_proof)
equivocation_proof: Box<EquivocationProof<T::Header>>
key_owner_proof: T::KeyOwnerProof

Report authority equivocation/misbehavior. This method will verify the equivocation proof and validate the given key ownership proof against the extracted offender. If both are valid, the offence will be reported.

Balances - 6🔗

transfer_allow_death - 0🔗

transfer_allow_death(dest, value)
dest: AccountIdLookupOf<T>
value: T::Balance

Transfer some liquid free balance to another account.

transfer_allow_death will set the FreeBalance of the sender and receiver. If the sender's account is below the existential deposit as a result of the transfer, the account will be reaped.

The dispatch origin for this call must be Signed by the transactor.

set_balance_deprecated - 1🔗

set_balance_deprecated(who, new_free, old_reserved)
who: AccountIdLookupOf<T>
new_free: T::Balance
old_reserved: T::Balance

Set the regular balance of a given account; it also takes a reserved balance but this must be the same as the account's current reserved balance.

The dispatch origin for this call is root.

WARNING: This call is DEPRECATED! Use force_set_balance instead.

transfer_keep_alive - 3🔗

transfer_keep_alive(dest, value)
dest: AccountIdLookupOf<T>
value: T::Balance

Same as the transfer_allow_death call, but with a check that the transfer will not kill the origin account.

99% of the time you want transfer_allow_death instead.

transfer_all - 4🔗

transfer_all(dest, keep_alive)
dest: AccountIdLookupOf<T>
keep_alive: bool

Transfer the entire transferable balance from the caller account.

NOTE: This function only attempts to transfer transferable balances. This means that any locked, reserved, or existential deposits (when keep_alive is true), will not be transferred by this function. To ensure that this function results in a killed account, you might need to prepare the account by removing any reference counters, storage deposits, etc...

The dispatch origin of this call must be Signed.

upgrade_accounts - 6🔗

upgrade_accounts(who)
who: Vec<T::AccountId>

Upgrade a specified account.

This will waive the transaction fee if at least all but 10% of the accounts needed to be upgraded. (We let some not have to be upgraded just in order to allow for the possibililty of churn).

transfer - 7🔗

transfer(dest, value)
dest: AccountIdLookupOf<T>
value: T::Balance

Alias for transfer_allow_death, provided only for name-wise compatibility.

WARNING: DEPRECATED! Will be released in approximately 3 months.

force_set_balance - 8🔗

force_set_balance(who, new_free)
who: AccountIdLookupOf<T>
new_free: T::Balance

Set the regular balance of a given account.

The dispatch origin for this call is root.

OneshotAccount - 7🔗

create_oneshot_account - 0🔗

create_oneshot_account(dest, value)
dest: <T::Lookup as StaticLookup>::Source
value: <T::Currency as Currency<T::AccountId>>::Balance

Create an account that can only be consumed once

Origin account is kept alive.

consume_oneshot_account - 1🔗

consume_oneshot_account(block_height, dest)
block_height: T::BlockNumber
dest: Account<<T::Lookup as StaticLookup>::Source>

Consume a oneshot account and transfer its balance to an account

consume_oneshot_account_with_remaining - 2🔗

consume_oneshot_account_with_remaining(block_height, dest, remaining_to, balance)
block_height: T::BlockNumber
dest: Account<<T::Lookup as StaticLookup>::Source>
remaining_to: Account<<T::Lookup as StaticLookup>::Source>
balance: <T::Currency as Currency<T::AccountId>>::Balance

Consume a oneshot account then transfer some amount to an account, and the remaining amount to another account.

AuthorityMembers - 10🔗

go_offline - 0🔗

go_offline()

ask to leave the set of validators two sessions after

go_online - 1🔗

go_online()

ask to join the set of validators two sessions after

set_session_keys - 2🔗

set_session_keys(keys)
keys: T::Keys

declare new session keys to replace current ones

remove_member_from_blacklist - 4🔗

remove_member_from_blacklist(member_id)
member_id: T::MemberId

remove an identity from the blacklist

Grandpa - 15🔗

report_equivocation - 0🔗

report_equivocation(equivocation_proof, key_owner_proof)
equivocation_proof: Box<EquivocationProof<T::Hash, T::BlockNumber>>
key_owner_proof: T::KeyOwnerProof

Report voter equivocation/misbehavior. This method will verify the equivocation proof and validate the given key ownership proof against the extracted offender. If both are valid, the offence will be reported.

UpgradeOrigin - 21🔗

dispatch_as_root_unchecked_weight - 1🔗

dispatch_as_root_unchecked_weight(call, weight)
call: Box<<T as Config>::Call>
weight: Weight

Dispatches a function call from root origin. This function does not check the weight of the call, and instead allows the caller to specify the weight of the call.

The weight of this call is defined by the caller.

Preimage - 22🔗

note_preimage - 0🔗

note_preimage(bytes)
bytes: Vec<u8>

Register a preimage on-chain.

If the preimage was previously requested, no fees or deposits are taken for providing the preimage. Otherwise, a deposit is taken proportional to the size of the preimage.

unnote_preimage - 1🔗

unnote_preimage(hash)
hash: T::Hash

Clear an unrequested preimage from the runtime storage.

If len is provided, then it will be a much cheaper operation.

request_preimage - 2🔗

request_preimage(hash)
hash: T::Hash

Request a preimage be uploaded to the chain without paying any fees or deposits.

If the preimage requests has already been provided on-chain, we unreserve any deposit a user may have paid, and take the control of the preimage out of their hands.

unrequest_preimage - 3🔗

unrequest_preimage(hash)
hash: T::Hash

Clear a previously made request for a preimage.

NOTE: THIS MUST NOT BE CALLED ON hash MORE TIMES THAN request_preimage.

TechnicalCommittee - 23🔗

execute - 1🔗

execute(proposal, length_bound)
proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

Dispatch a proposal from a member using the Member origin.

Origin must be a member of the collective.

Complexity:

propose - 2🔗

propose(threshold, proposal, length_bound)
threshold: MemberCount
proposal: Box<<T as Config<I>>::Proposal>
length_bound: u32

Add a new proposal to either be voted on or executed directly.

Requires the sender to be member.

threshold determines whether proposal is executed directly (threshold < 2) or put up for voting.

Complexity

vote - 3🔗

vote(proposal, index, approve)
proposal: T::Hash
index: ProposalIndex
approve: bool

Add an aye or nay vote for the sender to the given proposal.

Requires the sender to be a member.

Transaction fees will be waived if the member is voting on any particular proposal for the first time and the call is successful. Subsequent vote changes will charge a fee. Complexity

close - 6🔗

close(proposal_hash, index, proposal_weight_bound, length_bound)
proposal_hash: T::Hash
index: ProposalIndex
proposal_weight_bound: Weight
length_bound: u32

Close a vote that is either approved, disapproved or whose voting period has ended.

May be called by any signed account in order to finish voting and close the proposal.

If called before the end of the voting period it will only close the vote if it is has enough votes to be approved or disapproved.

If called after the end of the voting period abstentions are counted as rejections unless there is a prime member set and the prime member cast an approval.

If the close operation completes successfully with disapproval, the transaction fee will be waived. Otherwise execution of the approved operation will be charged to the caller.

Complexity

UniversalDividend - 30🔗

claim_uds - 0🔗

claim_uds()

Claim Universal Dividends

transfer_ud - 1🔗

transfer_ud(dest, value)
dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

Transfer some liquid free balance to another account, in milliUD.

transfer_ud_keep_alive - 2🔗

transfer_ud_keep_alive(dest, value)
dest: <T::Lookup as StaticLookup>::Source
value: BalanceOf<T>

Transfer some liquid free balance to another account, in milliUD.

Identity - 41🔗

create_identity - 0🔗

create_identity(owner_key)
owner_key: T::AccountId

Create an identity for an existing account

The origin must be allowed to create an identity.

confirm_identity - 1🔗

confirm_identity(idty_name)
idty_name: IdtyName

Confirm the creation of an identity and give it a name

The identity must have been created using create_identity before it can be confirmed.

validate_identity - 2🔗

validate_identity(idty_index)
idty_index: T::IdtyIndex

validate the owned identity (must meet the main wot requirements)

change_owner_key - 3🔗

change_owner_key(new_key, new_key_sig)
new_key: T::AccountId
new_key_sig: T::Signature

Change identity owner key.

The origin should be the old identity owner key.

revoke_identity - 4🔗

revoke_identity(idty_index, revocation_key, revocation_sig)
idty_index: T::IdtyIndex
revocation_key: T::AccountId
revocation_sig: T::Signature

Revoke an identity using a revocation signature

Any signed origin can execute this call.

fix_sufficients - 7🔗

fix_sufficients(owner_key, inc)
owner_key: T::AccountId
inc: bool

change sufficient ref count for given key

link_account(account_id, payload_sig)
account_id: T::AccountId
payload_sig: T::Signature

Link an account to an identity

Membership - 42🔗

claim_membership - 1🔗

claim_membership()

claim membership
a pending membership should exist
it must fullfill the requirements (certs, distance)
for main wot claim_membership is called automatically when validating identity
for smith wot, it means joining the authority members

renew_membership - 2🔗

renew_membership()

extend the validity period of an active membership

Cert - 43🔗

add_cert - 0🔗

add_cert(issuer, receiver)
issuer: T::IdtyIndex
receiver: T::IdtyIndex

Add a new certification or renew an existing one

The origin must be allow to certify.

Distance - 44🔗

request_distance_evaluation - 0🔗

request_distance_evaluation()

Request an identity to be evaluated

update_evaluation - 1🔗

update_evaluation(computation_result)
computation_result: ComputationResult

(Inherent) Push an evaluation result to the pool

force_update_evaluation - 2🔗

force_update_evaluation(evaluator, computation_result)
evaluator: <T as frame_system::Config>::AccountId
computation_result: ComputationResult

Push an evaluation result to the pool

force_set_distance_status - 3🔗

force_set_distance_status(identity, status)
identity: <T as pallet_identity::Config>::IdtyIndex
status: Option<(<T as frame_system::Config>::AccountId, DistanceStatus)>

Set the distance evaluation status of an identity

Removes the status if status is None.

SmithMembership - 52🔗

request_membership - 0🔗

request_membership()

submit a membership request (must have a declared identity) (only available for sub wot, automatic for main wot)

claim_membership - 1🔗

claim_membership()

claim membership
a pending membership should exist
it must fullfill the requirements (certs, distance)
for main wot claim_membership is called automatically when validating identity
for smith wot, it means joining the authority members

renew_membership - 2🔗

renew_membership()

extend the validity period of an active membership

revoke_membership - 3🔗

revoke_membership()

revoke an active membership (only available for sub wot, automatic for main wot)

SmithCert - 53🔗

add_cert - 0🔗

add_cert(issuer, receiver)
issuer: T::IdtyIndex
receiver: T::IdtyIndex

Add a new certification or renew an existing one

The origin must be allow to certify.

AtomicSwap - 60🔗

create_swap - 0🔗

create_swap(target, hashed_proof, action, duration)
target: T::AccountId
hashed_proof: HashedProof
action: T::SwapAction
duration: T::BlockNumber

Register a new atomic swap, declaring an intention to send funds from origin to target on the current blockchain. The target can claim the fund using the revealed proof. If the fund is not claimed after duration blocks, then the sender can cancel the swap.

The dispatch origin for this call must be Signed.

claim_swap - 1🔗

claim_swap(proof, action)
proof: Vec<u8>
action: T::SwapAction

Claim an atomic swap.

The dispatch origin for this call must be Signed.

cancel_swap - 2🔗

cancel_swap(target, hashed_proof)
target: T::AccountId
hashed_proof: HashedProof

Cancel an atomic swap. Only possible after the originally set duration has passed.

The dispatch origin for this call must be Signed.

Multisig - 61🔗

as_multi_threshold_1 - 0🔗

as_multi_threshold_1(other_signatories, call)
other_signatories: Vec<T::AccountId>
call: Box<<T as Config>::RuntimeCall>

Immediately dispatch a multi-signature call using a single approval from the caller.

The dispatch origin for this call must be Signed.

Result is equivalent to the dispatched result.

Complexity O(Z + C) where Z is the length of the call and C its execution weight.

as_multi - 1🔗

as_multi(threshold, other_signatories, maybe_timepoint, call, max_weight)
threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<T::BlockNumber>>
call: Box<<T as Config>::RuntimeCall>
max_weight: Weight

Register approval for a dispatch to be made from a deterministic composite account if approved by a total of threshold - 1 of other_signatories.

If there are enough, then dispatch the call.

Payment: DepositBase will be reserved if this is the first approval, plus threshold times DepositFactor. It is returned once this dispatch happens or is cancelled.

The dispatch origin for this call must be Signed.

NOTE: Unless this is the final approval, you will generally want to use approve_as_multi instead, since it only requires a hash of the call.

Result is equivalent to the dispatched result if threshold is exactly 1. Otherwise on success, result is Ok and the result from the interior call, if it was executed, may be found in the deposited MultisigExecuted event.

Complexity

approve_as_multi - 2🔗

approve_as_multi(threshold, other_signatories, maybe_timepoint, call_hash, max_weight)
threshold: u16
other_signatories: Vec<T::AccountId>
maybe_timepoint: Option<Timepoint<T::BlockNumber>>
call_hash: [u8; 32]
max_weight: Weight

Register approval for a dispatch to be made from a deterministic composite account if approved by a total of threshold - 1 of other_signatories.

Payment: DepositBase will be reserved if this is the first approval, plus threshold times DepositFactor. It is returned once this dispatch happens or is cancelled.

The dispatch origin for this call must be Signed.

NOTE: If this is the final approval, you will want to use as_multi instead.

Complexity

cancel_as_multi - 3🔗

cancel_as_multi(threshold, other_signatories, timepoint, call_hash)
threshold: u16
other_signatories: Vec<T::AccountId>
timepoint: Timepoint<T::BlockNumber>
call_hash: [u8; 32]

Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously for this operation will be unreserved on success.

The dispatch origin for this call must be Signed.

Complexity

ProvideRandomness - 62🔗

request - 0🔗

request(randomness_type, salt)
randomness_type: RandomnessType
salt: H256

Request a randomness

Proxy - 63🔗

proxy - 0🔗

proxy(real, force_proxy_type, call)
real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

Dispatch the given call from an account that the sender is authorised for through add_proxy.

The dispatch origin for this call must be Signed.

Parameters:

add_proxy - 1🔗

add_proxy(delegate, proxy_type, delay)
delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: T::BlockNumber

Register a proxy account for the sender that is able to make calls on its behalf.

The dispatch origin for this call must be Signed.

Parameters:

remove_proxy - 2🔗

remove_proxy(delegate, proxy_type, delay)
delegate: AccountIdLookupOf<T>
proxy_type: T::ProxyType
delay: T::BlockNumber

Unregister a proxy account for the sender.

The dispatch origin for this call must be Signed.

Parameters:

remove_proxies - 3🔗

remove_proxies()

Unregister all proxy accounts for the sender.

The dispatch origin for this call must be Signed.

WARNING: This may be called on accounts created by pure, however if done, then the unreserved fees will be inaccessible. All access to this account will be lost.

create_pure - 4🔗

create_pure(proxy_type, delay, index)
proxy_type: T::ProxyType
delay: T::BlockNumber
index: u16

Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and initialize it with a proxy of proxy_type for origin sender.

Requires a Signed origin.

Fails with Duplicate if this has already been called in this transaction, from the same sender, with the same parameters.

Fails if there are insufficient funds to pay for deposit.

kill_pure - 5🔗

kill_pure(spawner, proxy_type, index, height, ext_index)
spawner: AccountIdLookupOf<T>
proxy_type: T::ProxyType
index: u16
height: T::BlockNumber
ext_index: u32

Removes a previously spawned pure proxy.

WARNING: All access to this account will be lost. Any funds held in it will be inaccessible.

Requires a Signed origin, and the sender account must have been created by a call to pure with corresponding parameters.

Fails with NoPermission in case the caller is not a previously created pure account whose pure call has corresponding parameters.

announce - 6🔗

announce(real, call_hash)
real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Publish the hash of a proxy-call that will be made in the future.

This must be called some number of blocks before the corresponding proxy is attempted if the delay associated with the proxy relationship is greater than zero.

No more than MaxPending announcements may be made at any one time.

This will take a deposit of AnnouncementDepositFactor as well as AnnouncementDepositBase if there are no other pending announcements.

The dispatch origin for this call must be Signed and a proxy of real.

Parameters:

remove_announcement - 7🔗

remove_announcement(real, call_hash)
real: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Remove a given announcement.

May be called by a proxy account to remove a call they previously announced and return the deposit.

The dispatch origin for this call must be Signed.

Parameters:

reject_announcement - 8🔗

reject_announcement(delegate, call_hash)
delegate: AccountIdLookupOf<T>
call_hash: CallHashOf<T>

Remove the given announcement of a delegate.

May be called by a target (proxied) account to remove a call that one of their delegates (delegate) has announced they want to execute. The deposit is returned.

The dispatch origin for this call must be Signed.

Parameters:

proxy_announced - 9🔗

proxy_announced(delegate, real, force_proxy_type, call)
delegate: AccountIdLookupOf<T>
real: AccountIdLookupOf<T>
force_proxy_type: Option<T::ProxyType>
call: Box<<T as Config>::RuntimeCall>

Dispatch the given call from an account that the sender is authorized for through add_proxy.

Removes any corresponding announcement(s).

The dispatch origin for this call must be Signed.

Parameters:

Utility - 64🔗

batch - 0🔗

batch(calls)
calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls.

May be called from any origin except None.

If origin is root then the calls are dispatched without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

This will return Ok in all circumstances. To determine the success of the batch, an event is deposited. If a call failed and the batch was interrupted, then the BatchInterrupted event is deposited, along with the number of successful calls made and the error of the failed call. If all were successful, then the BatchCompleted event is deposited.

as_derivative - 1🔗

as_derivative(index, call)
index: u16
call: Box<<T as Config>::RuntimeCall>

Send a call through an indexed pseudonym of the sender.

Filter from origin are passed along. The call will be dispatched with an origin which use the same filter as the origin of this call.

NOTE: If you need to ensure that any account-based filtering is not honored (i.e. because you expect proxy to have been used prior in the call stack and you do not want the call restrictions to apply to any sub-accounts), then use as_multi_threshold_1 in the Multisig pallet instead.

NOTE: Prior to version *12, this was called as_limited_sub.

The dispatch origin for this call must be Signed.

batch_all - 2🔗

batch_all(calls)
calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls and atomically execute them. The whole transaction will rollback and fail if any of the calls failed.

May be called from any origin except None.

If origin is root then the calls are dispatched without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

force_batch - 4🔗

force_batch(calls)
calls: Vec<<T as Config>::RuntimeCall>

Send a batch of dispatch calls. Unlike batch, it allows errors and won't interrupt.

May be called from any origin except None.

If origin is root then the calls are dispatch without checking origin filter. (This includes bypassing frame_system::Config::BaseCallFilter).

Complexity

with_weight - 5🔗

with_weight(call, weight)
call: Box<<T as Config>::RuntimeCall>
weight: Weight

Dispatch a function call with a specified weight.

This function does not check the weight of the call, and instead allows the Root origin to specify the weight of the call.

The dispatch origin for this call must be Root.

Treasury - 65🔗

propose_spend - 0🔗

propose_spend(value, beneficiary)
value: BalanceOf<T, I>
beneficiary: AccountIdLookupOf<T>

Put forward a suggestion for spending. A deposit proportional to the value is reserved and slashed if the proposal is rejected. It is returned once the proposal is awarded.

Complexity

spend - 3🔗

spend(amount, beneficiary)
amount: BalanceOf<T, I>
beneficiary: AccountIdLookupOf<T>

Propose and approve a spend of treasury funds.

NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the beneficiary.

remove_approval - 4🔗

remove_approval(proposal_id)
proposal_id: ProposalIndex

Force a previously approved proposal to be removed from the approval queue. The original deposit will no longer be returned.

May only be called from T::RejectOrigin.

Complexity

Errors:

Root calls🔗

There are 20 root calls from 10 pallets.

System - 0🔗

set_heap_pages - 1🔗

set_heap_pages(pages)
pages: u64

Set the number of pages in the WebAssembly environment's heap.

set_code - 2🔗

set_code(code)
code: Vec<u8>

Set the new runtime code.

Complexity

set_code_without_checks - 3🔗

set_code_without_checks(code)
code: Vec<u8>

Set the new runtime code without doing any checks of the given code.

Complexity

set_storage - 4🔗

set_storage(items)
items: Vec<KeyValue>

Set some items of storage.

kill_storage - 5🔗

kill_storage(keys)
keys: Vec<Key>

Kill some items from storage.

kill_prefix - 6🔗

kill_prefix(prefix, subkeys)
prefix: Key
subkeys: u32

Kill all storage items with a key that starts with the given prefix.

NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function.

Babe - 3🔗

plan_config_change - 2🔗

plan_config_change(config)
config: NextConfigDescriptor

Plan an epoch config change. The epoch config change is recorded and will be enacted on the next call to enact_epoch_change. The config will be activated one epoch after. Multiple calls to this method will replace any existing planned config change that had not been enacted yet.

Balances - 6🔗

force_transfer - 2🔗

force_transfer(source, dest, value)
source: AccountIdLookupOf<T>
dest: AccountIdLookupOf<T>
value: T::Balance

Exactly as transfer_allow_death, except the origin must be root and the source account may be specified.

force_unreserve - 5🔗

force_unreserve(who, amount)
who: AccountIdLookupOf<T>
amount: T::Balance

Unreserve some balance from a user by force.

Can only be called by ROOT.

AuthorityMembers - 10🔗

remove_member - 3🔗

remove_member(member_id)
member_id: T::MemberId

remove an identity from the set of authorities

Grandpa - 15🔗

note_stalled - 2🔗

note_stalled(delay, best_finalized_block_number)
delay: T::BlockNumber
best_finalized_block_number: T::BlockNumber

Note that the current authority set of the GRANDPA finality gadget has stalled.

This will trigger a forced authority set change at the beginning of the next session, to be enacted delay blocks after that. The delay should be high enough to safely assume that the block signalling the forced change will not be re-orged e.g. 1000 blocks. The block production rate (which may be slowed down because of finality lagging) should be taken into account when choosing the delay. The GRANDPA voters based on the new authority will start voting on top of best_finalized_block_number for new finalized blocks. best_finalized_block_number should be the highest of the latest finalized block of all validators of the new authority set.

Only callable by root.

TechnicalCommittee - 23🔗

set_members - 0🔗

set_members(new_members, prime, old_count)
new_members: Vec<T::AccountId>
prime: Option<T::AccountId>
old_count: MemberCount

Set the collective's membership.

The dispatch of this call must be SetMembersOrigin.

NOTE: Does not enforce the expected MaxMembers limit on the amount of members, but the weight estimations rely on it to estimate dispatchable weight.

WARNING:

The pallet-collective can also be managed by logic outside of the pallet through the implementation of the trait [ChangeMembers]. Any call to set_members must be careful that the member set doesn't get out of sync with other logic managing the member set.

Complexity:

disapprove_proposal - 5🔗

disapprove_proposal(proposal_hash)
proposal_hash: T::Hash

Disapprove a proposal, close, and remove it from the system, regardless of its current state.

Must be called by the Root origin.

Parameters:

Complexity O(P) where P is the number of max proposals

Identity - 41🔗

remove_identity - 5🔗

remove_identity(idty_index, idty_name, reason)
idty_index: T::IdtyIndex
idty_name: Option<IdtyName>
reason: IdtyRemovalReason<T::IdtyRemovalOtherReason>

remove an identity from storage

prune_item_identities_names - 6🔗

prune_item_identities_names(names)
names: Vec<IdtyName>

remove identity names from storage

Cert - 43🔗

del_cert - 1🔗

del_cert(issuer, receiver)
issuer: T::IdtyIndex
receiver: T::IdtyIndex

remove a certification (only root)

remove_all_certs_received_by - 2🔗

remove_all_certs_received_by(idty_index)
idty_index: T::IdtyIndex

remove all certifications received by an identity (only root)

SmithCert - 53🔗

del_cert - 1🔗

del_cert(issuer, receiver)
issuer: T::IdtyIndex
receiver: T::IdtyIndex

remove a certification (only root)

remove_all_certs_received_by - 2🔗

remove_all_certs_received_by(idty_index)
idty_index: T::IdtyIndex

remove all certifications received by an identity (only root)

Utility - 64🔗

dispatch_as - 3🔗

dispatch_as(as_origin, call)
as_origin: Box<T::PalletsOrigin>
call: Box<<T as Config>::RuntimeCall>

Dispatches a function call with a provided origin.

The dispatch origin for this call must be Root.

Complexity

Disabled calls🔗

There are 6 disabled calls from 3 pallets.

System - 0🔗

remark - 0🔗

remark(remark)
remark: Vec<u8>

Make some on-chain remark.

Complexity

remark_with_event - 7🔗

remark_with_event(remark)
remark: Vec<u8>

Make some on-chain remark and emit event.

Session - 14🔗

set_keys - 0🔗

set_keys(keys, proof)
keys: T::Keys
proof: Vec<u8>

Sets the session key(s) of the function caller to keys. Allows an account to set its session key prior to becoming a validator. This doesn't take effect until the next session.

The dispatch origin of this function must be signed.

Complexity

purge_keys - 1🔗

purge_keys()

Removes any session key(s) of the function caller.

This doesn't take effect until the next session.

The dispatch origin of this function must be Signed and the account must be either be convertible to a validator ID using the chain's typical addressing system (this usually means being a controller account) or directly convertible into a validator ID (which usually means being a stash account).

Complexity

Membership - 42🔗

request_membership - 0🔗

request_membership()

submit a membership request (must have a declared identity) (only available for sub wot, automatic for main wot)

revoke_membership - 3🔗

revoke_membership()

revoke an active membership (only available for sub wot, automatic for main wot)