@polkadot/api-augment 10.1.4 → 10.2.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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.4' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.2.1' };
@@ -1,9 +1,9 @@
1
1
  import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
- import type { Bytes, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
- import type { Perbill, Percent, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
5
+ import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, KusamaRuntimeHoldReason, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -54,6 +54,14 @@ declare module '@polkadot/api-base/types/consts' {
54
54
  * The minimum amount required to keep an account open.
55
55
  **/
56
56
  existentialDeposit: u128 & AugmentedConst<ApiType>;
57
+ /**
58
+ * The maximum number of individual freeze locks that can exist on an account at any time.
59
+ **/
60
+ maxFreezes: u32 & AugmentedConst<ApiType>;
61
+ /**
62
+ * The maximum number of holds that can exist on an account at any time.
63
+ **/
64
+ maxHolds: u32 & AugmentedConst<ApiType>;
57
65
  /**
58
66
  * The maximum number of locks that should exist on an account.
59
67
  * Not strictly enforced, but used for weight estimation.
@@ -175,72 +183,6 @@ declare module '@polkadot/api-base/types/consts' {
175
183
  **/
176
184
  [key: string]: Codec;
177
185
  };
178
- democracy: {
179
- /**
180
- * Period in blocks where an external proposal may not be re-submitted after being vetoed.
181
- **/
182
- cooloffPeriod: u32 & AugmentedConst<ApiType>;
183
- /**
184
- * The period between a proposal being approved and enacted.
185
- *
186
- * It should generally be a little more than the unstake period to ensure that
187
- * voting stakers have an opportunity to remove themselves from the system in the case
188
- * where they are on the losing side of a vote.
189
- **/
190
- enactmentPeriod: u32 & AugmentedConst<ApiType>;
191
- /**
192
- * Minimum voting period allowed for a fast-track referendum.
193
- **/
194
- fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
195
- /**
196
- * Indicator for whether an emergency origin is even allowed to happen. Some chains may
197
- * want to set this permanently to `false`, others may want to condition it on things such
198
- * as an upgrade having happened recently.
199
- **/
200
- instantAllowed: bool & AugmentedConst<ApiType>;
201
- /**
202
- * How often (in blocks) new public referenda are launched.
203
- **/
204
- launchPeriod: u32 & AugmentedConst<ApiType>;
205
- /**
206
- * The maximum number of items which can be blacklisted.
207
- **/
208
- maxBlacklisted: u32 & AugmentedConst<ApiType>;
209
- /**
210
- * The maximum number of deposits a public proposal may have at any time.
211
- **/
212
- maxDeposits: u32 & AugmentedConst<ApiType>;
213
- /**
214
- * The maximum number of public proposals that can exist at any time.
215
- **/
216
- maxProposals: u32 & AugmentedConst<ApiType>;
217
- /**
218
- * The maximum number of votes for an account.
219
- *
220
- * Also used to compute weight, an overly big value can
221
- * lead to extrinsic with very big weight: see `delegate` for instance.
222
- **/
223
- maxVotes: u32 & AugmentedConst<ApiType>;
224
- /**
225
- * The minimum amount to be used as a deposit for a public referendum proposal.
226
- **/
227
- minimumDeposit: u128 & AugmentedConst<ApiType>;
228
- /**
229
- * The minimum period of vote locking.
230
- *
231
- * It should be no shorter than enactment period to ensure that in the case of an approval,
232
- * those successful voters are locked into the consequences that their votes entail.
233
- **/
234
- voteLockingPeriod: u32 & AugmentedConst<ApiType>;
235
- /**
236
- * How often (in blocks) to check for new votes.
237
- **/
238
- votingPeriod: u32 & AugmentedConst<ApiType>;
239
- /**
240
- * Generic const
241
- **/
242
- [key: string]: Codec;
243
- };
244
186
  electionProviderMultiPhase: {
245
187
  /**
246
188
  * The minimum amount of improvement to the solution score that defines a solution as
@@ -272,6 +214,7 @@ declare module '@polkadot/api-base/types/consts' {
272
214
  minerMaxLength: u32 & AugmentedConst<ApiType>;
273
215
  minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
274
216
  minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
217
+ minerMaxWinners: u32 & AugmentedConst<ApiType>;
275
218
  /**
276
219
  * The priority of the unsigned transaction submitted in the unsigned-phase
277
220
  **/
@@ -487,6 +430,10 @@ declare module '@polkadot/api-base/types/consts' {
487
430
  * Must be no greater than `MaxQueueLen`.
488
431
  **/
489
432
  fifoQueueLen: u32 & AugmentedConst<ApiType>;
433
+ /**
434
+ * The identifier of the hold reason.
435
+ **/
436
+ holdReason: KusamaRuntimeHoldReason & AugmentedConst<ApiType>;
490
437
  /**
491
438
  * The number of blocks between consecutive attempts to dequeue bids and create receipts.
492
439
  *
@@ -529,10 +476,6 @@ declare module '@polkadot/api-base/types/consts' {
529
476
  * this value multiplied by `Period`.
530
477
  **/
531
478
  queueCount: u32 & AugmentedConst<ApiType>;
532
- /**
533
- * The name for the reserve ID.
534
- **/
535
- reserveId: U8aFixed & AugmentedConst<ApiType>;
536
479
  /**
537
480
  * The maximum proportion which may be thawed and the period over which it is reset.
538
481
  **/
@@ -547,6 +490,14 @@ declare module '@polkadot/api-base/types/consts' {
547
490
  * The minimum amount required to keep an account open.
548
491
  **/
549
492
  existentialDeposit: u128 & AugmentedConst<ApiType>;
493
+ /**
494
+ * The maximum number of individual freeze locks that can exist on an account at any time.
495
+ **/
496
+ maxFreezes: u32 & AugmentedConst<ApiType>;
497
+ /**
498
+ * The maximum number of holds that can exist on an account at any time.
499
+ **/
500
+ maxHolds: u32 & AugmentedConst<ApiType>;
550
501
  /**
551
502
  * The maximum number of locks that should exist on an account.
552
503
  * Not strictly enforced, but used for weight estimation.
@@ -593,70 +544,6 @@ declare module '@polkadot/api-base/types/consts' {
593
544
  **/
594
545
  [key: string]: Codec;
595
546
  };
596
- phragmenElection: {
597
- /**
598
- * How much should be locked up in order to submit one's candidacy.
599
- **/
600
- candidacyBond: u128 & AugmentedConst<ApiType>;
601
- /**
602
- * Number of members to elect.
603
- **/
604
- desiredMembers: u32 & AugmentedConst<ApiType>;
605
- /**
606
- * Number of runners_up to keep.
607
- **/
608
- desiredRunnersUp: u32 & AugmentedConst<ApiType>;
609
- /**
610
- * The maximum number of candidates in a phragmen election.
611
- *
612
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
613
- * consider how it will impact `T::WeightInfo::election_phragmen`.
614
- *
615
- * When this limit is reached no more candidates are accepted in the election.
616
- **/
617
- maxCandidates: u32 & AugmentedConst<ApiType>;
618
- /**
619
- * The maximum number of voters to allow in a phragmen election.
620
- *
621
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
622
- * consider how it will impact `T::WeightInfo::election_phragmen`.
623
- *
624
- * When the limit is reached the new voters are ignored.
625
- **/
626
- maxVoters: u32 & AugmentedConst<ApiType>;
627
- /**
628
- * Maximum numbers of votes per voter.
629
- *
630
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
631
- * consider how it will impact `T::WeightInfo::election_phragmen`.
632
- **/
633
- maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
634
- /**
635
- * Identifier for the elections-phragmen pallet's lock
636
- **/
637
- palletId: U8aFixed & AugmentedConst<ApiType>;
638
- /**
639
- * How long each seat is kept. This defines the next block number at which an election
640
- * round will happen. If set to zero, no elections are ever triggered and the module will
641
- * be in passive mode.
642
- **/
643
- termDuration: u32 & AugmentedConst<ApiType>;
644
- /**
645
- * Base deposit associated with voting.
646
- *
647
- * This should be sensibly high to economically ensure the pallet cannot be attacked by
648
- * creating a gigantic number of votes.
649
- **/
650
- votingBondBase: u128 & AugmentedConst<ApiType>;
651
- /**
652
- * The amount of bond that need to be locked for each vote (32 bytes).
653
- **/
654
- votingBondFactor: u128 & AugmentedConst<ApiType>;
655
- /**
656
- * Generic const
657
- **/
658
- [key: string]: Codec;
659
- };
660
547
  proxy: {
661
548
  /**
662
549
  * The base amount of currency needed to reserve for creating an announcement.
@@ -971,34 +858,6 @@ declare module '@polkadot/api-base/types/consts' {
971
858
  **/
972
859
  [key: string]: Codec;
973
860
  };
974
- tips: {
975
- /**
976
- * The amount held on deposit per byte within the tip report reason or bounty description.
977
- **/
978
- dataDepositPerByte: u128 & AugmentedConst<ApiType>;
979
- /**
980
- * Maximum acceptable reason length.
981
- *
982
- * Benchmarks depend on this value, be sure to update weights file when changing this value
983
- **/
984
- maximumReasonLength: u32 & AugmentedConst<ApiType>;
985
- /**
986
- * The period for which a tip remains open after is has achieved threshold tippers.
987
- **/
988
- tipCountdown: u32 & AugmentedConst<ApiType>;
989
- /**
990
- * The percent of the final tip which goes to the original reporter of the tip.
991
- **/
992
- tipFindersFee: Percent & AugmentedConst<ApiType>;
993
- /**
994
- * The amount held on deposit for placing a tip report.
995
- **/
996
- tipReportDepositBase: u128 & AugmentedConst<ApiType>;
997
- /**
998
- * Generic const
999
- **/
1000
- [key: string]: Codec;
1001
- };
1002
861
  transactionPayment: {
1003
862
  /**
1004
863
  * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their