@polkadot/api-augment 7.0.3-8 → 7.1.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.
Files changed (63) hide show
  1. package/base.cjs +5 -0
  2. package/base.d.ts +2 -0
  3. package/{augment/index.js → base.js} +1 -7
  4. package/bundle.cjs +1 -1
  5. package/bundle.d.ts +1 -1
  6. package/bundle.js +1 -1
  7. package/{augment → kusama}/consts.cjs +0 -0
  8. package/kusama/consts.d.ts +892 -0
  9. package/{augment → kusama}/consts.js +0 -0
  10. package/{augment → kusama}/errors.cjs +0 -0
  11. package/kusama/errors.d.ts +1855 -0
  12. package/{augment → kusama}/errors.js +0 -0
  13. package/{augment → kusama}/events.cjs +0 -0
  14. package/kusama/events.d.ts +1278 -0
  15. package/{augment → kusama}/events.js +0 -0
  16. package/{augment → kusama}/index.cjs +1 -3
  17. package/{augment → kusama}/index.d.ts +1 -2
  18. package/kusama/index.js +8 -0
  19. package/{augment → kusama}/query.cjs +0 -0
  20. package/kusama/query.d.ts +1925 -0
  21. package/{augment → kusama}/query.js +0 -0
  22. package/{augment → kusama}/tx.cjs +0 -0
  23. package/kusama/tx.d.ts +4877 -0
  24. package/{augment → kusama}/tx.js +0 -0
  25. package/package.json +100 -35
  26. package/packageInfo.cjs +1 -1
  27. package/packageInfo.js +1 -1
  28. package/polkadot/consts.cjs +1 -0
  29. package/polkadot/consts.d.ts +764 -0
  30. package/polkadot/consts.js +1 -0
  31. package/polkadot/errors.cjs +1 -0
  32. package/polkadot/errors.d.ts +1634 -0
  33. package/polkadot/errors.js +1 -0
  34. package/polkadot/events.cjs +1 -0
  35. package/polkadot/events.d.ts +1126 -0
  36. package/polkadot/events.js +1 -0
  37. package/polkadot/index.cjs +13 -0
  38. package/polkadot/index.d.ts +6 -0
  39. package/polkadot/index.js +8 -0
  40. package/polkadot/query.cjs +1 -0
  41. package/polkadot/query.d.ts +1770 -0
  42. package/polkadot/query.js +1 -0
  43. package/polkadot/tx.cjs +1 -0
  44. package/polkadot/tx.d.ts +4275 -0
  45. package/polkadot/tx.js +1 -0
  46. package/substrate/consts.cjs +1 -0
  47. package/{augment → substrate}/consts.d.ts +0 -0
  48. package/substrate/consts.js +1 -0
  49. package/substrate/errors.cjs +1 -0
  50. package/{augment → substrate}/errors.d.ts +0 -0
  51. package/substrate/errors.js +1 -0
  52. package/substrate/events.cjs +1 -0
  53. package/{augment → substrate}/events.d.ts +0 -0
  54. package/substrate/events.js +1 -0
  55. package/substrate/index.cjs +13 -0
  56. package/substrate/index.d.ts +6 -0
  57. package/substrate/index.js +8 -0
  58. package/substrate/query.cjs +1 -0
  59. package/{augment → substrate}/query.d.ts +0 -0
  60. package/substrate/query.js +1 -0
  61. package/substrate/tx.cjs +1 -0
  62. package/{augment → substrate}/tx.d.ts +0 -0
  63. package/substrate/tx.js +1 -0
@@ -0,0 +1,892 @@
1
+ import type { ApiTypes } from '@polkadot/api-base/types';
2
+ import type { Bytes, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { Codec } from '@polkadot/types-codec/types';
4
+ import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
5
+ import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSupportWeightsWeightToFeeCoefficient, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
6
+ declare module '@polkadot/api-base/types/consts' {
7
+ interface AugmentedConsts<ApiType extends ApiTypes> {
8
+ auctions: {
9
+ /**
10
+ * The number of blocks over which an auction may be retroactively ended.
11
+ **/
12
+ endingPeriod: u32 & AugmentedConst<ApiType>;
13
+ leasePeriodsPerSlot: u32 & AugmentedConst<ApiType>;
14
+ /**
15
+ * The length of each sample to take during the ending period.
16
+ *
17
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
18
+ **/
19
+ sampleLength: u32 & AugmentedConst<ApiType>;
20
+ slotRangeCount: u32 & AugmentedConst<ApiType>;
21
+ /**
22
+ * Generic const
23
+ **/
24
+ [key: string]: Codec;
25
+ };
26
+ authorship: {
27
+ /**
28
+ * The number of blocks back we should accept uncles.
29
+ * This means that we will deal with uncle-parents that are
30
+ * `UncleGenerations + 1` before `now`.
31
+ **/
32
+ uncleGenerations: u32 & AugmentedConst<ApiType>;
33
+ /**
34
+ * Generic const
35
+ **/
36
+ [key: string]: Codec;
37
+ };
38
+ babe: {
39
+ /**
40
+ * The amount of time, in slots, that each epoch should last.
41
+ * NOTE: Currently it is not possible to change the epoch duration after
42
+ * the chain has started. Attempting to do so will brick block production.
43
+ **/
44
+ epochDuration: u64 & AugmentedConst<ApiType>;
45
+ /**
46
+ * The expected average block time at which BABE should be creating
47
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
48
+ * what the expected average block time should be based on the slot
49
+ * duration and the security parameter `c` (where `1 - c` represents
50
+ * the probability of a slot being empty).
51
+ **/
52
+ expectedBlockTime: u64 & AugmentedConst<ApiType>;
53
+ /**
54
+ * Max number of authorities allowed
55
+ **/
56
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
57
+ /**
58
+ * Generic const
59
+ **/
60
+ [key: string]: Codec;
61
+ };
62
+ bagsList: {
63
+ /**
64
+ * The list of thresholds separating the various bags.
65
+ *
66
+ * Ids are separated into unsorted bags according to their vote weight. This specifies the
67
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's weight
68
+ * is less than or equal to its upper threshold.
69
+ *
70
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
71
+ * that iteration is _semi-sorted_: ids of higher weight tend to come before ids of lower
72
+ * weight, but peer ids within a particular bag are sorted in insertion order.
73
+ *
74
+ * # Expressing the constant
75
+ *
76
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
77
+ * permitted.
78
+ *
79
+ * There is an implied upper limit of `VoteWeight::MAX`; that value does not need to be
80
+ * specified within the bag. For any two threshold lists, if one ends with
81
+ * `VoteWeight::MAX`, the other one does not, and they are otherwise equal, the two lists
82
+ * will behave identically.
83
+ *
84
+ * # Calculation
85
+ *
86
+ * It is recommended to generate the set of thresholds in a geometric series, such that
87
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
88
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
89
+ *
90
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
91
+ *
92
+ * # Examples
93
+ *
94
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
95
+ * iteration is strictly in insertion order.
96
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
97
+ * the procedure given above, then the constant ratio is equal to 2.
98
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
99
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
100
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with weight 0 or 1 will fall
101
+ * into bag 0, an id with weight 2 will fall into bag 1, etc.
102
+ *
103
+ * # Migration
104
+ *
105
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
106
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
107
+ **/
108
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
109
+ /**
110
+ * Generic const
111
+ **/
112
+ [key: string]: Codec;
113
+ };
114
+ balances: {
115
+ /**
116
+ * The minimum amount required to keep an account open.
117
+ **/
118
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
119
+ /**
120
+ * The maximum number of locks that should exist on an account.
121
+ * Not strictly enforced, but used for weight estimation.
122
+ **/
123
+ maxLocks: u32 & AugmentedConst<ApiType>;
124
+ /**
125
+ * The maximum number of named reserves that can exist on an account.
126
+ **/
127
+ maxReserves: u32 & AugmentedConst<ApiType>;
128
+ /**
129
+ * Generic const
130
+ **/
131
+ [key: string]: Codec;
132
+ };
133
+ bounties: {
134
+ /**
135
+ * Percentage of the curator fee that will be reserved upfront as deposit for bounty
136
+ * curator.
137
+ **/
138
+ bountyCuratorDeposit: Permill & AugmentedConst<ApiType>;
139
+ /**
140
+ * The amount held on deposit for placing a bounty proposal.
141
+ **/
142
+ bountyDepositBase: u128 & AugmentedConst<ApiType>;
143
+ /**
144
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
145
+ **/
146
+ bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
147
+ /**
148
+ * Bounty duration in blocks.
149
+ **/
150
+ bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
151
+ /**
152
+ * Minimum value for a bounty.
153
+ **/
154
+ bountyValueMinimum: u128 & AugmentedConst<ApiType>;
155
+ /**
156
+ * The amount held on deposit per byte within the tip report reason or bounty description.
157
+ **/
158
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
159
+ /**
160
+ * Maximum acceptable reason length.
161
+ *
162
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
163
+ **/
164
+ maximumReasonLength: u32 & AugmentedConst<ApiType>;
165
+ /**
166
+ * Generic const
167
+ **/
168
+ [key: string]: Codec;
169
+ };
170
+ claims: {
171
+ prefix: Bytes & AugmentedConst<ApiType>;
172
+ /**
173
+ * Generic const
174
+ **/
175
+ [key: string]: Codec;
176
+ };
177
+ crowdloan: {
178
+ /**
179
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be at
180
+ * least `ExistentialDeposit`.
181
+ **/
182
+ minContribution: u128 & AugmentedConst<ApiType>;
183
+ /**
184
+ * `PalletId` for the crowdloan pallet. An appropriate value could be `PalletId(*b"py/cfund")`
185
+ **/
186
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
187
+ /**
188
+ * Max number of storage keys to remove per extrinsic call.
189
+ **/
190
+ removeKeysLimit: u32 & AugmentedConst<ApiType>;
191
+ /**
192
+ * Generic const
193
+ **/
194
+ [key: string]: Codec;
195
+ };
196
+ democracy: {
197
+ /**
198
+ * Period in blocks where an external proposal may not be re-submitted after being vetoed.
199
+ **/
200
+ cooloffPeriod: u32 & AugmentedConst<ApiType>;
201
+ /**
202
+ * The period between a proposal being approved and enacted.
203
+ *
204
+ * It should generally be a little more than the unstake period to ensure that
205
+ * voting stakers have an opportunity to remove themselves from the system in the case
206
+ * where they are on the losing side of a vote.
207
+ **/
208
+ enactmentPeriod: u32 & AugmentedConst<ApiType>;
209
+ /**
210
+ * Minimum voting period allowed for a fast-track referendum.
211
+ **/
212
+ fastTrackVotingPeriod: u32 & AugmentedConst<ApiType>;
213
+ /**
214
+ * Indicator for whether an emergency origin is even allowed to happen. Some chains may
215
+ * want to set this permanently to `false`, others may want to condition it on things such
216
+ * as an upgrade having happened recently.
217
+ **/
218
+ instantAllowed: bool & AugmentedConst<ApiType>;
219
+ /**
220
+ * How often (in blocks) new public referenda are launched.
221
+ **/
222
+ launchPeriod: u32 & AugmentedConst<ApiType>;
223
+ /**
224
+ * The maximum number of public proposals that can exist at any time.
225
+ **/
226
+ maxProposals: u32 & AugmentedConst<ApiType>;
227
+ /**
228
+ * The maximum number of votes for an account.
229
+ *
230
+ * Also used to compute weight, an overly big value can
231
+ * lead to extrinsic with very big weight: see `delegate` for instance.
232
+ **/
233
+ maxVotes: u32 & AugmentedConst<ApiType>;
234
+ /**
235
+ * The minimum amount to be used as a deposit for a public referendum proposal.
236
+ **/
237
+ minimumDeposit: u128 & AugmentedConst<ApiType>;
238
+ /**
239
+ * The amount of balance that must be deposited per byte of preimage stored.
240
+ **/
241
+ preimageByteDeposit: u128 & AugmentedConst<ApiType>;
242
+ /**
243
+ * The minimum period of vote locking.
244
+ *
245
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
246
+ * those successful voters are locked into the consequences that their votes entail.
247
+ **/
248
+ voteLockingPeriod: u32 & AugmentedConst<ApiType>;
249
+ /**
250
+ * How often (in blocks) to check for new votes.
251
+ **/
252
+ votingPeriod: u32 & AugmentedConst<ApiType>;
253
+ /**
254
+ * Generic const
255
+ **/
256
+ [key: string]: Codec;
257
+ };
258
+ electionProviderMultiPhase: {
259
+ /**
260
+ * Maximum length (bytes) that the mined solution should consume.
261
+ *
262
+ * The miner will ensure that the total length of the unsigned solution will not exceed
263
+ * this value.
264
+ **/
265
+ minerMaxLength: u32 & AugmentedConst<ApiType>;
266
+ /**
267
+ * Maximum weight that the miner should consume.
268
+ *
269
+ * The miner will ensure that the total weight of the unsigned solution will not exceed
270
+ * this value, based on [`WeightInfo::submit_unsigned`].
271
+ **/
272
+ minerMaxWeight: u64 & AugmentedConst<ApiType>;
273
+ /**
274
+ * The priority of the unsigned transaction submitted in the unsigned-phase
275
+ **/
276
+ minerTxPriority: u64 & AugmentedConst<ApiType>;
277
+ /**
278
+ * The repeat threshold of the offchain worker.
279
+ *
280
+ * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
281
+ * to submit the worker's solution.
282
+ **/
283
+ offchainRepeat: u32 & AugmentedConst<ApiType>;
284
+ /**
285
+ * Base deposit for a signed solution.
286
+ **/
287
+ signedDepositBase: u128 & AugmentedConst<ApiType>;
288
+ /**
289
+ * Per-byte deposit for a signed solution.
290
+ **/
291
+ signedDepositByte: u128 & AugmentedConst<ApiType>;
292
+ /**
293
+ * Per-weight deposit for a signed solution.
294
+ **/
295
+ signedDepositWeight: u128 & AugmentedConst<ApiType>;
296
+ /**
297
+ * Maximum number of signed submissions that can be queued.
298
+ *
299
+ * It is best to avoid adjusting this during an election, as it impacts downstream data
300
+ * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
301
+ * update this value during an election, you _must_ ensure that
302
+ * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
303
+ * attempts to submit new solutions may cause a runtime panic.
304
+ **/
305
+ signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
306
+ /**
307
+ * Maximum weight of a signed solution.
308
+ *
309
+ * This should probably be similar to [`Config::MinerMaxWeight`].
310
+ **/
311
+ signedMaxWeight: u64 & AugmentedConst<ApiType>;
312
+ /**
313
+ * Duration of the signed phase.
314
+ **/
315
+ signedPhase: u32 & AugmentedConst<ApiType>;
316
+ /**
317
+ * Base reward for a signed solution
318
+ **/
319
+ signedRewardBase: u128 & AugmentedConst<ApiType>;
320
+ /**
321
+ * The minimum amount of improvement to the solution score that defines a solution as
322
+ * "better" (in any phase).
323
+ **/
324
+ solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
325
+ /**
326
+ * Duration of the unsigned phase.
327
+ **/
328
+ unsignedPhase: u32 & AugmentedConst<ApiType>;
329
+ /**
330
+ * The maximum number of voters to put in the snapshot. At the moment, snapshots are only
331
+ * over a single block, but once multi-block elections are introduced they will take place
332
+ * over multiple blocks.
333
+ *
334
+ * Also, note the data type: If the voters are represented by a `u32` in `type
335
+ * CompactSolution`, the same `u32` is used here to ensure bounds are respected.
336
+ **/
337
+ voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
338
+ /**
339
+ * Generic const
340
+ **/
341
+ [key: string]: Codec;
342
+ };
343
+ gilt: {
344
+ /**
345
+ * Portion of the queue which is free from ordering and just a FIFO.
346
+ *
347
+ * Must be no greater than `MaxQueueLen`.
348
+ **/
349
+ fifoQueueLen: u32 & AugmentedConst<ApiType>;
350
+ /**
351
+ * The number of blocks between consecutive attempts to issue more gilts in an effort to
352
+ * get to the target amount to be frozen.
353
+ *
354
+ * A larger value results in fewer storage hits each block, but a slower period to get to
355
+ * the target.
356
+ **/
357
+ intakePeriod: u32 & AugmentedConst<ApiType>;
358
+ /**
359
+ * The maximum amount of bids that can be turned into issued gilts each block. A larger
360
+ * value here means less of the block available for transactions should there be a glut of
361
+ * bids to make into gilts to reach the target.
362
+ **/
363
+ maxIntakeBids: u32 & AugmentedConst<ApiType>;
364
+ /**
365
+ * Maximum number of items that may be in each duration queue.
366
+ **/
367
+ maxQueueLen: u32 & AugmentedConst<ApiType>;
368
+ /**
369
+ * The minimum amount of funds that may be offered to freeze for a gilt. Note that this
370
+ * does not actually limit the amount which may be frozen in a gilt since gilts may be
371
+ * split up in order to satisfy the desired amount of funds under gilts.
372
+ *
373
+ * It should be at least big enough to ensure that there is no possible storage spam attack
374
+ * or queue-filling attack.
375
+ **/
376
+ minFreeze: u128 & AugmentedConst<ApiType>;
377
+ /**
378
+ * The base period for the duration queues. This is the common multiple across all
379
+ * supported freezing durations that can be bid upon.
380
+ **/
381
+ period: u32 & AugmentedConst<ApiType>;
382
+ /**
383
+ * Number of duration queues in total. This sets the maximum duration supported, which is
384
+ * this value multiplied by `Period`.
385
+ **/
386
+ queueCount: u32 & AugmentedConst<ApiType>;
387
+ /**
388
+ * Generic const
389
+ **/
390
+ [key: string]: Codec;
391
+ };
392
+ grandpa: {
393
+ /**
394
+ * Max Authorities in use
395
+ **/
396
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
397
+ /**
398
+ * Generic const
399
+ **/
400
+ [key: string]: Codec;
401
+ };
402
+ identity: {
403
+ /**
404
+ * The amount held on deposit for a registered identity
405
+ **/
406
+ basicDeposit: u128 & AugmentedConst<ApiType>;
407
+ /**
408
+ * The amount held on deposit per additional field for a registered identity.
409
+ **/
410
+ fieldDeposit: u128 & AugmentedConst<ApiType>;
411
+ /**
412
+ * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
413
+ * required to access an identity, but can be pretty high.
414
+ **/
415
+ maxAdditionalFields: u32 & AugmentedConst<ApiType>;
416
+ /**
417
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
418
+ * of, e.g., updating judgements.
419
+ **/
420
+ maxRegistrars: u32 & AugmentedConst<ApiType>;
421
+ /**
422
+ * The maximum number of sub-accounts allowed per identified account.
423
+ **/
424
+ maxSubAccounts: u32 & AugmentedConst<ApiType>;
425
+ /**
426
+ * The amount held on deposit for a registered subaccount. This should account for the fact
427
+ * that one storage item's value will increase by the size of an account ID, and there will
428
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
429
+ **/
430
+ subAccountDeposit: u128 & AugmentedConst<ApiType>;
431
+ /**
432
+ * Generic const
433
+ **/
434
+ [key: string]: Codec;
435
+ };
436
+ imOnline: {
437
+ /**
438
+ * A configuration for base priority of unsigned transactions.
439
+ *
440
+ * This is exposed so that it can be tuned for particular runtime, when
441
+ * multiple pallets send unsigned transactions.
442
+ **/
443
+ unsignedPriority: u64 & AugmentedConst<ApiType>;
444
+ /**
445
+ * Generic const
446
+ **/
447
+ [key: string]: Codec;
448
+ };
449
+ indices: {
450
+ /**
451
+ * The deposit needed for reserving an index.
452
+ **/
453
+ deposit: u128 & AugmentedConst<ApiType>;
454
+ /**
455
+ * Generic const
456
+ **/
457
+ [key: string]: Codec;
458
+ };
459
+ multisig: {
460
+ /**
461
+ * The base amount of currency needed to reserve for creating a multisig execution or to
462
+ * store a dispatch call for later.
463
+ *
464
+ * This is held for an additional storage item whose value size is
465
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
466
+ * `32 + sizeof(AccountId)` bytes.
467
+ **/
468
+ depositBase: u128 & AugmentedConst<ApiType>;
469
+ /**
470
+ * The amount of currency needed per unit threshold when creating a multisig execution.
471
+ *
472
+ * This is held for adding 32 bytes more into a pre-existing storage value.
473
+ **/
474
+ depositFactor: u128 & AugmentedConst<ApiType>;
475
+ /**
476
+ * The maximum amount of signatories allowed in the multisig.
477
+ **/
478
+ maxSignatories: u16 & AugmentedConst<ApiType>;
479
+ /**
480
+ * Generic const
481
+ **/
482
+ [key: string]: Codec;
483
+ };
484
+ paras: {
485
+ unsignedPriority: u64 & AugmentedConst<ApiType>;
486
+ /**
487
+ * Generic const
488
+ **/
489
+ [key: string]: Codec;
490
+ };
491
+ phragmenElection: {
492
+ /**
493
+ * How much should be locked up in order to submit one's candidacy.
494
+ **/
495
+ candidacyBond: u128 & AugmentedConst<ApiType>;
496
+ /**
497
+ * Number of members to elect.
498
+ **/
499
+ desiredMembers: u32 & AugmentedConst<ApiType>;
500
+ /**
501
+ * Number of runners_up to keep.
502
+ **/
503
+ desiredRunnersUp: u32 & AugmentedConst<ApiType>;
504
+ /**
505
+ * Identifier for the elections-phragmen pallet's lock
506
+ **/
507
+ palletId: U8aFixed & AugmentedConst<ApiType>;
508
+ /**
509
+ * How long each seat is kept. This defines the next block number at which an election
510
+ * round will happen. If set to zero, no elections are ever triggered and the module will
511
+ * be in passive mode.
512
+ **/
513
+ termDuration: u32 & AugmentedConst<ApiType>;
514
+ /**
515
+ * Base deposit associated with voting.
516
+ *
517
+ * This should be sensibly high to economically ensure the pallet cannot be attacked by
518
+ * creating a gigantic number of votes.
519
+ **/
520
+ votingBondBase: u128 & AugmentedConst<ApiType>;
521
+ /**
522
+ * The amount of bond that need to be locked for each vote (32 bytes).
523
+ **/
524
+ votingBondFactor: u128 & AugmentedConst<ApiType>;
525
+ /**
526
+ * Generic const
527
+ **/
528
+ [key: string]: Codec;
529
+ };
530
+ proxy: {
531
+ /**
532
+ * The base amount of currency needed to reserve for creating an announcement.
533
+ *
534
+ * This is held when a new storage item holding a `Balance` is created (typically 16
535
+ * bytes).
536
+ **/
537
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
538
+ /**
539
+ * The amount of currency needed per announcement made.
540
+ *
541
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
542
+ * into a pre-existing storage value.
543
+ **/
544
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
545
+ /**
546
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
547
+ **/
548
+ maxPending: u32 & AugmentedConst<ApiType>;
549
+ /**
550
+ * The maximum amount of proxies allowed for a single account.
551
+ **/
552
+ maxProxies: u32 & AugmentedConst<ApiType>;
553
+ /**
554
+ * The base amount of currency needed to reserve for creating a proxy.
555
+ *
556
+ * This is held for an additional storage item whose value size is
557
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
558
+ **/
559
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
560
+ /**
561
+ * The amount of currency needed per proxy added.
562
+ *
563
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
564
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
565
+ * into account `32 + proxy_type.encode().len()` bytes of data.
566
+ **/
567
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
568
+ /**
569
+ * Generic const
570
+ **/
571
+ [key: string]: Codec;
572
+ };
573
+ recovery: {
574
+ /**
575
+ * The base amount of currency needed to reserve for creating a recovery configuration.
576
+ *
577
+ * This is held for an additional storage item whose value size is
578
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
579
+ **/
580
+ configDepositBase: u128 & AugmentedConst<ApiType>;
581
+ /**
582
+ * The amount of currency needed per additional user when creating a recovery
583
+ * configuration.
584
+ *
585
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
586
+ * value.
587
+ **/
588
+ friendDepositFactor: u128 & AugmentedConst<ApiType>;
589
+ /**
590
+ * The maximum amount of friends allowed in a recovery configuration.
591
+ **/
592
+ maxFriends: u16 & AugmentedConst<ApiType>;
593
+ /**
594
+ * The base amount of currency needed to reserve for starting a recovery.
595
+ *
596
+ * This is primarily held for deterring malicious recovery attempts, and should
597
+ * have a value large enough that a bad actor would choose not to place this
598
+ * deposit. It also acts to fund additional storage item whose value size is
599
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
600
+ * threshold.
601
+ **/
602
+ recoveryDeposit: u128 & AugmentedConst<ApiType>;
603
+ /**
604
+ * Generic const
605
+ **/
606
+ [key: string]: Codec;
607
+ };
608
+ registrar: {
609
+ /**
610
+ * The deposit to be paid per byte stored on chain.
611
+ **/
612
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
613
+ /**
614
+ * The deposit to be paid to run a parathread.
615
+ * This should include the cost for storing the genesis head and validation code.
616
+ **/
617
+ paraDeposit: u128 & AugmentedConst<ApiType>;
618
+ /**
619
+ * Generic const
620
+ **/
621
+ [key: string]: Codec;
622
+ };
623
+ scheduler: {
624
+ /**
625
+ * The maximum weight that may be scheduled per block for any dispatchables of less
626
+ * priority than `schedule::HARD_DEADLINE`.
627
+ **/
628
+ maximumWeight: u64 & AugmentedConst<ApiType>;
629
+ /**
630
+ * The maximum number of scheduled calls in the queue for a single block.
631
+ * Not strictly enforced, but used for weight estimation.
632
+ **/
633
+ maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
634
+ /**
635
+ * Generic const
636
+ **/
637
+ [key: string]: Codec;
638
+ };
639
+ slots: {
640
+ /**
641
+ * The number of blocks to offset each lease period by.
642
+ **/
643
+ leaseOffset: u32 & AugmentedConst<ApiType>;
644
+ /**
645
+ * The number of blocks over which a single period lasts.
646
+ **/
647
+ leasePeriod: u32 & AugmentedConst<ApiType>;
648
+ /**
649
+ * Generic const
650
+ **/
651
+ [key: string]: Codec;
652
+ };
653
+ society: {
654
+ /**
655
+ * The minimum amount of a deposit required for a bid to be made.
656
+ **/
657
+ candidateDeposit: u128 & AugmentedConst<ApiType>;
658
+ /**
659
+ * The number of blocks between membership challenges.
660
+ **/
661
+ challengePeriod: u32 & AugmentedConst<ApiType>;
662
+ /**
663
+ * The maximum number of candidates that we accept per round.
664
+ **/
665
+ maxCandidateIntake: u32 & AugmentedConst<ApiType>;
666
+ /**
667
+ * The maximum duration of the payout lock.
668
+ **/
669
+ maxLockDuration: u32 & AugmentedConst<ApiType>;
670
+ /**
671
+ * The number of times a member may vote the wrong way (or not at all, when they are a
672
+ * skeptic) before they become suspended.
673
+ **/
674
+ maxStrikes: u32 & AugmentedConst<ApiType>;
675
+ /**
676
+ * The societies's pallet id
677
+ **/
678
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
679
+ /**
680
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
681
+ **/
682
+ periodSpend: u128 & AugmentedConst<ApiType>;
683
+ /**
684
+ * The number of blocks between candidate/membership rotation periods.
685
+ **/
686
+ rotationPeriod: u32 & AugmentedConst<ApiType>;
687
+ /**
688
+ * The amount of the unpaid reward that gets deducted in the case that either a skeptic
689
+ * doesn't vote or someone votes in the wrong way.
690
+ **/
691
+ wrongSideDeduction: u128 & AugmentedConst<ApiType>;
692
+ /**
693
+ * Generic const
694
+ **/
695
+ [key: string]: Codec;
696
+ };
697
+ staking: {
698
+ /**
699
+ * Number of eras that staked funds must remain bonded for.
700
+ **/
701
+ bondingDuration: u32 & AugmentedConst<ApiType>;
702
+ maxNominations: u32 & AugmentedConst<ApiType>;
703
+ /**
704
+ * The maximum number of nominators rewarded for each validator.
705
+ *
706
+ * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
707
+ * claim their reward. This used to limit the i/o cost for the nominator payout.
708
+ **/
709
+ maxNominatorRewardedPerValidator: u32 & AugmentedConst<ApiType>;
710
+ /**
711
+ * Number of sessions per era.
712
+ **/
713
+ sessionsPerEra: u32 & AugmentedConst<ApiType>;
714
+ /**
715
+ * Number of eras that slashes are deferred by, after computation.
716
+ *
717
+ * This should be less than the bonding duration. Set to 0 if slashes
718
+ * should be applied immediately, without opportunity for intervention.
719
+ **/
720
+ slashDeferDuration: u32 & AugmentedConst<ApiType>;
721
+ /**
722
+ * Generic const
723
+ **/
724
+ [key: string]: Codec;
725
+ };
726
+ system: {
727
+ /**
728
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
729
+ **/
730
+ blockHashCount: u32 & AugmentedConst<ApiType>;
731
+ /**
732
+ * The maximum length of a block (in bytes).
733
+ **/
734
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
735
+ /**
736
+ * Block & extrinsics weights: base values and limits.
737
+ **/
738
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
739
+ /**
740
+ * The weight of runtime database operations the runtime can invoke.
741
+ **/
742
+ dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
743
+ /**
744
+ * The designated SS85 prefix of this chain.
745
+ *
746
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
747
+ * that the runtime should know about the prefix in order to make use of it as
748
+ * an identifier of the chain.
749
+ **/
750
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
751
+ /**
752
+ * Get the chain's current version.
753
+ **/
754
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
755
+ /**
756
+ * Generic const
757
+ **/
758
+ [key: string]: Codec;
759
+ };
760
+ timestamp: {
761
+ /**
762
+ * The minimum period between blocks. Beware that this is different to the *expected*
763
+ * period that the block production apparatus provides. Your chosen consensus system will
764
+ * generally work with this to determine a sensible block time. e.g. For Aura, it will be
765
+ * double this period on default settings.
766
+ **/
767
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
768
+ /**
769
+ * Generic const
770
+ **/
771
+ [key: string]: Codec;
772
+ };
773
+ tips: {
774
+ /**
775
+ * The amount held on deposit per byte within the tip report reason or bounty description.
776
+ **/
777
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
778
+ /**
779
+ * Maximum acceptable reason length.
780
+ *
781
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
782
+ **/
783
+ maximumReasonLength: u32 & AugmentedConst<ApiType>;
784
+ /**
785
+ * The period for which a tip remains open after is has achieved threshold tippers.
786
+ **/
787
+ tipCountdown: u32 & AugmentedConst<ApiType>;
788
+ /**
789
+ * The percent of the final tip which goes to the original reporter of the tip.
790
+ **/
791
+ tipFindersFee: Percent & AugmentedConst<ApiType>;
792
+ /**
793
+ * The amount held on deposit for placing a tip report.
794
+ **/
795
+ tipReportDepositBase: u128 & AugmentedConst<ApiType>;
796
+ /**
797
+ * Generic const
798
+ **/
799
+ [key: string]: Codec;
800
+ };
801
+ transactionPayment: {
802
+ /**
803
+ * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
804
+ * `priority`
805
+ *
806
+ * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
807
+ * added to a tip component in regular `priority` calculations.
808
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
809
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
810
+ *
811
+ * ```rust,ignore
812
+ * // For `Normal`
813
+ * let priority = priority_calc(tip);
814
+ *
815
+ * // For `Operational`
816
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
817
+ * let priority = priority_calc(tip + virtual_tip);
818
+ * ```
819
+ *
820
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
821
+ * sent with the transaction. So, not only does the transaction get a priority bump based
822
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
823
+ * transactions.
824
+ **/
825
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
826
+ /**
827
+ * The fee to be paid for making a transaction; the per-byte portion.
828
+ **/
829
+ transactionByteFee: u128 & AugmentedConst<ApiType>;
830
+ /**
831
+ * The polynomial that is applied in order to derive fee from weight.
832
+ **/
833
+ weightToFee: Vec<FrameSupportWeightsWeightToFeeCoefficient> & AugmentedConst<ApiType>;
834
+ /**
835
+ * Generic const
836
+ **/
837
+ [key: string]: Codec;
838
+ };
839
+ treasury: {
840
+ /**
841
+ * Percentage of spare funds (if any) that are burnt per spend period.
842
+ **/
843
+ burn: Permill & AugmentedConst<ApiType>;
844
+ /**
845
+ * The maximum number of approvals that can wait in the spending queue.
846
+ **/
847
+ maxApprovals: u32 & AugmentedConst<ApiType>;
848
+ /**
849
+ * The treasury's pallet id, used for deriving its sovereign account ID.
850
+ **/
851
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
852
+ /**
853
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
854
+ * An accepted proposal gets these back. A rejected proposal does not.
855
+ **/
856
+ proposalBond: Permill & AugmentedConst<ApiType>;
857
+ /**
858
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
859
+ **/
860
+ proposalBondMinimum: u128 & AugmentedConst<ApiType>;
861
+ /**
862
+ * Period between successive spends.
863
+ **/
864
+ spendPeriod: u32 & AugmentedConst<ApiType>;
865
+ /**
866
+ * Generic const
867
+ **/
868
+ [key: string]: Codec;
869
+ };
870
+ utility: {
871
+ /**
872
+ * The limit on the number of batched calls.
873
+ **/
874
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
875
+ /**
876
+ * Generic const
877
+ **/
878
+ [key: string]: Codec;
879
+ };
880
+ vesting: {
881
+ maxVestingSchedules: u32 & AugmentedConst<ApiType>;
882
+ /**
883
+ * The minimum amount transferred to call `vested_transfer`.
884
+ **/
885
+ minVestedTransfer: u128 & AugmentedConst<ApiType>;
886
+ /**
887
+ * Generic const
888
+ **/
889
+ [key: string]: Codec;
890
+ };
891
+ }
892
+ }