@dedot/chaintypes 0.221.0 → 0.226.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.221.0",
3
+ "version": "0.226.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": "7bbcedeab21b18b07ae4f5400d3a1f1dd93da359",
28
+ "gitHead": "3697e0c5fb0cb6ca33c2caca2e04855b35bdda3f",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -5,15 +5,6 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
5
5
 
6
6
  export type ChainJsonRpcApis = Pick<
7
7
  JsonRpcApis,
8
- | 'archive_v1_body'
9
- | 'archive_v1_call'
10
- | 'archive_v1_finalizedHeight'
11
- | 'archive_v1_genesisHash'
12
- | 'archive_v1_hashByHeight'
13
- | 'archive_v1_header'
14
- | 'archive_v1_storage'
15
- | 'archive_v1_storageDiff'
16
- | 'archive_v1_storageDiff_stopStorageDiff'
17
8
  | 'author_hasKey'
18
9
  | 'author_hasSessionKeys'
19
10
  | 'author_insertKey'
@@ -5,15 +5,6 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
5
5
 
6
6
  export type ChainJsonRpcApis = Pick<
7
7
  JsonRpcApis,
8
- | 'archive_v1_body'
9
- | 'archive_v1_call'
10
- | 'archive_v1_finalizedHeight'
11
- | 'archive_v1_genesisHash'
12
- | 'archive_v1_hashByHeight'
13
- | 'archive_v1_header'
14
- | 'archive_v1_storage'
15
- | 'archive_v1_storageDiff'
16
- | 'archive_v1_storageDiff_stopStorageDiff'
17
8
  | 'author_hasKey'
18
9
  | 'author_hasSessionKeys'
19
10
  | 'author_insertKey'
@@ -4402,8 +4402,7 @@ export type AssetHubPaseoRuntimeProxyType =
4402
4402
  | 'Staking'
4403
4403
  | 'NominationPools'
4404
4404
  | 'Auction'
4405
- | 'ParaRegistration'
4406
- | 'StakingOperator';
4405
+ | 'ParaRegistration';
4407
4406
 
4408
4407
  /**
4409
4408
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -15386,8 +15385,7 @@ export type PaseoRuntimeConstantsProxyProxyType =
15386
15385
  | 'CancelProxy'
15387
15386
  | 'Auction'
15388
15387
  | 'NominationPools'
15389
- | 'ParaRegistration'
15390
- | 'StakingOperator';
15388
+ | 'ParaRegistration';
15391
15389
 
15392
15390
  export type PalletProxyProxyDefinition = {
15393
15391
  delegate: AccountId32;
@@ -8,12 +8,13 @@ import type {
8
8
  SpWeightsRuntimeDbWeight,
9
9
  FrameSupportPalletId,
10
10
  SpWeightsWeightV2Weight,
11
- PalletReferendaTrackInfo,
11
+ PalletReferendaTrackDetails,
12
12
  HydradxTraitsOracleOraclePeriod,
13
13
  PalletDynamicFeesFeeParams,
14
14
  NonZeroU16,
15
15
  PolkadotParachainPrimitivesPrimitivesId,
16
- StagingXcmV4Location,
16
+ StagingXcmV5Junctions,
17
+ StagingXcmV5Location,
17
18
  } from './types.js';
18
19
 
19
20
  export interface ChainConsts extends GenericChainConsts {
@@ -198,6 +199,9 @@ export interface ChainConsts extends GenericChainConsts {
198
199
  palletId: FrameSupportPalletId;
199
200
 
200
201
  /**
202
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
203
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
204
+ *
201
205
  * The maximum number of approvals that can wait in the spending queue.
202
206
  *
203
207
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -209,6 +213,11 @@ export interface ChainConsts extends GenericChainConsts {
209
213
  **/
210
214
  payoutPeriod: number;
211
215
 
216
+ /**
217
+ * Gets this pallet's derived pot account.
218
+ **/
219
+ potAccount: AccountId32;
220
+
212
221
  /**
213
222
  * Generic pallet constant
214
223
  **/
@@ -251,6 +260,12 @@ export interface ChainConsts extends GenericChainConsts {
251
260
  **/
252
261
  byteDeposit: bigint;
253
262
 
263
+ /**
264
+ * The amount held on deposit per registered username. This value should change only in
265
+ * runtime upgrades with proper migration of existing deposits.
266
+ **/
267
+ usernameDeposit: bigint;
268
+
254
269
  /**
255
270
  * The amount held on deposit for a registered subaccount. This should account for the fact
256
271
  * that one storage item's value will increase by the size of an account ID, and there will
@@ -274,6 +289,12 @@ export interface ChainConsts extends GenericChainConsts {
274
289
  **/
275
290
  pendingUsernameExpiration: number;
276
291
 
292
+ /**
293
+ * The number of blocks that must pass to enable the permanent deletion of a username by
294
+ * its respective authority.
295
+ **/
296
+ usernameGracePeriod: number;
297
+
277
298
  /**
278
299
  * The maximum length of a suffix.
279
300
  **/
@@ -604,9 +625,11 @@ export interface ChainConsts extends GenericChainConsts {
604
625
  alarmInterval: number;
605
626
 
606
627
  /**
607
- * Information concerning the different referendum tracks.
628
+ * A list of tracks.
629
+ *
630
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
608
631
  **/
609
- tracks: Array<[number, PalletReferendaTrackInfo]>;
632
+ tracks: Array<[number, PalletReferendaTrackDetails]>;
610
633
 
611
634
  /**
612
635
  * Generic pallet constant
@@ -1310,7 +1333,7 @@ export interface ChainConsts extends GenericChainConsts {
1310
1333
  /**
1311
1334
  * EVM address of the external gas faucet contract.
1312
1335
  **/
1313
- faucetAddress: FixedBytes<20>;
1336
+ faucetAddress: H160;
1314
1337
 
1315
1338
  /**
1316
1339
  * Pallet ID used to derive the pallet's sovereign account.
@@ -1619,6 +1642,27 @@ export interface ChainConsts extends GenericChainConsts {
1619
1642
  * Pallet `PolkadotXcm`'s constants
1620
1643
  **/
1621
1644
  polkadotXcm: {
1645
+ /**
1646
+ * This chain's Universal Location.
1647
+ **/
1648
+ universalLocation: StagingXcmV5Junctions;
1649
+
1650
+ /**
1651
+ * The latest supported version that we advertise. Generally just set it to
1652
+ * `pallet_xcm::CurrentXcmVersion`.
1653
+ **/
1654
+ advertisedXcmVersion: number;
1655
+
1656
+ /**
1657
+ * The maximum number of local XCM locks that a single account may have.
1658
+ **/
1659
+ maxLockers: number;
1660
+
1661
+ /**
1662
+ * The maximum number of consumers a single remote lock may have.
1663
+ **/
1664
+ maxRemoteLockConsumers: number;
1665
+
1622
1666
  /**
1623
1667
  * Generic pallet constant
1624
1668
  **/
@@ -1716,6 +1760,40 @@ export interface ChainConsts extends GenericChainConsts {
1716
1760
  **/
1717
1761
  [name: string]: any;
1718
1762
  };
1763
+ /**
1764
+ * Pallet `WeightReclaim`'s constants
1765
+ **/
1766
+ weightReclaim: {
1767
+ /**
1768
+ * Generic pallet constant
1769
+ **/
1770
+ [name: string]: any;
1771
+ };
1772
+ /**
1773
+ * Pallet `MultiBlockMigrations`'s constants
1774
+ **/
1775
+ multiBlockMigrations: {
1776
+ /**
1777
+ * The maximal length of an encoded cursor.
1778
+ *
1779
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
1780
+ * above this limit. This is statically checked in `integrity_test`.
1781
+ **/
1782
+ cursorMaxLen: number;
1783
+
1784
+ /**
1785
+ * The maximal length of an encoded identifier.
1786
+ *
1787
+ * A good default needs to selected such that no migration will ever have an identifier
1788
+ * with MEL above this limit. This is statically checked in `integrity_test`.
1789
+ **/
1790
+ identifierMaxLen: number;
1791
+
1792
+ /**
1793
+ * Generic pallet constant
1794
+ **/
1795
+ [name: string]: any;
1796
+ };
1719
1797
  /**
1720
1798
  * Pallet `OrmlXcm`'s constants
1721
1799
  **/
@@ -1732,7 +1810,7 @@ export interface ChainConsts extends GenericChainConsts {
1732
1810
  /**
1733
1811
  * Self chain location.
1734
1812
  **/
1735
- selfLocation: StagingXcmV4Location;
1813
+ selfLocation: StagingXcmV5Location;
1736
1814
 
1737
1815
  /**
1738
1816
  * Base XCM weight.
@@ -1774,6 +1852,36 @@ export interface ChainConsts extends GenericChainConsts {
1774
1852
  * Pallet `CollatorSelection`'s constants
1775
1853
  **/
1776
1854
  collatorSelection: {
1855
+ /**
1856
+ * Account Identifier from which the internal Pot is generated.
1857
+ **/
1858
+ potId: FrameSupportPalletId;
1859
+
1860
+ /**
1861
+ * Maximum number of candidates that we should have.
1862
+ *
1863
+ * This does not take into account the invulnerables.
1864
+ **/
1865
+ maxCandidates: number;
1866
+
1867
+ /**
1868
+ * Minimum number eligible collators. Should always be greater than zero. This includes
1869
+ * Invulnerable collators. This ensures that there will always be one collator who can
1870
+ * produce a block.
1871
+ **/
1872
+ minEligibleCollators: number;
1873
+
1874
+ /**
1875
+ * Maximum number of invulnerables.
1876
+ **/
1877
+ maxInvulnerables: number;
1878
+ kickThreshold: number;
1879
+
1880
+ /**
1881
+ * Gets this pallet's derived pot account.
1882
+ **/
1883
+ potAccount: AccountId32;
1884
+
1777
1885
  /**
1778
1886
  * Generic pallet constant
1779
1887
  **/
@@ -1814,47 +1922,6 @@ export interface ChainConsts extends GenericChainConsts {
1814
1922
  **/
1815
1923
  [name: string]: any;
1816
1924
  };
1817
- /**
1818
- * Pallet `Ismp`'s constants
1819
- **/
1820
- ismp: {
1821
- /**
1822
- * Generic pallet constant
1823
- **/
1824
- [name: string]: any;
1825
- };
1826
- /**
1827
- * Pallet `IsmpParachain`'s constants
1828
- **/
1829
- ismpParachain: {
1830
- /**
1831
- * Generic pallet constant
1832
- **/
1833
- [name: string]: any;
1834
- };
1835
- /**
1836
- * Pallet `Hyperbridge`'s constants
1837
- **/
1838
- hyperbridge: {
1839
- /**
1840
- * Generic pallet constant
1841
- **/
1842
- [name: string]: any;
1843
- };
1844
- /**
1845
- * Pallet `TokenGateway`'s constants
1846
- **/
1847
- tokenGateway: {
1848
- /**
1849
- * The decimals of the native currency
1850
- **/
1851
- decimals: number;
1852
-
1853
- /**
1854
- * Generic pallet constant
1855
- **/
1856
- [name: string]: any;
1857
- };
1858
1925
  /**
1859
1926
  * Pallet `EmaOracle`'s constants
1860
1927
  **/
@@ -466,6 +466,27 @@ export interface ChainErrors extends GenericChainErrors {
466
466
  **/
467
467
  NotExpired: GenericPalletError;
468
468
 
469
+ /**
470
+ * The username cannot be removed because it's still in the grace period.
471
+ **/
472
+ TooEarly: GenericPalletError;
473
+
474
+ /**
475
+ * The username cannot be removed because it is not unbinding.
476
+ **/
477
+ NotUnbinding: GenericPalletError;
478
+
479
+ /**
480
+ * The username cannot be unbound because it is already unbinding.
481
+ **/
482
+ AlreadyUnbinding: GenericPalletError;
483
+
484
+ /**
485
+ * The action cannot be performed because of insufficient privileges (e.g. authority
486
+ * trying to unbind a username provided by the system).
487
+ **/
488
+ InsufficientPrivileges: GenericPalletError;
489
+
469
490
  /**
470
491
  * Generic pallet error
471
492
  **/
@@ -660,6 +681,11 @@ export interface ChainErrors extends GenericChainErrors {
660
681
  **/
661
682
  PrimeAccountNotMember: GenericPalletError;
662
683
 
684
+ /**
685
+ * Proposal is still active.
686
+ **/
687
+ ProposalActive: GenericPalletError;
688
+
663
689
  /**
664
690
  * Generic pallet error
665
691
  **/
@@ -754,12 +780,13 @@ export interface ChainErrors extends GenericChainErrors {
754
780
  SenderInSignatories: GenericPalletError;
755
781
 
756
782
  /**
757
- * Multisig operation not found when attempting to cancel.
783
+ * Multisig operation not found in storage.
758
784
  **/
759
785
  NotFound: GenericPalletError;
760
786
 
761
787
  /**
762
- * Only the account that originally created the multisig is able to cancel it.
788
+ * Only the account that originally created the multisig is able to cancel it or update
789
+ * its deposits.
763
790
  **/
764
791
  NotOwner: GenericPalletError;
765
792
 
@@ -1720,6 +1747,16 @@ export interface ChainErrors extends GenericChainErrors {
1720
1747
  **/
1721
1748
  NoFarmEntriesSpecified: GenericPalletError;
1722
1749
 
1750
+ /**
1751
+ * No assets specified in the withdrawal
1752
+ **/
1753
+ NoAssetsSpecified: GenericPalletError;
1754
+
1755
+ /**
1756
+ * The provided position_id does not match the deposit's associated position.
1757
+ **/
1758
+ PositionIdMismatch: GenericPalletError;
1759
+
1723
1760
  /**
1724
1761
  * Generic pallet error
1725
1762
  **/
@@ -1827,6 +1864,12 @@ export interface ChainErrors extends GenericChainErrors {
1827
1864
  **/
1828
1865
  InvalidAmount: GenericPalletError;
1829
1866
 
1867
+ /**
1868
+ * Deposit limit would be exceeded for a whitelisted account.
1869
+ * Operation rejected to prevent funds being locked on system accounts.
1870
+ **/
1871
+ DepositLimitExceededForWhitelistedAccount: GenericPalletError;
1872
+
1830
1873
  /**
1831
1874
  * Generic pallet error
1832
1875
  **/
@@ -2124,6 +2167,16 @@ export interface ChainErrors extends GenericChainErrors {
2124
2167
  **/
2125
2168
  NoPegSource: GenericPalletError;
2126
2169
 
2170
+ /**
2171
+ * Trade would result in zero amount out.
2172
+ **/
2173
+ ZeroAmountOut: GenericPalletError;
2174
+
2175
+ /**
2176
+ * Trade would result in zero amount in.
2177
+ **/
2178
+ ZeroAmountIn: GenericPalletError;
2179
+
2127
2180
  /**
2128
2181
  * Generic pallet error
2129
2182
  **/
@@ -3043,6 +3096,11 @@ export interface ChainErrors extends GenericChainErrors {
3043
3096
  **/
3044
3097
  Undefined: GenericPalletError;
3045
3098
 
3099
+ /**
3100
+ * Address not allowed to deploy contracts either via CREATE or CALL(CREATE).
3101
+ **/
3102
+ CreateOriginNotAllowed: GenericPalletError;
3103
+
3046
3104
  /**
3047
3105
  * Generic pallet error
3048
3106
  **/
@@ -3528,16 +3586,6 @@ export interface ChainErrors extends GenericChainErrors {
3528
3586
  **/
3529
3587
  NotScheduled: GenericPalletError;
3530
3588
 
3531
- /**
3532
- * No code upgrade has been authorized.
3533
- **/
3534
- NothingAuthorized: GenericPalletError;
3535
-
3536
- /**
3537
- * The given code upgrade has not been authorized.
3538
- **/
3539
- Unauthorized: GenericPalletError;
3540
-
3541
3589
  /**
3542
3590
  * Generic pallet error
3543
3591
  **/
@@ -3670,6 +3718,21 @@ export interface ChainErrors extends GenericChainErrors {
3670
3718
  **/
3671
3719
  LocalExecutionIncomplete: GenericPalletError;
3672
3720
 
3721
+ /**
3722
+ * Too many locations authorized to alias origin.
3723
+ **/
3724
+ TooManyAuthorizedAliases: GenericPalletError;
3725
+
3726
+ /**
3727
+ * Expiry block number is in the past.
3728
+ **/
3729
+ ExpiresInPast: GenericPalletError;
3730
+
3731
+ /**
3732
+ * The alias to remove authorization for was not found.
3733
+ **/
3734
+ AliasNotFound: GenericPalletError;
3735
+
3673
3736
  /**
3674
3737
  * Generic pallet error
3675
3738
  **/
@@ -3769,6 +3832,20 @@ export interface ChainErrors extends GenericChainErrors {
3769
3832
  **/
3770
3833
  [error: string]: GenericPalletError;
3771
3834
  };
3835
+ /**
3836
+ * Pallet `MultiBlockMigrations`'s errors
3837
+ **/
3838
+ multiBlockMigrations: {
3839
+ /**
3840
+ * The operation cannot complete since some MBMs are ongoing.
3841
+ **/
3842
+ Ongoing: GenericPalletError;
3843
+
3844
+ /**
3845
+ * Generic pallet error
3846
+ **/
3847
+ [error: string]: GenericPalletError;
3848
+ };
3772
3849
  /**
3773
3850
  * Pallet `OrmlXcm`'s errors
3774
3851
  **/
@@ -3869,7 +3946,7 @@ export interface ChainErrors extends GenericChainErrors {
3869
3946
  ZeroFee: GenericPalletError;
3870
3947
 
3871
3948
  /**
3872
- * The transfering asset amount is zero.
3949
+ * The transferring asset amount is zero.
3873
3950
  **/
3874
3951
  ZeroAmount: GenericPalletError;
3875
3952
 
@@ -4060,122 +4137,6 @@ export interface ChainErrors extends GenericChainErrors {
4060
4137
  **/
4061
4138
  [error: string]: GenericPalletError;
4062
4139
  };
4063
- /**
4064
- * Pallet `Ismp`'s errors
4065
- **/
4066
- ismp: {
4067
- /**
4068
- * Invalid ISMP message
4069
- **/
4070
- InvalidMessage: GenericPalletError;
4071
-
4072
- /**
4073
- * Requested message was not found
4074
- **/
4075
- MessageNotFound: GenericPalletError;
4076
-
4077
- /**
4078
- * Encountered an error while creating the consensus client.
4079
- **/
4080
- ConsensusClientCreationFailed: GenericPalletError;
4081
-
4082
- /**
4083
- * Couldn't update unbonding period
4084
- **/
4085
- UnbondingPeriodUpdateFailed: GenericPalletError;
4086
-
4087
- /**
4088
- * Couldn't update challenge period
4089
- **/
4090
- ChallengePeriodUpdateFailed: GenericPalletError;
4091
-
4092
- /**
4093
- * Generic pallet error
4094
- **/
4095
- [error: string]: GenericPalletError;
4096
- };
4097
- /**
4098
- * Pallet `IsmpParachain`'s errors
4099
- **/
4100
- ismpParachain: {
4101
- /**
4102
- * Only Parachain Consensus updates should be passed in the inherents.
4103
- **/
4104
- InvalidConsensusStateId: GenericPalletError;
4105
-
4106
- /**
4107
- * ValidationData must be updated only once in a block.
4108
- **/
4109
- ConsensusAlreadyUpdated: GenericPalletError;
4110
-
4111
- /**
4112
- * Generic pallet error
4113
- **/
4114
- [error: string]: GenericPalletError;
4115
- };
4116
- /**
4117
- * Pallet `Hyperbridge`'s errors
4118
- **/
4119
- hyperbridge: {
4120
- /**
4121
- * Generic pallet error
4122
- **/
4123
- [error: string]: GenericPalletError;
4124
- };
4125
- /**
4126
- * Pallet `TokenGateway`'s errors
4127
- **/
4128
- tokenGateway: {
4129
- /**
4130
- * A asset that has not been registered
4131
- **/
4132
- UnregisteredAsset: GenericPalletError;
4133
-
4134
- /**
4135
- * Error while teleporting asset
4136
- **/
4137
- AssetTeleportError: GenericPalletError;
4138
-
4139
- /**
4140
- * Coprocessor was not configured in the runtime
4141
- **/
4142
- CoprocessorNotConfigured: GenericPalletError;
4143
-
4144
- /**
4145
- * Asset or update Dispatch Error
4146
- **/
4147
- DispatchError: GenericPalletError;
4148
-
4149
- /**
4150
- * Asset Id creation failed
4151
- **/
4152
- AssetCreationError: GenericPalletError;
4153
-
4154
- /**
4155
- * Asset decimals not found
4156
- **/
4157
- AssetDecimalsNotFound: GenericPalletError;
4158
-
4159
- /**
4160
- * Protocol Params have not been initialized
4161
- **/
4162
- NotInitialized: GenericPalletError;
4163
-
4164
- /**
4165
- * Unknown Asset
4166
- **/
4167
- UnknownAsset: GenericPalletError;
4168
-
4169
- /**
4170
- * Only root or asset owner can update asset
4171
- **/
4172
- NotAssetOwner: GenericPalletError;
4173
-
4174
- /**
4175
- * Generic pallet error
4176
- **/
4177
- [error: string]: GenericPalletError;
4178
- };
4179
4140
  /**
4180
4141
  * Pallet `EmaOracle`'s errors
4181
4142
  **/