Struct gekko::runtime::kusama::extrinsics::democracy::ReapPreimage [−][src]
pub struct ReapPreimage<A, B> where
A: Encode + Decode,
B: Encode + Decode, {
pub proposal_hash: A,
pub proposal_len_upper_bound: B,
}
Expand description
Remove an expired proposal preimage and collect the deposit.
Documentation (provided by the runtime metadata)
Remove an expired proposal preimage and collect the deposit.
The dispatch origin of this call must be Signed.
proposal_hash
: The preimage hash of a proposal.proposal_length_upper_bound
: an upper bound on length of the proposal. Extrinsic is weighted according to this value with no refund.
This will only work after VotingPeriod
blocks from the time that the preimage was
noted, if it’s the same account doing it. If it’s a different account, then it’ll only
work an additional EnactmentPeriod
later.
Emits PreimageReaped
.
Weight: O(D)
where D is length of proposal.
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
proposal_hash: A
Type description: T::Hash
proposal_len_upper_bound: B
Type description: Compact<u32>
Trait Implementations
impl<A: PartialEq, B: PartialEq> PartialEq<ReapPreimage<A, B>> for ReapPreimage<A, B> where
A: Encode + Decode,
B: Encode + Decode,
impl<A: PartialEq, B: PartialEq> PartialEq<ReapPreimage<A, B>> for ReapPreimage<A, B> where
A: Encode + Decode,
B: Encode + Decode,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<A, B> StructuralPartialEq for ReapPreimage<A, B> where
A: Encode + Decode,
B: Encode + Decode,
Auto Trait Implementations
impl<A, B> RefUnwindSafe for ReapPreimage<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for ReapPreimage<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for ReapPreimage<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for ReapPreimage<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for ReapPreimage<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
.