@polkadot/api-augment 10.1.4 → 10.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.
@@ -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.2' };
@@ -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> {
@@ -51,9 +51,24 @@ declare module '@polkadot/api-base/types/consts' {
51
51
  };
52
52
  balances: {
53
53
  /**
54
- * The minimum amount required to keep an account open.
54
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
55
+ *
56
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
57
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
58
+ * In case you have multiple sources of provider references, you may also get unexpected
59
+ * behaviour if you set this to zero.
60
+ *
61
+ * Bottom line: Do yourself a favour and make it at least one!
55
62
  **/
56
63
  existentialDeposit: u128 & AugmentedConst<ApiType>;
64
+ /**
65
+ * The maximum number of individual freeze locks that can exist on an account at any time.
66
+ **/
67
+ maxFreezes: u32 & AugmentedConst<ApiType>;
68
+ /**
69
+ * The maximum number of holds that can exist on an account at any time.
70
+ **/
71
+ maxHolds: u32 & AugmentedConst<ApiType>;
57
72
  /**
58
73
  * The maximum number of locks that should exist on an account.
59
74
  * Not strictly enforced, but used for weight estimation.
@@ -175,72 +190,6 @@ declare module '@polkadot/api-base/types/consts' {
175
190
  **/
176
191
  [key: string]: Codec;
177
192
  };
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
193
  electionProviderMultiPhase: {
245
194
  /**
246
195
  * The minimum amount of improvement to the solution score that defines a solution as
@@ -272,6 +221,7 @@ declare module '@polkadot/api-base/types/consts' {
272
221
  minerMaxLength: u32 & AugmentedConst<ApiType>;
273
222
  minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
274
223
  minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
224
+ minerMaxWinners: u32 & AugmentedConst<ApiType>;
275
225
  /**
276
226
  * The priority of the unsigned transaction submitted in the unsigned-phase
277
227
  **/
@@ -487,6 +437,10 @@ declare module '@polkadot/api-base/types/consts' {
487
437
  * Must be no greater than `MaxQueueLen`.
488
438
  **/
489
439
  fifoQueueLen: u32 & AugmentedConst<ApiType>;
440
+ /**
441
+ * The identifier of the hold reason.
442
+ **/
443
+ holdReason: KusamaRuntimeHoldReason & AugmentedConst<ApiType>;
490
444
  /**
491
445
  * The number of blocks between consecutive attempts to dequeue bids and create receipts.
492
446
  *
@@ -529,10 +483,6 @@ declare module '@polkadot/api-base/types/consts' {
529
483
  * this value multiplied by `Period`.
530
484
  **/
531
485
  queueCount: u32 & AugmentedConst<ApiType>;
532
- /**
533
- * The name for the reserve ID.
534
- **/
535
- reserveId: U8aFixed & AugmentedConst<ApiType>;
536
486
  /**
537
487
  * The maximum proportion which may be thawed and the period over which it is reset.
538
488
  **/
@@ -544,9 +494,24 @@ declare module '@polkadot/api-base/types/consts' {
544
494
  };
545
495
  nisCounterpartBalances: {
546
496
  /**
547
- * The minimum amount required to keep an account open.
497
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
498
+ *
499
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
500
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
501
+ * In case you have multiple sources of provider references, you may also get unexpected
502
+ * behaviour if you set this to zero.
503
+ *
504
+ * Bottom line: Do yourself a favour and make it at least one!
548
505
  **/
549
506
  existentialDeposit: u128 & AugmentedConst<ApiType>;
507
+ /**
508
+ * The maximum number of individual freeze locks that can exist on an account at any time.
509
+ **/
510
+ maxFreezes: u32 & AugmentedConst<ApiType>;
511
+ /**
512
+ * The maximum number of holds that can exist on an account at any time.
513
+ **/
514
+ maxHolds: u32 & AugmentedConst<ApiType>;
550
515
  /**
551
516
  * The maximum number of locks that should exist on an account.
552
517
  * Not strictly enforced, but used for weight estimation.
@@ -593,70 +558,6 @@ declare module '@polkadot/api-base/types/consts' {
593
558
  **/
594
559
  [key: string]: Codec;
595
560
  };
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
561
  proxy: {
661
562
  /**
662
563
  * The base amount of currency needed to reserve for creating an announcement.
@@ -971,34 +872,6 @@ declare module '@polkadot/api-base/types/consts' {
971
872
  **/
972
873
  [key: string]: Codec;
973
874
  };
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
875
  transactionPayment: {
1003
876
  /**
1004
877
  * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their