Enum pallet_multisig::pallet::Call  [−][src]
pub enum Call<T: Config> { as_multi_threshold_1(Vec<T::AccountId>, Box<<T as Config>::Call>), as_multi(u16, Vec<T::AccountId>, Option<Timepoint<T::BlockNumber>>, OpaqueCall, bool, Weight), approve_as_multi(u16, Vec<T::AccountId>, Option<Timepoint<T::BlockNumber>>, [u8; 32], Weight), cancel_as_multi(u16, Vec<T::AccountId>, Timepoint<T::BlockNumber>, [u8; 32]), // some variants omitted }
Expand description
Contains one variant per dispatchable that can be called by an extrinsic.
Variants
Immediately dispatch a multi-signature call using a single approval from the caller.
The dispatch origin for this call must be Signed.
other_signatories: The accounts (other than the sender) who are part of the multi-signature, but do not participate in the approval process.call: The call to be executed.
Result is equivalent to the dispatched result.
O(Z + C) where Z is the length of the call and C its execution weight.
- DB Weight: None
 - Plus Call Weight
 
as_multi(u16, Vec<T::AccountId>, Option<Timepoint<T::BlockNumber>>, OpaqueCall, bool, 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.
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 beNone. If it is not the first approval, then it must beSome, with the timepoint (block number and transaction index) of the first approval transaction.call: The call to be executed.
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.
O(S + Z + Call).- Up to one balance-reserve or unreserve operation.
 - One passthrough operation, one insert, both 
O(S)whereSis the number of signatories.Sis capped byMaxSignatories, with weight being proportional. - One call encode & hash, both of complexity 
O(Z)whereZis tx-len. - One encode & hash, both of complexity 
O(S). - Up to one binary search and insert (
O(logS + S)). - I/O: 1 read 
O(S), up to 1 mutateO(S). Up to one remove. - One event.
 - The weight of the 
call. - Storage: inserts one item, value size bounded by 
MaxSignatories, with a deposit taken for its lifetime ofDepositBase + threshold * DepositFactor. 
- DB Weight:
- Reads: Multisig Storage, [Caller Account], Calls (if 
store_call) - Writes: Multisig Storage, [Caller Account], Calls (if 
store_call) 
 - Reads: Multisig Storage, [Caller Account], Calls (if 
 - Plus Call 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.
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 beNone. If it is not the first approval, then it must beSome, 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 as_multi instead.
O(S).- Up to one balance-reserve or unreserve operation.
 - One passthrough operation, one insert, both 
O(S)whereSis the number of signatories.Sis capped byMaxSignatories, with weight being proportional. - One encode & hash, both of complexity 
O(S). - Up to one binary search and insert (
O(logS + S)). - I/O: 1 read 
O(S), up to 1 mutateO(S). Up to one remove. - One event.
 - Storage: inserts one item, value size bounded by 
MaxSignatories, with a deposit taken for its lifetime ofDepositBase + threshold * DepositFactor. 
- DB Weight:
- Read: Multisig Storage, [Caller Account]
 - Write: Multisig Storage, [Caller Account]
 
 
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.
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.timepoint: The timepoint (block number and transaction index) of the first approval transaction for this dispatch.call_hash: The hash of the call to be executed.
O(S).- Up to one balance-reserve or unreserve operation.
 - One passthrough operation, one insert, both 
O(S)whereSis the number of signatories.Sis capped byMaxSignatories, with weight being proportional. - One encode & hash, both of complexity 
O(S). - One event.
 - I/O: 1 read 
O(S), one remove. - Storage: removes one item.
 
- DB Weight:
- Read: Multisig Storage, [Caller Account], Refund Account, Calls
 - Write: Multisig Storage, [Caller Account], Refund Account, Calls
 
 
Trait Implementations
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, 
fn using_encoded<R, F>(&self, f: F) -> R where
    F: FnOnce(&[u8]) -> R, Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usizeCalculates the encoded size. Read more
Return the function name of the Call.
Return all function names.
Return a DispatchInfo, containing relevant information of this dispatch. Read more
Dispatch this call but do not check the filter in origin.
Auto Trait Implementations
impl<T> RefUnwindSafe for Call<T> where
    T: RefUnwindSafe,
    <T as Config>::AccountId: RefUnwindSafe,
    <T as Config>::BlockNumber: RefUnwindSafe,
    <T as Config>::Call: RefUnwindSafe, impl<T> Unpin for Call<T> where
    T: Unpin,
    <T as Config>::AccountId: Unpin,
    <T as Config>::BlockNumber: Unpin, impl<T> UnwindSafe for Call<T> where
    T: UnwindSafe,
    <T as Config>::AccountId: UnwindSafe,
    <T as Config>::BlockNumber: UnwindSafe,
    <T as Config>::Call: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
    T: Any, 
impl<T> Downcast for T where
    T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> Vimpl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode, impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode, impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode, impl<T> EncodeLike<Arc<T>> for T where
    T: Encode, impl<T> EncodeLike<Rc<T>> for T where
    T: Encode, impl<T> MaybeDebug for T where
    T: Debug, impl<T> MaybeDebug for T where
    T: Debug,