@webb-tools/tangle-substrate-types 0.5.8 → 0.5.12

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 (84) hide show
  1. package/README.md +11 -2
  2. package/{build/interfaces → interfaces}/augment-api-consts.d.ts +119 -24
  3. package/{ts-types/src/interfaces → interfaces}/augment-api-errors.d.ts +199 -342
  4. package/{build/interfaces → interfaces}/augment-api-events.d.ts +1365 -378
  5. package/{build/interfaces → interfaces}/augment-api-query.d.ts +718 -261
  6. package/{ts-types/src/interfaces → interfaces}/augment-api-tx.d.ts +1684 -442
  7. package/{ts-types/src/interfaces → interfaces}/lookup.d.ts +1425 -1093
  8. package/{build/interfaces → interfaces}/lookup.js +1443 -1111
  9. package/{build/interfaces → interfaces}/registry.d.ts +62 -75
  10. package/{ts-types/src/interfaces → interfaces}/types-lookup.d.ts +1233 -1128
  11. package/metadata/static-latest.d.ts +2 -0
  12. package/metadata/static-latest.js +7 -0
  13. package/package.json +1 -72
  14. package/.envrc +0 -5
  15. package/babel-config-cjs.cjs +0 -10
  16. package/build/interfaces/augment-api-errors.d.ts +0 -2144
  17. package/build/interfaces/augment-api-tx.d.ts +0 -2876
  18. package/build/interfaces/lookup.d.ts +0 -5908
  19. package/build/interfaces/types-lookup.d.ts +0 -6052
  20. package/build/metadata/static-latest.d.ts +0 -2
  21. package/build/metadata/static-latest.js +0 -7
  22. package/build/metadata/static-type.d.ts +0 -2
  23. package/build/metadata/static-type.js +0 -1
  24. package/build/package.json +0 -1
  25. package/playground.ts +0 -86
  26. package/polkadot-dev-configs/babel-config-cjs.cjs +0 -12
  27. package/polkadot-dev-configs/babel-general.cjs +0 -15
  28. package/polkadot-dev-configs/babel-plugins.cjs +0 -21
  29. package/polkadot-dev-configs/babel-presets.cjs +0 -33
  30. package/polkadot-dev-configs/babel-resolver.cjs +0 -14
  31. package/scripts/build.js +0 -134
  32. package/scripts/publish-types.js +0 -95
  33. package/scripts/updateMetadata.ts +0 -44
  34. package/src/examples/job_and_result_submission.ts +0 -203
  35. package/src/index.ts +0 -7
  36. package/src/interfaces/augment-api-consts.ts +0 -958
  37. package/src/interfaces/augment-api-errors.ts +0 -2152
  38. package/src/interfaces/augment-api-events.ts +0 -1465
  39. package/src/interfaces/augment-api-query.ts +0 -1629
  40. package/src/interfaces/augment-api-rpc.ts +0 -617
  41. package/src/interfaces/augment-api-runtime.ts +0 -308
  42. package/src/interfaces/augment-api-tx.ts +0 -1550
  43. package/src/interfaces/augment-api.ts +0 -10
  44. package/src/interfaces/augment-types.ts +0 -1256
  45. package/src/interfaces/lookup.ts +0 -5912
  46. package/src/interfaces/registry.ts +0 -433
  47. package/src/interfaces/types-lookup.ts +0 -6455
  48. package/src/metadata/metadata.json +0 -5
  49. package/src/metadata/static-latest.ts +0 -1
  50. package/src/metadata/static-type.ts +0 -3
  51. package/ts-types/playground.d.ts +0 -1
  52. package/ts-types/src/examples/job_and_result_submission.d.ts +0 -1
  53. package/ts-types/src/index.d.ts +0 -3
  54. package/ts-types/src/interfaces/augment-api-consts.d.ts +0 -950
  55. package/ts-types/src/interfaces/augment-api-events.d.ts +0 -2281
  56. package/ts-types/src/interfaces/augment-api-query.d.ts +0 -1660
  57. package/ts-types/src/interfaces/augment-api-rpc.d.ts +0 -679
  58. package/ts-types/src/interfaces/augment-api-runtime.d.ts +0 -363
  59. package/ts-types/src/interfaces/augment-api.d.ts +0 -7
  60. package/ts-types/src/interfaces/augment-types.d.ts +0 -1249
  61. package/ts-types/src/interfaces/registry.d.ts +0 -426
  62. package/ts-types/src/metadata/static-latest.d.ts +0 -2
  63. package/ts-types/src/metadata/static-type.d.ts +0 -2
  64. package/ts-types/tsconfig.tsbuildinfo +0 -1
  65. package/tsconfig.json +0 -36
  66. /package/{build/examples → examples}/job_and_result_submission.d.ts +0 -0
  67. /package/{build/examples → examples}/job_and_result_submission.js +0 -0
  68. /package/{build/index.d.ts → index.d.ts} +0 -0
  69. /package/{build/index.js → index.js} +0 -0
  70. /package/{build/interfaces → interfaces}/augment-api-consts.js +0 -0
  71. /package/{build/interfaces → interfaces}/augment-api-errors.js +0 -0
  72. /package/{build/interfaces → interfaces}/augment-api-events.js +0 -0
  73. /package/{build/interfaces → interfaces}/augment-api-query.js +0 -0
  74. /package/{build/interfaces → interfaces}/augment-api-rpc.d.ts +0 -0
  75. /package/{build/interfaces → interfaces}/augment-api-rpc.js +0 -0
  76. /package/{build/interfaces → interfaces}/augment-api-runtime.d.ts +0 -0
  77. /package/{build/interfaces → interfaces}/augment-api-runtime.js +0 -0
  78. /package/{build/interfaces → interfaces}/augment-api-tx.js +0 -0
  79. /package/{build/interfaces → interfaces}/augment-api.d.ts +0 -0
  80. /package/{build/interfaces → interfaces}/augment-api.js +0 -0
  81. /package/{build/interfaces → interfaces}/augment-types.d.ts +0 -0
  82. /package/{build/interfaces → interfaces}/augment-types.js +0 -0
  83. /package/{build/interfaces → interfaces}/registry.js +0 -0
  84. /package/{build/interfaces → interfaces}/types-lookup.js +0 -0
@@ -1,958 +0,0 @@
1
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
- /* eslint-disable */
3
-
4
- // import type lookup before we augment - in some environments
5
- // this is required to allow for ambient/previous definitions
6
- import '@polkadot/api-base/types/consts';
7
-
8
- import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
9
- import type { BTreeMap, Bytes, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
10
- import type { Codec, ITuple } from '@polkadot/types-codec/types';
11
- import type { AccountId32, H160, Perbill, Permill } from '@polkadot/types/interfaces/runtime';
12
- import { SpWeightsWeightV2Weight, FrameSupportPalletId, StagingXcmV4AssetAssetId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpWeightsRuntimeDbWeight, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
13
-
14
- export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
15
-
16
- declare module '@polkadot/api-base/types/consts' {
17
- interface AugmentedConsts<ApiType extends ApiTypes> {
18
- assets: {
19
- /**
20
- * The amount of funds that must be reserved when creating a new approval.
21
- **/
22
- approvalDeposit: u128 & AugmentedConst<ApiType>;
23
- /**
24
- * The amount of funds that must be reserved for a non-provider asset account to be
25
- * maintained.
26
- **/
27
- assetAccountDeposit: u128 & AugmentedConst<ApiType>;
28
- /**
29
- * The basic amount of funds that must be reserved for an asset.
30
- **/
31
- assetDeposit: u128 & AugmentedConst<ApiType>;
32
- /**
33
- * The basic amount of funds that must be reserved when adding metadata to your asset.
34
- **/
35
- metadataDepositBase: u128 & AugmentedConst<ApiType>;
36
- /**
37
- * The additional funds that must be reserved for the number of bytes you store in your
38
- * metadata.
39
- **/
40
- metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
41
- /**
42
- * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
43
- *
44
- * Must be configured to result in a weight that makes each call fit in a block.
45
- **/
46
- removeItemsLimit: u32 & AugmentedConst<ApiType>;
47
- /**
48
- * The maximum length of a name or symbol stored on-chain.
49
- **/
50
- stringLimit: u32 & AugmentedConst<ApiType>;
51
- /**
52
- * Generic const
53
- **/
54
- [key: string]: Codec;
55
- };
56
- babe: {
57
- /**
58
- * The amount of time, in slots, that each epoch should last.
59
- * NOTE: Currently it is not possible to change the epoch duration after
60
- * the chain has started. Attempting to do so will brick block production.
61
- **/
62
- epochDuration: u64 & AugmentedConst<ApiType>;
63
- /**
64
- * The expected average block time at which BABE should be creating
65
- * blocks. Since BABE is probabilistic it is not trivial to figure out
66
- * what the expected average block time should be based on the slot
67
- * duration and the security parameter `c` (where `1 - c` represents
68
- * the probability of a slot being empty).
69
- **/
70
- expectedBlockTime: u64 & AugmentedConst<ApiType>;
71
- /**
72
- * Max number of authorities allowed
73
- **/
74
- maxAuthorities: u32 & AugmentedConst<ApiType>;
75
- /**
76
- * The maximum number of nominators for each validator.
77
- **/
78
- maxNominators: u32 & AugmentedConst<ApiType>;
79
- /**
80
- * Generic const
81
- **/
82
- [key: string]: Codec;
83
- };
84
- bagsList: {
85
- /**
86
- * The list of thresholds separating the various bags.
87
- *
88
- * Ids are separated into unsorted bags according to their score. This specifies the
89
- * thresholds separating the bags. An id's bag is the largest bag for which the id's score
90
- * is less than or equal to its upper threshold.
91
- *
92
- * When ids are iterated, higher bags are iterated completely before lower bags. This means
93
- * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
94
- * score, but peer ids within a particular bag are sorted in insertion order.
95
- *
96
- * # Expressing the constant
97
- *
98
- * This constant must be sorted in strictly increasing order. Duplicate items are not
99
- * permitted.
100
- *
101
- * There is an implied upper limit of `Score::MAX`; that value does not need to be
102
- * specified within the bag. For any two threshold lists, if one ends with
103
- * `Score::MAX`, the other one does not, and they are otherwise equal, the two
104
- * lists will behave identically.
105
- *
106
- * # Calculation
107
- *
108
- * It is recommended to generate the set of thresholds in a geometric series, such that
109
- * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
110
- * constant_ratio).max(threshold[k] + 1)` for all `k`.
111
- *
112
- * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
113
- *
114
- * # Examples
115
- *
116
- * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
117
- * iteration is strictly in insertion order.
118
- * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
119
- * the procedure given above, then the constant ratio is equal to 2.
120
- * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
121
- * the procedure given above, then the constant ratio is approximately equal to 1.248.
122
- * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
123
- * into bag 0, an id with score 2 will fall into bag 1, etc.
124
- *
125
- * # Migration
126
- *
127
- * In the event that this list ever changes, a copy of the old bags list must be retained.
128
- * With that `List::migrate` can be called, which will perform the appropriate migration.
129
- **/
130
- bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
131
- /**
132
- * Generic const
133
- **/
134
- [key: string]: Codec;
135
- };
136
- balances: {
137
- /**
138
- * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
139
- *
140
- * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
141
- * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
142
- * In case you have multiple sources of provider references, you may also get unexpected
143
- * behaviour if you set this to zero.
144
- *
145
- * Bottom line: Do yourself a favour and make it at least one!
146
- **/
147
- existentialDeposit: u128 & AugmentedConst<ApiType>;
148
- /**
149
- * The maximum number of individual freeze locks that can exist on an account at any time.
150
- **/
151
- maxFreezes: u32 & AugmentedConst<ApiType>;
152
- /**
153
- * The maximum number of locks that should exist on an account.
154
- * Not strictly enforced, but used for weight estimation.
155
- **/
156
- maxLocks: u32 & AugmentedConst<ApiType>;
157
- /**
158
- * The maximum number of named reserves that can exist on an account.
159
- **/
160
- maxReserves: u32 & AugmentedConst<ApiType>;
161
- /**
162
- * Generic const
163
- **/
164
- [key: string]: Codec;
165
- };
166
- bounties: {
167
- /**
168
- * The amount held on deposit for placing a bounty proposal.
169
- **/
170
- bountyDepositBase: u128 & AugmentedConst<ApiType>;
171
- /**
172
- * The delay period for which a bounty beneficiary need to wait before claim the payout.
173
- **/
174
- bountyDepositPayoutDelay: u64 & AugmentedConst<ApiType>;
175
- /**
176
- * Bounty duration in blocks.
177
- **/
178
- bountyUpdatePeriod: u64 & AugmentedConst<ApiType>;
179
- /**
180
- * Minimum value for a bounty.
181
- **/
182
- bountyValueMinimum: u128 & AugmentedConst<ApiType>;
183
- /**
184
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
185
- **/
186
- curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
187
- /**
188
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
189
- **/
190
- curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
191
- /**
192
- * The curator deposit is calculated as a percentage of the curator fee.
193
- *
194
- * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
195
- * `CuratorDepositMin`.
196
- **/
197
- curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
198
- /**
199
- * The amount held on deposit per byte within the tip report reason or bounty description.
200
- **/
201
- dataDepositPerByte: u128 & AugmentedConst<ApiType>;
202
- /**
203
- * Maximum acceptable reason length.
204
- *
205
- * Benchmarks depend on this value, be sure to update weights file when changing this value
206
- **/
207
- maximumReasonLength: u32 & AugmentedConst<ApiType>;
208
- /**
209
- * Generic const
210
- **/
211
- [key: string]: Codec;
212
- };
213
- childBounties: {
214
- /**
215
- * Minimum value for a child-bounty.
216
- **/
217
- childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
218
- /**
219
- * Maximum number of child bounties that can be added to a parent bounty.
220
- **/
221
- maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
222
- /**
223
- * Generic const
224
- **/
225
- [key: string]: Codec;
226
- };
227
- claims: {
228
- prefix: Bytes & AugmentedConst<ApiType>;
229
- /**
230
- * Generic const
231
- **/
232
- [key: string]: Codec;
233
- };
234
- council: {
235
- /**
236
- * The maximum weight of a dispatch call that can be proposed and executed.
237
- **/
238
- maxProposalWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
239
- /**
240
- * Generic const
241
- **/
242
- [key: string]: Codec;
243
- };
244
- democracy: {
245
- /**
246
- * Period in blocks where an external proposal may not be re-submitted after being vetoed.
247
- **/
248
- cooloffPeriod: u64 & AugmentedConst<ApiType>;
249
- /**
250
- * The period between a proposal being approved and enacted.
251
- *
252
- * It should generally be a little more than the unstake period to ensure that
253
- * voting stakers have an opportunity to remove themselves from the system in the case
254
- * where they are on the losing side of a vote.
255
- **/
256
- enactmentPeriod: u64 & AugmentedConst<ApiType>;
257
- /**
258
- * Minimum voting period allowed for a fast-track referendum.
259
- **/
260
- fastTrackVotingPeriod: u64 & AugmentedConst<ApiType>;
261
- /**
262
- * Indicator for whether an emergency origin is even allowed to happen. Some chains may
263
- * want to set this permanently to `false`, others may want to condition it on things such
264
- * as an upgrade having happened recently.
265
- **/
266
- instantAllowed: bool & AugmentedConst<ApiType>;
267
- /**
268
- * How often (in blocks) new public referenda are launched.
269
- **/
270
- launchPeriod: u64 & AugmentedConst<ApiType>;
271
- /**
272
- * The maximum number of items which can be blacklisted.
273
- **/
274
- maxBlacklisted: u32 & AugmentedConst<ApiType>;
275
- /**
276
- * The maximum number of deposits a public proposal may have at any time.
277
- **/
278
- maxDeposits: u32 & AugmentedConst<ApiType>;
279
- /**
280
- * The maximum number of public proposals that can exist at any time.
281
- **/
282
- maxProposals: u32 & AugmentedConst<ApiType>;
283
- /**
284
- * The maximum number of votes for an account.
285
- *
286
- * Also used to compute weight, an overly big value can
287
- * lead to extrinsic with very big weight: see `delegate` for instance.
288
- **/
289
- maxVotes: u32 & AugmentedConst<ApiType>;
290
- /**
291
- * The minimum amount to be used as a deposit for a public referendum proposal.
292
- **/
293
- minimumDeposit: u128 & AugmentedConst<ApiType>;
294
- /**
295
- * The minimum period of vote locking.
296
- *
297
- * It should be no shorter than enactment period to ensure that in the case of an approval,
298
- * those successful voters are locked into the consequences that their votes entail.
299
- **/
300
- voteLockingPeriod: u64 & AugmentedConst<ApiType>;
301
- /**
302
- * How often (in blocks) to check for new votes.
303
- **/
304
- votingPeriod: u64 & AugmentedConst<ApiType>;
305
- /**
306
- * Generic const
307
- **/
308
- [key: string]: Codec;
309
- };
310
- electionProviderMultiPhase: {
311
- /**
312
- * The minimum amount of improvement to the solution score that defines a solution as
313
- * "better" in the Signed phase.
314
- **/
315
- betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
316
- /**
317
- * The maximum number of winners that can be elected by this `ElectionProvider`
318
- * implementation.
319
- *
320
- * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
321
- **/
322
- maxWinners: u32 & AugmentedConst<ApiType>;
323
- minerMaxLength: u32 & AugmentedConst<ApiType>;
324
- minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
325
- minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
326
- minerMaxWinners: u32 & AugmentedConst<ApiType>;
327
- /**
328
- * The priority of the unsigned transaction submitted in the unsigned-phase
329
- **/
330
- minerTxPriority: u64 & AugmentedConst<ApiType>;
331
- /**
332
- * The repeat threshold of the offchain worker.
333
- *
334
- * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
335
- * to submit the worker's solution.
336
- **/
337
- offchainRepeat: u64 & AugmentedConst<ApiType>;
338
- /**
339
- * Per-byte deposit for a signed solution.
340
- **/
341
- signedDepositByte: u128 & AugmentedConst<ApiType>;
342
- /**
343
- * Per-weight deposit for a signed solution.
344
- **/
345
- signedDepositWeight: u128 & AugmentedConst<ApiType>;
346
- /**
347
- * The maximum amount of unchecked solutions to refund the call fee for.
348
- **/
349
- signedMaxRefunds: u32 & AugmentedConst<ApiType>;
350
- /**
351
- * Maximum number of signed submissions that can be queued.
352
- *
353
- * It is best to avoid adjusting this during an election, as it impacts downstream data
354
- * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
355
- * update this value during an election, you _must_ ensure that
356
- * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
357
- * attempts to submit new solutions may cause a runtime panic.
358
- **/
359
- signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
360
- /**
361
- * Maximum weight of a signed solution.
362
- *
363
- * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
364
- * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
365
- * this value.
366
- **/
367
- signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
368
- /**
369
- * Duration of the signed phase.
370
- **/
371
- signedPhase: u64 & AugmentedConst<ApiType>;
372
- /**
373
- * Base reward for a signed solution
374
- **/
375
- signedRewardBase: u128 & AugmentedConst<ApiType>;
376
- /**
377
- * Duration of the unsigned phase.
378
- **/
379
- unsignedPhase: u64 & AugmentedConst<ApiType>;
380
- /**
381
- * Generic const
382
- **/
383
- [key: string]: Codec;
384
- };
385
- elections: {
386
- /**
387
- * How much should be locked up in order to submit one's candidacy.
388
- **/
389
- candidacyBond: u128 & AugmentedConst<ApiType>;
390
- /**
391
- * Number of members to elect.
392
- **/
393
- desiredMembers: u32 & AugmentedConst<ApiType>;
394
- /**
395
- * Number of runners_up to keep.
396
- **/
397
- desiredRunnersUp: u32 & AugmentedConst<ApiType>;
398
- /**
399
- * The maximum number of candidates in a phragmen election.
400
- *
401
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
402
- * consider how it will impact `T::WeightInfo::election_phragmen`.
403
- *
404
- * When this limit is reached no more candidates are accepted in the election.
405
- **/
406
- maxCandidates: u32 & AugmentedConst<ApiType>;
407
- /**
408
- * The maximum number of voters to allow in a phragmen election.
409
- *
410
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
411
- * consider how it will impact `T::WeightInfo::election_phragmen`.
412
- *
413
- * When the limit is reached the new voters are ignored.
414
- **/
415
- maxVoters: u32 & AugmentedConst<ApiType>;
416
- /**
417
- * Maximum numbers of votes per voter.
418
- *
419
- * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
420
- * consider how it will impact `T::WeightInfo::election_phragmen`.
421
- **/
422
- maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
423
- /**
424
- * Identifier for the elections-phragmen pallet's lock
425
- **/
426
- palletId: U8aFixed & AugmentedConst<ApiType>;
427
- /**
428
- * How long each seat is kept. This defines the next block number at which an election
429
- * round will happen. If set to zero, no elections are ever triggered and the module will
430
- * be in passive mode.
431
- **/
432
- termDuration: u64 & AugmentedConst<ApiType>;
433
- /**
434
- * Base deposit associated with voting.
435
- *
436
- * This should be sensibly high to economically ensure the pallet cannot be attacked by
437
- * creating a gigantic number of votes.
438
- **/
439
- votingBondBase: u128 & AugmentedConst<ApiType>;
440
- /**
441
- * The amount of bond that need to be locked for each vote (32 bytes).
442
- **/
443
- votingBondFactor: u128 & AugmentedConst<ApiType>;
444
- /**
445
- * Generic const
446
- **/
447
- [key: string]: Codec;
448
- };
449
- grandpa: {
450
- /**
451
- * Max Authorities in use
452
- **/
453
- maxAuthorities: u32 & AugmentedConst<ApiType>;
454
- /**
455
- * The maximum number of nominators for each validator.
456
- **/
457
- maxNominators: u32 & AugmentedConst<ApiType>;
458
- /**
459
- * The maximum number of entries to keep in the set id to session index mapping.
460
- *
461
- * Since the `SetIdSession` map is only used for validating equivocations this
462
- * value should relate to the bonding duration of whatever staking system is
463
- * being used (if any). If equivocation handling is not enabled then this value
464
- * can be zero.
465
- **/
466
- maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
467
- /**
468
- * Generic const
469
- **/
470
- [key: string]: Codec;
471
- };
472
- identity: {
473
- /**
474
- * The amount held on deposit for a registered identity.
475
- **/
476
- basicDeposit: u128 & AugmentedConst<ApiType>;
477
- /**
478
- * The amount held on deposit per encoded byte for a registered identity.
479
- **/
480
- byteDeposit: u128 & AugmentedConst<ApiType>;
481
- /**
482
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
483
- * of, e.g., updating judgements.
484
- **/
485
- maxRegistrars: u32 & AugmentedConst<ApiType>;
486
- /**
487
- * The maximum number of sub-accounts allowed per identified account.
488
- **/
489
- maxSubAccounts: u32 & AugmentedConst<ApiType>;
490
- /**
491
- * The maximum length of a suffix.
492
- **/
493
- maxSuffixLength: u32 & AugmentedConst<ApiType>;
494
- /**
495
- * The maximum length of a username, including its suffix and any system-added delimiters.
496
- **/
497
- maxUsernameLength: u32 & AugmentedConst<ApiType>;
498
- /**
499
- * The number of blocks within which a username grant must be accepted.
500
- **/
501
- pendingUsernameExpiration: u64 & AugmentedConst<ApiType>;
502
- /**
503
- * The amount held on deposit for a registered subaccount. This should account for the fact
504
- * that one storage item's value will increase by the size of an account ID, and there will
505
- * be another trie item whose value is the size of an account ID plus 32 bytes.
506
- **/
507
- subAccountDeposit: u128 & AugmentedConst<ApiType>;
508
- /**
509
- * Generic const
510
- **/
511
- [key: string]: Codec;
512
- };
513
- imOnline: {
514
- /**
515
- * A configuration for base priority of unsigned transactions.
516
- *
517
- * This is exposed so that it can be tuned for particular runtime, when
518
- * multiple pallets send unsigned transactions.
519
- **/
520
- unsignedPriority: u64 & AugmentedConst<ApiType>;
521
- /**
522
- * Generic const
523
- **/
524
- [key: string]: Codec;
525
- };
526
- indices: {
527
- /**
528
- * The deposit needed for reserving an index.
529
- **/
530
- deposit: u128 & AugmentedConst<ApiType>;
531
- /**
532
- * Generic const
533
- **/
534
- [key: string]: Codec;
535
- };
536
- jobs: {
537
- /**
538
- * `PalletId` for the jobs pallet.
539
- **/
540
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
541
- /**
542
- * Generic const
543
- **/
544
- [key: string]: Codec;
545
- };
546
- multiAssetDelegation: {
547
- /**
548
- * The duration for which the bond is locked.
549
- **/
550
- bondDuration: u32 & AugmentedConst<ApiType>;
551
- /**
552
- * Number of rounds that delegation bond less requests must wait before being executable.
553
- **/
554
- delegationBondLessDelay: u32 & AugmentedConst<ApiType>;
555
- /**
556
- * Number of rounds that delegators remain bonded before the exit request is executable.
557
- **/
558
- leaveDelegatorsDelay: u32 & AugmentedConst<ApiType>;
559
- /**
560
- * Number of rounds that operators remain bonded before the exit request is executable.
561
- **/
562
- leaveOperatorsDelay: u32 & AugmentedConst<ApiType>;
563
- /**
564
- * The minimum amount of bond required for a delegate.
565
- **/
566
- minDelegateAmount: u128 & AugmentedConst<ApiType>;
567
- /**
568
- * The minimum amount of bond required for an operator.
569
- **/
570
- minOperatorBondAmount: u128 & AugmentedConst<ApiType>;
571
- /**
572
- * Number of rounds operator requests to decrease self-bond must wait to be executable.
573
- **/
574
- operatorBondLessDelay: u32 & AugmentedConst<ApiType>;
575
- /**
576
- * Generic const
577
- **/
578
- [key: string]: Codec;
579
- };
580
- multisig: {
581
- /**
582
- * The base amount of currency needed to reserve for creating a multisig execution or to
583
- * store a dispatch call for later.
584
- *
585
- * This is held for an additional storage item whose value size is
586
- * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
587
- * `32 + sizeof(AccountId)` bytes.
588
- **/
589
- depositBase: u128 & AugmentedConst<ApiType>;
590
- /**
591
- * The amount of currency needed per unit threshold when creating a multisig execution.
592
- *
593
- * This is held for adding 32 bytes more into a pre-existing storage value.
594
- **/
595
- depositFactor: u128 & AugmentedConst<ApiType>;
596
- /**
597
- * The maximum amount of signatories allowed in the multisig.
598
- **/
599
- maxSignatories: u32 & AugmentedConst<ApiType>;
600
- /**
601
- * Generic const
602
- **/
603
- [key: string]: Codec;
604
- };
605
- nominationPools: {
606
- /**
607
- * The maximum pool points-to-balance ratio that an `open` pool can have.
608
- *
609
- * This is important in the event slashing takes place and the pool's points-to-balance
610
- * ratio becomes disproportional.
611
- *
612
- * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
613
- * are a function of number of points, and by setting this value to e.g. 10, you ensure
614
- * that the total number of points in the system are at most 10 times the total_issuance of
615
- * the chain, in the absolute worse case.
616
- *
617
- * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
618
- * Such a scenario would also be the equivalent of the pool being 90% slashed.
619
- **/
620
- maxPointsToBalance: u8 & AugmentedConst<ApiType>;
621
- /**
622
- * The maximum number of simultaneous unbonding chunks that can exist per member.
623
- **/
624
- maxUnbonding: u32 & AugmentedConst<ApiType>;
625
- /**
626
- * The nomination pool's pallet id.
627
- **/
628
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
629
- /**
630
- * Generic const
631
- **/
632
- [key: string]: Codec;
633
- };
634
- proxy: {
635
- /**
636
- * The base amount of currency needed to reserve for creating an announcement.
637
- *
638
- * This is held when a new storage item holding a `Balance` is created (typically 16
639
- * bytes).
640
- **/
641
- announcementDepositBase: u128 & AugmentedConst<ApiType>;
642
- /**
643
- * The amount of currency needed per announcement made.
644
- *
645
- * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
646
- * into a pre-existing storage value.
647
- **/
648
- announcementDepositFactor: u128 & AugmentedConst<ApiType>;
649
- /**
650
- * The maximum amount of time-delayed announcements that are allowed to be pending.
651
- **/
652
- maxPending: u32 & AugmentedConst<ApiType>;
653
- /**
654
- * The maximum amount of proxies allowed for a single account.
655
- **/
656
- maxProxies: u32 & AugmentedConst<ApiType>;
657
- /**
658
- * The base amount of currency needed to reserve for creating a proxy.
659
- *
660
- * This is held for an additional storage item whose value size is
661
- * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
662
- **/
663
- proxyDepositBase: u128 & AugmentedConst<ApiType>;
664
- /**
665
- * The amount of currency needed per proxy added.
666
- *
667
- * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
668
- * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
669
- * into account `32 + proxy_type.encode().len()` bytes of data.
670
- **/
671
- proxyDepositFactor: u128 & AugmentedConst<ApiType>;
672
- /**
673
- * Generic const
674
- **/
675
- [key: string]: Codec;
676
- };
677
- roles: {
678
- /**
679
- * Max roles per account.
680
- **/
681
- maxRolesPerAccount: u32 & AugmentedConst<ApiType>;
682
- /**
683
- * Generic const
684
- **/
685
- [key: string]: Codec;
686
- };
687
- scheduler: {
688
- /**
689
- * The maximum weight that may be scheduled per block for any dispatchables.
690
- **/
691
- maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
692
- /**
693
- * The maximum number of scheduled calls in the queue for a single block.
694
- *
695
- * NOTE:
696
- * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
697
- * higher limit under `runtime-benchmarks` feature.
698
- **/
699
- maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
700
- /**
701
- * Generic const
702
- **/
703
- [key: string]: Codec;
704
- };
705
- staking: {
706
- /**
707
- * Number of eras that staked funds must remain bonded for.
708
- **/
709
- bondingDuration: u32 & AugmentedConst<ApiType>;
710
- /**
711
- * Number of eras to keep in history.
712
- *
713
- * Following information is kept for eras in `[current_era -
714
- * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
715
- * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
716
- * `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
717
- * `ErasStakersOverview`.
718
- *
719
- * Must be more than the number of eras delayed by session.
720
- * I.e. active era must always be in history. I.e. `active_era >
721
- * current_era - history_depth` must be guaranteed.
722
- *
723
- * If migrating an existing pallet from storage value to config value,
724
- * this should be set to same value or greater as in storage.
725
- *
726
- * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
727
- * item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
728
- * the existing value can lead to inconsistencies in the
729
- * `StakingLedger` and will need to be handled properly in a migration.
730
- * The test `reducing_history_depth_abrupt` shows this effect.
731
- **/
732
- historyDepth: u32 & AugmentedConst<ApiType>;
733
- /**
734
- * The maximum size of each `T::ExposurePage`.
735
- *
736
- * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
737
- * nominators.
738
- *
739
- * For older non-paged exposure, a reward payout was restricted to the top
740
- * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
741
- * nominator payout.
742
- *
743
- * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
744
- * without handling it in a migration.
745
- **/
746
- maxExposurePageSize: u32 & AugmentedConst<ApiType>;
747
- /**
748
- * The maximum number of `unlocking` chunks a [`StakingLedger`] can
749
- * have. Effectively determines how many unique eras a staker may be
750
- * unbonding in.
751
- *
752
- * Note: `MaxUnlockingChunks` is used as the upper bound for the
753
- * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
754
- * lower than the existing value can lead to inconsistencies in the
755
- * `StakingLedger` and will need to be handled properly in a runtime
756
- * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
757
- * this effect.
758
- **/
759
- maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
760
- /**
761
- * Number of sessions per era.
762
- **/
763
- sessionsPerEra: u32 & AugmentedConst<ApiType>;
764
- /**
765
- * Number of eras that slashes are deferred by, after computation.
766
- *
767
- * This should be less than the bonding duration. Set to 0 if slashes
768
- * should be applied immediately, without opportunity for intervention.
769
- **/
770
- slashDeferDuration: u32 & AugmentedConst<ApiType>;
771
- /**
772
- * Generic const
773
- **/
774
- [key: string]: Codec;
775
- };
776
- sygmaBridge: {
777
- /**
778
- * EIP712 Verifying contract address
779
- * This is used in EIP712 typed data domain
780
- **/
781
- destVerifyingContractAddress: H160 & AugmentedConst<ApiType>;
782
- /**
783
- * Pallet ChainID
784
- * This is used in EIP712 typed data domain
785
- **/
786
- eip712ChainID: U256 & AugmentedConst<ApiType>;
787
- /**
788
- * Fee reserve account
789
- **/
790
- feeReserveAccount: AccountId32 & AugmentedConst<ApiType>;
791
- /**
792
- * AssetId and ResourceId pairs
793
- **/
794
- resourcePairs: Vec<ITuple<[StagingXcmV4AssetAssetId, U8aFixed]>> & AugmentedConst<ApiType>;
795
- /**
796
- * Bridge transfer reserve accounts mapping with designated assets
797
- **/
798
- transferReserveAccounts: BTreeMap<StagingXcmV4AssetAssetId, AccountId32> & AugmentedConst<ApiType>;
799
- /**
800
- * Generic const
801
- **/
802
- [key: string]: Codec;
803
- };
804
- system: {
805
- /**
806
- * Maximum number of block number to block hash mappings to keep (oldest pruned first).
807
- **/
808
- blockHashCount: u64 & AugmentedConst<ApiType>;
809
- /**
810
- * The maximum length of a block (in bytes).
811
- **/
812
- blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
813
- /**
814
- * Block & extrinsics weights: base values and limits.
815
- **/
816
- blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
817
- /**
818
- * The weight of runtime database operations the runtime can invoke.
819
- **/
820
- dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
821
- /**
822
- * The designated SS58 prefix of this chain.
823
- *
824
- * This replaces the "ss58Format" property declared in the chain spec. Reason is
825
- * that the runtime should know about the prefix in order to make use of it as
826
- * an identifier of the chain.
827
- **/
828
- ss58Prefix: u16 & AugmentedConst<ApiType>;
829
- /**
830
- * Get the chain's current version.
831
- **/
832
- version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
833
- /**
834
- * Generic const
835
- **/
836
- [key: string]: Codec;
837
- };
838
- timestamp: {
839
- /**
840
- * The minimum period between blocks.
841
- *
842
- * Be aware that this is different to the *expected* period that the block production
843
- * apparatus provides. Your chosen consensus system will generally work with this to
844
- * determine a sensible block time. For example, in the Aura pallet it will be double this
845
- * period on default settings.
846
- **/
847
- minimumPeriod: u64 & AugmentedConst<ApiType>;
848
- /**
849
- * Generic const
850
- **/
851
- [key: string]: Codec;
852
- };
853
- transactionPayment: {
854
- /**
855
- * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
856
- * `priority`
857
- *
858
- * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
859
- * added to a tip component in regular `priority` calculations.
860
- * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
861
- * extrinsic (with no tip), by including a tip value greater than the virtual tip.
862
- *
863
- * ```rust,ignore
864
- * // For `Normal`
865
- * let priority = priority_calc(tip);
866
- *
867
- * // For `Operational`
868
- * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
869
- * let priority = priority_calc(tip + virtual_tip);
870
- * ```
871
- *
872
- * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
873
- * sent with the transaction. So, not only does the transaction get a priority bump based
874
- * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
875
- * transactions.
876
- **/
877
- operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
878
- /**
879
- * Generic const
880
- **/
881
- [key: string]: Codec;
882
- };
883
- treasury: {
884
- /**
885
- * Percentage of spare funds (if any) that are burnt per spend period.
886
- **/
887
- burn: Permill & AugmentedConst<ApiType>;
888
- /**
889
- * The maximum number of approvals that can wait in the spending queue.
890
- *
891
- * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
892
- **/
893
- maxApprovals: u32 & AugmentedConst<ApiType>;
894
- /**
895
- * The treasury's pallet id, used for deriving its sovereign account ID.
896
- **/
897
- palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
898
- /**
899
- * The period during which an approved treasury spend has to be claimed.
900
- **/
901
- payoutPeriod: u64 & AugmentedConst<ApiType>;
902
- /**
903
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
904
- * An accepted proposal gets these back. A rejected proposal does not.
905
- **/
906
- proposalBond: Permill & AugmentedConst<ApiType>;
907
- /**
908
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
909
- **/
910
- proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
911
- /**
912
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
913
- **/
914
- proposalBondMinimum: u128 & AugmentedConst<ApiType>;
915
- /**
916
- * Period between successive spends.
917
- **/
918
- spendPeriod: u64 & AugmentedConst<ApiType>;
919
- /**
920
- * Generic const
921
- **/
922
- [key: string]: Codec;
923
- };
924
- txPause: {
925
- /**
926
- * Maximum length for pallet name and call name SCALE encoded string names.
927
- *
928
- * TOO LONG NAMES WILL BE TREATED AS PAUSED.
929
- **/
930
- maxNameLen: u32 & AugmentedConst<ApiType>;
931
- /**
932
- * Generic const
933
- **/
934
- [key: string]: Codec;
935
- };
936
- utility: {
937
- /**
938
- * The limit on the number of batched calls.
939
- **/
940
- batchedCallsLimit: u32 & AugmentedConst<ApiType>;
941
- /**
942
- * Generic const
943
- **/
944
- [key: string]: Codec;
945
- };
946
- vesting: {
947
- maxVestingSchedules: u32 & AugmentedConst<ApiType>;
948
- /**
949
- * The minimum amount transferred to call `vested_transfer`.
950
- **/
951
- minVestedTransfer: u128 & AugmentedConst<ApiType>;
952
- /**
953
- * Generic const
954
- **/
955
- [key: string]: Codec;
956
- };
957
- } // AugmentedConsts
958
- } // declare module