@dedot/chaintypes 0.0.1-alpha.49 → 0.0.1-alpha.50

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.0.1-alpha.49",
3
+ "version": "0.0.1-alpha.50",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -20,7 +20,7 @@
20
20
  "directory": "dist"
21
21
  },
22
22
  "license": "Apache-2.0",
23
- "gitHead": "b81972b1ff0424b83a61df3661d1b7fcd1229885",
23
+ "gitHead": "f89437b1861687a30deb67ad44ead6413fa0594f",
24
24
  "module": "./index.js",
25
25
  "types": "./index.d.ts"
26
26
  }
@@ -142,11 +142,15 @@ export interface ChainConsts extends GenericChainConsts {
142
142
  /**
143
143
  * The maximum number of locks that should exist on an account.
144
144
  * Not strictly enforced, but used for weight estimation.
145
+ *
146
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
145
147
  **/
146
148
  maxLocks: number;
147
149
 
148
150
  /**
149
151
  * The maximum number of named reserves that can exist on an account.
152
+ *
153
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
150
154
  **/
151
155
  maxReserves: number;
152
156
 
@@ -498,7 +502,7 @@ export interface ChainConsts extends GenericChainConsts {
498
502
  maxSubAccounts: number;
499
503
 
500
504
  /**
501
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
505
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
502
506
  * of, e.g., updating judgements.
503
507
  **/
504
508
  maxRegistrars: number;
@@ -938,11 +942,15 @@ export interface ChainConsts extends GenericChainConsts {
938
942
  /**
939
943
  * The maximum number of locks that should exist on an account.
940
944
  * Not strictly enforced, but used for weight estimation.
945
+ *
946
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
941
947
  **/
942
948
  maxLocks: number;
943
949
 
944
950
  /**
945
951
  * The maximum number of named reserves that can exist on an account.
952
+ *
953
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
946
954
  **/
947
955
  maxReserves: number;
948
956
 
@@ -1097,13 +1105,23 @@ export interface ChainConsts extends GenericChainConsts {
1097
1105
 
1098
1106
  /**
1099
1107
  * The amount of weight (if any) which should be provided to the message queue for
1100
- * servicing enqueued items.
1108
+ * servicing enqueued items `on_initialize`.
1101
1109
  *
1102
1110
  * This may be legitimately `None` in the case that you will call
1103
- * `ServiceQueues::service_queues` manually.
1111
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
1112
+ * it run in `on_idle`.
1104
1113
  **/
1105
1114
  serviceWeight: SpWeightsWeightV2Weight | undefined;
1106
1115
 
1116
+ /**
1117
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
1118
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
1119
+ * Useful for parachains to process messages at the same block they are received.
1120
+ *
1121
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
1122
+ **/
1123
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
1124
+
1107
1125
  /**
1108
1126
  * Generic pallet constant
1109
1127
  **/
@@ -482,6 +482,11 @@ export interface ChainErrors extends GenericChainErrors {
482
482
  **/
483
483
  PreimageNotExist: GenericPalletError;
484
484
 
485
+ /**
486
+ * The preimage is stored with a different length than the one provided.
487
+ **/
488
+ PreimageStoredWithDifferentLength: GenericPalletError;
489
+
485
490
  /**
486
491
  * Generic pallet error
487
492
  **/
@@ -615,6 +620,11 @@ export interface ChainErrors extends GenericChainErrors {
615
620
  **/
616
621
  PreimageNotExist: GenericPalletError;
617
622
 
623
+ /**
624
+ * The preimage is stored with a different length than the one provided.
625
+ **/
626
+ PreimageStoredWithDifferentLength: GenericPalletError;
627
+
618
628
  /**
619
629
  * Generic pallet error
620
630
  **/
@@ -1530,7 +1540,7 @@ export interface ChainErrors extends GenericChainErrors {
1530
1540
  Throttled: GenericPalletError;
1531
1541
 
1532
1542
  /**
1533
- * The operation would result in a receipt worth an insignficant value.
1543
+ * The operation would result in a receipt worth an insignificant value.
1534
1544
  **/
1535
1545
  MakesDust: GenericPalletError;
1536
1546
 
@@ -1636,66 +1646,16 @@ export interface ChainErrors extends GenericChainErrors {
1636
1646
  * Pallet `ParaInclusion`'s errors
1637
1647
  **/
1638
1648
  paraInclusion: {
1639
- /**
1640
- * Validator indices are out of order or contains duplicates.
1641
- **/
1642
- UnsortedOrDuplicateValidatorIndices: GenericPalletError;
1643
-
1644
- /**
1645
- * Dispute statement sets are out of order or contain duplicates.
1646
- **/
1647
- UnsortedOrDuplicateDisputeStatementSet: GenericPalletError;
1648
-
1649
- /**
1650
- * Backed candidates are out of order (core index) or contain duplicates.
1651
- **/
1652
- UnsortedOrDuplicateBackedCandidates: GenericPalletError;
1653
-
1654
- /**
1655
- * A different relay parent was provided compared to the on-chain stored one.
1656
- **/
1657
- UnexpectedRelayParent: GenericPalletError;
1658
-
1659
- /**
1660
- * Availability bitfield has unexpected size.
1661
- **/
1662
- WrongBitfieldSize: GenericPalletError;
1663
-
1664
- /**
1665
- * Bitfield consists of zeros only.
1666
- **/
1667
- BitfieldAllZeros: GenericPalletError;
1668
-
1669
- /**
1670
- * Multiple bitfields submitted by same validator or validators out of order by index.
1671
- **/
1672
- BitfieldDuplicateOrUnordered: GenericPalletError;
1673
-
1674
1649
  /**
1675
1650
  * Validator index out of bounds.
1676
1651
  **/
1677
1652
  ValidatorIndexOutOfBounds: GenericPalletError;
1678
1653
 
1679
- /**
1680
- * Invalid signature
1681
- **/
1682
- InvalidBitfieldSignature: GenericPalletError;
1683
-
1684
1654
  /**
1685
1655
  * Candidate submitted but para not scheduled.
1686
1656
  **/
1687
1657
  UnscheduledCandidate: GenericPalletError;
1688
1658
 
1689
- /**
1690
- * Candidate scheduled despite pending candidate already existing for the para.
1691
- **/
1692
- CandidateScheduledBeforeParaFree: GenericPalletError;
1693
-
1694
- /**
1695
- * Scheduled cores out of order.
1696
- **/
1697
- ScheduledOutOfOrder: GenericPalletError;
1698
-
1699
1659
  /**
1700
1660
  * Head data exceeds the configured maximum.
1701
1661
  **/
@@ -1779,13 +1739,6 @@ export interface ChainErrors extends GenericChainErrors {
1779
1739
  **/
1780
1740
  ParaHeadMismatch: GenericPalletError;
1781
1741
 
1782
- /**
1783
- * A bitfield that references a freed core,
1784
- * either intentionally or as part of a concluded
1785
- * invalid dispute.
1786
- **/
1787
- BitfieldReferencesFreedCore: GenericPalletError;
1788
-
1789
1742
  /**
1790
1743
  * Generic pallet error
1791
1744
  **/
@@ -1806,35 +1759,16 @@ export interface ChainErrors extends GenericChainErrors {
1806
1759
  **/
1807
1760
  InvalidParentHeader: GenericPalletError;
1808
1761
 
1809
- /**
1810
- * Disputed candidate that was concluded invalid.
1811
- **/
1812
- CandidateConcludedInvalid: GenericPalletError;
1813
-
1814
1762
  /**
1815
1763
  * The data given to the inherent will result in an overweight block.
1816
1764
  **/
1817
1765
  InherentOverweight: GenericPalletError;
1818
1766
 
1819
1767
  /**
1820
- * The ordering of dispute statements was invalid.
1821
- **/
1822
- DisputeStatementsUnsortedOrDuplicates: GenericPalletError;
1823
-
1824
- /**
1825
- * A dispute statement was invalid.
1826
- **/
1827
- DisputeInvalid: GenericPalletError;
1828
-
1829
- /**
1830
- * A candidate was backed by a disabled validator
1831
- **/
1832
- BackedByDisabled: GenericPalletError;
1833
-
1834
- /**
1835
- * A candidate was backed even though the paraid was not scheduled.
1768
+ * A candidate was filtered during inherent execution. This should have only been done
1769
+ * during creation.
1836
1770
  **/
1837
- BackedOnUnscheduledCore: GenericPalletError;
1771
+ CandidatesFilteredDuringExecution: GenericPalletError;
1838
1772
 
1839
1773
  /**
1840
1774
  * Too many candidates supplied.
@@ -2187,12 +2121,6 @@ export interface ChainErrors extends GenericChainErrors {
2187
2121
  * Pallet `OnDemandAssignmentProvider`'s errors
2188
2122
  **/
2189
2123
  onDemandAssignmentProvider: {
2190
- /**
2191
- * The `ParaId` supplied to the `place_order` call is not a valid `ParaThread`, making the
2192
- * call is invalid.
2193
- **/
2194
- InvalidParaId: GenericPalletError;
2195
-
2196
2124
  /**
2197
2125
  * The order queue is full, `place_order` will not continue.
2198
2126
  **/
@@ -2661,6 +2589,17 @@ export interface ChainErrors extends GenericChainErrors {
2661
2589
  **/
2662
2590
  LocalExecutionIncomplete: GenericPalletError;
2663
2591
 
2592
+ /**
2593
+ * Could not decode XCM.
2594
+ **/
2595
+ UnableToDecode: GenericPalletError;
2596
+
2597
+ /**
2598
+ * XCM encoded length is too large.
2599
+ * Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
2600
+ **/
2601
+ XcmTooLarge: GenericPalletError;
2602
+
2664
2603
  /**
2665
2604
  * Generic pallet error
2666
2605
  **/
@@ -27,10 +27,10 @@ import type {
27
27
  PalletSocietyGroupParams,
28
28
  RococoRuntimeProxyType,
29
29
  PalletMultisigTimepoint,
30
- PolkadotPrimitivesV6CandidateReceipt,
30
+ PolkadotPrimitivesV7CandidateReceipt,
31
31
  PolkadotParachainPrimitivesPrimitivesHeadData,
32
- PolkadotPrimitivesV6CoreIndex,
33
- PolkadotPrimitivesV6GroupIndex,
32
+ PolkadotPrimitivesV7CoreIndex,
33
+ PolkadotPrimitivesV7GroupIndex,
34
34
  PolkadotParachainPrimitivesPrimitivesId,
35
35
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
36
36
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
@@ -1927,7 +1927,7 @@ export interface ChainEvents extends GenericChainEvents {
1927
1927
  Funded: GenericPalletEvent<'Nis', 'Funded', { deficit: bigint }>;
1928
1928
 
1929
1929
  /**
1930
- * A receipt was transfered.
1930
+ * A receipt was transferred.
1931
1931
  **/
1932
1932
  Transferred: GenericPalletEvent<'Nis', 'Transferred', { from: AccountId32; to: AccountId32; index: number }>;
1933
1933
 
@@ -2080,10 +2080,10 @@ export interface ChainEvents extends GenericChainEvents {
2080
2080
  'ParaInclusion',
2081
2081
  'CandidateBacked',
2082
2082
  [
2083
- PolkadotPrimitivesV6CandidateReceipt,
2083
+ PolkadotPrimitivesV7CandidateReceipt,
2084
2084
  PolkadotParachainPrimitivesPrimitivesHeadData,
2085
- PolkadotPrimitivesV6CoreIndex,
2086
- PolkadotPrimitivesV6GroupIndex,
2085
+ PolkadotPrimitivesV7CoreIndex,
2086
+ PolkadotPrimitivesV7GroupIndex,
2087
2087
  ]
2088
2088
  >;
2089
2089
 
@@ -2094,10 +2094,10 @@ export interface ChainEvents extends GenericChainEvents {
2094
2094
  'ParaInclusion',
2095
2095
  'CandidateIncluded',
2096
2096
  [
2097
- PolkadotPrimitivesV6CandidateReceipt,
2097
+ PolkadotPrimitivesV7CandidateReceipt,
2098
2098
  PolkadotParachainPrimitivesPrimitivesHeadData,
2099
- PolkadotPrimitivesV6CoreIndex,
2100
- PolkadotPrimitivesV6GroupIndex,
2099
+ PolkadotPrimitivesV7CoreIndex,
2100
+ PolkadotPrimitivesV7GroupIndex,
2101
2101
  ]
2102
2102
  >;
2103
2103
 
@@ -2108,9 +2108,9 @@ export interface ChainEvents extends GenericChainEvents {
2108
2108
  'ParaInclusion',
2109
2109
  'CandidateTimedOut',
2110
2110
  [
2111
- PolkadotPrimitivesV6CandidateReceipt,
2111
+ PolkadotPrimitivesV7CandidateReceipt,
2112
2112
  PolkadotParachainPrimitivesPrimitivesHeadData,
2113
- PolkadotPrimitivesV6CoreIndex,
2113
+ PolkadotPrimitivesV7CoreIndex,
2114
2114
  ]
2115
2115
  >;
2116
2116
 
@@ -2686,7 +2686,7 @@ export interface ChainEvents extends GenericChainEvents {
2686
2686
  /**
2687
2687
  * A core has received a new assignment from the broker chain.
2688
2688
  **/
2689
- CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV6CoreIndex }>;
2689
+ CoreAssigned: GenericPalletEvent<'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV7CoreIndex }>;
2690
2690
 
2691
2691
  /**
2692
2692
  * Generic pallet event