|
|
|
@@ -903,33 +903,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
|
|
* - `P2` is proposal-count (code-bounded)
|
|
|
|
|
**/
|
|
|
|
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
|
|
|
/**
|
|
|
|
|
* 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 via
|
|
|
|
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
|
|
|
*
|
|
|
|
|
* ## Complexity
|
|
|
|
|
* - `O(B + M + P1 + P2)` where:
|
|
|
|
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
|
|
|
* - `M` is members-count (code- and governance-bounded)
|
|
|
|
|
* - `P1` is the complexity of `proposal` preimage.
|
|
|
|
|
* - `P2` is proposal-count (code-bounded)
|
|
|
|
|
**/
|
|
|
|
|
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
|
|
|
/**
|
|
|
|
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
|
|
|
* state.
|
|
|
|
@@ -3411,33 +3384,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
|
|
* - `P2` is proposal-count (code-bounded)
|
|
|
|
|
**/
|
|
|
|
|
close: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, SpWeightsWeightV2Weight, Compact<u32>]>;
|
|
|
|
|
/**
|
|
|
|
|
* 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 via
|
|
|
|
|
* `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
|
|
|
|
|
*
|
|
|
|
|
* ## Complexity
|
|
|
|
|
* - `O(B + M + P1 + P2)` where:
|
|
|
|
|
* - `B` is `proposal` size in bytes (length-fee-bounded)
|
|
|
|
|
* - `M` is members-count (code- and governance-bounded)
|
|
|
|
|
* - `P1` is the complexity of `proposal` preimage.
|
|
|
|
|
* - `P2` is proposal-count (code-bounded)
|
|
|
|
|
**/
|
|
|
|
|
closeOldWeight: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, proposalWeightBound: Compact<u64> | AnyNumber | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, Compact<u64>, Compact<u32>]>;
|
|
|
|
|
/**
|
|
|
|
|
* Disapprove a proposal, close, and remove it from the system, regardless of its current
|
|
|
|
|
* state.
|
|
|
|
|