@dedot/chaintypes 0.159.0 → 0.161.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.
@@ -1,7 +1,7 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
- import type { RuntimeVersion, Permill, AccountId32, Bytes, Perbill, Perquintill, 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,
@@ -591,14 +591,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
591
591
  periodSpend: bigint;
592
592
 
593
593
  /**
594
- * The number of blocks on which new candidates should be voted on. Together with
594
+ * The number of [Config::BlockNumberProvider] blocks on which new candidates should be
595
+ * voted on. Together with
595
596
  * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
596
597
  **/
597
598
  votingPeriod: number;
598
599
 
599
600
  /**
600
- * The number of blocks on which new candidates can claim their membership and be the
601
- * named head.
601
+ * The number of [Config::BlockNumberProvider] blocks on which new candidates can claim
602
+ * their membership and be the named head.
602
603
  **/
603
604
  claimPeriod: number;
604
605
 
@@ -608,7 +609,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
608
609
  maxLockDuration: number;
609
610
 
610
611
  /**
611
- * The number of blocks between membership challenges.
612
+ * The number of [Config::BlockNumberProvider] blocks between membership challenges.
612
613
  **/
613
614
  challengePeriod: number;
614
615
 
@@ -973,123 +974,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
973
974
  **/
974
975
  [name: string]: any;
975
976
  };
976
- /**
977
- * Pallet `Nis`'s constants
978
- **/
979
- nis: {
980
- /**
981
- * The treasury's pallet id, used for deriving its sovereign account ID.
982
- **/
983
- palletId: FrameSupportPalletId;
984
-
985
- /**
986
- * Number of duration queues in total. This sets the maximum duration supported, which is
987
- * this value multiplied by `Period`.
988
- **/
989
- queueCount: number;
990
-
991
- /**
992
- * Maximum number of items that may be in each duration queue.
993
- *
994
- * Must be larger than zero.
995
- **/
996
- maxQueueLen: number;
997
-
998
- /**
999
- * Portion of the queue which is free from ordering and just a FIFO.
1000
- *
1001
- * Must be no greater than `MaxQueueLen`.
1002
- **/
1003
- fifoQueueLen: number;
1004
-
1005
- /**
1006
- * The base period for the duration queues. This is the common multiple across all
1007
- * supported freezing durations that can be bid upon.
1008
- **/
1009
- basePeriod: number;
1010
-
1011
- /**
1012
- * The minimum amount of funds that may be placed in a bid. Note that this
1013
- * does not actually limit the amount which may be represented in a receipt since bids may
1014
- * be split up by the system.
1015
- *
1016
- * It should be at least big enough to ensure that there is no possible storage spam attack
1017
- * or queue-filling attack.
1018
- **/
1019
- minBid: bigint;
1020
-
1021
- /**
1022
- * The minimum amount of funds which may intentionally be left remaining under a single
1023
- * receipt.
1024
- **/
1025
- minReceipt: Perquintill;
1026
-
1027
- /**
1028
- * The number of blocks between consecutive attempts to dequeue bids and create receipts.
1029
- *
1030
- * A larger value results in fewer storage hits each block, but a slower period to get to
1031
- * the target.
1032
- **/
1033
- intakePeriod: number;
1034
-
1035
- /**
1036
- * The maximum amount of bids that can consolidated into receipts in a single intake. A
1037
- * larger value here means less of the block available for transactions should there be a
1038
- * glut of bids.
1039
- **/
1040
- maxIntakeWeight: SpWeightsWeightV2Weight;
1041
-
1042
- /**
1043
- * The maximum proportion which may be thawed and the period over which it is reset.
1044
- **/
1045
- thawThrottle: [Perquintill, number];
1046
-
1047
- /**
1048
- * Generic pallet constant
1049
- **/
1050
- [name: string]: any;
1051
- };
1052
- /**
1053
- * Pallet `NisCounterpartBalances`'s constants
1054
- **/
1055
- nisCounterpartBalances: {
1056
- /**
1057
- * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
1058
- *
1059
- * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
1060
- * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
1061
- * In case you have multiple sources of provider references, you may also get unexpected
1062
- * behaviour if you set this to zero.
1063
- *
1064
- * Bottom line: Do yourself a favour and make it at least one!
1065
- **/
1066
- existentialDeposit: bigint;
1067
-
1068
- /**
1069
- * The maximum number of locks that should exist on an account.
1070
- * Not strictly enforced, but used for weight estimation.
1071
- *
1072
- * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
1073
- **/
1074
- maxLocks: number;
1075
-
1076
- /**
1077
- * The maximum number of named reserves that can exist on an account.
1078
- *
1079
- * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
1080
- **/
1081
- maxReserves: number;
1082
-
1083
- /**
1084
- * The maximum number of individual freeze locks that can exist on an account at any time.
1085
- **/
1086
- maxFreezes: number;
1087
-
1088
- /**
1089
- * Generic pallet constant
1090
- **/
1091
- [name: string]: any;
1092
- };
1093
977
  /**
1094
978
  * Pallet `VoterList`'s constants
1095
979
  **/
@@ -1223,6 +1107,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1223
1107
  **/
1224
1108
  [name: string]: any;
1225
1109
  };
1110
+ /**
1111
+ * Pallet `StakingAhClient`'s constants
1112
+ **/
1113
+ stakingAhClient: {
1114
+ /**
1115
+ * Generic pallet constant
1116
+ **/
1117
+ [name: string]: any;
1118
+ };
1226
1119
  /**
1227
1120
  * Pallet `ParachainsOrigin`'s constants
1228
1121
  **/
@@ -1613,4 +1506,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1613
1506
  **/
1614
1507
  [name: string]: any;
1615
1508
  };
1509
+ /**
1510
+ * Pallet `RcMigrator`'s constants
1511
+ **/
1512
+ rcMigrator: {
1513
+ /**
1514
+ * Generic pallet constant
1515
+ **/
1516
+ [name: string]: any;
1517
+ };
1616
1518
  }
@@ -1590,160 +1590,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1590
1590
  **/
1591
1591
  [error: string]: GenericPalletError<Rv>;
1592
1592
  };
1593
- /**
1594
- * Pallet `Nis`'s errors
1595
- **/
1596
- nis: {
1597
- /**
1598
- * The duration of the bid is less than one.
1599
- **/
1600
- DurationTooSmall: GenericPalletError<Rv>;
1601
-
1602
- /**
1603
- * The duration is the bid is greater than the number of queues.
1604
- **/
1605
- DurationTooBig: GenericPalletError<Rv>;
1606
-
1607
- /**
1608
- * The amount of the bid is less than the minimum allowed.
1609
- **/
1610
- AmountTooSmall: GenericPalletError<Rv>;
1611
-
1612
- /**
1613
- * The queue for the bid's duration is full and the amount bid is too low to get in
1614
- * through replacing an existing bid.
1615
- **/
1616
- BidTooLow: GenericPalletError<Rv>;
1617
-
1618
- /**
1619
- * Receipt index is unknown.
1620
- **/
1621
- UnknownReceipt: GenericPalletError<Rv>;
1622
-
1623
- /**
1624
- * Not the owner of the receipt.
1625
- **/
1626
- NotOwner: GenericPalletError<Rv>;
1627
-
1628
- /**
1629
- * Bond not yet at expiry date.
1630
- **/
1631
- NotExpired: GenericPalletError<Rv>;
1632
-
1633
- /**
1634
- * The given bid for retraction is not found.
1635
- **/
1636
- UnknownBid: GenericPalletError<Rv>;
1637
-
1638
- /**
1639
- * The portion supplied is beyond the value of the receipt.
1640
- **/
1641
- PortionTooBig: GenericPalletError<Rv>;
1642
-
1643
- /**
1644
- * Not enough funds are held to pay out.
1645
- **/
1646
- Unfunded: GenericPalletError<Rv>;
1647
-
1648
- /**
1649
- * There are enough funds for what is required.
1650
- **/
1651
- AlreadyFunded: GenericPalletError<Rv>;
1652
-
1653
- /**
1654
- * The thaw throttle has been reached for this period.
1655
- **/
1656
- Throttled: GenericPalletError<Rv>;
1657
-
1658
- /**
1659
- * The operation would result in a receipt worth an insignificant value.
1660
- **/
1661
- MakesDust: GenericPalletError<Rv>;
1662
-
1663
- /**
1664
- * The receipt is already communal.
1665
- **/
1666
- AlreadyCommunal: GenericPalletError<Rv>;
1667
-
1668
- /**
1669
- * The receipt is already private.
1670
- **/
1671
- AlreadyPrivate: GenericPalletError<Rv>;
1672
-
1673
- /**
1674
- * Generic pallet error
1675
- **/
1676
- [error: string]: GenericPalletError<Rv>;
1677
- };
1678
- /**
1679
- * Pallet `NisCounterpartBalances`'s errors
1680
- **/
1681
- nisCounterpartBalances: {
1682
- /**
1683
- * Vesting balance too high to send value.
1684
- **/
1685
- VestingBalance: GenericPalletError<Rv>;
1686
-
1687
- /**
1688
- * Account liquidity restrictions prevent withdrawal.
1689
- **/
1690
- LiquidityRestrictions: GenericPalletError<Rv>;
1691
-
1692
- /**
1693
- * Balance too low to send value.
1694
- **/
1695
- InsufficientBalance: GenericPalletError<Rv>;
1696
-
1697
- /**
1698
- * Value too low to create account due to existential deposit.
1699
- **/
1700
- ExistentialDeposit: GenericPalletError<Rv>;
1701
-
1702
- /**
1703
- * Transfer/payment would kill account.
1704
- **/
1705
- Expendability: GenericPalletError<Rv>;
1706
-
1707
- /**
1708
- * A vesting schedule already exists for this account.
1709
- **/
1710
- ExistingVestingSchedule: GenericPalletError<Rv>;
1711
-
1712
- /**
1713
- * Beneficiary account must pre-exist.
1714
- **/
1715
- DeadAccount: GenericPalletError<Rv>;
1716
-
1717
- /**
1718
- * Number of named reserves exceed `MaxReserves`.
1719
- **/
1720
- TooManyReserves: GenericPalletError<Rv>;
1721
-
1722
- /**
1723
- * Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
1724
- **/
1725
- TooManyHolds: GenericPalletError<Rv>;
1726
-
1727
- /**
1728
- * Number of freezes exceed `MaxFreezes`.
1729
- **/
1730
- TooManyFreezes: GenericPalletError<Rv>;
1731
-
1732
- /**
1733
- * The issuance cannot be modified since it is already deactivated.
1734
- **/
1735
- IssuanceDeactivated: GenericPalletError<Rv>;
1736
-
1737
- /**
1738
- * The delta cannot be zero.
1739
- **/
1740
- DeltaZero: GenericPalletError<Rv>;
1741
-
1742
- /**
1743
- * Generic pallet error
1744
- **/
1745
- [error: string]: GenericPalletError<Rv>;
1746
- };
1747
1593
  /**
1748
1594
  * Pallet `VoterList`'s errors
1749
1595
  **/
@@ -2085,6 +1931,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2085
1931
  **/
2086
1932
  [error: string]: GenericPalletError<Rv>;
2087
1933
  };
1934
+ /**
1935
+ * Pallet `StakingAhClient`'s errors
1936
+ **/
1937
+ stakingAhClient: {
1938
+ /**
1939
+ * Could not process incoming message because incoming messages are blocked.
1940
+ **/
1941
+ Blocked: GenericPalletError<Rv>;
1942
+
1943
+ /**
1944
+ * Generic pallet error
1945
+ **/
1946
+ [error: string]: GenericPalletError<Rv>;
1947
+ };
2088
1948
  /**
2089
1949
  * Pallet `Configuration`'s errors
2090
1950
  **/
@@ -3133,6 +2993,100 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
3133
2993
  **/
3134
2994
  InvalidConfiguration: GenericPalletError<Rv>;
3135
2995
 
2996
+ /**
2997
+ * Generic pallet error
2998
+ **/
2999
+ [error: string]: GenericPalletError<Rv>;
3000
+ };
3001
+ /**
3002
+ * Pallet `RcMigrator`'s errors
3003
+ **/
3004
+ rcMigrator: {
3005
+ Unreachable: GenericPalletError<Rv>;
3006
+ OutOfWeight: GenericPalletError<Rv>;
3007
+
3008
+ /**
3009
+ * Failed to send XCM message to AH.
3010
+ **/
3011
+ XcmError: GenericPalletError<Rv>;
3012
+
3013
+ /**
3014
+ * Failed to withdraw account from RC for migration to AH.
3015
+ **/
3016
+ FailedToWithdrawAccount: GenericPalletError<Rv>;
3017
+
3018
+ /**
3019
+ * Indicates that the specified block number is in the past.
3020
+ **/
3021
+ PastBlockNumber: GenericPalletError<Rv>;
3022
+
3023
+ /**
3024
+ * Indicates that there is not enough time for staking to lock.
3025
+ *
3026
+ * Schedule the migration at least two sessions before the current era ends.
3027
+ **/
3028
+ EraEndsTooSoon: GenericPalletError<Rv>;
3029
+
3030
+ /**
3031
+ * Balance accounting overflow.
3032
+ **/
3033
+ BalanceOverflow: GenericPalletError<Rv>;
3034
+
3035
+ /**
3036
+ * Balance accounting underflow.
3037
+ **/
3038
+ BalanceUnderflow: GenericPalletError<Rv>;
3039
+
3040
+ /**
3041
+ * The query response is invalid.
3042
+ **/
3043
+ InvalidQueryResponse: GenericPalletError<Rv>;
3044
+
3045
+ /**
3046
+ * The xcm query was not found.
3047
+ **/
3048
+ QueryNotFound: GenericPalletError<Rv>;
3049
+
3050
+ /**
3051
+ * Failed to send XCM message.
3052
+ **/
3053
+ XcmSendError: GenericPalletError<Rv>;
3054
+
3055
+ /**
3056
+ * The migration stage is not reachable from the current stage.
3057
+ **/
3058
+ UnreachableStage: GenericPalletError<Rv>;
3059
+
3060
+ /**
3061
+ * Invalid parameter.
3062
+ **/
3063
+ InvalidParameter: GenericPalletError<Rv>;
3064
+
3065
+ /**
3066
+ * The AH UMP queue priority configuration is already set.
3067
+ **/
3068
+ AhUmpQueuePriorityAlreadySet: GenericPalletError<Rv>;
3069
+
3070
+ /**
3071
+ * The account is referenced by some other pallet. It might have freezes or holds.
3072
+ **/
3073
+ AccountReferenced: GenericPalletError<Rv>;
3074
+
3075
+ /**
3076
+ * The XCM version is invalid.
3077
+ **/
3078
+ BadXcmVersion: GenericPalletError<Rv>;
3079
+
3080
+ /**
3081
+ * The origin is invalid.
3082
+ **/
3083
+ InvalidOrigin: GenericPalletError<Rv>;
3084
+
3085
+ /**
3086
+ * The stage transition is invalid.
3087
+ **/
3088
+ InvalidStageTransition: GenericPalletError<Rv>;
3089
+
3136
3090
  /**
3137
3091
  * Generic pallet error
3138
3092
  **/