Struct gekko::runtime::kusama::extrinsics::council::Close [−][src]
pub struct Close<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode, {
pub proposal_hash: A,
pub index: B,
pub proposal_weight_bound: C,
pub length_bound: D,
}
Expand description
Close a vote that is either approved, disapproved or whose voting period has ended.
Documentation (provided by the runtime metadata)
Close a vote that is either approved, disapproved or whose voting period has ended.
May be called by any signed account in order to finish voting and close the proposal.
If called before the end of the voting period it will only close the vote if it is has enough votes to be approved or disapproved.
If called after the end of the voting period abstentions are counted as rejections unless there is a prime member set and the prime member cast an approval.
If the close operation completes successfully with disapproval, the transaction fee will be waived. Otherwise execution of the approved operation will be charged to the caller.
proposal_weight_bound
: The maximum amount of weight consumed by executing the closed proposal.length_bound
: The upper bound for the length of the proposal in storage. Checked viastorage::read
so it issize_of::<u32>() == 4
larger than the pure length.
Weight
O(B + M + P1 + P2)
where:B
isproposal
size in bytes (length-fee-bounded)M
is members-count (code- and governance-bounded)P1
is the complexity ofproposal
preimage.P2
is proposal-count (code-bounded)
- DB:
- 2 storage reads (
Members
: codecO(M)
,Prime
: codecO(1)
) - 3 mutations (
Voting
: codecO(M)
,ProposalOf
: codecO(B)
,Proposals
: codecO(P2)
) - any mutations done while executing
proposal
(P1
) - up to 3 events
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
index: B
Type description: Compact<ProposalIndex>
proposal_weight_bound: C
Type description: Compact<Weight>
length_bound: D
Type description: Compact<u32>
Trait Implementations
impl<A: Eq, B: Eq, C: Eq, D: Eq> Eq for Close<A, B, C, D> where
A: Encode + Decode,
B: Encode + Decode,
C: Encode + Decode,
D: Encode + Decode,
Auto Trait Implementations
impl<A, B, C, D> RefUnwindSafe for Close<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, B, C, D> UnwindSafe for Close<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: 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
.