@dedot/chaintypes 0.0.1-alpha.100

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 (105) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/aleph/consts.d.ts +676 -0
  4. package/aleph/errors.d.ts +1054 -0
  5. package/aleph/events.d.ts +1201 -0
  6. package/aleph/index.d.ts +27 -0
  7. package/aleph/json-rpc.d.ts +85 -0
  8. package/aleph/query.d.ts +1573 -0
  9. package/aleph/runtime.d.ts +596 -0
  10. package/aleph/tx.d.ts +3440 -0
  11. package/aleph/types.d.ts +3951 -0
  12. package/astar/consts.d.ts +737 -0
  13. package/astar/errors.d.ts +1508 -0
  14. package/astar/events.d.ts +1878 -0
  15. package/astar/index.d.ts +27 -0
  16. package/astar/json-rpc.d.ts +131 -0
  17. package/astar/query.d.ts +1851 -0
  18. package/astar/runtime.d.ts +803 -0
  19. package/astar/tx.d.ts +4516 -0
  20. package/astar/types.d.ts +6141 -0
  21. package/index.d.ts +11 -0
  22. package/index.js +1 -0
  23. package/index.ts +11 -0
  24. package/kusama/consts.d.ts +1578 -0
  25. package/kusama/errors.d.ts +3152 -0
  26. package/kusama/events.d.ts +3579 -0
  27. package/kusama/index.d.ts +27 -0
  28. package/kusama/json-rpc.d.ts +103 -0
  29. package/kusama/query.d.ts +4229 -0
  30. package/kusama/runtime.d.ts +1196 -0
  31. package/kusama/tx.d.ts +9040 -0
  32. package/kusama/types.d.ts +11369 -0
  33. package/kusamaAssetHub/consts.d.ts +759 -0
  34. package/kusamaAssetHub/errors.d.ts +1494 -0
  35. package/kusamaAssetHub/events.d.ts +2491 -0
  36. package/kusamaAssetHub/index.d.ts +27 -0
  37. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  38. package/kusamaAssetHub/query.d.ts +1662 -0
  39. package/kusamaAssetHub/runtime.d.ts +555 -0
  40. package/kusamaAssetHub/tx.d.ts +6192 -0
  41. package/kusamaAssetHub/types.d.ts +6831 -0
  42. package/moonbeam/consts.d.ts +1010 -0
  43. package/moonbeam/errors.d.ts +1932 -0
  44. package/moonbeam/events.d.ts +2928 -0
  45. package/moonbeam/index.d.ts +27 -0
  46. package/moonbeam/json-rpc.d.ts +137 -0
  47. package/moonbeam/query.d.ts +2282 -0
  48. package/moonbeam/runtime.d.ts +724 -0
  49. package/moonbeam/tx.d.ts +6222 -0
  50. package/moonbeam/types.d.ts +8165 -0
  51. package/package.json +25 -0
  52. package/polkadot/consts.d.ts +1313 -0
  53. package/polkadot/errors.d.ts +2575 -0
  54. package/polkadot/events.d.ts +2757 -0
  55. package/polkadot/index.d.ts +27 -0
  56. package/polkadot/json-rpc.d.ts +103 -0
  57. package/polkadot/query.d.ts +3693 -0
  58. package/polkadot/runtime.d.ts +1196 -0
  59. package/polkadot/tx.d.ts +7706 -0
  60. package/polkadot/types.d.ts +9893 -0
  61. package/polkadotAssetHub/consts.d.ts +724 -0
  62. package/polkadotAssetHub/errors.d.ts +1465 -0
  63. package/polkadotAssetHub/events.d.ts +2462 -0
  64. package/polkadotAssetHub/index.d.ts +27 -0
  65. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  66. package/polkadotAssetHub/query.d.ts +1640 -0
  67. package/polkadotAssetHub/runtime.d.ts +558 -0
  68. package/polkadotAssetHub/tx.d.ts +6121 -0
  69. package/polkadotAssetHub/types.d.ts +6739 -0
  70. package/rococo/consts.d.ts +1423 -0
  71. package/rococo/errors.d.ts +2783 -0
  72. package/rococo/events.d.ts +3361 -0
  73. package/rococo/index.d.ts +27 -0
  74. package/rococo/json-rpc.d.ts +103 -0
  75. package/rococo/query.d.ts +3561 -0
  76. package/rococo/runtime.d.ts +1257 -0
  77. package/rococo/tx.d.ts +10721 -0
  78. package/rococo/types.d.ts +14828 -0
  79. package/rococoAssetHub/consts.d.ts +787 -0
  80. package/rococoAssetHub/errors.d.ts +1523 -0
  81. package/rococoAssetHub/events.d.ts +2517 -0
  82. package/rococoAssetHub/index.d.ts +27 -0
  83. package/rococoAssetHub/json-rpc.d.ts +89 -0
  84. package/rococoAssetHub/query.d.ts +1682 -0
  85. package/rococoAssetHub/runtime.d.ts +704 -0
  86. package/rococoAssetHub/tx.d.ts +9013 -0
  87. package/rococoAssetHub/types.d.ts +12352 -0
  88. package/substrate/consts.d.ts +2223 -0
  89. package/substrate/errors.d.ts +4023 -0
  90. package/substrate/events.d.ts +5430 -0
  91. package/substrate/index.d.ts +27 -0
  92. package/substrate/json-rpc.d.ts +101 -0
  93. package/substrate/query.d.ts +4083 -0
  94. package/substrate/runtime.d.ts +971 -0
  95. package/substrate/tx.d.ts +12501 -0
  96. package/substrate/types.d.ts +13380 -0
  97. package/westendAssetHub/consts.d.ts +787 -0
  98. package/westendAssetHub/errors.d.ts +1523 -0
  99. package/westendAssetHub/events.d.ts +2477 -0
  100. package/westendAssetHub/index.d.ts +27 -0
  101. package/westendAssetHub/json-rpc.d.ts +89 -0
  102. package/westendAssetHub/query.d.ts +1656 -0
  103. package/westendAssetHub/runtime.d.ts +652 -0
  104. package/westendAssetHub/tx.d.ts +8984 -0
  105. package/westendAssetHub/types.d.ts +12292 -0
@@ -0,0 +1,1423 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
+ import type { RuntimeVersion, Permill, Bytes, Perquintill, FixedU128 } from 'dedot/codecs';
5
+ import type {
6
+ FrameSystemLimitsBlockWeights,
7
+ FrameSystemLimitsBlockLength,
8
+ SpWeightsRuntimeDbWeight,
9
+ FrameSupportPalletId,
10
+ PalletReferendaTrackInfo,
11
+ SpWeightsWeightV2Weight,
12
+ } from './types';
13
+
14
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
15
+ /**
16
+ * Pallet `System`'s constants
17
+ **/
18
+ system: {
19
+ /**
20
+ * Block & extrinsics weights: base values and limits.
21
+ **/
22
+ blockWeights: FrameSystemLimitsBlockWeights;
23
+
24
+ /**
25
+ * The maximum length of a block (in bytes).
26
+ **/
27
+ blockLength: FrameSystemLimitsBlockLength;
28
+
29
+ /**
30
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
31
+ **/
32
+ blockHashCount: number;
33
+
34
+ /**
35
+ * The weight of runtime database operations the runtime can invoke.
36
+ **/
37
+ dbWeight: SpWeightsRuntimeDbWeight;
38
+
39
+ /**
40
+ * Get the chain's in-code version.
41
+ **/
42
+ version: RuntimeVersion;
43
+
44
+ /**
45
+ * The designated SS58 prefix of this chain.
46
+ *
47
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
48
+ * that the runtime should know about the prefix in order to make use of it as
49
+ * an identifier of the chain.
50
+ **/
51
+ ss58Prefix: number;
52
+
53
+ /**
54
+ * Generic pallet constant
55
+ **/
56
+ [name: string]: any;
57
+ };
58
+ /**
59
+ * Pallet `Babe`'s constants
60
+ **/
61
+ babe: {
62
+ /**
63
+ * The amount of time, in slots, that each epoch should last.
64
+ * NOTE: Currently it is not possible to change the epoch duration after
65
+ * the chain has started. Attempting to do so will brick block production.
66
+ **/
67
+ epochDuration: bigint;
68
+
69
+ /**
70
+ * The expected average block time at which BABE should be creating
71
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
72
+ * what the expected average block time should be based on the slot
73
+ * duration and the security parameter `c` (where `1 - c` represents
74
+ * the probability of a slot being empty).
75
+ **/
76
+ expectedBlockTime: bigint;
77
+
78
+ /**
79
+ * Max number of authorities allowed
80
+ **/
81
+ maxAuthorities: number;
82
+
83
+ /**
84
+ * The maximum number of nominators for each validator.
85
+ **/
86
+ maxNominators: number;
87
+
88
+ /**
89
+ * Generic pallet constant
90
+ **/
91
+ [name: string]: any;
92
+ };
93
+ /**
94
+ * Pallet `Timestamp`'s constants
95
+ **/
96
+ timestamp: {
97
+ /**
98
+ * The minimum period between blocks.
99
+ *
100
+ * Be aware that this is different to the *expected* period that the block production
101
+ * apparatus provides. Your chosen consensus system will generally work with this to
102
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
103
+ * period on default settings.
104
+ **/
105
+ minimumPeriod: bigint;
106
+
107
+ /**
108
+ * Generic pallet constant
109
+ **/
110
+ [name: string]: any;
111
+ };
112
+ /**
113
+ * Pallet `Indices`'s constants
114
+ **/
115
+ indices: {
116
+ /**
117
+ * The deposit needed for reserving an index.
118
+ **/
119
+ deposit: bigint;
120
+
121
+ /**
122
+ * Generic pallet constant
123
+ **/
124
+ [name: string]: any;
125
+ };
126
+ /**
127
+ * Pallet `Balances`'s constants
128
+ **/
129
+ balances: {
130
+ /**
131
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
132
+ *
133
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
134
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
135
+ * In case you have multiple sources of provider references, you may also get unexpected
136
+ * behaviour if you set this to zero.
137
+ *
138
+ * Bottom line: Do yourself a favour and make it at least one!
139
+ **/
140
+ existentialDeposit: bigint;
141
+
142
+ /**
143
+ * The maximum number of locks that should exist on an account.
144
+ * Not strictly enforced, but used for weight estimation.
145
+ *
146
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
147
+ **/
148
+ maxLocks: number;
149
+
150
+ /**
151
+ * The maximum number of named reserves that can exist on an account.
152
+ *
153
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
154
+ **/
155
+ maxReserves: number;
156
+
157
+ /**
158
+ * The maximum number of individual freeze locks that can exist on an account at any time.
159
+ **/
160
+ maxFreezes: number;
161
+
162
+ /**
163
+ * Generic pallet constant
164
+ **/
165
+ [name: string]: any;
166
+ };
167
+ /**
168
+ * Pallet `Parameters`'s constants
169
+ **/
170
+ parameters: {
171
+ /**
172
+ * Generic pallet constant
173
+ **/
174
+ [name: string]: any;
175
+ };
176
+ /**
177
+ * Pallet `TransactionPayment`'s constants
178
+ **/
179
+ transactionPayment: {
180
+ /**
181
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
182
+ * `priority`
183
+ *
184
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
185
+ * added to a tip component in regular `priority` calculations.
186
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
187
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
188
+ *
189
+ * ```rust,ignore
190
+ * // For `Normal`
191
+ * let priority = priority_calc(tip);
192
+ *
193
+ * // For `Operational`
194
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
195
+ * let priority = priority_calc(tip + virtual_tip);
196
+ * ```
197
+ *
198
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
199
+ * sent with the transaction. So, not only does the transaction get a priority bump based
200
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
201
+ * transactions.
202
+ **/
203
+ operationalFeeMultiplier: number;
204
+
205
+ /**
206
+ * Generic pallet constant
207
+ **/
208
+ [name: string]: any;
209
+ };
210
+ /**
211
+ * Pallet `Authorship`'s constants
212
+ **/
213
+ authorship: {
214
+ /**
215
+ * Generic pallet constant
216
+ **/
217
+ [name: string]: any;
218
+ };
219
+ /**
220
+ * Pallet `Offences`'s constants
221
+ **/
222
+ offences: {
223
+ /**
224
+ * Generic pallet constant
225
+ **/
226
+ [name: string]: any;
227
+ };
228
+ /**
229
+ * Pallet `Historical`'s constants
230
+ **/
231
+ historical: {
232
+ /**
233
+ * Generic pallet constant
234
+ **/
235
+ [name: string]: any;
236
+ };
237
+ /**
238
+ * Pallet `Session`'s constants
239
+ **/
240
+ session: {
241
+ /**
242
+ * Generic pallet constant
243
+ **/
244
+ [name: string]: any;
245
+ };
246
+ /**
247
+ * Pallet `Grandpa`'s constants
248
+ **/
249
+ grandpa: {
250
+ /**
251
+ * Max Authorities in use
252
+ **/
253
+ maxAuthorities: number;
254
+
255
+ /**
256
+ * The maximum number of nominators for each validator.
257
+ **/
258
+ maxNominators: number;
259
+
260
+ /**
261
+ * The maximum number of entries to keep in the set id to session index mapping.
262
+ *
263
+ * Since the `SetIdSession` map is only used for validating equivocations this
264
+ * value should relate to the bonding duration of whatever staking system is
265
+ * being used (if any). If equivocation handling is not enabled then this value
266
+ * can be zero.
267
+ **/
268
+ maxSetIdSessionEntries: bigint;
269
+
270
+ /**
271
+ * Generic pallet constant
272
+ **/
273
+ [name: string]: any;
274
+ };
275
+ /**
276
+ * Pallet `AuthorityDiscovery`'s constants
277
+ **/
278
+ authorityDiscovery: {
279
+ /**
280
+ * Generic pallet constant
281
+ **/
282
+ [name: string]: any;
283
+ };
284
+ /**
285
+ * Pallet `Treasury`'s constants
286
+ **/
287
+ treasury: {
288
+ /**
289
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
290
+ * An accepted proposal gets these back. A rejected proposal does not.
291
+ **/
292
+ proposalBond: Permill;
293
+
294
+ /**
295
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
296
+ **/
297
+ proposalBondMinimum: bigint;
298
+
299
+ /**
300
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
301
+ **/
302
+ proposalBondMaximum: bigint | undefined;
303
+
304
+ /**
305
+ * Period between successive spends.
306
+ **/
307
+ spendPeriod: number;
308
+
309
+ /**
310
+ * Percentage of spare funds (if any) that are burnt per spend period.
311
+ **/
312
+ burn: Permill;
313
+
314
+ /**
315
+ * The treasury's pallet id, used for deriving its sovereign account ID.
316
+ **/
317
+ palletId: FrameSupportPalletId;
318
+
319
+ /**
320
+ * The maximum number of approvals that can wait in the spending queue.
321
+ *
322
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
323
+ **/
324
+ maxApprovals: number;
325
+
326
+ /**
327
+ * The period during which an approved treasury spend has to be claimed.
328
+ **/
329
+ payoutPeriod: number;
330
+
331
+ /**
332
+ * Generic pallet constant
333
+ **/
334
+ [name: string]: any;
335
+ };
336
+ /**
337
+ * Pallet `ConvictionVoting`'s constants
338
+ **/
339
+ convictionVoting: {
340
+ /**
341
+ * The maximum number of concurrent votes an account may have.
342
+ *
343
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
344
+ * weight estimation: see `delegate` for instance.
345
+ **/
346
+ maxVotes: number;
347
+
348
+ /**
349
+ * The minimum period of vote locking.
350
+ *
351
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
352
+ * those successful voters are locked into the consequences that their votes entail.
353
+ **/
354
+ voteLockingPeriod: number;
355
+
356
+ /**
357
+ * Generic pallet constant
358
+ **/
359
+ [name: string]: any;
360
+ };
361
+ /**
362
+ * Pallet `Referenda`'s constants
363
+ **/
364
+ referenda: {
365
+ /**
366
+ * The minimum amount to be used as a deposit for a public referendum proposal.
367
+ **/
368
+ submissionDeposit: bigint;
369
+
370
+ /**
371
+ * Maximum size of the referendum queue for a single track.
372
+ **/
373
+ maxQueued: number;
374
+
375
+ /**
376
+ * The number of blocks after submission that a referendum must begin being decided by.
377
+ * Once this passes, then anyone may cancel the referendum.
378
+ **/
379
+ undecidingTimeout: number;
380
+
381
+ /**
382
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
383
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
384
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
385
+ **/
386
+ alarmInterval: number;
387
+
388
+ /**
389
+ * Information concerning the different referendum tracks.
390
+ **/
391
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
392
+
393
+ /**
394
+ * Generic pallet constant
395
+ **/
396
+ [name: string]: any;
397
+ };
398
+ /**
399
+ * Pallet `FellowshipCollective`'s constants
400
+ **/
401
+ fellowshipCollective: {
402
+ /**
403
+ * Generic pallet constant
404
+ **/
405
+ [name: string]: any;
406
+ };
407
+ /**
408
+ * Pallet `FellowshipReferenda`'s constants
409
+ **/
410
+ fellowshipReferenda: {
411
+ /**
412
+ * The minimum amount to be used as a deposit for a public referendum proposal.
413
+ **/
414
+ submissionDeposit: bigint;
415
+
416
+ /**
417
+ * Maximum size of the referendum queue for a single track.
418
+ **/
419
+ maxQueued: number;
420
+
421
+ /**
422
+ * The number of blocks after submission that a referendum must begin being decided by.
423
+ * Once this passes, then anyone may cancel the referendum.
424
+ **/
425
+ undecidingTimeout: number;
426
+
427
+ /**
428
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
429
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
430
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
431
+ **/
432
+ alarmInterval: number;
433
+
434
+ /**
435
+ * Information concerning the different referendum tracks.
436
+ **/
437
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
438
+
439
+ /**
440
+ * Generic pallet constant
441
+ **/
442
+ [name: string]: any;
443
+ };
444
+ /**
445
+ * Pallet `Origins`'s constants
446
+ **/
447
+ origins: {
448
+ /**
449
+ * Generic pallet constant
450
+ **/
451
+ [name: string]: any;
452
+ };
453
+ /**
454
+ * Pallet `Whitelist`'s constants
455
+ **/
456
+ whitelist: {
457
+ /**
458
+ * Generic pallet constant
459
+ **/
460
+ [name: string]: any;
461
+ };
462
+ /**
463
+ * Pallet `Claims`'s constants
464
+ **/
465
+ claims: {
466
+ prefix: Bytes;
467
+
468
+ /**
469
+ * Generic pallet constant
470
+ **/
471
+ [name: string]: any;
472
+ };
473
+ /**
474
+ * Pallet `Utility`'s constants
475
+ **/
476
+ utility: {
477
+ /**
478
+ * The limit on the number of batched calls.
479
+ **/
480
+ batchedCallsLimit: number;
481
+
482
+ /**
483
+ * Generic pallet constant
484
+ **/
485
+ [name: string]: any;
486
+ };
487
+ /**
488
+ * Pallet `Identity`'s constants
489
+ **/
490
+ identity: {
491
+ /**
492
+ * The amount held on deposit for a registered identity.
493
+ **/
494
+ basicDeposit: bigint;
495
+
496
+ /**
497
+ * The amount held on deposit per encoded byte for a registered identity.
498
+ **/
499
+ byteDeposit: bigint;
500
+
501
+ /**
502
+ * The amount held on deposit for a registered subaccount. This should account for the fact
503
+ * that one storage item's value will increase by the size of an account ID, and there will
504
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
505
+ **/
506
+ subAccountDeposit: bigint;
507
+
508
+ /**
509
+ * The maximum number of sub-accounts allowed per identified account.
510
+ **/
511
+ maxSubAccounts: number;
512
+
513
+ /**
514
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
515
+ * of, e.g., updating judgements.
516
+ **/
517
+ maxRegistrars: number;
518
+
519
+ /**
520
+ * The number of blocks within which a username grant must be accepted.
521
+ **/
522
+ pendingUsernameExpiration: number;
523
+
524
+ /**
525
+ * The maximum length of a suffix.
526
+ **/
527
+ maxSuffixLength: number;
528
+
529
+ /**
530
+ * The maximum length of a username, including its suffix and any system-added delimiters.
531
+ **/
532
+ maxUsernameLength: number;
533
+
534
+ /**
535
+ * Generic pallet constant
536
+ **/
537
+ [name: string]: any;
538
+ };
539
+ /**
540
+ * Pallet `Society`'s constants
541
+ **/
542
+ society: {
543
+ /**
544
+ * The societies's pallet id
545
+ **/
546
+ palletId: FrameSupportPalletId;
547
+
548
+ /**
549
+ * The maximum number of strikes before a member gets funds slashed.
550
+ **/
551
+ graceStrikes: number;
552
+
553
+ /**
554
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
555
+ **/
556
+ periodSpend: bigint;
557
+
558
+ /**
559
+ * The number of blocks on which new candidates should be voted on. Together with
560
+ * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
561
+ **/
562
+ votingPeriod: number;
563
+
564
+ /**
565
+ * The number of blocks on which new candidates can claim their membership and be the
566
+ * named head.
567
+ **/
568
+ claimPeriod: number;
569
+
570
+ /**
571
+ * The maximum duration of the payout lock.
572
+ **/
573
+ maxLockDuration: number;
574
+
575
+ /**
576
+ * The number of blocks between membership challenges.
577
+ **/
578
+ challengePeriod: number;
579
+
580
+ /**
581
+ * The maximum number of payouts a member may have waiting unclaimed.
582
+ **/
583
+ maxPayouts: number;
584
+
585
+ /**
586
+ * The maximum number of bids at once.
587
+ **/
588
+ maxBids: number;
589
+
590
+ /**
591
+ * Generic pallet constant
592
+ **/
593
+ [name: string]: any;
594
+ };
595
+ /**
596
+ * Pallet `Recovery`'s constants
597
+ **/
598
+ recovery: {
599
+ /**
600
+ * The base amount of currency needed to reserve for creating a recovery configuration.
601
+ *
602
+ * This is held for an additional storage item whose value size is
603
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
604
+ **/
605
+ configDepositBase: bigint;
606
+
607
+ /**
608
+ * The amount of currency needed per additional user when creating a recovery
609
+ * configuration.
610
+ *
611
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
612
+ * value.
613
+ **/
614
+ friendDepositFactor: bigint;
615
+
616
+ /**
617
+ * The maximum amount of friends allowed in a recovery configuration.
618
+ *
619
+ * NOTE: The threshold programmed in this Pallet uses u16, so it does
620
+ * not really make sense to have a limit here greater than u16::MAX.
621
+ * But also, that is a lot more than you should probably set this value
622
+ * to anyway...
623
+ **/
624
+ maxFriends: number;
625
+
626
+ /**
627
+ * The base amount of currency needed to reserve for starting a recovery.
628
+ *
629
+ * This is primarily held for deterring malicious recovery attempts, and should
630
+ * have a value large enough that a bad actor would choose not to place this
631
+ * deposit. It also acts to fund additional storage item whose value size is
632
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
633
+ * threshold.
634
+ **/
635
+ recoveryDeposit: bigint;
636
+
637
+ /**
638
+ * Generic pallet constant
639
+ **/
640
+ [name: string]: any;
641
+ };
642
+ /**
643
+ * Pallet `Vesting`'s constants
644
+ **/
645
+ vesting: {
646
+ /**
647
+ * The minimum amount transferred to call `vested_transfer`.
648
+ **/
649
+ minVestedTransfer: bigint;
650
+ maxVestingSchedules: number;
651
+
652
+ /**
653
+ * Generic pallet constant
654
+ **/
655
+ [name: string]: any;
656
+ };
657
+ /**
658
+ * Pallet `Scheduler`'s constants
659
+ **/
660
+ scheduler: {
661
+ /**
662
+ * The maximum weight that may be scheduled per block for any dispatchables.
663
+ **/
664
+ maximumWeight: SpWeightsWeightV2Weight;
665
+
666
+ /**
667
+ * The maximum number of scheduled calls in the queue for a single block.
668
+ *
669
+ * NOTE:
670
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
671
+ * higher limit under `runtime-benchmarks` feature.
672
+ **/
673
+ maxScheduledPerBlock: number;
674
+
675
+ /**
676
+ * Generic pallet constant
677
+ **/
678
+ [name: string]: any;
679
+ };
680
+ /**
681
+ * Pallet `Proxy`'s constants
682
+ **/
683
+ proxy: {
684
+ /**
685
+ * The base amount of currency needed to reserve for creating a proxy.
686
+ *
687
+ * This is held for an additional storage item whose value size is
688
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
689
+ **/
690
+ proxyDepositBase: bigint;
691
+
692
+ /**
693
+ * The amount of currency needed per proxy added.
694
+ *
695
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
696
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
697
+ * into account `32 + proxy_type.encode().len()` bytes of data.
698
+ **/
699
+ proxyDepositFactor: bigint;
700
+
701
+ /**
702
+ * The maximum amount of proxies allowed for a single account.
703
+ **/
704
+ maxProxies: number;
705
+
706
+ /**
707
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
708
+ **/
709
+ maxPending: number;
710
+
711
+ /**
712
+ * The base amount of currency needed to reserve for creating an announcement.
713
+ *
714
+ * This is held when a new storage item holding a `Balance` is created (typically 16
715
+ * bytes).
716
+ **/
717
+ announcementDepositBase: bigint;
718
+
719
+ /**
720
+ * The amount of currency needed per announcement made.
721
+ *
722
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
723
+ * into a pre-existing storage value.
724
+ **/
725
+ announcementDepositFactor: bigint;
726
+
727
+ /**
728
+ * Generic pallet constant
729
+ **/
730
+ [name: string]: any;
731
+ };
732
+ /**
733
+ * Pallet `Multisig`'s constants
734
+ **/
735
+ multisig: {
736
+ /**
737
+ * The base amount of currency needed to reserve for creating a multisig execution or to
738
+ * store a dispatch call for later.
739
+ *
740
+ * This is held for an additional storage item whose value size is
741
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
742
+ * `32 + sizeof(AccountId)` bytes.
743
+ **/
744
+ depositBase: bigint;
745
+
746
+ /**
747
+ * The amount of currency needed per unit threshold when creating a multisig execution.
748
+ *
749
+ * This is held for adding 32 bytes more into a pre-existing storage value.
750
+ **/
751
+ depositFactor: bigint;
752
+
753
+ /**
754
+ * The maximum amount of signatories allowed in the multisig.
755
+ **/
756
+ maxSignatories: number;
757
+
758
+ /**
759
+ * Generic pallet constant
760
+ **/
761
+ [name: string]: any;
762
+ };
763
+ /**
764
+ * Pallet `Preimage`'s constants
765
+ **/
766
+ preimage: {
767
+ /**
768
+ * Generic pallet constant
769
+ **/
770
+ [name: string]: any;
771
+ };
772
+ /**
773
+ * Pallet `AssetRate`'s constants
774
+ **/
775
+ assetRate: {
776
+ /**
777
+ * Generic pallet constant
778
+ **/
779
+ [name: string]: any;
780
+ };
781
+ /**
782
+ * Pallet `Bounties`'s constants
783
+ **/
784
+ bounties: {
785
+ /**
786
+ * The amount held on deposit for placing a bounty proposal.
787
+ **/
788
+ bountyDepositBase: bigint;
789
+
790
+ /**
791
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
792
+ **/
793
+ bountyDepositPayoutDelay: number;
794
+
795
+ /**
796
+ * Bounty duration in blocks.
797
+ **/
798
+ bountyUpdatePeriod: number;
799
+
800
+ /**
801
+ * The curator deposit is calculated as a percentage of the curator fee.
802
+ *
803
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
804
+ * `CuratorDepositMin`.
805
+ **/
806
+ curatorDepositMultiplier: Permill;
807
+
808
+ /**
809
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
810
+ **/
811
+ curatorDepositMax: bigint | undefined;
812
+
813
+ /**
814
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
815
+ **/
816
+ curatorDepositMin: bigint | undefined;
817
+
818
+ /**
819
+ * Minimum value for a bounty.
820
+ **/
821
+ bountyValueMinimum: bigint;
822
+
823
+ /**
824
+ * The amount held on deposit per byte within the tip report reason or bounty description.
825
+ **/
826
+ dataDepositPerByte: bigint;
827
+
828
+ /**
829
+ * Maximum acceptable reason length.
830
+ *
831
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
832
+ **/
833
+ maximumReasonLength: number;
834
+
835
+ /**
836
+ * Generic pallet constant
837
+ **/
838
+ [name: string]: any;
839
+ };
840
+ /**
841
+ * Pallet `ChildBounties`'s constants
842
+ **/
843
+ childBounties: {
844
+ /**
845
+ * Maximum number of child bounties that can be added to a parent bounty.
846
+ **/
847
+ maxActiveChildBountyCount: number;
848
+
849
+ /**
850
+ * Minimum value for a child-bounty.
851
+ **/
852
+ childBountyValueMinimum: bigint;
853
+
854
+ /**
855
+ * Generic pallet constant
856
+ **/
857
+ [name: string]: any;
858
+ };
859
+ /**
860
+ * Pallet `Nis`'s constants
861
+ **/
862
+ nis: {
863
+ /**
864
+ * The treasury's pallet id, used for deriving its sovereign account ID.
865
+ **/
866
+ palletId: FrameSupportPalletId;
867
+
868
+ /**
869
+ * Number of duration queues in total. This sets the maximum duration supported, which is
870
+ * this value multiplied by `Period`.
871
+ **/
872
+ queueCount: number;
873
+
874
+ /**
875
+ * Maximum number of items that may be in each duration queue.
876
+ *
877
+ * Must be larger than zero.
878
+ **/
879
+ maxQueueLen: number;
880
+
881
+ /**
882
+ * Portion of the queue which is free from ordering and just a FIFO.
883
+ *
884
+ * Must be no greater than `MaxQueueLen`.
885
+ **/
886
+ fifoQueueLen: number;
887
+
888
+ /**
889
+ * The base period for the duration queues. This is the common multiple across all
890
+ * supported freezing durations that can be bid upon.
891
+ **/
892
+ basePeriod: number;
893
+
894
+ /**
895
+ * The minimum amount of funds that may be placed in a bid. Note that this
896
+ * does not actually limit the amount which may be represented in a receipt since bids may
897
+ * be split up by the system.
898
+ *
899
+ * It should be at least big enough to ensure that there is no possible storage spam attack
900
+ * or queue-filling attack.
901
+ **/
902
+ minBid: bigint;
903
+
904
+ /**
905
+ * The minimum amount of funds which may intentionally be left remaining under a single
906
+ * receipt.
907
+ **/
908
+ minReceipt: Perquintill;
909
+
910
+ /**
911
+ * The number of blocks between consecutive attempts to dequeue bids and create receipts.
912
+ *
913
+ * A larger value results in fewer storage hits each block, but a slower period to get to
914
+ * the target.
915
+ **/
916
+ intakePeriod: number;
917
+
918
+ /**
919
+ * The maximum amount of bids that can consolidated into receipts in a single intake. A
920
+ * larger value here means less of the block available for transactions should there be a
921
+ * glut of bids.
922
+ **/
923
+ maxIntakeWeight: SpWeightsWeightV2Weight;
924
+
925
+ /**
926
+ * The maximum proportion which may be thawed and the period over which it is reset.
927
+ **/
928
+ thawThrottle: [Perquintill, number];
929
+
930
+ /**
931
+ * Generic pallet constant
932
+ **/
933
+ [name: string]: any;
934
+ };
935
+ /**
936
+ * Pallet `NisCounterpartBalances`'s constants
937
+ **/
938
+ nisCounterpartBalances: {
939
+ /**
940
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
941
+ *
942
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
943
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
944
+ * In case you have multiple sources of provider references, you may also get unexpected
945
+ * behaviour if you set this to zero.
946
+ *
947
+ * Bottom line: Do yourself a favour and make it at least one!
948
+ **/
949
+ existentialDeposit: bigint;
950
+
951
+ /**
952
+ * The maximum number of locks that should exist on an account.
953
+ * Not strictly enforced, but used for weight estimation.
954
+ *
955
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
956
+ **/
957
+ maxLocks: number;
958
+
959
+ /**
960
+ * The maximum number of named reserves that can exist on an account.
961
+ *
962
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
963
+ **/
964
+ maxReserves: number;
965
+
966
+ /**
967
+ * The maximum number of individual freeze locks that can exist on an account at any time.
968
+ **/
969
+ maxFreezes: number;
970
+
971
+ /**
972
+ * Generic pallet constant
973
+ **/
974
+ [name: string]: any;
975
+ };
976
+ /**
977
+ * Pallet `ParachainsOrigin`'s constants
978
+ **/
979
+ parachainsOrigin: {
980
+ /**
981
+ * Generic pallet constant
982
+ **/
983
+ [name: string]: any;
984
+ };
985
+ /**
986
+ * Pallet `Configuration`'s constants
987
+ **/
988
+ configuration: {
989
+ /**
990
+ * Generic pallet constant
991
+ **/
992
+ [name: string]: any;
993
+ };
994
+ /**
995
+ * Pallet `ParasShared`'s constants
996
+ **/
997
+ parasShared: {
998
+ /**
999
+ * Generic pallet constant
1000
+ **/
1001
+ [name: string]: any;
1002
+ };
1003
+ /**
1004
+ * Pallet `ParaInclusion`'s constants
1005
+ **/
1006
+ paraInclusion: {
1007
+ /**
1008
+ * Generic pallet constant
1009
+ **/
1010
+ [name: string]: any;
1011
+ };
1012
+ /**
1013
+ * Pallet `ParaInherent`'s constants
1014
+ **/
1015
+ paraInherent: {
1016
+ /**
1017
+ * Generic pallet constant
1018
+ **/
1019
+ [name: string]: any;
1020
+ };
1021
+ /**
1022
+ * Pallet `ParaScheduler`'s constants
1023
+ **/
1024
+ paraScheduler: {
1025
+ /**
1026
+ * Generic pallet constant
1027
+ **/
1028
+ [name: string]: any;
1029
+ };
1030
+ /**
1031
+ * Pallet `Paras`'s constants
1032
+ **/
1033
+ paras: {
1034
+ unsignedPriority: bigint;
1035
+
1036
+ /**
1037
+ * Generic pallet constant
1038
+ **/
1039
+ [name: string]: any;
1040
+ };
1041
+ /**
1042
+ * Pallet `Initializer`'s constants
1043
+ **/
1044
+ initializer: {
1045
+ /**
1046
+ * Generic pallet constant
1047
+ **/
1048
+ [name: string]: any;
1049
+ };
1050
+ /**
1051
+ * Pallet `Dmp`'s constants
1052
+ **/
1053
+ dmp: {
1054
+ /**
1055
+ * Generic pallet constant
1056
+ **/
1057
+ [name: string]: any;
1058
+ };
1059
+ /**
1060
+ * Pallet `Hrmp`'s constants
1061
+ **/
1062
+ hrmp: {
1063
+ /**
1064
+ * Generic pallet constant
1065
+ **/
1066
+ [name: string]: any;
1067
+ };
1068
+ /**
1069
+ * Pallet `ParaSessionInfo`'s constants
1070
+ **/
1071
+ paraSessionInfo: {
1072
+ /**
1073
+ * Generic pallet constant
1074
+ **/
1075
+ [name: string]: any;
1076
+ };
1077
+ /**
1078
+ * Pallet `ParasDisputes`'s constants
1079
+ **/
1080
+ parasDisputes: {
1081
+ /**
1082
+ * Generic pallet constant
1083
+ **/
1084
+ [name: string]: any;
1085
+ };
1086
+ /**
1087
+ * Pallet `ParasSlashing`'s constants
1088
+ **/
1089
+ parasSlashing: {
1090
+ /**
1091
+ * Generic pallet constant
1092
+ **/
1093
+ [name: string]: any;
1094
+ };
1095
+ /**
1096
+ * Pallet `MessageQueue`'s constants
1097
+ **/
1098
+ messageQueue: {
1099
+ /**
1100
+ * The size of the page; this implies the maximum message size which can be sent.
1101
+ *
1102
+ * A good value depends on the expected message sizes, their weights, the weight that is
1103
+ * available for processing them and the maximal needed message size. The maximal message
1104
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1105
+ **/
1106
+ heapSize: number;
1107
+
1108
+ /**
1109
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
1110
+ * can happen. Once there are more stale pages than this, then historical pages may be
1111
+ * dropped, even if they contain unprocessed overweight messages.
1112
+ **/
1113
+ maxStale: number;
1114
+
1115
+ /**
1116
+ * The amount of weight (if any) which should be provided to the message queue for
1117
+ * servicing enqueued items `on_initialize`.
1118
+ *
1119
+ * This may be legitimately `None` in the case that you will call
1120
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
1121
+ * it run in `on_idle`.
1122
+ **/
1123
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1124
+
1125
+ /**
1126
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
1127
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
1128
+ * Useful for parachains to process messages at the same block they are received.
1129
+ *
1130
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
1131
+ **/
1132
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
1133
+
1134
+ /**
1135
+ * Generic pallet constant
1136
+ **/
1137
+ [name: string]: any;
1138
+ };
1139
+ /**
1140
+ * Pallet `OnDemandAssignmentProvider`'s constants
1141
+ **/
1142
+ onDemandAssignmentProvider: {
1143
+ /**
1144
+ * The default value for the spot traffic multiplier.
1145
+ **/
1146
+ trafficDefaultValue: FixedU128;
1147
+
1148
+ /**
1149
+ * Generic pallet constant
1150
+ **/
1151
+ [name: string]: any;
1152
+ };
1153
+ /**
1154
+ * Pallet `CoretimeAssignmentProvider`'s constants
1155
+ **/
1156
+ coretimeAssignmentProvider: {
1157
+ /**
1158
+ * Generic pallet constant
1159
+ **/
1160
+ [name: string]: any;
1161
+ };
1162
+ /**
1163
+ * Pallet `Registrar`'s constants
1164
+ **/
1165
+ registrar: {
1166
+ /**
1167
+ * The deposit to be paid to run a on-demand parachain.
1168
+ * This should include the cost for storing the genesis head and validation code.
1169
+ **/
1170
+ paraDeposit: bigint;
1171
+
1172
+ /**
1173
+ * The deposit to be paid per byte stored on chain.
1174
+ **/
1175
+ dataDepositPerByte: bigint;
1176
+
1177
+ /**
1178
+ * Generic pallet constant
1179
+ **/
1180
+ [name: string]: any;
1181
+ };
1182
+ /**
1183
+ * Pallet `Slots`'s constants
1184
+ **/
1185
+ slots: {
1186
+ /**
1187
+ * The number of blocks over which a single period lasts.
1188
+ **/
1189
+ leasePeriod: number;
1190
+
1191
+ /**
1192
+ * The number of blocks to offset each lease period by.
1193
+ **/
1194
+ leaseOffset: number;
1195
+
1196
+ /**
1197
+ * Generic pallet constant
1198
+ **/
1199
+ [name: string]: any;
1200
+ };
1201
+ /**
1202
+ * Pallet `Auctions`'s constants
1203
+ **/
1204
+ auctions: {
1205
+ /**
1206
+ * The number of blocks over which an auction may be retroactively ended.
1207
+ **/
1208
+ endingPeriod: number;
1209
+
1210
+ /**
1211
+ * The length of each sample to take during the ending period.
1212
+ *
1213
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
1214
+ **/
1215
+ sampleLength: number;
1216
+ slotRangeCount: number;
1217
+ leasePeriodsPerSlot: number;
1218
+
1219
+ /**
1220
+ * Generic pallet constant
1221
+ **/
1222
+ [name: string]: any;
1223
+ };
1224
+ /**
1225
+ * Pallet `Crowdloan`'s constants
1226
+ **/
1227
+ crowdloan: {
1228
+ /**
1229
+ * `PalletId` for the crowdloan pallet. An appropriate value could be
1230
+ * `PalletId(*b"py/cfund")`
1231
+ **/
1232
+ palletId: FrameSupportPalletId;
1233
+
1234
+ /**
1235
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be
1236
+ * at least `ExistentialDeposit`.
1237
+ **/
1238
+ minContribution: bigint;
1239
+
1240
+ /**
1241
+ * Max number of storage keys to remove per extrinsic call.
1242
+ **/
1243
+ removeKeysLimit: number;
1244
+
1245
+ /**
1246
+ * Generic pallet constant
1247
+ **/
1248
+ [name: string]: any;
1249
+ };
1250
+ /**
1251
+ * Pallet `Coretime`'s constants
1252
+ **/
1253
+ coretime: {
1254
+ /**
1255
+ * The ParaId of the coretime chain.
1256
+ **/
1257
+ brokerId: number;
1258
+
1259
+ /**
1260
+ * Generic pallet constant
1261
+ **/
1262
+ [name: string]: any;
1263
+ };
1264
+ /**
1265
+ * Pallet `XcmPallet`'s constants
1266
+ **/
1267
+ xcmPallet: {
1268
+ /**
1269
+ * Generic pallet constant
1270
+ **/
1271
+ [name: string]: any;
1272
+ };
1273
+ /**
1274
+ * Pallet `Beefy`'s constants
1275
+ **/
1276
+ beefy: {
1277
+ /**
1278
+ * The maximum number of authorities that can be added.
1279
+ **/
1280
+ maxAuthorities: number;
1281
+
1282
+ /**
1283
+ * The maximum number of nominators for each validator.
1284
+ **/
1285
+ maxNominators: number;
1286
+
1287
+ /**
1288
+ * The maximum number of entries to keep in the set id to session index mapping.
1289
+ *
1290
+ * Since the `SetIdSession` map is only used for validating equivocations this
1291
+ * value should relate to the bonding duration of whatever staking system is
1292
+ * being used (if any). If equivocation handling is not enabled then this value
1293
+ * can be zero.
1294
+ **/
1295
+ maxSetIdSessionEntries: bigint;
1296
+
1297
+ /**
1298
+ * Generic pallet constant
1299
+ **/
1300
+ [name: string]: any;
1301
+ };
1302
+ /**
1303
+ * Pallet `Mmr`'s constants
1304
+ **/
1305
+ mmr: {
1306
+ /**
1307
+ * Generic pallet constant
1308
+ **/
1309
+ [name: string]: any;
1310
+ };
1311
+ /**
1312
+ * Pallet `MmrLeaf`'s constants
1313
+ **/
1314
+ mmrLeaf: {
1315
+ /**
1316
+ * Generic pallet constant
1317
+ **/
1318
+ [name: string]: any;
1319
+ };
1320
+ /**
1321
+ * Pallet `IdentityMigrator`'s constants
1322
+ **/
1323
+ identityMigrator: {
1324
+ /**
1325
+ * Generic pallet constant
1326
+ **/
1327
+ [name: string]: any;
1328
+ };
1329
+ /**
1330
+ * Pallet `ParasSudoWrapper`'s constants
1331
+ **/
1332
+ parasSudoWrapper: {
1333
+ /**
1334
+ * Generic pallet constant
1335
+ **/
1336
+ [name: string]: any;
1337
+ };
1338
+ /**
1339
+ * Pallet `AssignedSlots`'s constants
1340
+ **/
1341
+ assignedSlots: {
1342
+ /**
1343
+ * The number of lease periods a permanent parachain slot lasts.
1344
+ **/
1345
+ permanentSlotLeasePeriodLength: number;
1346
+
1347
+ /**
1348
+ * The number of lease periods a temporary parachain slot lasts.
1349
+ **/
1350
+ temporarySlotLeasePeriodLength: number;
1351
+
1352
+ /**
1353
+ * The max number of temporary slots to be scheduled per lease periods.
1354
+ **/
1355
+ maxTemporarySlotPerLeasePeriod: number;
1356
+
1357
+ /**
1358
+ * Generic pallet constant
1359
+ **/
1360
+ [name: string]: any;
1361
+ };
1362
+ /**
1363
+ * Pallet `ValidatorManager`'s constants
1364
+ **/
1365
+ validatorManager: {
1366
+ /**
1367
+ * Generic pallet constant
1368
+ **/
1369
+ [name: string]: any;
1370
+ };
1371
+ /**
1372
+ * Pallet `StateTrieMigration`'s constants
1373
+ **/
1374
+ stateTrieMigration: {
1375
+ /**
1376
+ * Maximal number of bytes that a key can have.
1377
+ *
1378
+ * FRAME itself does not limit the key length.
1379
+ * The concrete value must therefore depend on your storage usage.
1380
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1381
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1382
+ *
1383
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1384
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1385
+ *
1386
+ * The migration will halt with a `Halted` event if this value is too small.
1387
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1388
+ * value. The default is 512 byte.
1389
+ *
1390
+ * Some key lengths for reference:
1391
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1392
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1393
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1394
+ *
1395
+ * For more info see
1396
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1397
+ **/
1398
+ maxKeyLen: number;
1399
+
1400
+ /**
1401
+ * Generic pallet constant
1402
+ **/
1403
+ [name: string]: any;
1404
+ };
1405
+ /**
1406
+ * Pallet `RootTesting`'s constants
1407
+ **/
1408
+ rootTesting: {
1409
+ /**
1410
+ * Generic pallet constant
1411
+ **/
1412
+ [name: string]: any;
1413
+ };
1414
+ /**
1415
+ * Pallet `Sudo`'s constants
1416
+ **/
1417
+ sudo: {
1418
+ /**
1419
+ * Generic pallet constant
1420
+ **/
1421
+ [name: string]: any;
1422
+ };
1423
+ }