Struct gekko::runtime::kusama::extrinsics::staking::WithdrawUnbonded [−][src]
Expand description
Remove any unlocked chunks from the unlocking
queue from our management.
Documentation (provided by the runtime metadata)
Remove any unlocked chunks from the unlocking
queue from our management.
This essentially frees up that balance to be used by the stash account to do whatever it wants.
The dispatch origin for this call must be Signed by the controller, not the stash.
And, it can be only called when EraElectionStatus
is Closed
.
Emits Withdrawn
.
See also Call::unbond
.
- Could be dependent on the
origin
argument and how muchunlocking
chunks exist. It impliesconsolidate_unlocked
which loops overLedger.unlocking
, which is indirectly user-controlled. Seeunbond
for more detail. - Contains a limited number of reads, yet the size of which could be large based on
ledger
. - Writes are limited to the
origin
account key.
Complexity O(S) where S is the number of slashing spans to remove Update:
- Reads: EraElectionStatus, Ledger, Current Era, Locks, [Origin Account]
- Writes: [Origin Account], Locks, Ledger Kill:
- Reads: EraElectionStatus, Ledger, Current Era, Bonded, Slashing Spans, [Origin Account], Locks, BalanceOf stash
- Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators, [Origin Account], Locks, BalanceOf stash.
- Writes Each: SpanSlash * S NOTE: Weight annotation is the kill scenario, we refund otherwise.
Type Disclaimer
This library makes no assumptions about parameter types and must be specified manually as generic types. Each field contains a type description which can serve as a hint on what type is being expected, as provided by the runtime meatadata. See the common
module for common types which can be used.
Fields
num_slashing_spans: A
Type description: u32
Trait Implementations
impl<A: PartialEq> PartialEq<WithdrawUnbonded<A>> for WithdrawUnbonded<A> where
A: Encode + Decode,
impl<A: PartialEq> PartialEq<WithdrawUnbonded<A>> for WithdrawUnbonded<A> where
A: Encode + Decode,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<A> RefUnwindSafe for WithdrawUnbonded<A> where
A: RefUnwindSafe,
impl<A> Send for WithdrawUnbonded<A> where
A: Send,
impl<A> Sync for WithdrawUnbonded<A> where
A: Sync,
impl<A> Unpin for WithdrawUnbonded<A> where
A: Unpin,
impl<A> UnwindSafe for WithdrawUnbonded<A> where
A: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.