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