@dedot/chaintypes 0.143.0 → 0.144.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.143.0",
3
+ "version": "0.144.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": "eff90f95348c5c253c52d1885819d49b46dffba9",
28
+ "gitHead": "4e50b3650a62e81e08a9ba918b56003e1985be43",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
package/paseo/consts.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } 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,
11
+ PalletReferendaTrackDetails,
12
12
  StagingXcmV5Junctions,
13
13
  } from './types.js';
14
14
 
@@ -301,6 +301,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
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<Rv extends RpcVersion> extends GenericChainConsts<R
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
  **/
@@ -419,6 +429,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
419
429
  **/
420
430
  payoutPeriod: number;
421
431
 
432
+ /**
433
+ * Gets this pallet's derived pot account.
434
+ **/
435
+ potAccount: AccountId32;
436
+
422
437
  /**
423
438
  * Generic pallet constant
424
439
  **/
@@ -477,9 +492,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
477
492
  alarmInterval: number;
478
493
 
479
494
  /**
480
- * 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.
481
498
  **/
482
- tracks: Array<[number, PalletReferendaTrackInfo]>;
499
+ tracks: Array<[number, PalletReferendaTrackDetails]>;
483
500
 
484
501
  /**
485
502
  * Generic pallet constant
@@ -642,7 +659,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
642
659
  bountyDepositPayoutDelay: number;
643
660
 
644
661
  /**
645
- * 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`.
646
668
  **/
647
669
  bountyUpdatePeriod: number;
648
670
 
@@ -769,12 +791,18 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
769
791
  signedDepositWeight: bigint;
770
792
 
771
793
  /**
772
- * The maximum number of winners that can be elected by this `ElectionProvider`
773
- * implementation.
794
+ * Maximum number of winners that an election supports.
774
795
  *
775
796
  * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
776
797
  **/
777
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;
778
806
  minerMaxLength: number;
779
807
  minerMaxWeight: SpWeightsWeightV2Weight;
780
808
  minerMaxVotesPerVoter: number;
@@ -836,6 +864,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
836
864
  **/
837
865
  bagThresholds: Array<bigint>;
838
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
+
839
875
  /**
840
876
  * Generic pallet constant
841
877
  **/
@@ -910,6 +946,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
910
946
  **/
911
947
  [name: string]: any;
912
948
  };
949
+ /**
950
+ * Pallet `StakingAhClient`'s constants
951
+ **/
952
+ stakingAhClient: {
953
+ /**
954
+ * Generic pallet constant
955
+ **/
956
+ [name: string]: any;
957
+ };
913
958
  /**
914
959
  * Pallet `ParachainsOrigin`'s constants
915
960
  **/
@@ -1208,6 +1253,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1208
1253
  * Pallet `XcmPallet`'s constants
1209
1254
  **/
1210
1255
  xcmPallet: {
1256
+ /**
1257
+ * The latest supported version that we advertise. Generally just set it to
1258
+ * `pallet_xcm::CurrentXcmVersion`.
1259
+ **/
1260
+ advertisedXcmVersion: number;
1261
+
1211
1262
  /**
1212
1263
  * Generic pallet constant
1213
1264
  **/
@@ -1331,4 +1382,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1331
1382
  **/
1332
1383
  [name: string]: any;
1333
1384
  };
1385
+ /**
1386
+ * Pallet `RcMigrator`'s constants
1387
+ **/
1388
+ rcMigrator: {
1389
+ /**
1390
+ * Generic pallet constant
1391
+ **/
1392
+ [name: string]: any;
1393
+ };
1334
1394
  }
package/paseo/errors.d.ts CHANGED
@@ -439,6 +439,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
439
439
  **/
440
440
  VirtualStakerNotAllowed: GenericPalletError<Rv>;
441
441
 
442
+ /**
443
+ * Stash could not be reaped as other pallet might depend on it.
444
+ **/
445
+ CannotReapStash: GenericPalletError<Rv>;
446
+
447
+ /**
448
+ * The stake of this account is already migrated to `Fungible` holds.
449
+ **/
450
+ AlreadyMigrated: GenericPalletError<Rv>;
451
+
452
+ /**
453
+ * Account is restricted from participation in staking. This may happen if the account is
454
+ * staking in another way already, such as via pool.
455
+ **/
456
+ Restricted: GenericPalletError<Rv>;
457
+
442
458
  /**
443
459
  * Generic pallet error
444
460
  **/
@@ -950,12 +966,13 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
950
966
  SenderInSignatories: GenericPalletError<Rv>;
951
967
 
952
968
  /**
953
- * Multisig operation not found when attempting to cancel.
969
+ * Multisig operation not found in storage.
954
970
  **/
955
971
  NotFound: GenericPalletError<Rv>;
956
972
 
957
973
  /**
958
- * 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.
959
976
  **/
960
977
  NotOwner: GenericPalletError<Rv>;
961
978
 
@@ -1171,6 +1188,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1171
1188
  **/
1172
1189
  List: GenericPalletError<Rv>;
1173
1190
 
1191
+ /**
1192
+ * Could not update a node, because the pallet is locked.
1193
+ **/
1194
+ Locked: GenericPalletError<Rv>;
1195
+
1174
1196
  /**
1175
1197
  * Generic pallet error
1176
1198
  **/
@@ -1353,6 +1375,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1353
1375
  **/
1354
1376
  NothingToSlash: GenericPalletError<Rv>;
1355
1377
 
1378
+ /**
1379
+ * The slash amount is too low to be applied.
1380
+ **/
1381
+ SlashTooLow: GenericPalletError<Rv>;
1382
+
1356
1383
  /**
1357
1384
  * The pool or member delegation has already migrated to delegate stake.
1358
1385
  **/
@@ -1364,11 +1391,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1364
1391
  NotMigrated: GenericPalletError<Rv>;
1365
1392
 
1366
1393
  /**
1367
- * This call is not allowed in the current state of the pallet or an unspecific error
1368
- * occurred.
1394
+ * This call is not allowed in the current state of the pallet.
1369
1395
  **/
1370
1396
  NotSupported: GenericPalletError<Rv>;
1371
1397
 
1398
+ /**
1399
+ * Account is restricted from participation in pools. This may happen if the account is
1400
+ * staking in another way already.
1401
+ **/
1402
+ Restricted: GenericPalletError<Rv>;
1403
+
1372
1404
  /**
1373
1405
  * Generic pallet error
1374
1406
  **/
@@ -1488,6 +1520,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1488
1520
  **/
1489
1521
  [error: string]: GenericPalletError<Rv>;
1490
1522
  };
1523
+ /**
1524
+ * Pallet `StakingAhClient`'s errors
1525
+ **/
1526
+ stakingAhClient: {
1527
+ /**
1528
+ * Could not process incoming message because incoming messages are blocked.
1529
+ **/
1530
+ Blocked: GenericPalletError<Rv>;
1531
+
1532
+ /**
1533
+ * Generic pallet error
1534
+ **/
1535
+ [error: string]: GenericPalletError<Rv>;
1536
+ };
1491
1537
  /**
1492
1538
  * Pallet `Configuration`'s errors
1493
1539
  **/
@@ -1922,6 +1968,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1922
1968
  **/
1923
1969
  SpotPriceHigherThanMaxAmount: GenericPalletError<Rv>;
1924
1970
 
1971
+ /**
1972
+ * The account doesn't have enough credits to purchase on-demand coretime.
1973
+ **/
1974
+ InsufficientCredits: GenericPalletError<Rv>;
1975
+
1925
1976
  /**
1926
1977
  * Generic pallet error
1927
1978
  **/
@@ -2410,6 +2461,21 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2410
2461
  **/
2411
2462
  LocalExecutionIncomplete: GenericPalletError<Rv>;
2412
2463
 
2464
+ /**
2465
+ * Too many locations authorized to alias origin.
2466
+ **/
2467
+ TooManyAuthorizedAliases: GenericPalletError<Rv>;
2468
+
2469
+ /**
2470
+ * Expiry block number is in the past.
2471
+ **/
2472
+ ExpiresInPast: GenericPalletError<Rv>;
2473
+
2474
+ /**
2475
+ * The alias to remove authorization for was not found.
2476
+ **/
2477
+ AliasNotFound: GenericPalletError<Rv>;
2478
+
2413
2479
  /**
2414
2480
  * Generic pallet error
2415
2481
  **/
@@ -2563,6 +2629,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2563
2629
  **/
2564
2630
  ExceedsMaxMessageSize: GenericPalletError<Rv>;
2565
2631
 
2632
+ /**
2633
+ * A DMP message couldn't be sent because the destination is unreachable.
2634
+ **/
2635
+ Unroutable: GenericPalletError<Rv>;
2636
+
2566
2637
  /**
2567
2638
  * Could not schedule para cleanup.
2568
2639
  **/
@@ -2607,6 +2678,95 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2607
2678
  **/
2608
2679
  RequireSudo: GenericPalletError<Rv>;
2609
2680
 
2681
+ /**
2682
+ * Generic pallet error
2683
+ **/
2684
+ [error: string]: GenericPalletError<Rv>;
2685
+ };
2686
+ /**
2687
+ * Pallet `RcMigrator`'s errors
2688
+ **/
2689
+ rcMigrator: {
2690
+ Unreachable: GenericPalletError<Rv>;
2691
+ OutOfWeight: GenericPalletError<Rv>;
2692
+
2693
+ /**
2694
+ * Failed to send XCM message to AH.
2695
+ **/
2696
+ XcmError: GenericPalletError<Rv>;
2697
+
2698
+ /**
2699
+ * Failed to withdraw account from RC for migration to AH.
2700
+ **/
2701
+ FailedToWithdrawAccount: GenericPalletError<Rv>;
2702
+
2703
+ /**
2704
+ * Indicates that the specified block number is in the past.
2705
+ **/
2706
+ PastBlockNumber: GenericPalletError<Rv>;
2707
+
2708
+ /**
2709
+ * Indicates that there is not enough time for staking to lock.
2710
+ *
2711
+ * Schedule the migration at least two sessions before the current era ends.
2712
+ **/
2713
+ EraEndsTooSoon: GenericPalletError<Rv>;
2714
+
2715
+ /**
2716
+ * Balance accounting overflow.
2717
+ **/
2718
+ BalanceOverflow: GenericPalletError<Rv>;
2719
+
2720
+ /**
2721
+ * Balance accounting underflow.
2722
+ **/
2723
+ BalanceUnderflow: GenericPalletError<Rv>;
2724
+
2725
+ /**
2726
+ * The query response is invalid.
2727
+ **/
2728
+ InvalidQueryResponse: GenericPalletError<Rv>;
2729
+
2730
+ /**
2731
+ * The xcm query was not found.
2732
+ **/
2733
+ QueryNotFound: GenericPalletError<Rv>;
2734
+
2735
+ /**
2736
+ * Failed to send XCM message.
2737
+ **/
2738
+ XcmSendError: GenericPalletError<Rv>;
2739
+
2740
+ /**
2741
+ * The migration stage is not reachable from the current stage.
2742
+ **/
2743
+ UnreachableStage: GenericPalletError<Rv>;
2744
+
2745
+ /**
2746
+ * Invalid parameter.
2747
+ **/
2748
+ InvalidParameter: GenericPalletError<Rv>;
2749
+
2750
+ /**
2751
+ * The AH UMP queue priority configuration is already set.
2752
+ **/
2753
+ AhUmpQueuePriorityAlreadySet: GenericPalletError<Rv>;
2754
+
2755
+ /**
2756
+ * The account is referenced by some other pallet. It might have freezes or holds.
2757
+ **/
2758
+ AccountReferenced: GenericPalletError<Rv>;
2759
+
2760
+ /**
2761
+ * The XCM version is invalid.
2762
+ **/
2763
+ BadXcmVersion: GenericPalletError<Rv>;
2764
+
2765
+ /**
2766
+ * The origin is invalid.
2767
+ **/
2768
+ InvalidOrigin: GenericPalletError<Rv>;
2769
+
2610
2770
  /**
2611
2771
  * Generic pallet error
2612
2772
  **/