@polkadot/api-augment 16.4.9 → 16.5.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/assetHubKusama/consts.d.ts +598 -4
- package/assetHubKusama/errors.d.ts +1278 -49
- package/assetHubKusama/events.d.ts +1691 -127
- package/assetHubKusama/query.d.ts +1175 -26
- package/assetHubKusama/runtime.d.ts +211 -8
- package/assetHubKusama/tx.d.ts +6095 -2628
- package/cjs/assetHubKusama/consts.d.ts +598 -4
- package/cjs/assetHubKusama/errors.d.ts +1278 -49
- package/cjs/assetHubKusama/events.d.ts +1691 -127
- package/cjs/assetHubKusama/query.d.ts +1175 -26
- package/cjs/assetHubKusama/runtime.d.ts +211 -8
- package/cjs/assetHubKusama/tx.d.ts +6095 -2628
- package/cjs/kusama/consts.d.ts +46 -104
- package/cjs/kusama/errors.d.ts +113 -121
- package/cjs/kusama/events.d.ts +258 -228
- package/cjs/kusama/query.d.ts +211 -104
- package/cjs/kusama/tx.d.ts +451 -236
- package/cjs/packageInfo.js +1 -1
- package/cjs/polkadot/consts.d.ts +40 -2
- package/cjs/polkadot/errors.d.ts +113 -0
- package/cjs/polkadot/events.d.ts +247 -1
- package/cjs/polkadot/query.d.ts +218 -4
- package/cjs/polkadot/runtime.d.ts +15 -1
- package/cjs/polkadot/tx.d.ts +399 -12
- package/kusama/consts.d.ts +46 -104
- package/kusama/errors.d.ts +113 -121
- package/kusama/events.d.ts +258 -228
- package/kusama/query.d.ts +211 -104
- package/kusama/tx.d.ts +451 -236
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +40 -2
- package/polkadot/errors.d.ts +113 -0
- package/polkadot/events.d.ts +247 -1
- package/polkadot/query.d.ts +218 -4
- package/polkadot/runtime.d.ts +15 -1
- package/polkadot/tx.d.ts +399 -12
|
@@ -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, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
|
-
import type { Codec } from '@polkadot/types-codec/types';
|
|
3
|
+
import type { Bytes, Option, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
|
+
import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight,
|
|
6
|
+
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions, StagingXcmV5Location } 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> {
|
|
@@ -35,7 +35,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
35
35
|
/**
|
|
36
36
|
* Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
|
|
37
37
|
**/
|
|
38
|
-
poolSetupFeeAsset:
|
|
38
|
+
poolSetupFeeAsset: StagingXcmV5Location & AugmentedConst<ApiType>;
|
|
39
39
|
/**
|
|
40
40
|
* Generic const
|
|
41
41
|
**/
|
|
@@ -126,6 +126,79 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
126
126
|
**/
|
|
127
127
|
[key: string]: Codec;
|
|
128
128
|
};
|
|
129
|
+
bounties: {
|
|
130
|
+
/**
|
|
131
|
+
* The amount held on deposit for placing a bounty proposal.
|
|
132
|
+
**/
|
|
133
|
+
bountyDepositBase: u128 & AugmentedConst<ApiType>;
|
|
134
|
+
/**
|
|
135
|
+
* The delay period for which a bounty beneficiary need to wait before claim the payout.
|
|
136
|
+
**/
|
|
137
|
+
bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
|
|
138
|
+
/**
|
|
139
|
+
* The time limit for a curator to act before a bounty expires.
|
|
140
|
+
*
|
|
141
|
+
* The period that starts when a curator is approved, during which they must execute or
|
|
142
|
+
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
|
143
|
+
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
|
144
|
+
* removing the need for `extend_bounty_expiry`.
|
|
145
|
+
**/
|
|
146
|
+
bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
|
|
147
|
+
/**
|
|
148
|
+
* Minimum value for a bounty.
|
|
149
|
+
**/
|
|
150
|
+
bountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
151
|
+
/**
|
|
152
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
153
|
+
**/
|
|
154
|
+
curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
|
|
155
|
+
/**
|
|
156
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
157
|
+
**/
|
|
158
|
+
curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
|
|
159
|
+
/**
|
|
160
|
+
* The curator deposit is calculated as a percentage of the curator fee.
|
|
161
|
+
*
|
|
162
|
+
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
|
163
|
+
* `CuratorDepositMin`.
|
|
164
|
+
**/
|
|
165
|
+
curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
|
|
166
|
+
/**
|
|
167
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
168
|
+
**/
|
|
169
|
+
dataDepositPerByte: u128 & AugmentedConst<ApiType>;
|
|
170
|
+
/**
|
|
171
|
+
* Maximum acceptable reason length.
|
|
172
|
+
*
|
|
173
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
174
|
+
**/
|
|
175
|
+
maximumReasonLength: u32 & AugmentedConst<ApiType>;
|
|
176
|
+
/**
|
|
177
|
+
* Generic const
|
|
178
|
+
**/
|
|
179
|
+
[key: string]: Codec;
|
|
180
|
+
};
|
|
181
|
+
childBounties: {
|
|
182
|
+
/**
|
|
183
|
+
* Minimum value for a child-bounty.
|
|
184
|
+
**/
|
|
185
|
+
childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
|
|
186
|
+
/**
|
|
187
|
+
* Maximum number of child bounties that can be added to a parent bounty.
|
|
188
|
+
**/
|
|
189
|
+
maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
|
|
190
|
+
/**
|
|
191
|
+
* Generic const
|
|
192
|
+
**/
|
|
193
|
+
[key: string]: Codec;
|
|
194
|
+
};
|
|
195
|
+
claims: {
|
|
196
|
+
prefix: Bytes & AugmentedConst<ApiType>;
|
|
197
|
+
/**
|
|
198
|
+
* Generic const
|
|
199
|
+
**/
|
|
200
|
+
[key: string]: Codec;
|
|
201
|
+
};
|
|
129
202
|
collatorSelection: {
|
|
130
203
|
kickThreshold: u32 & AugmentedConst<ApiType>;
|
|
131
204
|
/**
|
|
@@ -157,6 +230,40 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
157
230
|
**/
|
|
158
231
|
[key: string]: Codec;
|
|
159
232
|
};
|
|
233
|
+
convictionVoting: {
|
|
234
|
+
/**
|
|
235
|
+
* The maximum number of concurrent votes an account may have.
|
|
236
|
+
*
|
|
237
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
238
|
+
* weight estimation: see `delegate` for instance.
|
|
239
|
+
**/
|
|
240
|
+
maxVotes: u32 & AugmentedConst<ApiType>;
|
|
241
|
+
/**
|
|
242
|
+
* The minimum period of vote locking.
|
|
243
|
+
*
|
|
244
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
245
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
246
|
+
**/
|
|
247
|
+
voteLockingPeriod: u32 & AugmentedConst<ApiType>;
|
|
248
|
+
/**
|
|
249
|
+
* Generic const
|
|
250
|
+
**/
|
|
251
|
+
[key: string]: Codec;
|
|
252
|
+
};
|
|
253
|
+
delegatedStaking: {
|
|
254
|
+
/**
|
|
255
|
+
* Injected identifier for the pallet.
|
|
256
|
+
**/
|
|
257
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
258
|
+
/**
|
|
259
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
260
|
+
**/
|
|
261
|
+
slashRewardFraction: Perbill & AugmentedConst<ApiType>;
|
|
262
|
+
/**
|
|
263
|
+
* Generic const
|
|
264
|
+
**/
|
|
265
|
+
[key: string]: Codec;
|
|
266
|
+
};
|
|
160
267
|
foreignAssets: {
|
|
161
268
|
/**
|
|
162
269
|
* The amount of funds that must be reserved when creating a new approval.
|
|
@@ -195,6 +302,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
195
302
|
**/
|
|
196
303
|
[key: string]: Codec;
|
|
197
304
|
};
|
|
305
|
+
indices: {
|
|
306
|
+
/**
|
|
307
|
+
* The deposit needed for reserving an index.
|
|
308
|
+
**/
|
|
309
|
+
deposit: u128 & AugmentedConst<ApiType>;
|
|
310
|
+
/**
|
|
311
|
+
* Generic const
|
|
312
|
+
**/
|
|
313
|
+
[key: string]: Codec;
|
|
314
|
+
};
|
|
198
315
|
messageQueue: {
|
|
199
316
|
/**
|
|
200
317
|
* The size of the page; this implies the maximum message size which can be sent.
|
|
@@ -232,6 +349,93 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
232
349
|
**/
|
|
233
350
|
[key: string]: Codec;
|
|
234
351
|
};
|
|
352
|
+
multiBlockElection: {
|
|
353
|
+
/**
|
|
354
|
+
* The number of pages.
|
|
355
|
+
*
|
|
356
|
+
* The snapshot is created with this many keys in the storage map.
|
|
357
|
+
*
|
|
358
|
+
* The solutions may contain at MOST this many pages, but less pages are acceptable as
|
|
359
|
+
* well.
|
|
360
|
+
**/
|
|
361
|
+
pages: u32 & AugmentedConst<ApiType>;
|
|
362
|
+
/**
|
|
363
|
+
* Duration of the signed phase.
|
|
364
|
+
**/
|
|
365
|
+
signedPhase: u32 & AugmentedConst<ApiType>;
|
|
366
|
+
/**
|
|
367
|
+
* Duration of the singed validation phase.
|
|
368
|
+
*
|
|
369
|
+
* The duration of this should not be less than `T::Pages`, and there is no point in it
|
|
370
|
+
* being more than `SignedPhase::MaxSubmission::get() * T::Pages`. TODO: integrity test for
|
|
371
|
+
* it.
|
|
372
|
+
**/
|
|
373
|
+
signedValidationPhase: u32 & AugmentedConst<ApiType>;
|
|
374
|
+
/**
|
|
375
|
+
* The number of snapshot targets to fetch per block.
|
|
376
|
+
**/
|
|
377
|
+
targetSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
|
378
|
+
/**
|
|
379
|
+
* Duration of the unsigned phase.
|
|
380
|
+
**/
|
|
381
|
+
unsignedPhase: u32 & AugmentedConst<ApiType>;
|
|
382
|
+
/**
|
|
383
|
+
* The number of snapshot voters to fetch per block.
|
|
384
|
+
**/
|
|
385
|
+
voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
|
|
386
|
+
/**
|
|
387
|
+
* Generic const
|
|
388
|
+
**/
|
|
389
|
+
[key: string]: Codec;
|
|
390
|
+
};
|
|
391
|
+
multiBlockElectionVerifier: {
|
|
392
|
+
/**
|
|
393
|
+
* Maximum number of backers, per winner, per page.
|
|
394
|
+
**/
|
|
395
|
+
maxBackersPerWinner: u32 & AugmentedConst<ApiType>;
|
|
396
|
+
/**
|
|
397
|
+
* Maximum number of backers, per winner, among all pages of an election.
|
|
398
|
+
*
|
|
399
|
+
* This can only be checked at the very final step of verification.
|
|
400
|
+
*
|
|
401
|
+
* NOTE: at the moment, we don't check this, and it is in place for future compatibility.
|
|
402
|
+
**/
|
|
403
|
+
maxBackersPerWinnerFinal: u32 & AugmentedConst<ApiType>;
|
|
404
|
+
/**
|
|
405
|
+
* Maximum number of supports (aka. winners/validators/targets) that can be represented in
|
|
406
|
+
* a page of results.
|
|
407
|
+
**/
|
|
408
|
+
maxWinnersPerPage: u32 & AugmentedConst<ApiType>;
|
|
409
|
+
/**
|
|
410
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
411
|
+
* "better".
|
|
412
|
+
**/
|
|
413
|
+
solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* Generic const
|
|
416
|
+
**/
|
|
417
|
+
[key: string]: Codec;
|
|
418
|
+
};
|
|
419
|
+
multiBlockMigrations: {
|
|
420
|
+
/**
|
|
421
|
+
* The maximal length of an encoded cursor.
|
|
422
|
+
*
|
|
423
|
+
* A good default needs to selected such that no migration will ever have a cursor with MEL
|
|
424
|
+
* above this limit. This is statically checked in `integrity_test`.
|
|
425
|
+
**/
|
|
426
|
+
cursorMaxLen: u32 & AugmentedConst<ApiType>;
|
|
427
|
+
/**
|
|
428
|
+
* The maximal length of an encoded identifier.
|
|
429
|
+
*
|
|
430
|
+
* A good default needs to selected such that no migration will ever have an identifier
|
|
431
|
+
* with MEL above this limit. This is statically checked in `integrity_test`.
|
|
432
|
+
**/
|
|
433
|
+
identifierMaxLen: u32 & AugmentedConst<ApiType>;
|
|
434
|
+
/**
|
|
435
|
+
* Generic const
|
|
436
|
+
**/
|
|
437
|
+
[key: string]: Codec;
|
|
438
|
+
};
|
|
235
439
|
multisig: {
|
|
236
440
|
/**
|
|
237
441
|
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
@@ -347,6 +551,35 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
347
551
|
**/
|
|
348
552
|
[key: string]: Codec;
|
|
349
553
|
};
|
|
554
|
+
nominationPools: {
|
|
555
|
+
/**
|
|
556
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
557
|
+
*
|
|
558
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
559
|
+
* ratio becomes disproportional.
|
|
560
|
+
*
|
|
561
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
562
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
563
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
564
|
+
* the chain, in the absolute worse case.
|
|
565
|
+
*
|
|
566
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
567
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
568
|
+
**/
|
|
569
|
+
maxPointsToBalance: u8 & AugmentedConst<ApiType>;
|
|
570
|
+
/**
|
|
571
|
+
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
|
572
|
+
**/
|
|
573
|
+
maxUnbonding: u32 & AugmentedConst<ApiType>;
|
|
574
|
+
/**
|
|
575
|
+
* The nomination pool's pallet id.
|
|
576
|
+
**/
|
|
577
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
578
|
+
/**
|
|
579
|
+
* Generic const
|
|
580
|
+
**/
|
|
581
|
+
[key: string]: Codec;
|
|
582
|
+
};
|
|
350
583
|
parachainSystem: {
|
|
351
584
|
/**
|
|
352
585
|
* Returns the parachain ID we are running with.
|
|
@@ -363,6 +596,18 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
363
596
|
* `pallet_xcm::CurrentXcmVersion`.
|
|
364
597
|
**/
|
|
365
598
|
advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
|
|
599
|
+
/**
|
|
600
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
601
|
+
**/
|
|
602
|
+
maxLockers: u32 & AugmentedConst<ApiType>;
|
|
603
|
+
/**
|
|
604
|
+
* The maximum number of consumers a single remote lock may have.
|
|
605
|
+
**/
|
|
606
|
+
maxRemoteLockConsumers: u32 & AugmentedConst<ApiType>;
|
|
607
|
+
/**
|
|
608
|
+
* This chain's Universal Location.
|
|
609
|
+
**/
|
|
610
|
+
universalLocation: StagingXcmV5Junctions & AugmentedConst<ApiType>;
|
|
366
611
|
/**
|
|
367
612
|
* Generic const
|
|
368
613
|
**/
|
|
@@ -449,6 +694,77 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
449
694
|
**/
|
|
450
695
|
[key: string]: Codec;
|
|
451
696
|
};
|
|
697
|
+
recovery: {
|
|
698
|
+
/**
|
|
699
|
+
* The base amount of currency needed to reserve for creating a recovery configuration.
|
|
700
|
+
*
|
|
701
|
+
* This is held for an additional storage item whose value size is
|
|
702
|
+
* `2 + sizeof(BlockNumber, Balance)` bytes.
|
|
703
|
+
**/
|
|
704
|
+
configDepositBase: u128 & AugmentedConst<ApiType>;
|
|
705
|
+
/**
|
|
706
|
+
* The amount of currency needed per additional user when creating a recovery
|
|
707
|
+
* configuration.
|
|
708
|
+
*
|
|
709
|
+
* This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
|
|
710
|
+
* value.
|
|
711
|
+
**/
|
|
712
|
+
friendDepositFactor: u128 & AugmentedConst<ApiType>;
|
|
713
|
+
/**
|
|
714
|
+
* The maximum amount of friends allowed in a recovery configuration.
|
|
715
|
+
*
|
|
716
|
+
* NOTE: The threshold programmed in this Pallet uses u16, so it does
|
|
717
|
+
* not really make sense to have a limit here greater than u16::MAX.
|
|
718
|
+
* But also, that is a lot more than you should probably set this value
|
|
719
|
+
* to anyway...
|
|
720
|
+
**/
|
|
721
|
+
maxFriends: u32 & AugmentedConst<ApiType>;
|
|
722
|
+
/**
|
|
723
|
+
* The base amount of currency needed to reserve for starting a recovery.
|
|
724
|
+
*
|
|
725
|
+
* This is primarily held for deterring malicious recovery attempts, and should
|
|
726
|
+
* have a value large enough that a bad actor would choose not to place this
|
|
727
|
+
* deposit. It also acts to fund additional storage item whose value size is
|
|
728
|
+
* `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
|
|
729
|
+
* threshold.
|
|
730
|
+
**/
|
|
731
|
+
recoveryDeposit: u128 & AugmentedConst<ApiType>;
|
|
732
|
+
/**
|
|
733
|
+
* Generic const
|
|
734
|
+
**/
|
|
735
|
+
[key: string]: Codec;
|
|
736
|
+
};
|
|
737
|
+
referenda: {
|
|
738
|
+
/**
|
|
739
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
740
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
741
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
742
|
+
**/
|
|
743
|
+
alarmInterval: u32 & AugmentedConst<ApiType>;
|
|
744
|
+
/**
|
|
745
|
+
* Maximum size of the referendum queue for a single track.
|
|
746
|
+
**/
|
|
747
|
+
maxQueued: u32 & AugmentedConst<ApiType>;
|
|
748
|
+
/**
|
|
749
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
750
|
+
**/
|
|
751
|
+
submissionDeposit: u128 & AugmentedConst<ApiType>;
|
|
752
|
+
/**
|
|
753
|
+
* A list of tracks.
|
|
754
|
+
*
|
|
755
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
756
|
+
**/
|
|
757
|
+
tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
|
|
758
|
+
/**
|
|
759
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
760
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
761
|
+
**/
|
|
762
|
+
undecidingTimeout: u32 & AugmentedConst<ApiType>;
|
|
763
|
+
/**
|
|
764
|
+
* Generic const
|
|
765
|
+
**/
|
|
766
|
+
[key: string]: Codec;
|
|
767
|
+
};
|
|
452
768
|
revive: {
|
|
453
769
|
/**
|
|
454
770
|
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
@@ -500,6 +816,190 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
500
816
|
**/
|
|
501
817
|
[key: string]: Codec;
|
|
502
818
|
};
|
|
819
|
+
scheduler: {
|
|
820
|
+
/**
|
|
821
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
822
|
+
**/
|
|
823
|
+
maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
|
|
824
|
+
/**
|
|
825
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
826
|
+
*
|
|
827
|
+
* NOTE:
|
|
828
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
829
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
830
|
+
**/
|
|
831
|
+
maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
|
|
832
|
+
/**
|
|
833
|
+
* Generic const
|
|
834
|
+
**/
|
|
835
|
+
[key: string]: Codec;
|
|
836
|
+
};
|
|
837
|
+
session: {
|
|
838
|
+
/**
|
|
839
|
+
* The amount to be held when setting keys.
|
|
840
|
+
**/
|
|
841
|
+
keyDeposit: u128 & AugmentedConst<ApiType>;
|
|
842
|
+
/**
|
|
843
|
+
* Generic const
|
|
844
|
+
**/
|
|
845
|
+
[key: string]: Codec;
|
|
846
|
+
};
|
|
847
|
+
society: {
|
|
848
|
+
/**
|
|
849
|
+
* The number of [Config::BlockNumberProvider] blocks between membership challenges.
|
|
850
|
+
**/
|
|
851
|
+
challengePeriod: u32 & AugmentedConst<ApiType>;
|
|
852
|
+
/**
|
|
853
|
+
* The number of [Config::BlockNumberProvider] blocks on which new candidates can claim
|
|
854
|
+
* their membership and be the named head.
|
|
855
|
+
**/
|
|
856
|
+
claimPeriod: u32 & AugmentedConst<ApiType>;
|
|
857
|
+
/**
|
|
858
|
+
* The maximum number of strikes before a member gets funds slashed.
|
|
859
|
+
**/
|
|
860
|
+
graceStrikes: u32 & AugmentedConst<ApiType>;
|
|
861
|
+
/**
|
|
862
|
+
* The maximum number of bids at once.
|
|
863
|
+
**/
|
|
864
|
+
maxBids: u32 & AugmentedConst<ApiType>;
|
|
865
|
+
/**
|
|
866
|
+
* The maximum duration of the payout lock.
|
|
867
|
+
**/
|
|
868
|
+
maxLockDuration: u32 & AugmentedConst<ApiType>;
|
|
869
|
+
/**
|
|
870
|
+
* The maximum number of payouts a member may have waiting unclaimed.
|
|
871
|
+
**/
|
|
872
|
+
maxPayouts: u32 & AugmentedConst<ApiType>;
|
|
873
|
+
/**
|
|
874
|
+
* The societies's pallet id
|
|
875
|
+
**/
|
|
876
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
877
|
+
/**
|
|
878
|
+
* The amount of incentive paid within each period. Doesn't include VoterTip.
|
|
879
|
+
**/
|
|
880
|
+
periodSpend: u128 & AugmentedConst<ApiType>;
|
|
881
|
+
/**
|
|
882
|
+
* The number of [Config::BlockNumberProvider] blocks on which new candidates should be
|
|
883
|
+
* voted on. Together with
|
|
884
|
+
* `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
|
|
885
|
+
**/
|
|
886
|
+
votingPeriod: u32 & AugmentedConst<ApiType>;
|
|
887
|
+
/**
|
|
888
|
+
* Generic const
|
|
889
|
+
**/
|
|
890
|
+
[key: string]: Codec;
|
|
891
|
+
};
|
|
892
|
+
staking: {
|
|
893
|
+
/**
|
|
894
|
+
* Number of eras that staked funds must remain bonded for.
|
|
895
|
+
**/
|
|
896
|
+
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
897
|
+
/**
|
|
898
|
+
* Number of eras to keep in history.
|
|
899
|
+
*
|
|
900
|
+
* Following information is kept for eras in `[current_era -
|
|
901
|
+
* HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
|
|
902
|
+
* `ErasRewardPoints`, `ErasTotalStake`, `ClaimedRewards`,
|
|
903
|
+
* `ErasStakersPaged`, `ErasStakersOverview`.
|
|
904
|
+
*
|
|
905
|
+
* Must be more than the number of eras delayed by session.
|
|
906
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
907
|
+
* current_era - history_depth` must be guaranteed.
|
|
908
|
+
*
|
|
909
|
+
* If migrating an existing pallet from storage value to config value,
|
|
910
|
+
* this should be set to same value or greater as in storage.
|
|
911
|
+
**/
|
|
912
|
+
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
913
|
+
/**
|
|
914
|
+
* Maximum allowed era duration in milliseconds.
|
|
915
|
+
*
|
|
916
|
+
* This provides a defensive upper bound to cap the effective era duration, preventing
|
|
917
|
+
* excessively long eras from causing runaway inflation (e.g., due to bugs). If the actual
|
|
918
|
+
* era duration exceeds this value, it will be clamped to this maximum.
|
|
919
|
+
*
|
|
920
|
+
* Example: For an ideal era duration of 24 hours (86,400,000 ms),
|
|
921
|
+
* this can be set to 604,800,000 ms (7 days).
|
|
922
|
+
**/
|
|
923
|
+
maxEraDuration: u64 & AugmentedConst<ApiType>;
|
|
924
|
+
/**
|
|
925
|
+
* The maximum size of each `T::ExposurePage`.
|
|
926
|
+
*
|
|
927
|
+
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
|
928
|
+
* nominators.
|
|
929
|
+
*
|
|
930
|
+
* For older non-paged exposure, a reward payout was restricted to the top
|
|
931
|
+
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
|
932
|
+
* nominator payout.
|
|
933
|
+
*
|
|
934
|
+
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to
|
|
935
|
+
* reduce without handling it in a migration.
|
|
936
|
+
**/
|
|
937
|
+
maxExposurePageSize: u32 & AugmentedConst<ApiType>;
|
|
938
|
+
/**
|
|
939
|
+
* Maximum number of invulnerable validators.
|
|
940
|
+
**/
|
|
941
|
+
maxInvulnerables: u32 & AugmentedConst<ApiType>;
|
|
942
|
+
/**
|
|
943
|
+
* Maximum number of storage items that can be pruned in a single call.
|
|
944
|
+
*
|
|
945
|
+
* This controls how many storage items can be deleted in each call to `prune_era_step`.
|
|
946
|
+
* This should be set to a conservative value (e.g., 100-500 items) to ensure pruning
|
|
947
|
+
* doesn't consume too much block space. The actual weight is determined by benchmarks.
|
|
948
|
+
**/
|
|
949
|
+
maxPruningItems: u32 & AugmentedConst<ApiType>;
|
|
950
|
+
/**
|
|
951
|
+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
952
|
+
* have. Effectively determines how many unique eras a staker may be
|
|
953
|
+
* unbonding in.
|
|
954
|
+
*
|
|
955
|
+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
|
|
956
|
+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
|
|
957
|
+
* lower than the existing value can lead to inconsistencies in the
|
|
958
|
+
* `StakingLedger` and will need to be handled properly in a runtime
|
|
959
|
+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
|
|
960
|
+
* this effect.
|
|
961
|
+
**/
|
|
962
|
+
maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
|
|
963
|
+
/**
|
|
964
|
+
* The absolute maximum of winner validators this pallet should return.
|
|
965
|
+
*
|
|
966
|
+
* As this pallet supports multi-block election, the set of winner validators *per
|
|
967
|
+
* election* is bounded by this type.
|
|
968
|
+
**/
|
|
969
|
+
maxValidatorSet: u32 & AugmentedConst<ApiType>;
|
|
970
|
+
/**
|
|
971
|
+
* Number of sessions before the end of an era when the election for the next era will
|
|
972
|
+
* start.
|
|
973
|
+
*
|
|
974
|
+
* - This determines how many sessions **before** the last session of the era the staking
|
|
975
|
+
* election process should begin.
|
|
976
|
+
* - The value is bounded between **1** (election starts at the beginning of the last
|
|
977
|
+
* session) and `SessionsPerEra` (election starts at the beginning of the first session
|
|
978
|
+
* of the era).
|
|
979
|
+
*
|
|
980
|
+
* ### Example:
|
|
981
|
+
* - If `SessionsPerEra = 6` and `PlanningEraOffset = 1`, the election starts at the
|
|
982
|
+
* beginning of session `6 - 1 = 5`.
|
|
983
|
+
* - If `PlanningEraOffset = 6`, the election starts at the beginning of session `6 - 6 =
|
|
984
|
+
* 0`, meaning it starts at the very beginning of the era.
|
|
985
|
+
**/
|
|
986
|
+
planningEraOffset: u32 & AugmentedConst<ApiType>;
|
|
987
|
+
/**
|
|
988
|
+
* Number of sessions per era, as per the preferences of the **relay chain**.
|
|
989
|
+
**/
|
|
990
|
+
sessionsPerEra: u32 & AugmentedConst<ApiType>;
|
|
991
|
+
/**
|
|
992
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
993
|
+
*
|
|
994
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
995
|
+
* should be applied immediately, without opportunity for intervention.
|
|
996
|
+
**/
|
|
997
|
+
slashDeferDuration: u32 & AugmentedConst<ApiType>;
|
|
998
|
+
/**
|
|
999
|
+
* Generic const
|
|
1000
|
+
**/
|
|
1001
|
+
[key: string]: Codec;
|
|
1002
|
+
};
|
|
503
1003
|
stateTrieMigration: {
|
|
504
1004
|
/**
|
|
505
1005
|
* Maximal number of bytes that a key can have.
|
|
@@ -609,6 +1109,41 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
609
1109
|
**/
|
|
610
1110
|
[key: string]: Codec;
|
|
611
1111
|
};
|
|
1112
|
+
treasury: {
|
|
1113
|
+
/**
|
|
1114
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
1115
|
+
**/
|
|
1116
|
+
burn: Permill & AugmentedConst<ApiType>;
|
|
1117
|
+
/**
|
|
1118
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1119
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1120
|
+
*
|
|
1121
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
1122
|
+
*
|
|
1123
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
1124
|
+
**/
|
|
1125
|
+
maxApprovals: u32 & AugmentedConst<ApiType>;
|
|
1126
|
+
/**
|
|
1127
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
1128
|
+
**/
|
|
1129
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
1130
|
+
/**
|
|
1131
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
1132
|
+
**/
|
|
1133
|
+
payoutPeriod: u32 & AugmentedConst<ApiType>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Gets this pallet's derived pot account.
|
|
1136
|
+
**/
|
|
1137
|
+
potAccount: AccountId32 & AugmentedConst<ApiType>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Period between successive spends.
|
|
1140
|
+
**/
|
|
1141
|
+
spendPeriod: u32 & AugmentedConst<ApiType>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Generic const
|
|
1144
|
+
**/
|
|
1145
|
+
[key: string]: Codec;
|
|
1146
|
+
};
|
|
612
1147
|
uniques: {
|
|
613
1148
|
/**
|
|
614
1149
|
* The basic amount of funds that must be reserved when adding an attribute to an item.
|
|
@@ -669,6 +1204,65 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
669
1204
|
**/
|
|
670
1205
|
[key: string]: Codec;
|
|
671
1206
|
};
|
|
1207
|
+
voterList: {
|
|
1208
|
+
/**
|
|
1209
|
+
* The list of thresholds separating the various bags.
|
|
1210
|
+
*
|
|
1211
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
1212
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
1213
|
+
* is less than or equal to its upper threshold.
|
|
1214
|
+
*
|
|
1215
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
1216
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
1217
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
1218
|
+
*
|
|
1219
|
+
* # Expressing the constant
|
|
1220
|
+
*
|
|
1221
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
1222
|
+
* permitted.
|
|
1223
|
+
*
|
|
1224
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
1225
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
1226
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
1227
|
+
* lists will behave identically.
|
|
1228
|
+
*
|
|
1229
|
+
* # Calculation
|
|
1230
|
+
*
|
|
1231
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
1232
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
1233
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
1234
|
+
*
|
|
1235
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
1236
|
+
*
|
|
1237
|
+
* # Examples
|
|
1238
|
+
*
|
|
1239
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
1240
|
+
* iteration is strictly in insertion order.
|
|
1241
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
1242
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
1243
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
1244
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
1245
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
1246
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
1247
|
+
*
|
|
1248
|
+
* # Migration
|
|
1249
|
+
*
|
|
1250
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
1251
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
1252
|
+
**/
|
|
1253
|
+
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Maximum number of accounts that may be re-bagged automatically in `on_idle`.
|
|
1256
|
+
*
|
|
1257
|
+
* A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
|
|
1258
|
+
* the feature.
|
|
1259
|
+
**/
|
|
1260
|
+
maxAutoRebagPerBlock: u32 & AugmentedConst<ApiType>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Generic const
|
|
1263
|
+
**/
|
|
1264
|
+
[key: string]: Codec;
|
|
1265
|
+
};
|
|
672
1266
|
xcmpQueue: {
|
|
673
1267
|
/**
|
|
674
1268
|
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|