@dedot/chaintypes 0.232.0 → 0.234.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 (41) hide show
  1. package/hydration/consts.d.ts +119 -47
  2. package/hydration/errors.d.ts +91 -130
  3. package/hydration/events.d.ts +340 -432
  4. package/hydration/index.d.ts +2 -3
  5. package/hydration/json-rpc.d.ts +10 -17
  6. package/hydration/query.d.ts +157 -277
  7. package/hydration/runtime.d.ts +21 -123
  8. package/hydration/tx.d.ts +502 -315
  9. package/hydration/types.d.ts +1366 -1284
  10. package/package.json +2 -2
  11. package/paseo/consts.d.ts +87 -18
  12. package/paseo/errors.d.ts +187 -30
  13. package/paseo/events.d.ts +676 -80
  14. package/paseo/index.d.ts +1 -1
  15. package/paseo/query.d.ts +465 -71
  16. package/paseo/runtime.d.ts +85 -39
  17. package/paseo/tx.d.ts +1012 -165
  18. package/paseo/types.d.ts +8081 -6364
  19. package/paseo/view-functions.d.ts +75 -1
  20. package/paseo-asset-hub/consts.d.ts +0 -34
  21. package/paseo-asset-hub/errors.d.ts +0 -28
  22. package/paseo-asset-hub/events.d.ts +20 -205
  23. package/paseo-asset-hub/index.d.ts +3 -3
  24. package/paseo-asset-hub/query.d.ts +23 -66
  25. package/paseo-asset-hub/runtime.d.ts +15 -12
  26. package/paseo-asset-hub/tx.d.ts +127 -327
  27. package/paseo-asset-hub/types.d.ts +192 -513
  28. package/paseo-asset-hub/view-functions.d.ts +7 -7
  29. package/paseo-hydration/consts.d.ts +5 -0
  30. package/paseo-hydration/errors.d.ts +1 -1
  31. package/paseo-hydration/index.d.ts +1 -1
  32. package/paseo-hydration/json-rpc.d.ts +0 -10
  33. package/paseo-hydration/tx.d.ts +2 -1
  34. package/paseo-hydration/types.d.ts +5 -3
  35. package/paseo-people/consts.d.ts +75 -0
  36. package/paseo-people/errors.d.ts +165 -0
  37. package/paseo-people/events.d.ts +285 -2
  38. package/paseo-people/index.d.ts +5 -4
  39. package/paseo-people/query.d.ts +125 -0
  40. package/paseo-people/tx.d.ts +1286 -2
  41. package/paseo-people/types.d.ts +1776 -183
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.232.0",
3
+ "version": "0.234.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "20a73cc288be66dbe682f111c40797ce2c9c289b",
28
+ "gitHead": "bfb8d791ba0072d4a4bc5c3f97e8ab995cb04b6e",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
package/paseo/consts.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts } from 'dedot/types';
4
- import type { RuntimeVersion, Permill, Bytes, Perbill, FixedU128 } from 'dedot/codecs';
4
+ import type { RuntimeVersion, Permill, AccountId32, Bytes, Perbill, FixedU128 } from 'dedot/codecs';
5
5
  import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
8
8
  SpWeightsRuntimeDbWeight,
9
9
  SpWeightsWeightV2Weight,
10
10
  FrameSupportPalletId,
11
- PalletReferendaTrackInfo,
12
- StagingXcmV4Junctions,
11
+ PalletReferendaTrackDetails,
12
+ StagingXcmV5Junctions,
13
13
  } from './types.js';
14
14
 
15
15
  export interface ChainConsts extends GenericChainConsts {
@@ -301,6 +301,11 @@ export interface ChainConsts extends GenericChainConsts {
301
301
  **/
302
302
  maxExposurePageSize: number;
303
303
 
304
+ /**
305
+ * The absolute maximum of winner validators this pallet should return.
306
+ **/
307
+ maxValidatorSet: number;
308
+
304
309
  /**
305
310
  * The maximum number of `unlocking` chunks a [`StakingLedger`] can
306
311
  * have. Effectively determines how many unique eras a staker may be
@@ -342,6 +347,11 @@ export interface ChainConsts extends GenericChainConsts {
342
347
  * Pallet `Session`'s constants
343
348
  **/
344
349
  session: {
350
+ /**
351
+ * The amount to be held when setting keys.
352
+ **/
353
+ keyDeposit: bigint;
354
+
345
355
  /**
346
356
  * Generic pallet constant
347
357
  **/
@@ -405,6 +415,9 @@ export interface ChainConsts extends GenericChainConsts {
405
415
  palletId: FrameSupportPalletId;
406
416
 
407
417
  /**
418
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
419
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
420
+ *
408
421
  * The maximum number of approvals that can wait in the spending queue.
409
422
  *
410
423
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -416,6 +429,11 @@ export interface ChainConsts extends GenericChainConsts {
416
429
  **/
417
430
  payoutPeriod: number;
418
431
 
432
+ /**
433
+ * Gets this pallet's derived pot account.
434
+ **/
435
+ potAccount: AccountId32;
436
+
419
437
  /**
420
438
  * Generic pallet constant
421
439
  **/
@@ -474,9 +492,11 @@ export interface ChainConsts extends GenericChainConsts {
474
492
  alarmInterval: number;
475
493
 
476
494
  /**
477
- * Information concerning the different referendum tracks.
495
+ * A list of tracks.
496
+ *
497
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
478
498
  **/
479
- tracks: Array<[number, PalletReferendaTrackInfo]>;
499
+ tracks: Array<[number, PalletReferendaTrackDetails]>;
480
500
 
481
501
  /**
482
502
  * Generic pallet constant
@@ -501,15 +521,6 @@ export interface ChainConsts extends GenericChainConsts {
501
521
  **/
502
522
  [name: string]: any;
503
523
  };
504
- /**
505
- * Pallet `Parameters`'s constants
506
- **/
507
- parameters: {
508
- /**
509
- * Generic pallet constant
510
- **/
511
- [name: string]: any;
512
- };
513
524
  /**
514
525
  * Pallet `Claims`'s constants
515
526
  **/
@@ -648,7 +659,12 @@ export interface ChainConsts extends GenericChainConsts {
648
659
  bountyDepositPayoutDelay: number;
649
660
 
650
661
  /**
651
- * Bounty duration in blocks.
662
+ * The time limit for a curator to act before a bounty expires.
663
+ *
664
+ * The period that starts when a curator is approved, during which they must execute or
665
+ * update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
666
+ * curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
667
+ * removing the need for `extend_bounty_expiry`.
652
668
  **/
653
669
  bountyUpdatePeriod: number;
654
670
 
@@ -775,12 +791,18 @@ export interface ChainConsts extends GenericChainConsts {
775
791
  signedDepositWeight: bigint;
776
792
 
777
793
  /**
778
- * The maximum number of winners that can be elected by this `ElectionProvider`
779
- * implementation.
794
+ * Maximum number of winners that an election supports.
780
795
  *
781
796
  * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
782
797
  **/
783
798
  maxWinners: number;
799
+
800
+ /**
801
+ * Maximum number of voters that can support a winner in an election solution.
802
+ *
803
+ * This is needed to ensure election computation is bounded.
804
+ **/
805
+ maxBackersPerWinner: number;
784
806
  minerMaxLength: number;
785
807
  minerMaxWeight: SpWeightsWeightV2Weight;
786
808
  minerMaxVotesPerVoter: number;
@@ -842,6 +864,14 @@ export interface ChainConsts extends GenericChainConsts {
842
864
  **/
843
865
  bagThresholds: Array<bigint>;
844
866
 
867
+ /**
868
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
869
+ *
870
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
871
+ * the feature.
872
+ **/
873
+ maxAutoRebagPerBlock: number;
874
+
845
875
  /**
846
876
  * Generic pallet constant
847
877
  **/
@@ -916,6 +946,15 @@ export interface ChainConsts extends GenericChainConsts {
916
946
  **/
917
947
  [name: string]: any;
918
948
  };
949
+ /**
950
+ * Pallet `StakingAhClient`'s constants
951
+ **/
952
+ stakingAhClient: {
953
+ /**
954
+ * Generic pallet constant
955
+ **/
956
+ [name: string]: any;
957
+ };
919
958
  /**
920
959
  * Pallet `ParachainsOrigin`'s constants
921
960
  **/
@@ -1169,7 +1208,7 @@ export interface ChainConsts extends GenericChainConsts {
1169
1208
  /**
1170
1209
  * The coretime chain pot location.
1171
1210
  **/
1172
- brokerPotLocation: StagingXcmV4Junctions;
1211
+ brokerPotLocation: StagingXcmV5Junctions;
1173
1212
 
1174
1213
  /**
1175
1214
  * Generic pallet constant
@@ -1214,6 +1253,27 @@ export interface ChainConsts extends GenericChainConsts {
1214
1253
  * Pallet `XcmPallet`'s constants
1215
1254
  **/
1216
1255
  xcmPallet: {
1256
+ /**
1257
+ * This chain's Universal Location.
1258
+ **/
1259
+ universalLocation: StagingXcmV5Junctions;
1260
+
1261
+ /**
1262
+ * The latest supported version that we advertise. Generally just set it to
1263
+ * `pallet_xcm::CurrentXcmVersion`.
1264
+ **/
1265
+ advertisedXcmVersion: number;
1266
+
1267
+ /**
1268
+ * The maximum number of local XCM locks that a single account may have.
1269
+ **/
1270
+ maxLockers: number;
1271
+
1272
+ /**
1273
+ * The maximum number of consumers a single remote lock may have.
1274
+ **/
1275
+ maxRemoteLockConsumers: number;
1276
+
1217
1277
  /**
1218
1278
  * Generic pallet constant
1219
1279
  **/
@@ -1337,4 +1397,13 @@ export interface ChainConsts extends GenericChainConsts {
1337
1397
  **/
1338
1398
  [name: string]: any;
1339
1399
  };
1400
+ /**
1401
+ * Pallet `RcMigrator`'s constants
1402
+ **/
1403
+ rcMigrator: {
1404
+ /**
1405
+ * Generic pallet constant
1406
+ **/
1407
+ [name: string]: any;
1408
+ };
1340
1409
  }
package/paseo/errors.d.ts CHANGED
@@ -439,6 +439,16 @@ export interface ChainErrors extends GenericChainErrors {
439
439
  **/
440
440
  VirtualStakerNotAllowed: GenericPalletError;
441
441
 
442
+ /**
443
+ * Stash could not be reaped as other pallet might depend on it.
444
+ **/
445
+ CannotReapStash: GenericPalletError;
446
+
447
+ /**
448
+ * The stake of this account is already migrated to `Fungible` holds.
449
+ **/
450
+ AlreadyMigrated: GenericPalletError;
451
+
442
452
  /**
443
453
  * Account is restricted from participation in staking. This may happen if the account is
444
454
  * staking in another way already, such as via pool.
@@ -956,12 +966,13 @@ export interface ChainErrors extends GenericChainErrors {
956
966
  SenderInSignatories: GenericPalletError;
957
967
 
958
968
  /**
959
- * Multisig operation not found when attempting to cancel.
969
+ * Multisig operation not found in storage.
960
970
  **/
961
971
  NotFound: GenericPalletError;
962
972
 
963
973
  /**
964
- * Only the account that originally created the multisig is able to cancel it.
974
+ * Only the account that originally created the multisig is able to cancel it or update
975
+ * its deposits.
965
976
  **/
966
977
  NotOwner: GenericPalletError;
967
978
 
@@ -1055,6 +1066,11 @@ export interface ChainErrors extends GenericChainErrors {
1055
1066
  **/
1056
1067
  TooManyQueued: GenericPalletError;
1057
1068
 
1069
+ /**
1070
+ * User is not the proposer of the bounty.
1071
+ **/
1072
+ NotProposer: GenericPalletError;
1073
+
1058
1074
  /**
1059
1075
  * Generic pallet error
1060
1076
  **/
@@ -1177,6 +1193,11 @@ export interface ChainErrors extends GenericChainErrors {
1177
1193
  **/
1178
1194
  List: GenericPalletError;
1179
1195
 
1196
+ /**
1197
+ * Could not update a node, because the pallet is locked.
1198
+ **/
1199
+ Locked: GenericPalletError;
1200
+
1180
1201
  /**
1181
1202
  * Generic pallet error
1182
1203
  **/
@@ -1504,6 +1525,20 @@ export interface ChainErrors extends GenericChainErrors {
1504
1525
  **/
1505
1526
  [error: string]: GenericPalletError;
1506
1527
  };
1528
+ /**
1529
+ * Pallet `StakingAhClient`'s errors
1530
+ **/
1531
+ stakingAhClient: {
1532
+ /**
1533
+ * Could not process incoming message because incoming messages are blocked.
1534
+ **/
1535
+ Blocked: GenericPalletError;
1536
+
1537
+ /**
1538
+ * Generic pallet error
1539
+ **/
1540
+ [error: string]: GenericPalletError;
1541
+ };
1507
1542
  /**
1508
1543
  * Pallet `Configuration`'s errors
1509
1544
  **/
@@ -1631,15 +1666,10 @@ export interface ChainErrors extends GenericChainErrors {
1631
1666
  InvalidParentHeader: GenericPalletError;
1632
1667
 
1633
1668
  /**
1634
- * The data given to the inherent will result in an overweight block.
1635
- **/
1636
- InherentOverweight: GenericPalletError;
1637
-
1638
- /**
1639
- * A candidate was filtered during inherent execution. This should have only been done
1669
+ * Inherent data was filtered during execution. This should have only been done
1640
1670
  * during creation.
1641
1671
  **/
1642
- CandidatesFilteredDuringExecution: GenericPalletError;
1672
+ InherentDataFilteredDuringExecution: GenericPalletError;
1643
1673
 
1644
1674
  /**
1645
1675
  * Too many candidates supplied.
@@ -1720,6 +1750,21 @@ export interface ChainErrors extends GenericChainErrors {
1720
1750
  **/
1721
1751
  InvalidCode: GenericPalletError;
1722
1752
 
1753
+ /**
1754
+ * No upgrade authorized.
1755
+ **/
1756
+ NothingAuthorized: GenericPalletError;
1757
+
1758
+ /**
1759
+ * The submitted code is not authorized.
1760
+ **/
1761
+ Unauthorized: GenericPalletError;
1762
+
1763
+ /**
1764
+ * Invalid block number.
1765
+ **/
1766
+ InvalidBlockNumber: GenericPalletError;
1767
+
1723
1768
  /**
1724
1769
  * Generic pallet error
1725
1770
  **/
@@ -1943,6 +1988,11 @@ export interface ChainErrors extends GenericChainErrors {
1943
1988
  **/
1944
1989
  SpotPriceHigherThanMaxAmount: GenericPalletError;
1945
1990
 
1991
+ /**
1992
+ * The account doesn't have enough credits to purchase on-demand coretime.
1993
+ **/
1994
+ InsufficientCredits: GenericPalletError;
1995
+
1946
1996
  /**
1947
1997
  * Generic pallet error
1948
1998
  **/
@@ -1954,32 +2004,12 @@ export interface ChainErrors extends GenericChainErrors {
1954
2004
  coretimeAssignmentProvider: {
1955
2005
  AssignmentsEmpty: GenericPalletError;
1956
2006
 
1957
- /**
1958
- * Assignments together exceeded 57600.
1959
- **/
1960
- OverScheduled: GenericPalletError;
1961
-
1962
- /**
1963
- * Assignments together less than 57600
1964
- **/
1965
- UnderScheduled: GenericPalletError;
1966
-
1967
2007
  /**
1968
2008
  * assign_core is only allowed to append new assignments at the end of already existing
1969
- * ones.
2009
+ * ones or update the last entry.
1970
2010
  **/
1971
2011
  DisallowedInsert: GenericPalletError;
1972
2012
 
1973
- /**
1974
- * Tried to insert a schedule for the same core and block number as an existing schedule
1975
- **/
1976
- DuplicateInsert: GenericPalletError;
1977
-
1978
- /**
1979
- * Tried to add an unsorted set of assignments
1980
- **/
1981
- AssignmentsNotSorted: GenericPalletError;
1982
-
1983
2013
  /**
1984
2014
  * Generic pallet error
1985
2015
  **/
@@ -2451,6 +2481,29 @@ export interface ChainErrors extends GenericChainErrors {
2451
2481
  **/
2452
2482
  LocalExecutionIncomplete: GenericPalletError;
2453
2483
 
2484
+ /**
2485
+ * Too many locations authorized to alias origin.
2486
+ *
2487
+ * @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
2488
+ **/
2489
+ TooManyAuthorizedAliases: GenericPalletError;
2490
+
2491
+ /**
2492
+ * Expiry block number is in the past.
2493
+ **/
2494
+ ExpiresInPast: GenericPalletError;
2495
+
2496
+ /**
2497
+ * The alias to remove authorization for was not found.
2498
+ **/
2499
+ AliasNotFound: GenericPalletError;
2500
+
2501
+ /**
2502
+ * Local XCM execution incomplete with the actual XCM error and the index of the
2503
+ * instruction that caused the error.
2504
+ **/
2505
+ LocalExecutionIncompleteWithError: GenericPalletError;
2506
+
2454
2507
  /**
2455
2508
  * Generic pallet error
2456
2509
  **/
@@ -2604,6 +2657,11 @@ export interface ChainErrors extends GenericChainErrors {
2604
2657
  **/
2605
2658
  ExceedsMaxMessageSize: GenericPalletError;
2606
2659
 
2660
+ /**
2661
+ * A DMP message couldn't be sent because the destination is unreachable.
2662
+ **/
2663
+ Unroutable: GenericPalletError;
2664
+
2607
2665
  /**
2608
2666
  * Could not schedule para cleanup.
2609
2667
  **/
@@ -2648,6 +2706,105 @@ export interface ChainErrors extends GenericChainErrors {
2648
2706
  **/
2649
2707
  RequireSudo: GenericPalletError;
2650
2708
 
2709
+ /**
2710
+ * Generic pallet error
2711
+ **/
2712
+ [error: string]: GenericPalletError;
2713
+ };
2714
+ /**
2715
+ * Pallet `RcMigrator`'s errors
2716
+ **/
2717
+ rcMigrator: {
2718
+ Unreachable: GenericPalletError;
2719
+ OutOfWeight: GenericPalletError;
2720
+
2721
+ /**
2722
+ * Failed to send XCM message to AH.
2723
+ **/
2724
+ XcmError: GenericPalletError;
2725
+
2726
+ /**
2727
+ * Failed to withdraw account from RC for migration to AH.
2728
+ **/
2729
+ FailedToWithdrawAccount: GenericPalletError;
2730
+
2731
+ /**
2732
+ * Indicates that the specified block number is in the past.
2733
+ **/
2734
+ PastBlockNumber: GenericPalletError;
2735
+
2736
+ /**
2737
+ * Indicates that there is not enough time for staking to lock.
2738
+ *
2739
+ * Schedule the migration at least two sessions before the current era ends.
2740
+ **/
2741
+ EraEndsTooSoon: GenericPalletError;
2742
+
2743
+ /**
2744
+ * Balance accounting overflow.
2745
+ **/
2746
+ BalanceOverflow: GenericPalletError;
2747
+
2748
+ /**
2749
+ * Balance accounting underflow.
2750
+ **/
2751
+ BalanceUnderflow: GenericPalletError;
2752
+
2753
+ /**
2754
+ * The query response is invalid.
2755
+ **/
2756
+ InvalidQueryResponse: GenericPalletError;
2757
+
2758
+ /**
2759
+ * The xcm query was not found.
2760
+ **/
2761
+ QueryNotFound: GenericPalletError;
2762
+
2763
+ /**
2764
+ * Failed to send XCM message.
2765
+ **/
2766
+ XcmSendError: GenericPalletError;
2767
+
2768
+ /**
2769
+ * The migration stage is not reachable from the current stage.
2770
+ **/
2771
+ UnreachableStage: GenericPalletError;
2772
+
2773
+ /**
2774
+ * Invalid parameter.
2775
+ **/
2776
+ InvalidParameter: GenericPalletError;
2777
+
2778
+ /**
2779
+ * The AH UMP queue priority configuration is already set.
2780
+ **/
2781
+ AhUmpQueuePriorityAlreadySet: GenericPalletError;
2782
+
2783
+ /**
2784
+ * The account is referenced by some other pallet. It might have freezes or holds.
2785
+ **/
2786
+ AccountReferenced: GenericPalletError;
2787
+
2788
+ /**
2789
+ * The XCM version is invalid.
2790
+ **/
2791
+ BadXcmVersion: GenericPalletError;
2792
+
2793
+ /**
2794
+ * The origin is invalid.
2795
+ **/
2796
+ InvalidOrigin: GenericPalletError;
2797
+
2798
+ /**
2799
+ * The stage transition is invalid.
2800
+ **/
2801
+ InvalidStageTransition: GenericPalletError;
2802
+
2803
+ /**
2804
+ * Unsigned validation failed.
2805
+ **/
2806
+ UnsignedValidationFailed: GenericPalletError;
2807
+
2651
2808
  /**
2652
2809
  * Generic pallet error
2653
2810
  **/