Struct gekko::runtime::kusama::extrinsics::crowdloan::Withdraw [−][src]
pub struct Withdraw<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub who: A,
pub index: B,
}
Expand description
Withdraw full balance of a specific contributor.
Documentation (provided by the runtime metadata)
Withdraw full balance of a specific contributor.
Origin must be signed, but can come from anyone.
The fund must be either in, or ready for, retirement. For a fund to be in retirement, then the retirement flag must be set. For a fund to be ready for retirement, then:
- it must not already be in retirement;
- the amount of raised funds must be bigger than the free balance of the account;
- and either:
- the block number must be at least
end
; or - the current lease period must be greater than the fund’s
last_period
.
- the block number must be at least
In this case, the fund’s retirement flag is set and its end
is reset to the current block
number.
who
: The account whose contribution should be withdrawn.index
: The parachain to whose crowdloan the contribution was made.
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
who: A
Type description: T::AccountId
index: B
Type description: Compact<ParaId>
Trait Implementations
Auto Trait Implementations
impl<A, B> RefUnwindSafe for Withdraw<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for Withdraw<A, B> where
A: UnwindSafe,
B: 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
.