@polkadot/api-augment 8.8.1 → 8.8.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/substrate/tx.d.ts CHANGED
@@ -3,9 +3,292 @@ import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
6
+ import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/submittable' {
8
8
  interface AugmentedSubmittables<ApiType extends ApiTypes> {
9
+ alliance: {
10
+ /**
11
+ * Add accounts or websites to the list of unscrupulous items.
12
+ **/
13
+ addUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | {
14
+ AccountId: any;
15
+ } | {
16
+ Website: any;
17
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
18
+ /**
19
+ * Make an announcement of a new IPFS CID about alliance issues.
20
+ **/
21
+ announce: AugmentedSubmittable<(announcement: PalletAllianceCid | {
22
+ version?: any;
23
+ codec?: any;
24
+ hash_?: any;
25
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
26
+ /**
27
+ * Close a vote that is either approved, disapproved, or whose voting period has ended.
28
+ *
29
+ * Requires the sender to be a founder or fellow.
30
+ **/
31
+ close: 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>]>;
32
+ /**
33
+ * Elevate an ally to fellow.
34
+ **/
35
+ elevateAlly: AugmentedSubmittable<(ally: MultiAddress | {
36
+ Id: any;
37
+ } | {
38
+ Index: any;
39
+ } | {
40
+ Raw: any;
41
+ } | {
42
+ Address32: any;
43
+ } | {
44
+ Address20: any;
45
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
46
+ /**
47
+ * Initialize the founders, fellows, and allies.
48
+ *
49
+ * This should only be called once, and must be called by the Root origin.
50
+ **/
51
+ initMembers: AugmentedSubmittable<(founders: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], fellows: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], allies: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Vec<AccountId32>, Vec<AccountId32>]>;
52
+ /**
53
+ * Submit oneself for candidacy. A fixed deposit is reserved.
54
+ **/
55
+ joinAlliance: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
56
+ /**
57
+ * Kick a member from the alliance and slash its deposit.
58
+ **/
59
+ kickMember: AugmentedSubmittable<(who: MultiAddress | {
60
+ Id: any;
61
+ } | {
62
+ Index: any;
63
+ } | {
64
+ Raw: any;
65
+ } | {
66
+ Address32: any;
67
+ } | {
68
+ Address20: any;
69
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
70
+ /**
71
+ * A founder or fellow can nominate someone to join the alliance as an Ally.
72
+ * There is no deposit required to the nominator or nominee.
73
+ **/
74
+ nominateAlly: AugmentedSubmittable<(who: MultiAddress | {
75
+ Id: any;
76
+ } | {
77
+ Index: any;
78
+ } | {
79
+ Raw: any;
80
+ } | {
81
+ Address32: any;
82
+ } | {
83
+ Address20: any;
84
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
85
+ /**
86
+ * Add a new proposal to be voted on.
87
+ *
88
+ * Requires the sender to be a founder or fellow.
89
+ **/
90
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
91
+ /**
92
+ * Remove an announcement.
93
+ **/
94
+ removeAnnouncement: AugmentedSubmittable<(announcement: PalletAllianceCid | {
95
+ version?: any;
96
+ codec?: any;
97
+ hash_?: any;
98
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
99
+ /**
100
+ * Deem an item no longer unscrupulous.
101
+ **/
102
+ removeUnscrupulousItems: AugmentedSubmittable<(items: Vec<PalletAllianceUnscrupulousItem> | (PalletAllianceUnscrupulousItem | {
103
+ AccountId: any;
104
+ } | {
105
+ Website: any;
106
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<PalletAllianceUnscrupulousItem>]>;
107
+ /**
108
+ * As a member, retire from the alliance and unreserve the deposit.
109
+ **/
110
+ retire: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
111
+ /**
112
+ * Set a new IPFS CID to the alliance rule.
113
+ **/
114
+ setRule: AugmentedSubmittable<(rule: PalletAllianceCid | {
115
+ version?: any;
116
+ codec?: any;
117
+ hash_?: any;
118
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletAllianceCid]>;
119
+ /**
120
+ * Veto a proposal about `set_rule` and `elevate_ally`, close, and remove it from the
121
+ * system, regardless of its current state.
122
+ *
123
+ * Must be called by a founder.
124
+ **/
125
+ veto: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
126
+ /**
127
+ * Add an aye or nay vote for the sender to the given proposal.
128
+ *
129
+ * Requires the sender to be a founder or fellow.
130
+ **/
131
+ vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
132
+ /**
133
+ * Generic tx
134
+ **/
135
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
136
+ };
137
+ allianceMotion: {
138
+ /**
139
+ * Close a vote that is either approved, disapproved or whose voting period has ended.
140
+ *
141
+ * May be called by any signed account in order to finish voting and close the proposal.
142
+ *
143
+ * If called before the end of the voting period it will only close the vote if it is
144
+ * has enough votes to be approved or disapproved.
145
+ *
146
+ * If called after the end of the voting period abstentions are counted as rejections
147
+ * unless there is a prime member set and the prime member cast an approval.
148
+ *
149
+ * If the close operation completes successfully with disapproval, the transaction fee will
150
+ * be waived. Otherwise execution of the approved operation will be charged to the caller.
151
+ *
152
+ * + `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed
153
+ * proposal.
154
+ * + `length_bound`: The upper bound for the length of the proposal in storage. Checked via
155
+ * `storage::read` so it is `size_of::<u32>() == 4` larger than the pure length.
156
+ *
157
+ * # <weight>
158
+ * ## Weight
159
+ * - `O(B + M + P1 + P2)` where:
160
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
161
+ * - `M` is members-count (code- and governance-bounded)
162
+ * - `P1` is the complexity of `proposal` preimage.
163
+ * - `P2` is proposal-count (code-bounded)
164
+ * - DB:
165
+ * - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)
166
+ * - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec
167
+ * `O(P2)`)
168
+ * - any mutations done while executing `proposal` (`P1`)
169
+ * - up to 3 events
170
+ * # </weight>
171
+ **/
172
+ close: 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>]>;
173
+ /**
174
+ * Disapprove a proposal, close, and remove it from the system, regardless of its current
175
+ * state.
176
+ *
177
+ * Must be called by the Root origin.
178
+ *
179
+ * Parameters:
180
+ * * `proposal_hash`: The hash of the proposal that should be disapproved.
181
+ *
182
+ * # <weight>
183
+ * Complexity: O(P) where P is the number of max proposals
184
+ * DB Weight:
185
+ * * Reads: Proposals
186
+ * * Writes: Voting, Proposals, ProposalOf
187
+ * # </weight>
188
+ **/
189
+ disapproveProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
190
+ /**
191
+ * Dispatch a proposal from a member using the `Member` origin.
192
+ *
193
+ * Origin must be a member of the collective.
194
+ *
195
+ * # <weight>
196
+ * ## Weight
197
+ * - `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching
198
+ * `proposal`
199
+ * - DB: 1 read (codec `O(M)`) + DB access of `proposal`
200
+ * - 1 event
201
+ * # </weight>
202
+ **/
203
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
204
+ /**
205
+ * Add a new proposal to either be voted on or executed directly.
206
+ *
207
+ * Requires the sender to be member.
208
+ *
209
+ * `threshold` determines whether `proposal` is executed directly (`threshold < 2`)
210
+ * or put up for voting.
211
+ *
212
+ * # <weight>
213
+ * ## Weight
214
+ * - `O(B + M + P1)` or `O(B + M + P2)` where:
215
+ * - `B` is `proposal` size in bytes (length-fee-bounded)
216
+ * - `M` is members-count (code- and governance-bounded)
217
+ * - branching is influenced by `threshold` where:
218
+ * - `P1` is proposal execution complexity (`threshold < 2`)
219
+ * - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
220
+ * - DB:
221
+ * - 1 storage read `is_member` (codec `O(M)`)
222
+ * - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)
223
+ * - DB accesses influenced by `threshold`:
224
+ * - EITHER storage accesses done by `proposal` (`threshold < 2`)
225
+ * - OR proposal insertion (`threshold <= 2`)
226
+ * - 1 storage mutation `Proposals` (codec `O(P2)`)
227
+ * - 1 storage mutation `ProposalCount` (codec `O(1)`)
228
+ * - 1 storage write `ProposalOf` (codec `O(B)`)
229
+ * - 1 storage write `Voting` (codec `O(M)`)
230
+ * - 1 event
231
+ * # </weight>
232
+ **/
233
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
234
+ /**
235
+ * Set the collective's membership.
236
+ *
237
+ * - `new_members`: The new member list. Be nice to the chain and provide it sorted.
238
+ * - `prime`: The prime member whose vote sets the default.
239
+ * - `old_count`: The upper bound for the previous number of members in storage. Used for
240
+ * weight estimation.
241
+ *
242
+ * Requires root origin.
243
+ *
244
+ * NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
245
+ * the weight estimations rely on it to estimate dispatchable weight.
246
+ *
247
+ * # WARNING:
248
+ *
249
+ * The `pallet-collective` can also be managed by logic outside of the pallet through the
250
+ * implementation of the trait [`ChangeMembers`].
251
+ * Any call to `set_members` must be careful that the member set doesn't get out of sync
252
+ * with other logic managing the member set.
253
+ *
254
+ * # <weight>
255
+ * ## Weight
256
+ * - `O(MP + N)` where:
257
+ * - `M` old-members-count (code- and governance-bounded)
258
+ * - `N` new-members-count (code- and governance-bounded)
259
+ * - `P` proposals-count (code-bounded)
260
+ * - DB:
261
+ * - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the
262
+ * members
263
+ * - 1 storage read (codec `O(P)`) for reading the proposals
264
+ * - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal
265
+ * - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one
266
+ * # </weight>
267
+ **/
268
+ setMembers: AugmentedSubmittable<(newMembers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], prime: Option<AccountId32> | null | object | string | Uint8Array, oldCount: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Option<AccountId32>, u32]>;
269
+ /**
270
+ * Add an aye or nay vote for the sender to the given proposal.
271
+ *
272
+ * Requires the sender to be a member.
273
+ *
274
+ * Transaction fees will be waived if the member is voting on any particular proposal
275
+ * for the first time and the call is successful. Subsequent vote changes will charge a
276
+ * fee.
277
+ * # <weight>
278
+ * ## Weight
279
+ * - `O(M)` where `M` is members-count (code- and governance-bounded)
280
+ * - DB:
281
+ * - 1 storage read `Members` (codec `O(M)`)
282
+ * - 1 storage mutation `Voting` (codec `O(M)`)
283
+ * - 1 event
284
+ * # </weight>
285
+ **/
286
+ vote: AugmentedSubmittable<(proposal: H256 | string | Uint8Array, index: Compact<u32> | AnyNumber | Uint8Array, approve: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>, bool]>;
287
+ /**
288
+ * Generic tx
289
+ **/
290
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
291
+ };
9
292
  assets: {
10
293
  /**
11
294
  * Approve an amount of asset for transfer by a delegated third-party account.
@@ -1422,7 +1705,7 @@ declare module '@polkadot/api-base/types/submittable' {
1422
1705
  * Weight: `O(R)` where R is the number of polls the voter delegating to has
1423
1706
  * voted on. Weight is initially charged as if maximum votes, but is refunded later.
1424
1707
  **/
1425
- delegate: AugmentedSubmittable<(clazz: u8 | AnyNumber | Uint8Array, to: AccountId32 | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8, AccountId32, PalletConvictionVotingConviction, u128]>;
1708
+ delegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, to: AccountId32 | string | Uint8Array, conviction: PalletConvictionVotingConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, AccountId32, PalletConvictionVotingConviction, u128]>;
1426
1709
  /**
1427
1710
  * Remove a vote for a poll.
1428
1711
  *
@@ -1441,7 +1724,7 @@ declare module '@polkadot/api-base/types/submittable' {
1441
1724
  * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
1442
1725
  * Weight is calculated for the maximum number of vote.
1443
1726
  **/
1444
- removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, clazz: u8 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u8, u32]>;
1727
+ removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, clazz: u16 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16, u32]>;
1445
1728
  /**
1446
1729
  * Remove a vote for a poll.
1447
1730
  *
@@ -1473,7 +1756,7 @@ declare module '@polkadot/api-base/types/submittable' {
1473
1756
  * Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
1474
1757
  * Weight is calculated for the maximum number of vote.
1475
1758
  **/
1476
- removeVote: AugmentedSubmittable<(clazz: Option<u8> | null | object | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u8>, u32]>;
1759
+ removeVote: AugmentedSubmittable<(clazz: Option<u16> | null | object | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u16>, u32]>;
1477
1760
  /**
1478
1761
  * Undelegate the voting power of the sending account for a particular class of polls.
1479
1762
  *
@@ -1490,7 +1773,7 @@ declare module '@polkadot/api-base/types/submittable' {
1490
1773
  * Weight: `O(R)` where R is the number of polls the voter delegating to has
1491
1774
  * voted on. Weight is initially charged as if maximum votes, but is refunded later.
1492
1775
  **/
1493
- undelegate: AugmentedSubmittable<(clazz: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
1776
+ undelegate: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
1494
1777
  /**
1495
1778
  * Remove the lock caused prior voting/delegating which has expired within a particluar
1496
1779
  * class.
@@ -1502,7 +1785,7 @@ declare module '@polkadot/api-base/types/submittable' {
1502
1785
  *
1503
1786
  * Weight: `O(R)` with R number of vote of target.
1504
1787
  **/
1505
- unlock: AugmentedSubmittable<(clazz: u8 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8, AccountId32]>;
1788
+ unlock: AugmentedSubmittable<(clazz: u16 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, AccountId32]>;
1506
1789
  /**
1507
1790
  * Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
1508
1791
  * otherwise it is a vote to keep the status quo.
@@ -2272,12 +2555,17 @@ declare module '@polkadot/api-base/types/submittable' {
2272
2555
  };
2273
2556
  grandpa: {
2274
2557
  /**
2275
- * Note that the current authority set of the GRANDPA finality gadget has
2276
- * stalled. This will trigger a forced authority set change at the beginning
2277
- * of the next session, to be enacted `delay` blocks after that. The delay
2278
- * should be high enough to safely assume that the block signalling the
2279
- * forced change will not be re-orged (e.g. 1000 blocks). The GRANDPA voters
2280
- * will start the new authority set using the given finalized block as base.
2558
+ * Note that the current authority set of the GRANDPA finality gadget has stalled.
2559
+ *
2560
+ * This will trigger a forced authority set change at the beginning of the next session, to
2561
+ * be enacted `delay` blocks after that. The `delay` should be high enough to safely assume
2562
+ * that the block signalling the forced change will not be re-orged e.g. 1000 blocks.
2563
+ * The block production rate (which may be slowed down because of finality lagging) should
2564
+ * be taken into account when choosing the `delay`. The GRANDPA voters based on the new
2565
+ * authority will start voting on top of `best_finalized_block_number` for new finalized
2566
+ * blocks. `best_finalized_block_number` should be the highest of the latest finalized
2567
+ * block of all validators of the new authority set.
2568
+ *
2281
2569
  * Only callable by root.
2282
2570
  **/
2283
2571
  noteStalled: AugmentedSubmittable<(delay: u32 | AnyNumber | Uint8Array, bestFinalizedBlockNumber: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
@@ -3040,6 +3328,16 @@ declare module '@polkadot/api-base/types/submittable' {
3040
3328
  } | {
3041
3329
  Rewards: any;
3042
3330
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
3331
+ /**
3332
+ * Chill on behalf of the pool.
3333
+ *
3334
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
3335
+ * root role, same as [`Pallet::nominate`].
3336
+ *
3337
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
3338
+ * account.
3339
+ **/
3340
+ chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3043
3341
  /**
3044
3342
  * A bonded member can use this to claim their payout based on the rewards that the pool
3045
3343
  * has accumulated since their last claimed payout (OR since joining if this is there first
@@ -3082,6 +3380,15 @@ declare module '@polkadot/api-base/types/submittable' {
3082
3380
  * * Only a pool with [`PoolState::Open`] can be joined
3083
3381
  **/
3084
3382
  join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
3383
+ /**
3384
+ * Nominate on behalf of the pool.
3385
+ *
3386
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
3387
+ * root role.
3388
+ *
3389
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
3390
+ * account.
3391
+ **/
3085
3392
  nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
3086
3393
  /**
3087
3394
  * Call `withdraw_unbonded` for the pools account. This call can be made by any account.
@@ -3135,12 +3442,24 @@ declare module '@polkadot/api-base/types/submittable' {
3135
3442
  } | {
3136
3443
  Remove: any;
3137
3444
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
3445
+ /**
3446
+ * Set a new metadata for the pool.
3447
+ *
3448
+ * The dispatch origin of this call must be signed by the state toggler, or the root role
3449
+ * of the pool.
3450
+ **/
3138
3451
  setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
3452
+ /**
3453
+ * Set a new state for the pool.
3454
+ *
3455
+ * The dispatch origin of this call must be signed by the state toggler, or the root role
3456
+ * of the pool.
3457
+ **/
3139
3458
  setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
3140
3459
  /**
3141
3460
  * Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
3142
3461
  * implicitly collects the rewards one last time, since not doing so would mean some
3143
- * rewards would go forfeited.
3462
+ * rewards would be forfeited.
3144
3463
  *
3145
3464
  * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
3146
3465
  * account).
@@ -3451,6 +3770,168 @@ declare module '@polkadot/api-base/types/submittable' {
3451
3770
  **/
3452
3771
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
3453
3772
  };
3773
+ rankedCollective: {
3774
+ /**
3775
+ * Introduce a new member.
3776
+ *
3777
+ * - `origin`: Must be the `AdminOrigin`.
3778
+ * - `who`: Account of non-member which will become a member.
3779
+ * - `rank`: The rank to give the new member.
3780
+ *
3781
+ * Weight: `O(1)`
3782
+ **/
3783
+ addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3784
+ /**
3785
+ * Remove votes from the given poll. It must have ended.
3786
+ *
3787
+ * - `origin`: Must be `Signed` by any account.
3788
+ * - `poll_index`: Index of a poll which is completed and for which votes continue to
3789
+ * exist.
3790
+ * - `max`: Maximum number of vote items from remove in this call.
3791
+ *
3792
+ * Transaction fees are waived if the operation is successful.
3793
+ *
3794
+ * Weight `O(max)` (less if there are fewer items to remove than `max`).
3795
+ **/
3796
+ cleanupPoll: AugmentedSubmittable<(pollIndex: u32 | AnyNumber | Uint8Array, max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
3797
+ /**
3798
+ * Decrement the rank of an existing member by one. If the member is already at rank zero,
3799
+ * then they are removed entirely.
3800
+ *
3801
+ * - `origin`: Must be the `AdminOrigin`.
3802
+ * - `who`: Account of existing member of rank greater than zero.
3803
+ *
3804
+ * Weight: `O(1)`, less if the member's index is highest in its rank.
3805
+ **/
3806
+ demoteMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3807
+ /**
3808
+ * Increment the rank of an existing member by one.
3809
+ *
3810
+ * - `origin`: Must be the `AdminOrigin`.
3811
+ * - `who`: Account of existing member.
3812
+ *
3813
+ * Weight: `O(1)`
3814
+ **/
3815
+ promoteMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3816
+ /**
3817
+ * Remove the member entirely.
3818
+ *
3819
+ * - `origin`: Must be the `AdminOrigin`.
3820
+ * - `who`: Account of existing member of rank greater than zero.
3821
+ * - `min_rank`: The rank of the member or greater.
3822
+ *
3823
+ * Weight: `O(min_rank)`.
3824
+ **/
3825
+ removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, minRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
3826
+ /**
3827
+ * Add an aye or nay vote for the sender to the given proposal.
3828
+ *
3829
+ * - `origin`: Must be `Signed` by a member account.
3830
+ * - `poll`: Index of a poll which is ongoing.
3831
+ * - `aye`: `true` if the vote is to approve the proposal, `false` otherwise.
3832
+ *
3833
+ * Transaction fees are be waived if the member is voting on any particular proposal
3834
+ * for the first time and the call is successful. Subsequent vote changes will charge a
3835
+ * fee.
3836
+ *
3837
+ * Weight: `O(1)`, less if there was no previous vote on the poll by the member.
3838
+ **/
3839
+ vote: AugmentedSubmittable<(poll: u32 | AnyNumber | Uint8Array, aye: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;
3840
+ /**
3841
+ * Generic tx
3842
+ **/
3843
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
3844
+ };
3845
+ rankedPolls: {
3846
+ /**
3847
+ * Cancel an ongoing referendum.
3848
+ *
3849
+ * - `origin`: must be the `CancelOrigin`.
3850
+ * - `index`: The index of the referendum to be cancelled.
3851
+ *
3852
+ * Emits `Cancelled`.
3853
+ **/
3854
+ cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3855
+ /**
3856
+ * Cancel an ongoing referendum and slash the deposits.
3857
+ *
3858
+ * - `origin`: must be the `KillOrigin`.
3859
+ * - `index`: The index of the referendum to be cancelled.
3860
+ *
3861
+ * Emits `Killed` and `DepositSlashed`.
3862
+ **/
3863
+ kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3864
+ /**
3865
+ * Advance a referendum onto its next logical state. Only used internally.
3866
+ *
3867
+ * - `origin`: must be `Root`.
3868
+ * - `index`: the referendum to be advanced.
3869
+ **/
3870
+ nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3871
+ /**
3872
+ * Advance a track onto its next logical state. Only used internally.
3873
+ *
3874
+ * - `origin`: must be `Root`.
3875
+ * - `track`: the track to be advanced.
3876
+ *
3877
+ * Action item for when there is now one fewer referendum in the deciding phase and the
3878
+ * `DecidingCount` is not yet updated. This means that we should either:
3879
+ * - begin deciding another referendum (and leave `DecidingCount` alone); or
3880
+ * - decrement `DecidingCount`.
3881
+ **/
3882
+ oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
3883
+ /**
3884
+ * Post the Decision Deposit for a referendum.
3885
+ *
3886
+ * - `origin`: must be `Signed` and the account must have funds available for the
3887
+ * referendum's track's Decision Deposit.
3888
+ * - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
3889
+ * posted.
3890
+ *
3891
+ * Emits `DecisionDepositPlaced`.
3892
+ **/
3893
+ placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3894
+ /**
3895
+ * Refund the Decision Deposit for a closed referendum back to the depositor.
3896
+ *
3897
+ * - `origin`: must be `Signed` or `Root`.
3898
+ * - `index`: The index of a closed referendum whose Decision Deposit has not yet been
3899
+ * refunded.
3900
+ *
3901
+ * Emits `DecisionDepositRefunded`.
3902
+ **/
3903
+ refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
3904
+ /**
3905
+ * Propose a referendum on a privileged action.
3906
+ *
3907
+ * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
3908
+ * available.
3909
+ * - `proposal_origin`: The origin from which the proposal should be executed.
3910
+ * - `proposal_hash`: The hash of the proposal preimage.
3911
+ * - `enactment_moment`: The moment that the proposal should be enacted.
3912
+ *
3913
+ * Emits `Submitted`.
3914
+ **/
3915
+ submit: AugmentedSubmittable<(proposalOrigin: NodeRuntimeOriginCaller | {
3916
+ system: any;
3917
+ } | {
3918
+ Void: any;
3919
+ } | {
3920
+ Council: any;
3921
+ } | {
3922
+ TechnicalCommittee: any;
3923
+ } | {
3924
+ AllianceMotion: any;
3925
+ } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
3926
+ At: any;
3927
+ } | {
3928
+ After: any;
3929
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
3930
+ /**
3931
+ * Generic tx
3932
+ **/
3933
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
3934
+ };
3454
3935
  recovery: {
3455
3936
  /**
3456
3937
  * Send a call through a recovered account.
@@ -3614,7 +4095,7 @@ declare module '@polkadot/api-base/types/submittable' {
3614
4095
  * - begin deciding another referendum (and leave `DecidingCount` alone); or
3615
4096
  * - decrement `DecidingCount`.
3616
4097
  **/
3617
- oneFewerDeciding: AugmentedSubmittable<(track: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
4098
+ oneFewerDeciding: AugmentedSubmittable<(track: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
3618
4099
  /**
3619
4100
  * Post the Decision Deposit for a referendum.
3620
4101
  *
@@ -3639,7 +4120,7 @@ declare module '@polkadot/api-base/types/submittable' {
3639
4120
  /**
3640
4121
  * Propose a referendum on a privileged action.
3641
4122
  *
3642
- * - `origin`: must be `Signed` and the account must have `SubmissionDeposit` funds
4123
+ * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
3643
4124
  * available.
3644
4125
  * - `proposal_origin`: The origin from which the proposal should be executed.
3645
4126
  * - `proposal_hash`: The hash of the proposal preimage.
@@ -3655,6 +4136,8 @@ declare module '@polkadot/api-base/types/submittable' {
3655
4136
  Council: any;
3656
4137
  } | {
3657
4138
  TechnicalCommittee: any;
4139
+ } | {
4140
+ AllianceMotion: any;
3658
4141
  } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
3659
4142
  At: any;
3660
4143
  } | {
@@ -5328,6 +5811,27 @@ declare module '@polkadot/api-base/types/submittable' {
5328
5811
  * exist altogether, thus there is no way it would have been approved in the first place.
5329
5812
  **/
5330
5813
  removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
5814
+ /**
5815
+ * Propose and approve a spend of treasury funds.
5816
+ *
5817
+ * - `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`.
5818
+ * - `amount`: The amount to be transferred from the treasury to the `beneficiary`.
5819
+ * - `beneficiary`: The destination account for the transfer.
5820
+ *
5821
+ * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the
5822
+ * beneficiary.
5823
+ **/
5824
+ spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
5825
+ Id: any;
5826
+ } | {
5827
+ Index: any;
5828
+ } | {
5829
+ Raw: any;
5830
+ } | {
5831
+ Address32: any;
5832
+ } | {
5833
+ Address20: any;
5834
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
5331
5835
  /**
5332
5836
  * Generic tx
5333
5837
  **/
@@ -5939,6 +6443,8 @@ declare module '@polkadot/api-base/types/submittable' {
5939
6443
  Council: any;
5940
6444
  } | {
5941
6445
  TechnicalCommittee: any;
6446
+ } | {
6447
+ AllianceMotion: any;
5942
6448
  } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
5943
6449
  /**
5944
6450
  * Send a batch of dispatch calls.