@dedot/chaintypes 0.257.0 → 0.259.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.
@@ -745,9 +745,9 @@ export interface ChainErrors extends GenericChainErrors {
745
745
  GasLimitTooLow: GenericPalletError;
746
746
 
747
747
  /**
748
- * Gas limit is too high.
748
+ * Gas limit exceeds block gas limit.
749
749
  **/
750
- GasLimitTooHigh: GenericPalletError;
750
+ GasLimitExceedsBlockLimit: GenericPalletError;
751
751
 
752
752
  /**
753
753
  * The chain id is invalid.
@@ -779,6 +779,11 @@ export interface ChainErrors extends GenericChainErrors {
779
779
  **/
780
780
  CreateOriginNotAllowed: GenericPalletError;
781
781
 
782
+ /**
783
+ * EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
784
+ **/
785
+ TransactionGasLimitExceedsCap: GenericPalletError;
786
+
782
787
  /**
783
788
  * Generic pallet error
784
789
  **/
@@ -1574,7 +1579,6 @@ export interface ChainErrors extends GenericChainErrors {
1574
1579
  BadVersion: GenericPalletError;
1575
1580
  MaxWeightTransactReached: GenericPalletError;
1576
1581
  UnableToWithdrawAsset: GenericPalletError;
1577
- FeePerSecondNotSet: GenericPalletError;
1578
1582
  SignedTransactNotAllowedForDestination: GenericPalletError;
1579
1583
  FailedMultiLocationToJunction: GenericPalletError;
1580
1584
  HrmpHandlerNotImplemented: GenericPalletError;
@@ -1688,6 +1692,8 @@ export interface ChainErrors extends GenericChainErrors {
1688
1692
  InvalidSymbol: GenericPalletError;
1689
1693
  InvalidTokenName: GenericPalletError;
1690
1694
  LocationAlreadyExists: GenericPalletError;
1695
+ NoPendingDeposit: GenericPalletError;
1696
+ AssetNotActive: GenericPalletError;
1691
1697
  TooManyForeignAssets: GenericPalletError;
1692
1698
 
1693
1699
  /**
@@ -2422,24 +2422,6 @@ export interface ChainEvents extends GenericChainEvents {
2422
2422
  **/
2423
2423
  TransactInfoRemoved: GenericPalletEvent<'XcmTransactor', 'TransactInfoRemoved', { location: StagingXcmV5Location }>;
2424
2424
 
2425
- /**
2426
- * Set dest fee per second
2427
- **/
2428
- DestFeePerSecondChanged: GenericPalletEvent<
2429
- 'XcmTransactor',
2430
- 'DestFeePerSecondChanged',
2431
- { location: StagingXcmV5Location; feePerSecond: bigint }
2432
- >;
2433
-
2434
- /**
2435
- * Remove dest fee per second
2436
- **/
2437
- DestFeePerSecondRemoved: GenericPalletEvent<
2438
- 'XcmTransactor',
2439
- 'DestFeePerSecondRemoved',
2440
- { location: StagingXcmV5Location }
2441
- >;
2442
-
2443
2425
  /**
2444
2426
  * HRMP manage action succesfully sent
2445
2427
  **/
@@ -2623,6 +2605,24 @@ export interface ChainEvents extends GenericChainEvents {
2623
2605
  **/
2624
2606
  TokensLocked: GenericPalletEvent<'EvmForeignAssets', 'TokensLocked', [AccountId20, bigint, U256]>;
2625
2607
 
2608
+ /**
2609
+ * A deposit was recorded as pending because the asset is frozen
2610
+ **/
2611
+ PendingDepositRecorded: GenericPalletEvent<
2612
+ 'EvmForeignAssets',
2613
+ 'PendingDepositRecorded',
2614
+ { assetId: bigint; beneficiary: H160; amount: U256; totalPending: U256 }
2615
+ >;
2616
+
2617
+ /**
2618
+ * A pending deposit was claimed and minted
2619
+ **/
2620
+ PendingDepositClaimed: GenericPalletEvent<
2621
+ 'EvmForeignAssets',
2622
+ 'PendingDepositClaimed',
2623
+ { assetId: bigint; beneficiary: H160; amount: U256 }
2624
+ >;
2625
+
2626
2626
  /**
2627
2627
  * Generic pallet event
2628
2628
  **/
@@ -51,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
51
51
 
52
52
  /**
53
53
  * @name: MoonbeamApi
54
- * @specVersion: 4103
54
+ * @specVersion: 4202
55
55
  **/
56
56
  export interface MoonbeamApi extends GenericSubstrateApi {
57
57
  rpc: ChainJsonRpcApis;
@@ -2117,18 +2117,6 @@ export interface ChainStorage extends GenericChainStorage {
2117
2117
  StagingXcmV5Location
2118
2118
  >;
2119
2119
 
2120
- /**
2121
- * Stores the fee per second for an asset in its reserve chain. This allows us to convert
2122
- * from weight to fee
2123
- *
2124
- * @param {StagingXcmV5Location} arg
2125
- * @param {Callback<bigint | undefined> =} callback
2126
- **/
2127
- destinationAssetFeePerSecond: GenericStorageQuery<
2128
- (arg: StagingXcmV5Location) => bigint | undefined,
2129
- StagingXcmV5Location
2130
- >;
2131
-
2132
2120
  /**
2133
2121
  * Stores the indices of relay chain pallets
2134
2122
  *
@@ -2247,6 +2235,15 @@ export interface ChainStorage extends GenericChainStorage {
2247
2235
  bigint
2248
2236
  >;
2249
2237
 
2238
+ /**
2239
+ * Pending deposits for frozen assets, keyed by (asset_id, beneficiary).
2240
+ * Deposits for the same (asset_id, beneficiary) accumulate via checked_add.
2241
+ *
2242
+ * @param {[bigint, H160]} arg
2243
+ * @param {Callback<U256 | undefined> =} callback
2244
+ **/
2245
+ pendingDeposits: GenericStorageQuery<(arg: [bigint, H160]) => U256 | undefined, [bigint, H160]>;
2246
+
2250
2247
  /**
2251
2248
  * Generic pallet storage query
2252
2249
  **/
package/moonbeam/tx.d.ts CHANGED
@@ -6132,7 +6132,7 @@ export interface ChainTx<
6132
6132
  >;
6133
6133
 
6134
6134
  /**
6135
- * Transact the call through the a signed origin in this chain
6135
+ * Transact the call through a signed origin in this chain
6136
6136
  * that should be converted to a transaction dispatch account in the destination chain
6137
6137
  * by any method implemented in the destination chains runtime
6138
6138
  *
@@ -6169,46 +6169,6 @@ export interface ChainTx<
6169
6169
  >
6170
6170
  >;
6171
6171
 
6172
- /**
6173
- * Set the fee per second of an asset on its reserve chain
6174
- *
6175
- * @param {XcmVersionedLocation} assetLocation
6176
- * @param {bigint} feePerSecond
6177
- **/
6178
- setFeePerSecond: GenericTxCall<
6179
- (
6180
- assetLocation: XcmVersionedLocation,
6181
- feePerSecond: bigint,
6182
- ) => ChainSubmittableExtrinsic<
6183
- {
6184
- pallet: 'XcmTransactor';
6185
- palletCall: {
6186
- name: 'SetFeePerSecond';
6187
- params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint };
6188
- };
6189
- },
6190
- ChainKnownTypes
6191
- >
6192
- >;
6193
-
6194
- /**
6195
- * Remove the fee per second of an asset on its reserve chain
6196
- *
6197
- * @param {XcmVersionedLocation} assetLocation
6198
- **/
6199
- removeFeePerSecond: GenericTxCall<
6200
- (assetLocation: XcmVersionedLocation) => ChainSubmittableExtrinsic<
6201
- {
6202
- pallet: 'XcmTransactor';
6203
- palletCall: {
6204
- name: 'RemoveFeePerSecond';
6205
- params: { assetLocation: XcmVersionedLocation };
6206
- };
6207
- },
6208
- ChainKnownTypes
6209
- >
6210
- >;
6211
-
6212
6172
  /**
6213
6173
  * Manage HRMP operations
6214
6174
  *
@@ -6535,6 +6495,30 @@ export interface ChainTx<
6535
6495
  >
6536
6496
  >;
6537
6497
 
6498
+ /**
6499
+ * Claim a pending deposit for a given asset and beneficiary.
6500
+ * Callable by any signed origin (permissionless). Tokens are minted to the
6501
+ * beneficiary, not the caller. Requires the asset to be active (unfrozen).
6502
+ *
6503
+ * @param {bigint} assetId
6504
+ * @param {H160} beneficiary
6505
+ **/
6506
+ claimPendingDeposit: GenericTxCall<
6507
+ (
6508
+ assetId: bigint,
6509
+ beneficiary: H160,
6510
+ ) => ChainSubmittableExtrinsic<
6511
+ {
6512
+ pallet: 'EvmForeignAssets';
6513
+ palletCall: {
6514
+ name: 'ClaimPendingDeposit';
6515
+ params: { assetId: bigint; beneficiary: H160 };
6516
+ };
6517
+ },
6518
+ ChainKnownTypes
6519
+ >
6520
+ >;
6521
+
6538
6522
  /**
6539
6523
  * Generic pallet tx call
6540
6524
  **/
@@ -7149,7 +7149,7 @@ export type PalletXcmTransactorCall =
7149
7149
  **/
7150
7150
  | { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
7151
7151
  /**
7152
- * Transact the call through the a signed origin in this chain
7152
+ * Transact the call through a signed origin in this chain
7153
7153
  * that should be converted to a transaction dispatch account in the destination chain
7154
7154
  * by any method implemented in the destination chains runtime
7155
7155
  *
@@ -7165,14 +7165,6 @@ export type PalletXcmTransactorCall =
7165
7165
  refund: boolean;
7166
7166
  };
7167
7167
  }
7168
- /**
7169
- * Set the fee per second of an asset on its reserve chain
7170
- **/
7171
- | { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
7172
- /**
7173
- * Remove the fee per second of an asset on its reserve chain
7174
- **/
7175
- | { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
7176
7168
  /**
7177
7169
  * Manage HRMP operations
7178
7170
  **/
@@ -7255,7 +7247,7 @@ export type PalletXcmTransactorCallLike =
7255
7247
  **/
7256
7248
  | { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
7257
7249
  /**
7258
- * Transact the call through the a signed origin in this chain
7250
+ * Transact the call through a signed origin in this chain
7259
7251
  * that should be converted to a transaction dispatch account in the destination chain
7260
7252
  * by any method implemented in the destination chains runtime
7261
7253
  *
@@ -7271,14 +7263,6 @@ export type PalletXcmTransactorCallLike =
7271
7263
  refund: boolean;
7272
7264
  };
7273
7265
  }
7274
- /**
7275
- * Set the fee per second of an asset on its reserve chain
7276
- **/
7277
- | { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
7278
- /**
7279
- * Remove the fee per second of an asset on its reserve chain
7280
- **/
7281
- | { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
7282
7266
  /**
7283
7267
  * Manage HRMP operations
7284
7268
  **/
@@ -7544,7 +7528,13 @@ export type PalletMoonbeamForeignAssetsCall =
7544
7528
  /**
7545
7529
  * Unfreeze a given foreign assetId
7546
7530
  **/
7547
- | { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } };
7531
+ | { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } }
7532
+ /**
7533
+ * Claim a pending deposit for a given asset and beneficiary.
7534
+ * Callable by any signed origin (permissionless). Tokens are minted to the
7535
+ * beneficiary, not the caller. Requires the asset to be active (unfrozen).
7536
+ **/
7537
+ | { name: 'ClaimPendingDeposit'; params: { assetId: bigint; beneficiary: H160 } };
7548
7538
 
7549
7539
  export type PalletMoonbeamForeignAssetsCallLike =
7550
7540
  /**
@@ -7573,7 +7563,13 @@ export type PalletMoonbeamForeignAssetsCallLike =
7573
7563
  /**
7574
7564
  * Unfreeze a given foreign assetId
7575
7565
  **/
7576
- | { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } };
7566
+ | { name: 'UnfreezeForeignAsset'; params: { assetId: bigint } }
7567
+ /**
7568
+ * Claim a pending deposit for a given asset and beneficiary.
7569
+ * Callable by any signed origin (permissionless). Tokens are minted to the
7570
+ * beneficiary, not the caller. Requires the asset to be active (unfrozen).
7571
+ **/
7572
+ | { name: 'ClaimPendingDeposit'; params: { assetId: bigint; beneficiary: H160 } };
7577
7573
 
7578
7574
  /**
7579
7575
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -8788,14 +8784,6 @@ export type PalletXcmTransactorEvent =
8788
8784
  * Removed the transact info of a location
8789
8785
  **/
8790
8786
  | { name: 'TransactInfoRemoved'; data: { location: StagingXcmV5Location } }
8791
- /**
8792
- * Set dest fee per second
8793
- **/
8794
- | { name: 'DestFeePerSecondChanged'; data: { location: StagingXcmV5Location; feePerSecond: bigint } }
8795
- /**
8796
- * Remove dest fee per second
8797
- **/
8798
- | { name: 'DestFeePerSecondRemoved'; data: { location: StagingXcmV5Location } }
8799
8787
  /**
8800
8788
  * HRMP manage action succesfully sent
8801
8789
  **/
@@ -8953,7 +8941,15 @@ export type PalletMoonbeamForeignAssetsEvent =
8953
8941
  /**
8954
8942
  * Tokens have been locked for asset creation
8955
8943
  **/
8956
- | { name: 'TokensLocked'; data: [AccountId20, bigint, U256] };
8944
+ | { name: 'TokensLocked'; data: [AccountId20, bigint, U256] }
8945
+ /**
8946
+ * A deposit was recorded as pending because the asset is frozen
8947
+ **/
8948
+ | { name: 'PendingDepositRecorded'; data: { assetId: bigint; beneficiary: H160; amount: U256; totalPending: U256 } }
8949
+ /**
8950
+ * A pending deposit was claimed and minted
8951
+ **/
8952
+ | { name: 'PendingDepositClaimed'; data: { assetId: bigint; beneficiary: H160; amount: U256 } };
8957
8953
 
8958
8954
  /**
8959
8955
  * The `Event` enum of this pallet
@@ -10304,9 +10300,9 @@ export type PalletEvmError =
10304
10300
  **/
10305
10301
  | 'GasLimitTooLow'
10306
10302
  /**
10307
- * Gas limit is too high.
10303
+ * Gas limit exceeds block gas limit.
10308
10304
  **/
10309
- | 'GasLimitTooHigh'
10305
+ | 'GasLimitExceedsBlockLimit'
10310
10306
  /**
10311
10307
  * The chain id is invalid.
10312
10308
  **/
@@ -10330,7 +10326,11 @@ export type PalletEvmError =
10330
10326
  /**
10331
10327
  * Address not allowed to deploy contracts either via CREATE or CALL(CREATE).
10332
10328
  **/
10333
- | 'CreateOriginNotAllowed';
10329
+ | 'CreateOriginNotAllowed'
10330
+ /**
10331
+ * EIP-7825: Transaction gas limit exceeds protocol cap (2^24).
10332
+ **/
10333
+ | 'TransactionGasLimitExceedsCap';
10334
10334
 
10335
10335
  export type FpRpcTransactionStatus = {
10336
10336
  transactionHash: H256;
@@ -11193,7 +11193,6 @@ export type PalletXcmTransactorError =
11193
11193
  | 'BadVersion'
11194
11194
  | 'MaxWeightTransactReached'
11195
11195
  | 'UnableToWithdrawAsset'
11196
- | 'FeePerSecondNotSet'
11197
11196
  | 'SignedTransactNotAllowedForDestination'
11198
11197
  | 'FailedMultiLocationToJunction'
11199
11198
  | 'HrmpHandlerNotImplemented'
@@ -11312,6 +11311,8 @@ export type PalletMoonbeamForeignAssetsError =
11312
11311
  | 'InvalidSymbol'
11313
11312
  | 'InvalidTokenName'
11314
11313
  | 'LocationAlreadyExists'
11314
+ | 'NoPendingDeposit'
11315
+ | 'AssetNotActive'
11315
11316
  | 'TooManyForeignAssets';
11316
11317
 
11317
11318
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.257.0",
3
+ "version": "0.259.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": "413b90f629ea9cab29f93cbd8993e3727c9a1ec5",
28
+ "gitHead": "21bb18545e125dd78392d7a3ed2ae0f2b001ce6a",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -20,6 +20,7 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
+ | 'author_rotateKeysWithOwner'
23
24
  | 'author_submitAndWatchExtrinsic'
24
25
  | 'author_submitExtrinsic'
25
26
  | 'chainHead_v1_body'