@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.0

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 (144) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +94 -13
  3. package/aleph/errors.d.ts +251 -182
  4. package/aleph/events.d.ts +319 -102
  5. package/aleph/index.d.ts +16 -11
  6. package/aleph/json-rpc.d.ts +76 -0
  7. package/aleph/query.d.ts +261 -168
  8. package/aleph/runtime.d.ts +90 -39
  9. package/aleph/tx.d.ts +1822 -1052
  10. package/aleph/types.d.ts +458 -138
  11. package/astar/consts.d.ts +112 -116
  12. package/astar/errors.d.ts +342 -409
  13. package/astar/events.d.ts +449 -358
  14. package/astar/index.d.ts +16 -11
  15. package/astar/json-rpc.d.ts +131 -0
  16. package/astar/query.d.ts +459 -367
  17. package/astar/runtime.d.ts +591 -98
  18. package/astar/tx.d.ts +2485 -3430
  19. package/astar/types.d.ts +1530 -4436
  20. package/index.d.ts +3 -0
  21. package/index.ts +3 -0
  22. package/kusama/consts.d.ts +54 -115
  23. package/kusama/errors.d.ts +696 -682
  24. package/kusama/events.d.ts +592 -407
  25. package/kusama/index.d.ts +16 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +840 -538
  28. package/kusama/runtime.d.ts +136 -65
  29. package/kusama/tx.d.ts +4557 -3051
  30. package/kusama/types.d.ts +1437 -1161
  31. package/kusamaAssetHub/consts.d.ts +66 -20
  32. package/kusamaAssetHub/errors.d.ts +428 -308
  33. package/kusamaAssetHub/events.d.ts +497 -305
  34. package/kusamaAssetHub/index.d.ts +16 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +376 -253
  37. package/kusamaAssetHub/runtime.d.ts +82 -41
  38. package/kusamaAssetHub/tx.d.ts +3264 -1955
  39. package/kusamaAssetHub/types.d.ts +1262 -726
  40. package/moonbeam/consts.d.ts +115 -170
  41. package/moonbeam/errors.d.ts +564 -787
  42. package/moonbeam/events.d.ts +583 -746
  43. package/moonbeam/index.d.ts +16 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +507 -607
  46. package/moonbeam/runtime.d.ts +132 -47
  47. package/moonbeam/tx.d.ts +3309 -3268
  48. package/moonbeam/types.d.ts +1484 -1375
  49. package/package.json +4 -14
  50. package/paseo/consts.d.ts +1331 -0
  51. package/paseo/errors.d.ts +2644 -0
  52. package/paseo/events.d.ts +2821 -0
  53. package/paseo/index.d.ts +27 -0
  54. package/paseo/json-rpc.d.ts +103 -0
  55. package/paseo/query.d.ts +3709 -0
  56. package/paseo/runtime.d.ts +1205 -0
  57. package/paseo/tx.d.ts +8024 -0
  58. package/paseo/types.d.ts +10194 -0
  59. package/polkadot/consts.d.ts +95 -50
  60. package/polkadot/errors.d.ts +619 -468
  61. package/polkadot/events.d.ts +582 -257
  62. package/polkadot/index.d.ts +16 -11
  63. package/polkadot/json-rpc.d.ts +103 -0
  64. package/polkadot/query.d.ts +770 -399
  65. package/polkadot/runtime.d.ts +136 -65
  66. package/polkadot/tx.d.ts +4268 -2368
  67. package/polkadot/types.d.ts +1570 -745
  68. package/polkadotAssetHub/consts.d.ts +154 -15
  69. package/polkadotAssetHub/errors.d.ts +615 -234
  70. package/polkadotAssetHub/events.d.ts +829 -270
  71. package/polkadotAssetHub/index.d.ts +16 -11
  72. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  73. package/polkadotAssetHub/query.d.ts +438 -243
  74. package/polkadotAssetHub/runtime.d.ts +147 -40
  75. package/polkadotAssetHub/tx.d.ts +3747 -1643
  76. package/polkadotAssetHub/types.d.ts +2096 -806
  77. package/rococo/consts.d.ts +51 -32
  78. package/rococo/errors.d.ts +549 -605
  79. package/rococo/events.d.ts +447 -238
  80. package/rococo/index.d.ts +16 -11
  81. package/rococo/json-rpc.d.ts +103 -0
  82. package/rococo/query.d.ts +724 -426
  83. package/rococo/runtime.d.ts +366 -144
  84. package/rococo/tx.d.ts +6850 -3079
  85. package/rococo/types.d.ts +5959 -1619
  86. package/rococoAssetHub/consts.d.ts +92 -7
  87. package/rococoAssetHub/errors.d.ts +381 -285
  88. package/rococoAssetHub/events.d.ts +461 -140
  89. package/rococoAssetHub/index.d.ts +16 -11
  90. package/rococoAssetHub/json-rpc.d.ts +89 -0
  91. package/rococoAssetHub/query.d.ts +487 -174
  92. package/rococoAssetHub/runtime.d.ts +235 -51
  93. package/rococoAssetHub/tx.d.ts +6005 -2163
  94. package/rococoAssetHub/types.d.ts +6683 -1003
  95. package/substrate/consts.d.ts +233 -52
  96. package/substrate/errors.d.ts +966 -781
  97. package/substrate/events.d.ts +1226 -381
  98. package/substrate/index.d.ts +16 -11
  99. package/substrate/json-rpc.d.ts +103 -0
  100. package/substrate/query.d.ts +1090 -460
  101. package/substrate/runtime.d.ts +274 -71
  102. package/substrate/tx.d.ts +12313 -4510
  103. package/substrate/types.d.ts +11036 -1432
  104. package/westend/consts.d.ts +1349 -0
  105. package/westend/errors.d.ts +2736 -0
  106. package/westend/events.d.ts +2906 -0
  107. package/westend/index.d.ts +27 -0
  108. package/westend/json-rpc.d.ts +103 -0
  109. package/westend/query.d.ts +3855 -0
  110. package/westend/runtime.d.ts +1437 -0
  111. package/westend/tx.d.ts +10248 -0
  112. package/westend/types.d.ts +14769 -0
  113. package/westendAssetHub/consts.d.ts +126 -7
  114. package/westendAssetHub/errors.d.ts +426 -285
  115. package/westendAssetHub/events.d.ts +498 -140
  116. package/westendAssetHub/index.d.ts +16 -11
  117. package/westendAssetHub/json-rpc.d.ts +89 -0
  118. package/westendAssetHub/query.d.ts +526 -174
  119. package/westendAssetHub/runtime.d.ts +245 -56
  120. package/westendAssetHub/tx.d.ts +6196 -2166
  121. package/westendAssetHub/types.d.ts +6913 -1002
  122. package/westendPeople/consts.d.ts +434 -0
  123. package/westendPeople/errors.d.ts +769 -0
  124. package/westendPeople/events.d.ts +1082 -0
  125. package/westendPeople/index.d.ts +27 -0
  126. package/westendPeople/json-rpc.d.ts +89 -0
  127. package/westendPeople/query.d.ts +1209 -0
  128. package/westendPeople/runtime.d.ts +636 -0
  129. package/westendPeople/tx.d.ts +2891 -0
  130. package/westendPeople/types.d.ts +4984 -0
  131. package/aleph/rpc.d.ts +0 -727
  132. package/astar/rpc.d.ts +0 -974
  133. package/kusama/rpc.d.ts +0 -904
  134. package/kusamaAssetHub/rpc.d.ts +0 -746
  135. package/moonbeam/rpc.d.ts +0 -1015
  136. package/packageInfo.d.ts +0 -4
  137. package/packageInfo.js +0 -2
  138. package/packageInfo.ts +0 -3
  139. package/polkadot/rpc.d.ts +0 -904
  140. package/polkadotAssetHub/rpc.d.ts +0 -746
  141. package/rococo/rpc.d.ts +0 -904
  142. package/rococoAssetHub/rpc.d.ts +0 -746
  143. package/substrate/rpc.d.ts +0 -894
  144. package/westendAssetHub/rpc.d.ts +0 -746
@@ -1,7 +1,7 @@
1
- // Generated by @dedot/codegen
1
+ // Generated by dedot cli
2
2
 
3
- import type { GenericChainConsts } from '@dedot/types';
4
- import type { RuntimeVersion, Permill, Bytes, Perbill } from '@dedot/codecs';
3
+ import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
+ import type { RuntimeVersion, Permill, Bytes, Perbill } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
@@ -11,7 +11,7 @@ import type {
11
11
  PalletReferendaTrackInfo,
12
12
  } from './types';
13
13
 
14
- export interface ChainConsts extends GenericChainConsts {
14
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
15
15
  /**
16
16
  * Pallet `System`'s constants
17
17
  **/
@@ -182,11 +182,6 @@ export interface ChainConsts extends GenericChainConsts {
182
182
  **/
183
183
  maxReserves: number;
184
184
 
185
- /**
186
- * The maximum number of holds that can exist on an account at any time.
187
- **/
188
- maxHolds: number;
189
-
190
185
  /**
191
186
  * The maximum number of individual freeze locks that can exist on an account at any time.
192
187
  **/
@@ -202,10 +197,10 @@ export interface ChainConsts extends GenericChainConsts {
202
197
  **/
203
198
  transactionPayment: {
204
199
  /**
205
- * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
200
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
206
201
  * `priority`
207
202
  *
208
- * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
203
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
209
204
  * added to a tip component in regular `priority` calculations.
210
205
  * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
211
206
  * extrinsic (with no tip), by including a tip value greater than the virtual tip.
@@ -250,8 +245,8 @@ export interface ChainConsts extends GenericChainConsts {
250
245
  * Following information is kept for eras in `[current_era -
251
246
  * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
252
247
  * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
253
- * `ErasTotalStake`, `ErasStartSessionIndex`,
254
- * `StakingLedger.claimed_rewards`.
248
+ * `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
249
+ * `ErasStakersOverview`.
255
250
  *
256
251
  * Must be more than the number of eras delayed by session.
257
252
  * I.e. active era must always be in history. I.e. `active_era >
@@ -261,7 +256,7 @@ export interface ChainConsts extends GenericChainConsts {
261
256
  * this should be set to same value or greater as in storage.
262
257
  *
263
258
  * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
264
- * item `StakingLedger.claimed_rewards`. Setting this value lower than
259
+ * item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
265
260
  * the existing value can lead to inconsistencies in the
266
261
  * `StakingLedger` and will need to be handled properly in a migration.
267
262
  * The test `reducing_history_depth_abrupt` shows this effect.
@@ -287,12 +282,19 @@ export interface ChainConsts extends GenericChainConsts {
287
282
  slashDeferDuration: number;
288
283
 
289
284
  /**
290
- * The maximum number of nominators rewarded for each validator.
285
+ * The maximum size of each `T::ExposurePage`.
286
+ *
287
+ * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
288
+ * nominators.
289
+ *
290
+ * For older non-paged exposure, a reward payout was restricted to the top
291
+ * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
292
+ * nominator payout.
291
293
  *
292
- * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
293
- * claim their reward. This used to limit the i/o cost for the nominator payout.
294
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
295
+ * without handling it in a migration.
294
296
  **/
295
- maxNominatorRewardedPerValidator: number;
297
+ maxExposurePageSize: number;
296
298
 
297
299
  /**
298
300
  * The maximum number of `unlocking` chunks a [`StakingLedger`] can
@@ -369,23 +371,6 @@ export interface ChainConsts extends GenericChainConsts {
369
371
  **/
370
372
  [name: string]: any;
371
373
  };
372
- /**
373
- * Pallet `ImOnline`'s constants
374
- **/
375
- imOnline: {
376
- /**
377
- * A configuration for base priority of unsigned transactions.
378
- *
379
- * This is exposed so that it can be tuned for particular runtime, when
380
- * multiple pallets send unsigned transactions.
381
- **/
382
- unsignedPriority: bigint;
383
-
384
- /**
385
- * Generic pallet constant
386
- **/
387
- [name: string]: any;
388
- };
389
374
  /**
390
375
  * Pallet `AuthorityDiscovery`'s constants
391
376
  **/
@@ -509,6 +494,15 @@ export interface ChainConsts extends GenericChainConsts {
509
494
  **/
510
495
  [name: string]: any;
511
496
  };
497
+ /**
498
+ * Pallet `Origins`'s constants
499
+ **/
500
+ origins: {
501
+ /**
502
+ * Generic pallet constant
503
+ **/
504
+ [name: string]: any;
505
+ };
512
506
  /**
513
507
  * Pallet `Whitelist`'s constants
514
508
  **/
@@ -563,14 +557,14 @@ export interface ChainConsts extends GenericChainConsts {
563
557
  **/
564
558
  identity: {
565
559
  /**
566
- * The amount held on deposit for a registered identity
560
+ * The amount held on deposit for a registered identity.
567
561
  **/
568
562
  basicDeposit: bigint;
569
563
 
570
564
  /**
571
- * The amount held on deposit per additional field for a registered identity.
565
+ * The amount held on deposit per encoded byte for a registered identity.
572
566
  **/
573
- fieldDeposit: bigint;
567
+ byteDeposit: bigint;
574
568
 
575
569
  /**
576
570
  * The amount held on deposit for a registered subaccount. This should account for the fact
@@ -584,18 +578,27 @@ export interface ChainConsts extends GenericChainConsts {
584
578
  **/
585
579
  maxSubAccounts: number;
586
580
 
587
- /**
588
- * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
589
- * required to access an identity, but can be pretty high.
590
- **/
591
- maxAdditionalFields: number;
592
-
593
581
  /**
594
582
  * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
595
583
  * of, e.g., updating judgements.
596
584
  **/
597
585
  maxRegistrars: number;
598
586
 
587
+ /**
588
+ * The number of blocks within which a username grant must be accepted.
589
+ **/
590
+ pendingUsernameExpiration: number;
591
+
592
+ /**
593
+ * The maximum length of a suffix.
594
+ **/
595
+ maxSuffixLength: number;
596
+
597
+ /**
598
+ * The maximum length of a username, including its suffix and any system-added delimiters.
599
+ **/
600
+ maxUsernameLength: number;
601
+
599
602
  /**
600
603
  * Generic pallet constant
601
604
  **/
@@ -782,12 +785,6 @@ export interface ChainConsts extends GenericChainConsts {
782
785
  **/
783
786
  betterSignedThreshold: Perbill;
784
787
 
785
- /**
786
- * The minimum amount of improvement to the solution score that defines a solution as
787
- * "better" in the Unsigned phase.
788
- **/
789
- betterUnsignedThreshold: Perbill;
790
-
791
788
  /**
792
789
  * The repeat threshold of the offchain worker.
793
790
  *
@@ -939,6 +936,11 @@ export interface ChainConsts extends GenericChainConsts {
939
936
  **/
940
937
  maxPointsToBalance: number;
941
938
 
939
+ /**
940
+ * The maximum number of simultaneous unbonding chunks that can exist per member.
941
+ **/
942
+ maxUnbonding: number;
943
+
942
944
  /**
943
945
  * Generic pallet constant
944
946
  **/
@@ -1175,6 +1177,40 @@ export interface ChainConsts extends GenericChainConsts {
1175
1177
  **/
1176
1178
  [name: string]: any;
1177
1179
  };
1180
+ /**
1181
+ * Pallet `StateTrieMigration`'s constants
1182
+ **/
1183
+ stateTrieMigration: {
1184
+ /**
1185
+ * Maximal number of bytes that a key can have.
1186
+ *
1187
+ * FRAME itself does not limit the key length.
1188
+ * The concrete value must therefore depend on your storage usage.
1189
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1190
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1191
+ *
1192
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1193
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1194
+ *
1195
+ * The migration will halt with a `Halted` event if this value is too small.
1196
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1197
+ * value. The default is 512 byte.
1198
+ *
1199
+ * Some key lengths for reference:
1200
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1201
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1202
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1203
+ *
1204
+ * For more info see
1205
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1206
+ **/
1207
+ maxKeyLen: number;
1208
+
1209
+ /**
1210
+ * Generic pallet constant
1211
+ **/
1212
+ [name: string]: any;
1213
+ };
1178
1214
  /**
1179
1215
  * Pallet `XcmPallet`'s constants
1180
1216
  **/
@@ -1274,4 +1310,13 @@ export interface ChainConsts extends GenericChainConsts {
1274
1310
  **/
1275
1311
  [name: string]: any;
1276
1312
  };
1313
+ /**
1314
+ * Pallet `IdentityMigrator`'s constants
1315
+ **/
1316
+ identityMigrator: {
1317
+ /**
1318
+ * Generic pallet constant
1319
+ **/
1320
+ [name: string]: any;
1321
+ };
1277
1322
  }