@polkadot/api-augment 7.7.2-9 → 7.8.1
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/kusama/consts.d.ts +8 -1
- package/kusama/errors.d.ts +4 -0
- package/kusama/query.d.ts +0 -7
- package/kusama/tx.d.ts +6 -0
- package/package.json +7 -7
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +2 -0
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/query.d.ts +0 -7
- package/polkadot/tx.d.ts +6 -0
- package/substrate/consts.d.ts +53 -1
- package/substrate/errors.d.ts +113 -0
- package/substrate/events.d.ts +67 -1
- package/substrate/query.d.ts +45 -8
- package/substrate/tx.d.ts +228 -9
package/kusama/consts.d.ts
CHANGED
|
@@ -588,8 +588,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
588
588
|
friendDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
589
589
|
/**
|
|
590
590
|
* The maximum amount of friends allowed in a recovery configuration.
|
|
591
|
+
*
|
|
592
|
+
* NOTE: The threshold programmed in this Pallet uses u16, so it does
|
|
593
|
+
* not really make sense to have a limit here greater than u16::MAX.
|
|
594
|
+
* But also, that is a lot more than you should probably set this value
|
|
595
|
+
* to anyway...
|
|
591
596
|
**/
|
|
592
|
-
maxFriends:
|
|
597
|
+
maxFriends: u32 & AugmentedConst<ApiType>;
|
|
593
598
|
/**
|
|
594
599
|
* The base amount of currency needed to reserve for starting a recovery.
|
|
595
600
|
*
|
|
@@ -842,6 +847,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
842
847
|
burn: Permill & AugmentedConst<ApiType>;
|
|
843
848
|
/**
|
|
844
849
|
* The maximum number of approvals that can wait in the spending queue.
|
|
850
|
+
*
|
|
851
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
845
852
|
**/
|
|
846
853
|
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
847
854
|
/**
|
package/kusama/errors.d.ts
CHANGED
|
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
181
181
|
* Require bounty curator.
|
|
182
182
|
**/
|
|
183
183
|
RequireCurator: AugmentedError<ApiType>;
|
|
184
|
+
/**
|
|
185
|
+
* Too many approvals are already queued.
|
|
186
|
+
**/
|
|
187
|
+
TooManyQueued: AugmentedError<ApiType>;
|
|
184
188
|
/**
|
|
185
189
|
* The bounty status is unexpected.
|
|
186
190
|
**/
|
package/kusama/query.d.ts
CHANGED
|
@@ -381,13 +381,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
381
381
|
* proposal.
|
|
382
382
|
**/
|
|
383
383
|
lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
384
|
-
/**
|
|
385
|
-
* Accounts for which there are locks in action which may be removed at some point in the
|
|
386
|
-
* future. The value is the block number at which the lock expires and may be removed.
|
|
387
|
-
*
|
|
388
|
-
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
389
|
-
**/
|
|
390
|
-
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
391
384
|
/**
|
|
392
385
|
* The lowest referendum index representing an unbaked referendum. Equal to
|
|
393
386
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
package/kusama/tx.d.ts
CHANGED
|
@@ -3567,6 +3567,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3567
3567
|
* who do not satisfy these requirements.
|
|
3568
3568
|
**/
|
|
3569
3569
|
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3570
|
+
/**
|
|
3571
|
+
* Force a validator to have at least the minimum commission. This will not affect a
|
|
3572
|
+
* validator who already has a commission greater than or equal to the minimum. Any account
|
|
3573
|
+
* can call this.
|
|
3574
|
+
**/
|
|
3575
|
+
forceApplyMinCommission: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3570
3576
|
/**
|
|
3571
3577
|
* Force there to be a new era at the end of the next session. After this, it will be
|
|
3572
3578
|
* reset to normal (non-forced) behaviour.
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.
|
|
23
|
+
"version": "7.8.1",
|
|
24
24
|
"main": "index.cjs",
|
|
25
25
|
"module": "index.js",
|
|
26
26
|
"types": "index.d.ts",
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
},
|
|
152
152
|
"dependencies": {
|
|
153
153
|
"@babel/runtime": "^7.17.2",
|
|
154
|
-
"@polkadot/api-base": "7.
|
|
155
|
-
"@polkadot/rpc-augment": "7.
|
|
156
|
-
"@polkadot/types": "7.
|
|
157
|
-
"@polkadot/types-augment": "7.
|
|
158
|
-
"@polkadot/types-codec": "7.
|
|
159
|
-
"@polkadot/util": "^8.
|
|
154
|
+
"@polkadot/api-base": "7.8.1",
|
|
155
|
+
"@polkadot/rpc-augment": "7.8.1",
|
|
156
|
+
"@polkadot/types": "7.8.1",
|
|
157
|
+
"@polkadot/types-augment": "7.8.1",
|
|
158
|
+
"@polkadot/types-codec": "7.8.1",
|
|
159
|
+
"@polkadot/util": "^8.4.1"
|
|
160
160
|
}
|
|
161
161
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/polkadot/consts.d.ts
CHANGED
|
@@ -714,6 +714,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
714
714
|
burn: Permill & AugmentedConst<ApiType>;
|
|
715
715
|
/**
|
|
716
716
|
* The maximum number of approvals that can wait in the spending queue.
|
|
717
|
+
*
|
|
718
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
717
719
|
**/
|
|
718
720
|
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
719
721
|
/**
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -181,6 +181,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
181
181
|
* Require bounty curator.
|
|
182
182
|
**/
|
|
183
183
|
RequireCurator: AugmentedError<ApiType>;
|
|
184
|
+
/**
|
|
185
|
+
* Too many approvals are already queued.
|
|
186
|
+
**/
|
|
187
|
+
TooManyQueued: AugmentedError<ApiType>;
|
|
184
188
|
/**
|
|
185
189
|
* The bounty status is unexpected.
|
|
186
190
|
**/
|
package/polkadot/query.d.ts
CHANGED
|
@@ -381,13 +381,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
381
381
|
* proposal.
|
|
382
382
|
**/
|
|
383
383
|
lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
384
|
-
/**
|
|
385
|
-
* Accounts for which there are locks in action which may be removed at some point in the
|
|
386
|
-
* future. The value is the block number at which the lock expires and may be removed.
|
|
387
|
-
*
|
|
388
|
-
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
389
|
-
**/
|
|
390
|
-
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
391
384
|
/**
|
|
392
385
|
* The lowest referendum index representing an unbaked referendum. Equal to
|
|
393
386
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -2965,6 +2965,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2965
2965
|
* who do not satisfy these requirements.
|
|
2966
2966
|
**/
|
|
2967
2967
|
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2968
|
+
/**
|
|
2969
|
+
* Force a validator to have at least the minimum commission. This will not affect a
|
|
2970
|
+
* validator who already has a commission greater than or equal to the minimum. Any account
|
|
2971
|
+
* can call this.
|
|
2972
|
+
**/
|
|
2973
|
+
forceApplyMinCommission: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2968
2974
|
/**
|
|
2969
2975
|
* Force there to be a new era at the end of the next session. After this, it will be
|
|
2970
2976
|
* reset to normal (non-forced) behaviour.
|
package/substrate/consts.d.ts
CHANGED
|
@@ -253,6 +253,26 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
253
253
|
**/
|
|
254
254
|
[key: string]: Codec;
|
|
255
255
|
};
|
|
256
|
+
convictionVoting: {
|
|
257
|
+
/**
|
|
258
|
+
* The maximum number of concurrent votes an account may have.
|
|
259
|
+
*
|
|
260
|
+
* Also used to compute weight, an overly large value can
|
|
261
|
+
* lead to extrinsic with large weight estimation: see `delegate` for instance.
|
|
262
|
+
**/
|
|
263
|
+
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
264
|
+
/**
|
|
265
|
+
* The minimum period of vote locking.
|
|
266
|
+
*
|
|
267
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
268
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
269
|
+
**/
|
|
270
|
+
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
271
|
+
/**
|
|
272
|
+
* Generic const
|
|
273
|
+
**/
|
|
274
|
+
[key: string]: Codec;
|
|
275
|
+
};
|
|
256
276
|
democracy: {
|
|
257
277
|
/**
|
|
258
278
|
* Period in blocks where an external proposal may not be re-submitted after being vetoed.
|
|
@@ -661,8 +681,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
661
681
|
friendDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
662
682
|
/**
|
|
663
683
|
* The maximum amount of friends allowed in a recovery configuration.
|
|
684
|
+
*
|
|
685
|
+
* NOTE: The threshold programmed in this Pallet uses u16, so it does
|
|
686
|
+
* not really make sense to have a limit here greater than u16::MAX.
|
|
687
|
+
* But also, that is a lot more than you should probably set this value
|
|
688
|
+
* to anyway...
|
|
664
689
|
**/
|
|
665
|
-
maxFriends:
|
|
690
|
+
maxFriends: u32 & AugmentedConst<ApiType>;
|
|
666
691
|
/**
|
|
667
692
|
* The base amount of currency needed to reserve for starting a recovery.
|
|
668
693
|
*
|
|
@@ -678,6 +703,31 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
678
703
|
**/
|
|
679
704
|
[key: string]: Codec;
|
|
680
705
|
};
|
|
706
|
+
referenda: {
|
|
707
|
+
/**
|
|
708
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
709
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
710
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
711
|
+
**/
|
|
712
|
+
alarmInterval: u32 & AugmentedConst<ApiType>;
|
|
713
|
+
/**
|
|
714
|
+
* Maximum size of the referendum queue for a single track.
|
|
715
|
+
**/
|
|
716
|
+
maxQueued: u32 & AugmentedConst<ApiType>;
|
|
717
|
+
/**
|
|
718
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
719
|
+
**/
|
|
720
|
+
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
|
721
|
+
/**
|
|
722
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
723
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
724
|
+
**/
|
|
725
|
+
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
|
726
|
+
/**
|
|
727
|
+
* Generic const
|
|
728
|
+
**/
|
|
729
|
+
[key: string]: Codec;
|
|
730
|
+
};
|
|
681
731
|
scheduler: {
|
|
682
732
|
/**
|
|
683
733
|
* The maximum weight that may be scheduled per block for any dispatchables of less
|
|
@@ -886,6 +936,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
886
936
|
burn: Permill & AugmentedConst<ApiType>;
|
|
887
937
|
/**
|
|
888
938
|
* The maximum number of approvals that can wait in the spending queue.
|
|
939
|
+
*
|
|
940
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
889
941
|
**/
|
|
890
942
|
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
891
943
|
/**
|
package/substrate/errors.d.ts
CHANGED
|
@@ -215,6 +215,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
215
215
|
* Require bounty curator.
|
|
216
216
|
**/
|
|
217
217
|
RequireCurator: AugmentedError<ApiType>;
|
|
218
|
+
/**
|
|
219
|
+
* Too many approvals are already queued.
|
|
220
|
+
**/
|
|
221
|
+
TooManyQueued: AugmentedError<ApiType>;
|
|
218
222
|
/**
|
|
219
223
|
* The bounty status is unexpected.
|
|
220
224
|
**/
|
|
@@ -305,6 +309,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
305
309
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
306
310
|
**/
|
|
307
311
|
InputForwarded: AugmentedError<ApiType>;
|
|
312
|
+
/**
|
|
313
|
+
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
|
314
|
+
**/
|
|
315
|
+
InvalidCallFlags: AugmentedError<ApiType>;
|
|
308
316
|
/**
|
|
309
317
|
* A new schedule must have a greater version than the current one.
|
|
310
318
|
**/
|
|
@@ -377,6 +385,61 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
377
385
|
**/
|
|
378
386
|
[key: string]: AugmentedError<ApiType>;
|
|
379
387
|
};
|
|
388
|
+
convictionVoting: {
|
|
389
|
+
/**
|
|
390
|
+
* The account is already delegating.
|
|
391
|
+
**/
|
|
392
|
+
AlreadyDelegating: AugmentedError<ApiType>;
|
|
393
|
+
/**
|
|
394
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
395
|
+
* these are removed, either through `unvote` or `reap_vote`.
|
|
396
|
+
**/
|
|
397
|
+
AlreadyVoting: AugmentedError<ApiType>;
|
|
398
|
+
/**
|
|
399
|
+
* The class ID supplied is invalid.
|
|
400
|
+
**/
|
|
401
|
+
BadClass: AugmentedError<ApiType>;
|
|
402
|
+
/**
|
|
403
|
+
* The class must be supplied since it is not easily determinable from the state.
|
|
404
|
+
**/
|
|
405
|
+
ClassNeeded: AugmentedError<ApiType>;
|
|
406
|
+
/**
|
|
407
|
+
* Too high a balance was provided that the account cannot afford.
|
|
408
|
+
**/
|
|
409
|
+
InsufficientFunds: AugmentedError<ApiType>;
|
|
410
|
+
/**
|
|
411
|
+
* Maximum number of votes reached.
|
|
412
|
+
**/
|
|
413
|
+
MaxVotesReached: AugmentedError<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* Delegation to oneself makes no sense.
|
|
416
|
+
**/
|
|
417
|
+
Nonsense: AugmentedError<ApiType>;
|
|
418
|
+
/**
|
|
419
|
+
* The actor has no permission to conduct the action.
|
|
420
|
+
**/
|
|
421
|
+
NoPermission: AugmentedError<ApiType>;
|
|
422
|
+
/**
|
|
423
|
+
* The actor has no permission to conduct the action right now but will do in the future.
|
|
424
|
+
**/
|
|
425
|
+
NoPermissionYet: AugmentedError<ApiType>;
|
|
426
|
+
/**
|
|
427
|
+
* The account is not currently delegating.
|
|
428
|
+
**/
|
|
429
|
+
NotDelegating: AugmentedError<ApiType>;
|
|
430
|
+
/**
|
|
431
|
+
* Poll is not ongoing.
|
|
432
|
+
**/
|
|
433
|
+
NotOngoing: AugmentedError<ApiType>;
|
|
434
|
+
/**
|
|
435
|
+
* The given account did not vote on the poll.
|
|
436
|
+
**/
|
|
437
|
+
NotVoter: AugmentedError<ApiType>;
|
|
438
|
+
/**
|
|
439
|
+
* Generic error
|
|
440
|
+
**/
|
|
441
|
+
[key: string]: AugmentedError<ApiType>;
|
|
442
|
+
};
|
|
380
443
|
council: {
|
|
381
444
|
/**
|
|
382
445
|
* Members are already initialized!
|
|
@@ -1089,6 +1152,56 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1089
1152
|
**/
|
|
1090
1153
|
[key: string]: AugmentedError<ApiType>;
|
|
1091
1154
|
};
|
|
1155
|
+
referenda: {
|
|
1156
|
+
/**
|
|
1157
|
+
* The referendum index provided is invalid in this context.
|
|
1158
|
+
**/
|
|
1159
|
+
BadReferendum: AugmentedError<ApiType>;
|
|
1160
|
+
/**
|
|
1161
|
+
* The track identifier given was invalid.
|
|
1162
|
+
**/
|
|
1163
|
+
BadTrack: AugmentedError<ApiType>;
|
|
1164
|
+
/**
|
|
1165
|
+
* There are already a full complement of referendums in progress for this track.
|
|
1166
|
+
**/
|
|
1167
|
+
Full: AugmentedError<ApiType>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Referendum's decision deposit is already paid.
|
|
1170
|
+
**/
|
|
1171
|
+
HaveDeposit: AugmentedError<ApiType>;
|
|
1172
|
+
/**
|
|
1173
|
+
* The deposit cannot be refunded since none was made.
|
|
1174
|
+
**/
|
|
1175
|
+
NoDeposit: AugmentedError<ApiType>;
|
|
1176
|
+
/**
|
|
1177
|
+
* The deposit refunder is not the depositor.
|
|
1178
|
+
**/
|
|
1179
|
+
NoPermission: AugmentedError<ApiType>;
|
|
1180
|
+
/**
|
|
1181
|
+
* There was nothing to do in the advancement.
|
|
1182
|
+
**/
|
|
1183
|
+
NothingToDo: AugmentedError<ApiType>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Referendum is not ongoing.
|
|
1186
|
+
**/
|
|
1187
|
+
NotOngoing: AugmentedError<ApiType>;
|
|
1188
|
+
/**
|
|
1189
|
+
* No track exists for the proposal origin.
|
|
1190
|
+
**/
|
|
1191
|
+
NoTrack: AugmentedError<ApiType>;
|
|
1192
|
+
/**
|
|
1193
|
+
* The queue of the track is empty.
|
|
1194
|
+
**/
|
|
1195
|
+
QueueEmpty: AugmentedError<ApiType>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Any deposit cannot be refunded until after the decision is over.
|
|
1198
|
+
**/
|
|
1199
|
+
Unfinished: AugmentedError<ApiType>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Generic error
|
|
1202
|
+
**/
|
|
1203
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1204
|
+
};
|
|
1092
1205
|
scheduler: {
|
|
1093
1206
|
/**
|
|
1094
1207
|
* Failed to schedule a call
|
package/substrate/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
2
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
|
|
5
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
|
|
6
6
|
declare module '@polkadot/api-base/types/events' {
|
|
7
7
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
8
8
|
assets: {
|
|
@@ -229,6 +229,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
229
229
|
**/
|
|
230
230
|
[key: string]: AugmentedEvent<ApiType>;
|
|
231
231
|
};
|
|
232
|
+
convictionVoting: {
|
|
233
|
+
/**
|
|
234
|
+
* An account has delegated their vote to another account. \[who, target\]
|
|
235
|
+
**/
|
|
236
|
+
Delegated: AugmentedEvent<ApiType, [AccountId32, AccountId32]>;
|
|
237
|
+
/**
|
|
238
|
+
* An \[account\] has cancelled a previous delegation operation.
|
|
239
|
+
**/
|
|
240
|
+
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
|
|
241
|
+
/**
|
|
242
|
+
* Generic event
|
|
243
|
+
**/
|
|
244
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
245
|
+
};
|
|
232
246
|
council: {
|
|
233
247
|
/**
|
|
234
248
|
* A motion was approved by the required threshold.
|
|
@@ -676,6 +690,58 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
676
690
|
**/
|
|
677
691
|
[key: string]: AugmentedEvent<ApiType>;
|
|
678
692
|
};
|
|
693
|
+
referenda: {
|
|
694
|
+
/**
|
|
695
|
+
* A referendum has been approved and its proposal has been scheduled.
|
|
696
|
+
**/
|
|
697
|
+
Approved: AugmentedEvent<ApiType, [u32]>;
|
|
698
|
+
/**
|
|
699
|
+
* A referendum has been cancelled.
|
|
700
|
+
**/
|
|
701
|
+
Cancelled: AugmentedEvent<ApiType, [u32, PalletConvictionVotingTally]>;
|
|
702
|
+
ConfirmAborted: AugmentedEvent<ApiType, [u32]>;
|
|
703
|
+
/**
|
|
704
|
+
* A referendum has ended its confirmation phase and is ready for approval.
|
|
705
|
+
**/
|
|
706
|
+
Confirmed: AugmentedEvent<ApiType, [u32, PalletConvictionVotingTally]>;
|
|
707
|
+
ConfirmStarted: AugmentedEvent<ApiType, [u32]>;
|
|
708
|
+
/**
|
|
709
|
+
* The decision deposit has been placed.
|
|
710
|
+
**/
|
|
711
|
+
DecisionDepositPlaced: AugmentedEvent<ApiType, [u32, AccountId32, u128]>;
|
|
712
|
+
/**
|
|
713
|
+
* The decision deposit has been refunded.
|
|
714
|
+
**/
|
|
715
|
+
DecisionDepositRefunded: AugmentedEvent<ApiType, [u32, AccountId32, u128]>;
|
|
716
|
+
/**
|
|
717
|
+
* A referendum has moved into the deciding phase.
|
|
718
|
+
**/
|
|
719
|
+
DecisionStarted: AugmentedEvent<ApiType, [u32, u8, H256, PalletConvictionVotingTally]>;
|
|
720
|
+
/**
|
|
721
|
+
* A deposit has been slashaed.
|
|
722
|
+
**/
|
|
723
|
+
DepositSlashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
724
|
+
/**
|
|
725
|
+
* A referendum has been killed.
|
|
726
|
+
**/
|
|
727
|
+
Killed: AugmentedEvent<ApiType, [u32, PalletConvictionVotingTally]>;
|
|
728
|
+
/**
|
|
729
|
+
* A proposal has been rejected by referendum.
|
|
730
|
+
**/
|
|
731
|
+
Rejected: AugmentedEvent<ApiType, [u32, PalletConvictionVotingTally]>;
|
|
732
|
+
/**
|
|
733
|
+
* A referendum has being submitted.
|
|
734
|
+
**/
|
|
735
|
+
Submitted: AugmentedEvent<ApiType, [u32, u8, H256]>;
|
|
736
|
+
/**
|
|
737
|
+
* A referendum has been timed out without being decided.
|
|
738
|
+
**/
|
|
739
|
+
TimedOut: AugmentedEvent<ApiType, [u32, PalletConvictionVotingTally]>;
|
|
740
|
+
/**
|
|
741
|
+
* Generic event
|
|
742
|
+
**/
|
|
743
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
744
|
+
};
|
|
679
745
|
scheduler: {
|
|
680
746
|
/**
|
|
681
747
|
* The call for the provided hash was not found so the task has been aborted.
|
package/substrate/query.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
declare module '@polkadot/api-base/types/storage' {
|
|
9
9
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
@@ -323,6 +323,23 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
323
323
|
**/
|
|
324
324
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
325
325
|
};
|
|
326
|
+
convictionVoting: {
|
|
327
|
+
/**
|
|
328
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
329
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
330
|
+
* this list.
|
|
331
|
+
**/
|
|
332
|
+
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u8, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
333
|
+
/**
|
|
334
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
335
|
+
* number of votes that we have recorded.
|
|
336
|
+
**/
|
|
337
|
+
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u8 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u8]> & QueryableStorageEntry<ApiType, [AccountId32, u8]>;
|
|
338
|
+
/**
|
|
339
|
+
* Generic query
|
|
340
|
+
**/
|
|
341
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
342
|
+
};
|
|
326
343
|
council: {
|
|
327
344
|
/**
|
|
328
345
|
* The current members of the collective. This is stored sorted (just by value).
|
|
@@ -374,13 +391,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
374
391
|
* proposal.
|
|
375
392
|
**/
|
|
376
393
|
lastTabledWasExternal: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
377
|
-
/**
|
|
378
|
-
* Accounts for which there are locks in action which may be removed at some point in the
|
|
379
|
-
* future. The value is the block number at which the lock expires and may be removed.
|
|
380
|
-
*
|
|
381
|
-
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
382
|
-
**/
|
|
383
|
-
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
384
394
|
/**
|
|
385
395
|
* The lowest referendum index representing an unbaked referendum. Equal to
|
|
386
396
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
|
@@ -837,6 +847,33 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
837
847
|
**/
|
|
838
848
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
839
849
|
};
|
|
850
|
+
referenda: {
|
|
851
|
+
/**
|
|
852
|
+
* The number of referenda being decided currently.
|
|
853
|
+
**/
|
|
854
|
+
decidingCount: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<u32>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
855
|
+
/**
|
|
856
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
857
|
+
**/
|
|
858
|
+
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
859
|
+
/**
|
|
860
|
+
* Information concerning any given referendum.
|
|
861
|
+
*
|
|
862
|
+
* TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
|
|
863
|
+
**/
|
|
864
|
+
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
865
|
+
/**
|
|
866
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
867
|
+
* conviction-weighted approvals.
|
|
868
|
+
*
|
|
869
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
870
|
+
**/
|
|
871
|
+
trackQueue: AugmentedQuery<ApiType, (arg: u8 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u8]> & QueryableStorageEntry<ApiType, [u8]>;
|
|
872
|
+
/**
|
|
873
|
+
* Generic query
|
|
874
|
+
**/
|
|
875
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
876
|
+
};
|
|
840
877
|
scheduler: {
|
|
841
878
|
/**
|
|
842
879
|
* Items to be executed, indexed by the block number that they should be executed on.
|
package/substrate/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ 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, 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 { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletReferendaAtOrAfter, PalletSocietyJudgement, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, 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
9
|
assets: {
|
|
@@ -1371,6 +1371,134 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1371
1371
|
**/
|
|
1372
1372
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1373
1373
|
};
|
|
1374
|
+
convictionVoting: {
|
|
1375
|
+
/**
|
|
1376
|
+
* Delegate the voting power (with some given conviction) of the sending account for a
|
|
1377
|
+
* particular class of polls.
|
|
1378
|
+
*
|
|
1379
|
+
* The balance delegated is locked for as long as it's delegated, and thereafter for the
|
|
1380
|
+
* time appropriate for the conviction's lock period.
|
|
1381
|
+
*
|
|
1382
|
+
* The dispatch origin of this call must be _Signed_, and the signing account must either:
|
|
1383
|
+
* - be delegating already; or
|
|
1384
|
+
* - have no voting activity (if there is, then it will need to be removed/consolidated
|
|
1385
|
+
* through `reap_vote` or `unvote`).
|
|
1386
|
+
*
|
|
1387
|
+
* - `to`: The account whose voting the `target` account's voting power will follow.
|
|
1388
|
+
* - `class`: The class of polls to delegate. To delegate multiple classes, multiple calls
|
|
1389
|
+
* to this function are required.
|
|
1390
|
+
* - `conviction`: The conviction that will be attached to the delegated votes. When the
|
|
1391
|
+
* account is undelegated, the funds will be locked for the corresponding period.
|
|
1392
|
+
* - `balance`: The amount of the account's balance to be used in delegating. This must not
|
|
1393
|
+
* be more than the account's current balance.
|
|
1394
|
+
*
|
|
1395
|
+
* Emits `Delegated`.
|
|
1396
|
+
*
|
|
1397
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
1398
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
1399
|
+
**/
|
|
1400
|
+
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]>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Remove a vote for a poll.
|
|
1403
|
+
*
|
|
1404
|
+
* If the `target` is equal to the signer, then this function is exactly equivalent to
|
|
1405
|
+
* `remove_vote`. If not equal to the signer, then the vote must have expired,
|
|
1406
|
+
* either because the poll was cancelled, because the voter lost the poll or
|
|
1407
|
+
* because the conviction period is over.
|
|
1408
|
+
*
|
|
1409
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1410
|
+
*
|
|
1411
|
+
* - `target`: The account of the vote to be removed; this account must have voted for poll
|
|
1412
|
+
* `index`.
|
|
1413
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
1414
|
+
* - `class`: The class of the poll.
|
|
1415
|
+
*
|
|
1416
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
1417
|
+
* Weight is calculated for the maximum number of vote.
|
|
1418
|
+
**/
|
|
1419
|
+
removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, clazz: u8 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u8, u32]>;
|
|
1420
|
+
/**
|
|
1421
|
+
* Remove a vote for a poll.
|
|
1422
|
+
*
|
|
1423
|
+
* If:
|
|
1424
|
+
* - the poll was cancelled, or
|
|
1425
|
+
* - the poll is ongoing, or
|
|
1426
|
+
* - the poll has ended such that
|
|
1427
|
+
* - the vote of the account was in opposition to the result; or
|
|
1428
|
+
* - there was no conviction to the account's vote; or
|
|
1429
|
+
* - the account made a split vote
|
|
1430
|
+
* ...then the vote is removed cleanly and a following call to `unlock` may result in more
|
|
1431
|
+
* funds being available.
|
|
1432
|
+
*
|
|
1433
|
+
* If, however, the poll has ended and:
|
|
1434
|
+
* - it finished corresponding to the vote of the account, and
|
|
1435
|
+
* - the account made a standard vote with conviction, and
|
|
1436
|
+
* - the lock period of the conviction is not over
|
|
1437
|
+
* ...then the lock will be aggregated into the overall account's lock, which may involve
|
|
1438
|
+
* *overlocking* (where the two locks are combined into a single lock that is the maximum
|
|
1439
|
+
* of both the amount locked and the time is it locked for).
|
|
1440
|
+
*
|
|
1441
|
+
* The dispatch origin of this call must be _Signed_, and the signer must have a vote
|
|
1442
|
+
* registered for poll `index`.
|
|
1443
|
+
*
|
|
1444
|
+
* - `index`: The index of poll of the vote to be removed.
|
|
1445
|
+
* - `class`: Optional parameter, if given it indicates the class of the poll. For polls
|
|
1446
|
+
* which have finished or are cancelled, this must be `Some`.
|
|
1447
|
+
*
|
|
1448
|
+
* Weight: `O(R + log R)` where R is the number of polls that `target` has voted on.
|
|
1449
|
+
* Weight is calculated for the maximum number of vote.
|
|
1450
|
+
**/
|
|
1451
|
+
removeVote: AugmentedSubmittable<(clazz: Option<u8> | null | object | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u8>, u32]>;
|
|
1452
|
+
/**
|
|
1453
|
+
* Undelegate the voting power of the sending account for a particular class of polls.
|
|
1454
|
+
*
|
|
1455
|
+
* Tokens may be unlocked following once an amount of time consistent with the lock period
|
|
1456
|
+
* of the conviction with which the delegation was issued.
|
|
1457
|
+
*
|
|
1458
|
+
* The dispatch origin of this call must be _Signed_ and the signing account must be
|
|
1459
|
+
* currently delegating.
|
|
1460
|
+
*
|
|
1461
|
+
* - `class`: The class of polls to remove the delegation from.
|
|
1462
|
+
*
|
|
1463
|
+
* Emits `Undelegated`.
|
|
1464
|
+
*
|
|
1465
|
+
* Weight: `O(R)` where R is the number of polls the voter delegating to has
|
|
1466
|
+
* voted on. Weight is initially charged as if maximum votes, but is refunded later.
|
|
1467
|
+
**/
|
|
1468
|
+
undelegate: AugmentedSubmittable<(clazz: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Remove the lock caused prior voting/delegating which has expired within a particluar
|
|
1471
|
+
* class.
|
|
1472
|
+
*
|
|
1473
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1474
|
+
*
|
|
1475
|
+
* - `class`: The class of polls to unlock.
|
|
1476
|
+
* - `target`: The account to remove the lock on.
|
|
1477
|
+
*
|
|
1478
|
+
* Weight: `O(R)` with R number of vote of target.
|
|
1479
|
+
**/
|
|
1480
|
+
unlock: AugmentedSubmittable<(clazz: u8 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8, AccountId32]>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Vote in a poll. If `vote.is_aye()`, the vote is to enact the proposal;
|
|
1483
|
+
* otherwise it is a vote to keep the status quo.
|
|
1484
|
+
*
|
|
1485
|
+
* The dispatch origin of this call must be _Signed_.
|
|
1486
|
+
*
|
|
1487
|
+
* - `poll_index`: The index of the poll to vote for.
|
|
1488
|
+
* - `vote`: The vote configuration.
|
|
1489
|
+
*
|
|
1490
|
+
* Weight: `O(R)` where R is the number of polls the voter has voted on.
|
|
1491
|
+
**/
|
|
1492
|
+
vote: AugmentedSubmittable<(pollIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletConvictionVotingVoteAccountVote | {
|
|
1493
|
+
Standard: any;
|
|
1494
|
+
} | {
|
|
1495
|
+
Split: any;
|
|
1496
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Generic tx
|
|
1499
|
+
**/
|
|
1500
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
1501
|
+
};
|
|
1374
1502
|
council: {
|
|
1375
1503
|
/**
|
|
1376
1504
|
* Close a vote that is either approved, disapproved or whose voting period has ended.
|
|
@@ -3335,6 +3463,94 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3335
3463
|
**/
|
|
3336
3464
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3337
3465
|
};
|
|
3466
|
+
referenda: {
|
|
3467
|
+
/**
|
|
3468
|
+
* Cancel an ongoing referendum.
|
|
3469
|
+
*
|
|
3470
|
+
* - `origin`: must be the `CancelOrigin`.
|
|
3471
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3472
|
+
*
|
|
3473
|
+
* Emits `Cancelled`.
|
|
3474
|
+
**/
|
|
3475
|
+
cancel: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3476
|
+
/**
|
|
3477
|
+
* Cancel an ongoing referendum and slash the deposits.
|
|
3478
|
+
*
|
|
3479
|
+
* - `origin`: must be the `KillOrigin`.
|
|
3480
|
+
* - `index`: The index of the referendum to be cancelled.
|
|
3481
|
+
*
|
|
3482
|
+
* Emits `Killed` and `DepositSlashed`.
|
|
3483
|
+
**/
|
|
3484
|
+
kill: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3485
|
+
/**
|
|
3486
|
+
* Advance a referendum onto its next logical state. Only used internally.
|
|
3487
|
+
*
|
|
3488
|
+
* - `origin`: must be `Root`.
|
|
3489
|
+
* - `index`: the referendum to be advanced.
|
|
3490
|
+
**/
|
|
3491
|
+
nudgeReferendum: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3492
|
+
/**
|
|
3493
|
+
* Advance a track onto its next logical state. Only used internally.
|
|
3494
|
+
*
|
|
3495
|
+
* - `origin`: must be `Root`.
|
|
3496
|
+
* - `track`: the track to be advanced.
|
|
3497
|
+
*
|
|
3498
|
+
* Action item for when there is now one fewer referendum in the deciding phase and the
|
|
3499
|
+
* `DecidingCount` is not yet updated. This means that we should either:
|
|
3500
|
+
* - begin deciding another referendum (and leave `DecidingCount` alone); or
|
|
3501
|
+
* - decrement `DecidingCount`.
|
|
3502
|
+
**/
|
|
3503
|
+
oneFewerDeciding: AugmentedSubmittable<(track: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u8]>;
|
|
3504
|
+
/**
|
|
3505
|
+
* Post the Decision Deposit for a referendum.
|
|
3506
|
+
*
|
|
3507
|
+
* - `origin`: must be `Signed` and the account must have funds available for the
|
|
3508
|
+
* referendum's track's Decision Deposit.
|
|
3509
|
+
* - `index`: The index of the submitted referendum whose Decision Deposit is yet to be
|
|
3510
|
+
* posted.
|
|
3511
|
+
*
|
|
3512
|
+
* Emits `DecisionDepositPlaced`.
|
|
3513
|
+
**/
|
|
3514
|
+
placeDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3515
|
+
/**
|
|
3516
|
+
* Refund the Decision Deposit for a closed referendum back to the depositor.
|
|
3517
|
+
*
|
|
3518
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
3519
|
+
* - `index`: The index of a closed referendum whose Decision Deposit has not yet been
|
|
3520
|
+
* refunded.
|
|
3521
|
+
*
|
|
3522
|
+
* Emits `DecisionDepositRefunded`.
|
|
3523
|
+
**/
|
|
3524
|
+
refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
|
3525
|
+
/**
|
|
3526
|
+
* Propose a referendum on a privileged action.
|
|
3527
|
+
*
|
|
3528
|
+
* - `origin`: must be `Signed` and the account must have `SubmissionDeposit` funds
|
|
3529
|
+
* available.
|
|
3530
|
+
* - `proposal_origin`: The origin from which the proposal should be executed.
|
|
3531
|
+
* - `proposal_hash`: The hash of the proposal preimage.
|
|
3532
|
+
* - `enactment_moment`: The moment that the proposal should be enacted.
|
|
3533
|
+
*
|
|
3534
|
+
* Emits `Submitted`.
|
|
3535
|
+
**/
|
|
3536
|
+
submit: AugmentedSubmittable<(proposalOrigin: NodeRuntimeOriginCaller | {
|
|
3537
|
+
system: any;
|
|
3538
|
+
} | {
|
|
3539
|
+
Void: any;
|
|
3540
|
+
} | {
|
|
3541
|
+
Council: any;
|
|
3542
|
+
} | {
|
|
3543
|
+
TechnicalCommittee: any;
|
|
3544
|
+
} | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: PalletReferendaAtOrAfter | {
|
|
3545
|
+
At: any;
|
|
3546
|
+
} | {
|
|
3547
|
+
After: any;
|
|
3548
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, H256, PalletReferendaAtOrAfter]>;
|
|
3549
|
+
/**
|
|
3550
|
+
* Generic tx
|
|
3551
|
+
**/
|
|
3552
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3553
|
+
};
|
|
3338
3554
|
scheduler: {
|
|
3339
3555
|
/**
|
|
3340
3556
|
* Cancel an anonymously scheduled task.
|
|
@@ -3883,6 +4099,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3883
4099
|
* who do not satisfy these requirements.
|
|
3884
4100
|
**/
|
|
3885
4101
|
chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
4102
|
+
/**
|
|
4103
|
+
* Force a validator to have at least the minimum commission. This will not affect a
|
|
4104
|
+
* validator who already has a commission greater than or equal to the minimum. Any account
|
|
4105
|
+
* can call this.
|
|
4106
|
+
**/
|
|
4107
|
+
forceApplyMinCommission: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3886
4108
|
/**
|
|
3887
4109
|
* Force there to be a new era at the end of the next session. After this, it will be
|
|
3888
4110
|
* reset to normal (non-forced) behaviour.
|
|
@@ -4917,21 +5139,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4917
5139
|
**/
|
|
4918
5140
|
cancelApproval: AugmentedSubmittable<(clazz: Compact<u32> | AnyNumber | Uint8Array, instance: Compact<u32> | AnyNumber | Uint8Array, maybeCheckDelegate: Option<MultiAddress> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>, Option<MultiAddress>]>;
|
|
4919
5141
|
/**
|
|
4920
|
-
*
|
|
5142
|
+
* Clear an attribute for an asset class or instance.
|
|
4921
5143
|
*
|
|
4922
5144
|
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
|
|
4923
5145
|
* asset `class`.
|
|
4924
5146
|
*
|
|
4925
|
-
*
|
|
4926
|
-
* `MetadataDepositBase + DepositPerByte * (key.len + value.len)` taking into
|
|
4927
|
-
* account any already reserved funds.
|
|
5147
|
+
* Any deposit is freed for the asset class owner.
|
|
4928
5148
|
*
|
|
4929
|
-
* - `class`: The identifier of the asset class whose instance's metadata to
|
|
4930
|
-
* - `
|
|
5149
|
+
* - `class`: The identifier of the asset class whose instance's metadata to clear.
|
|
5150
|
+
* - `maybe_instance`: The identifier of the asset instance whose metadata to clear.
|
|
4931
5151
|
* - `key`: The key of the attribute.
|
|
4932
|
-
* - `value`: The value to which to set the attribute.
|
|
4933
5152
|
*
|
|
4934
|
-
* Emits `
|
|
5153
|
+
* Emits `AttributeCleared`.
|
|
4935
5154
|
*
|
|
4936
5155
|
* Weight: `O(1)`
|
|
4937
5156
|
**/
|