pub fn approve_as_multi<T: Config>( threshold: u16, other_signatories: Vec<T::AccountId>, maybe_timepoint: Option<Timepoint<BlockNumberFor<T>>>, 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
DepositBase will be reserved if this is the first approval, plus
DepositFactor. It is returned once this dispatch happens or
The dispatch origin for this call must be Signed.
threshold: The total number of approvals for this dispatch before it is executed.
other_signatories: The accounts (other than the sender) who can approve this dispatch. May not be empty.
maybe_timepoint: If this is the first approval, then this must be
None. If it is not the first approval, then it must be
Some, with the timepoint (block number and transaction index) of the first approval transaction.
call_hash: The hash of the call to be executed.
NOTE: If this is the final approval, you will want to use
- Up to one balance-reserve or unreserve operation.
- One passthrough operation, one insert, both
Sis the number of signatories.
Sis capped by
MaxSignatories, with weight being proportional.
- One encode & hash, both of complexity
- Up to one binary search and insert (
O(logS + S)).
- I/O: 1 read
O(S), up to 1 mutate
O(S). Up to one remove.
- One event.
- Storage: inserts one item, value size bounded by
MaxSignatories, with a deposit taken for its lifetime of
DepositBase + threshold * DepositFactor.
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in