@dedot/chaintypes 0.201.0 → 0.203.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.
@@ -3928,6 +3928,25 @@ export interface ChainErrors extends GenericChainErrors {
3928
3928
  **/
3929
3929
  [error: string]: GenericPalletError;
3930
3930
  };
3931
+ /**
3932
+ * Pallet `IsmpParachain`'s errors
3933
+ **/
3934
+ ismpParachain: {
3935
+ /**
3936
+ * Only Parachain Consensus updates should be passed in the inherents.
3937
+ **/
3938
+ InvalidConsensusStateId: GenericPalletError;
3939
+
3940
+ /**
3941
+ * ValidationData must be updated only once in a block.
3942
+ **/
3943
+ ConsensusAlreadyUpdated: GenericPalletError;
3944
+
3945
+ /**
3946
+ * Generic pallet error
3947
+ **/
3948
+ [error: string]: GenericPalletError;
3949
+ };
3931
3950
  /**
3932
3951
  * Pallet `Hyperbridge`'s errors
3933
3952
  **/
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: HydrationApi
55
- * @specVersion: 359
55
+ * @specVersion: 360
56
56
  **/
57
57
  export interface HydrationApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
@@ -19846,6 +19846,19 @@ export type PalletIsmpError =
19846
19846
  **/
19847
19847
  | 'ChallengePeriodUpdateFailed';
19848
19848
 
19849
+ /**
19850
+ * The `Error` enum of this pallet.
19851
+ **/
19852
+ export type IsmpParachainError =
19853
+ /**
19854
+ * Only Parachain Consensus updates should be passed in the inherents.
19855
+ **/
19856
+ | 'InvalidConsensusStateId'
19857
+ /**
19858
+ * ValidationData must be updated only once in a block.
19859
+ **/
19860
+ | 'ConsensusAlreadyUpdated';
19861
+
19849
19862
  /**
19850
19863
  * The `Error` enum of this pallet.
19851
19864
  **/
@@ -20172,6 +20185,7 @@ export type HydradxRuntimeRuntimeError =
20172
20185
  | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
20173
20186
  | { pallet: 'Session'; palletError: PalletSessionError }
20174
20187
  | { pallet: 'Ismp'; palletError: PalletIsmpError }
20188
+ | { pallet: 'IsmpParachain'; palletError: IsmpParachainError }
20175
20189
  | { pallet: 'Hyperbridge'; palletError: PalletHyperbridgeError }
20176
20190
  | { pallet: 'TokenGateway'; palletError: PalletTokenGatewayError }
20177
20191
  | { pallet: 'EmaOracle'; palletError: PalletEmaOracleError }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.201.0",
3
+ "version": "0.203.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": "00a8ee1347cd178c8cb585433134968b0d25bc51",
28
+ "gitHead": "ee93dd874c0e826374e2192b80a8e0028fedb90f",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -52,6 +52,7 @@ export type ChainJsonRpcApis = Pick<
52
52
  | 'grandpa_proveFinality'
53
53
  | 'grandpa_roundState'
54
54
  | 'grandpa_subscribeJustifications'
55
+ | 'mmr_generateAncestryProof'
55
56
  | 'mmr_generateProof'
56
57
  | 'mmr_root'
57
58
  | 'mmr_verifyProof'
@@ -1246,6 +1246,89 @@ export interface ChainConsts extends GenericChainConsts {
1246
1246
  **/
1247
1247
  [name: string]: any;
1248
1248
  };
1249
+ /**
1250
+ * Pallet `Signet`'s constants
1251
+ **/
1252
+ signet: {
1253
+ /**
1254
+ * The pallet's unique ID for deriving its account
1255
+ **/
1256
+ palletId: FrameSupportPalletId;
1257
+
1258
+ /**
1259
+ * Maximum length for chain ID
1260
+ **/
1261
+ maxChainIdLength: number;
1262
+
1263
+ /**
1264
+ * Maximum length of transaction data
1265
+ **/
1266
+ maxDataLength: number;
1267
+ maxSignatureDeposit: bigint;
1268
+
1269
+ /**
1270
+ * Generic pallet constant
1271
+ **/
1272
+ [name: string]: any;
1273
+ };
1274
+ /**
1275
+ * Pallet `EthDispenser`'s constants
1276
+ **/
1277
+ ethDispenser: {
1278
+ /**
1279
+ * Minimum amount of faucet asset that can be requested in a single call.
1280
+ **/
1281
+ minimumRequestAmount: bigint;
1282
+
1283
+ /**
1284
+ * Maximum amount of faucet asset that can be requested in a single call.
1285
+ **/
1286
+ maxDispenseAmount: bigint;
1287
+
1288
+ /**
1289
+ * Flat fee charged in `FeeAsset` for each faucet request.
1290
+ **/
1291
+ dispenserFee: bigint;
1292
+
1293
+ /**
1294
+ * Asset ID used to charge the faucet request fee.
1295
+ * (HDX - 0)
1296
+ **/
1297
+ feeAsset: number;
1298
+
1299
+ /**
1300
+ * Asset ID deducted to receive faucet on the destination chain.
1301
+ * (WETH - 20)
1302
+ **/
1303
+ faucetAsset: number;
1304
+
1305
+ /**
1306
+ * Account that receives the collected dispenser fees and faucet asset.
1307
+ **/
1308
+ feeDestination: AccountId32;
1309
+
1310
+ /**
1311
+ * EVM address of the external gas faucet contract.
1312
+ **/
1313
+ faucetAddress: FixedBytes<20>;
1314
+
1315
+ /**
1316
+ * Pallet ID used to derive the pallet's sovereign account.
1317
+ **/
1318
+ palletId: FrameSupportPalletId;
1319
+
1320
+ /**
1321
+ * Minimum remaining ETH (in wei) that must be available in the faucet
1322
+ * after servicing a request. Requests are rejected if this threshold
1323
+ * would be breached.
1324
+ **/
1325
+ minFaucetEthThreshold: bigint;
1326
+
1327
+ /**
1328
+ * Generic pallet constant
1329
+ **/
1330
+ [name: string]: any;
1331
+ };
1249
1332
  /**
1250
1333
  * Pallet `Tokens`'s constants
1251
1334
  **/
@@ -1772,17 +1855,6 @@ export interface ChainConsts extends GenericChainConsts {
1772
1855
  **/
1773
1856
  [name: string]: any;
1774
1857
  };
1775
- /**
1776
- * Pallet `IsmpOracle`'s constants
1777
- **/
1778
- ismpOracle: {
1779
- requestsTimeout: bigint;
1780
-
1781
- /**
1782
- * Generic pallet constant
1783
- **/
1784
- [name: string]: any;
1785
- };
1786
1858
  /**
1787
1859
  * Pallet `EmaOracle`'s constants
1788
1860
  **/
@@ -194,6 +194,11 @@ export interface ChainErrors extends GenericChainErrors {
194
194
  **/
195
195
  EvmPermitRunnerError: GenericPalletError;
196
196
 
197
+ /**
198
+ * EVM permit must not affect account nonce.
199
+ **/
200
+ EvmPermitNonceInvariantViolated: GenericPalletError;
201
+
197
202
  /**
198
203
  * Generic pallet error
199
204
  **/
@@ -1130,6 +1135,41 @@ export interface ChainErrors extends GenericChainErrors {
1130
1135
  **/
1131
1136
  NotEvmCall: GenericPalletError;
1132
1137
 
1138
+ /**
1139
+ * The EVM call ran out of gas.
1140
+ **/
1141
+ EvmOutOfGas: GenericPalletError;
1142
+
1143
+ /**
1144
+ * The EVM call resulted in an arithmetic overflow or underflow.
1145
+ **/
1146
+ EvmArithmeticOverflowOrUnderflow: GenericPalletError;
1147
+
1148
+ /**
1149
+ * Aave - supply cap has been exceeded.
1150
+ **/
1151
+ AaveSupplyCapExceeded: GenericPalletError;
1152
+
1153
+ /**
1154
+ * Aave - borrow cap has been exceeded.
1155
+ **/
1156
+ AaveBorrowCapExceeded: GenericPalletError;
1157
+
1158
+ /**
1159
+ * Aave - health factor is not below the threshold.
1160
+ **/
1161
+ AaveHealthFactorNotBelowThreshold: GenericPalletError;
1162
+
1163
+ /**
1164
+ * Aave - health factor is lesser than the liquidation threshold
1165
+ **/
1166
+ AaveHealthFactorLowerThanLiquidationThreshold: GenericPalletError;
1167
+
1168
+ /**
1169
+ * Aave - there is not enough collateral to cover a new borrow
1170
+ **/
1171
+ CollateralCannotCoverNewBorrow: GenericPalletError;
1172
+
1133
1173
  /**
1134
1174
  * Generic pallet error
1135
1175
  **/
@@ -2325,18 +2365,6 @@ export interface ChainErrors extends GenericChainErrors {
2325
2365
  **/
2326
2366
  ZeroLiquidity: GenericPalletError;
2327
2367
 
2328
- /**
2329
- * It is not allowed to create a pool with zero initial price.
2330
- * Not used, kept for backward compatibility
2331
- **/
2332
- ZeroInitialPrice: GenericPalletError;
2333
-
2334
- /**
2335
- * Overflow
2336
- * Not used, kept for backward compatibility
2337
- **/
2338
- CreatePoolAssetAmountInvalid: GenericPalletError;
2339
-
2340
2368
  /**
2341
2369
  * Overflow
2342
2370
  **/
@@ -2407,11 +2435,6 @@ export interface ChainErrors extends GenericChainErrors {
2407
2435
  **/
2408
2436
  FeeAmountInvalid: GenericPalletError;
2409
2437
 
2410
- /**
2411
- * Overflow
2412
- **/
2413
- CannotApplyDiscount: GenericPalletError;
2414
-
2415
2438
  /**
2416
2439
  * Max fraction of pool to buy in single transaction has been exceeded.
2417
2440
  **/
@@ -2710,6 +2733,134 @@ export interface ChainErrors extends GenericChainErrors {
2710
2733
  **/
2711
2734
  [error: string]: GenericPalletError;
2712
2735
  };
2736
+ /**
2737
+ * Pallet `Signet`'s errors
2738
+ **/
2739
+ signet: {
2740
+ /**
2741
+ * The pallet has already been initialized
2742
+ **/
2743
+ AlreadyInitialized: GenericPalletError;
2744
+
2745
+ /**
2746
+ * The pallet has not been initialized yet
2747
+ **/
2748
+ NotInitialized: GenericPalletError;
2749
+
2750
+ /**
2751
+ * Unauthorized - caller is not admin
2752
+ **/
2753
+ Unauthorized: GenericPalletError;
2754
+
2755
+ /**
2756
+ * Insufficient funds for withdrawal
2757
+ **/
2758
+ InsufficientFunds: GenericPalletError;
2759
+
2760
+ /**
2761
+ * Invalid transaction data (empty)
2762
+ **/
2763
+ InvalidTransaction: GenericPalletError;
2764
+
2765
+ /**
2766
+ * Arrays must have the same length
2767
+ **/
2768
+ InvalidInputLength: GenericPalletError;
2769
+
2770
+ /**
2771
+ * The chain ID is too long
2772
+ **/
2773
+ ChainIdTooLong: GenericPalletError;
2774
+
2775
+ /**
2776
+ * Transaction data exceeds maximum allowed length
2777
+ **/
2778
+ DataTooLong: GenericPalletError;
2779
+
2780
+ /**
2781
+ * Invalid address format - must be exactly 20 bytes
2782
+ **/
2783
+ InvalidAddress: GenericPalletError;
2784
+
2785
+ /**
2786
+ * Priority fee cannot exceed max fee per gas (EIP-1559 requirement)
2787
+ **/
2788
+ InvalidGasPrice: GenericPalletError;
2789
+
2790
+ /**
2791
+ * Signature Deposit cannot exceed MaxSignatureDeposit
2792
+ **/
2793
+ MaxDepositExceeded: GenericPalletError;
2794
+
2795
+ /**
2796
+ * Generic pallet error
2797
+ **/
2798
+ [error: string]: GenericPalletError;
2799
+ };
2800
+ /**
2801
+ * Pallet `EthDispenser`'s errors
2802
+ **/
2803
+ ethDispenser: {
2804
+ /**
2805
+ * Request ID has already been used.
2806
+ **/
2807
+ DuplicateRequest: GenericPalletError;
2808
+
2809
+ /**
2810
+ * Failed to (de)serialize data.
2811
+ **/
2812
+ Serialization: GenericPalletError;
2813
+
2814
+ /**
2815
+ * Output data did not match the expected format.
2816
+ **/
2817
+ InvalidOutput: GenericPalletError;
2818
+
2819
+ /**
2820
+ * Request ID does not match the derived ID for the provided data.
2821
+ **/
2822
+ InvalidRequestId: GenericPalletError;
2823
+
2824
+ /**
2825
+ * Pallet is paused and cannot process this call.
2826
+ **/
2827
+ Paused: GenericPalletError;
2828
+
2829
+ /**
2830
+ * Requested amount is below the configured minimum.
2831
+ **/
2832
+ AmountTooSmall: GenericPalletError;
2833
+
2834
+ /**
2835
+ * Requested amount exceeds the configured maximum.
2836
+ **/
2837
+ AmountTooLarge: GenericPalletError;
2838
+
2839
+ /**
2840
+ * EVM address parameter is invalid (e.g., zero address).
2841
+ **/
2842
+ InvalidAddress: GenericPalletError;
2843
+
2844
+ /**
2845
+ * Faucet balance would fall below the configured threshold after this request.
2846
+ **/
2847
+ FaucetBalanceBelowThreshold: GenericPalletError;
2848
+
2849
+ /**
2850
+ * Caller does not have enough balance of the fee asset.
2851
+ **/
2852
+ NotEnoughFeeFunds: GenericPalletError;
2853
+
2854
+ /**
2855
+ * Caller does not have enough balance of the faucet asset.
2856
+ **/
2857
+ NotEnoughFaucetFunds: GenericPalletError;
2858
+
2859
+ /**
2860
+ * Generic pallet error
2861
+ **/
2862
+ [error: string]: GenericPalletError;
2863
+ };
2713
2864
  /**
2714
2865
  * Pallet `Tokens`'s errors
2715
2866
  **/
@@ -2940,6 +3091,21 @@ export interface ChainErrors extends GenericChainErrors {
2940
3091
  **/
2941
3092
  AddressNotWhitelisted: GenericPalletError;
2942
3093
 
3094
+ /**
3095
+ * Provided signature is invalid
3096
+ **/
3097
+ InvalidSignature: GenericPalletError;
3098
+
3099
+ /**
3100
+ * Account already exists in the system pallet
3101
+ **/
3102
+ AccountAlreadyExists: GenericPalletError;
3103
+
3104
+ /**
3105
+ * Insufficient asset balance of the claimed asset
3106
+ **/
3107
+ InsufficientAssetBalance: GenericPalletError;
3108
+
2943
3109
  /**
2944
3110
  * Generic pallet error
2945
3111
  **/
@@ -3928,6 +4094,25 @@ export interface ChainErrors extends GenericChainErrors {
3928
4094
  **/
3929
4095
  [error: string]: GenericPalletError;
3930
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
+ };
3931
4116
  /**
3932
4117
  * Pallet `Hyperbridge`'s errors
3933
4118
  **/
@@ -3991,17 +4176,6 @@ export interface ChainErrors extends GenericChainErrors {
3991
4176
  **/
3992
4177
  [error: string]: GenericPalletError;
3993
4178
  };
3994
- /**
3995
- * Pallet `IsmpOracle`'s errors
3996
- **/
3997
- ismpOracle: {
3998
- GetRequestFailed: GenericPalletError;
3999
-
4000
- /**
4001
- * Generic pallet error
4002
- **/
4003
- [error: string]: GenericPalletError;
4004
- };
4005
4179
  /**
4006
4180
  * Pallet `EmaOracle`'s errors
4007
4181
  **/