@dedot/chaintypes 0.0.1-alpha.65 → 0.0.1-alpha.67

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/rococo/types.d.ts CHANGED
@@ -6,6 +6,7 @@ import type {
6
6
  DispatchInfo,
7
7
  DispatchError,
8
8
  AccountId32,
9
+ Perquintill,
9
10
  FixedBytes,
10
11
  Bytes,
11
12
  FixedArray,
@@ -18,7 +19,6 @@ import type {
18
19
  EthereumAddressLike,
19
20
  Data,
20
21
  FixedU128,
21
- Perquintill,
22
22
  Perbill,
23
23
  BitSequence,
24
24
  Result,
@@ -58,6 +58,7 @@ export type RococoRuntimeRuntimeEvent =
58
58
  | { pallet: 'System'; palletEvent: FrameSystemEvent }
59
59
  | { pallet: 'Indices'; palletEvent: PalletIndicesEvent }
60
60
  | { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
61
+ | { pallet: 'Parameters'; palletEvent: PalletParametersEvent }
61
62
  | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
62
63
  | { pallet: 'Offences'; palletEvent: PalletOffencesEvent }
63
64
  | { pallet: 'Session'; palletEvent: PalletSessionEvent }
@@ -261,6 +262,67 @@ export type PalletBalancesEvent =
261
262
 
262
263
  export type FrameSupportTokensMiscBalanceStatus = 'Free' | 'Reserved';
263
264
 
265
+ /**
266
+ * The `Event` enum of this pallet
267
+ **/
268
+ export type PalletParametersEvent =
269
+ /**
270
+ * A Parameter was set.
271
+ *
272
+ * Is also emitted when the value was not changed.
273
+ **/
274
+ {
275
+ name: 'Updated';
276
+ data: {
277
+ /**
278
+ * The key that was updated.
279
+ **/
280
+ key: RococoRuntimeRuntimeParametersKey;
281
+
282
+ /**
283
+ * The old value before this call.
284
+ **/
285
+ oldValue?: RococoRuntimeRuntimeParametersValue | undefined;
286
+
287
+ /**
288
+ * The new value after this call.
289
+ **/
290
+ newValue?: RococoRuntimeRuntimeParametersValue | undefined;
291
+ };
292
+ };
293
+
294
+ export type RococoRuntimeRuntimeParametersKey =
295
+ | { tag: 'Nis'; value: RococoRuntimeDynamicParamsNisParametersKey }
296
+ | { tag: 'Preimage'; value: RococoRuntimeDynamicParamsPreimageParametersKey };
297
+
298
+ export type RococoRuntimeDynamicParamsNisParametersKey =
299
+ | { tag: 'Target'; value: RococoRuntimeDynamicParamsNisTarget }
300
+ | { tag: 'MinBid'; value: RococoRuntimeDynamicParamsNisMinBid };
301
+
302
+ export type RococoRuntimeDynamicParamsNisTarget = {};
303
+
304
+ export type RococoRuntimeDynamicParamsNisMinBid = {};
305
+
306
+ export type RococoRuntimeDynamicParamsPreimageParametersKey =
307
+ | { tag: 'BaseDeposit'; value: RococoRuntimeDynamicParamsPreimageBaseDeposit }
308
+ | { tag: 'ByteDeposit'; value: RococoRuntimeDynamicParamsPreimageByteDeposit };
309
+
310
+ export type RococoRuntimeDynamicParamsPreimageBaseDeposit = {};
311
+
312
+ export type RococoRuntimeDynamicParamsPreimageByteDeposit = {};
313
+
314
+ export type RococoRuntimeRuntimeParametersValue =
315
+ | { tag: 'Nis'; value: RococoRuntimeDynamicParamsNisParametersValue }
316
+ | { tag: 'Preimage'; value: RococoRuntimeDynamicParamsPreimageParametersValue };
317
+
318
+ export type RococoRuntimeDynamicParamsNisParametersValue =
319
+ | { tag: 'Target'; value: Perquintill }
320
+ | { tag: 'MinBid'; value: bigint };
321
+
322
+ export type RococoRuntimeDynamicParamsPreimageParametersValue =
323
+ | { tag: 'BaseDeposit'; value: bigint }
324
+ | { tag: 'ByteDeposit'; value: bigint };
325
+
264
326
  /**
265
327
  * The `Event` enum of this pallet
266
328
  **/
@@ -878,6 +940,7 @@ export type RococoRuntimeRuntimeCall =
878
940
  | { pallet: 'Timestamp'; palletCall: PalletTimestampCall }
879
941
  | { pallet: 'Indices'; palletCall: PalletIndicesCall }
880
942
  | { pallet: 'Balances'; palletCall: PalletBalancesCall }
943
+ | { pallet: 'Parameters'; palletCall: PalletParametersCall }
881
944
  | { pallet: 'Session'; palletCall: PalletSessionCall }
882
945
  | { pallet: 'Grandpa'; palletCall: PalletGrandpaCall }
883
946
  | { pallet: 'Treasury'; palletCall: PalletTreasuryCall }
@@ -933,6 +996,7 @@ export type RococoRuntimeRuntimeCallLike =
933
996
  | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike }
934
997
  | { pallet: 'Indices'; palletCall: PalletIndicesCallLike }
935
998
  | { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
999
+ | { pallet: 'Parameters'; palletCall: PalletParametersCallLike }
936
1000
  | { pallet: 'Session'; palletCall: PalletSessionCallLike }
937
1001
  | { pallet: 'Grandpa'; palletCall: PalletGrandpaCallLike }
938
1002
  | { pallet: 'Treasury'; palletCall: PalletTreasuryCallLike }
@@ -1586,6 +1650,39 @@ export type PalletBalancesCallLike =
1586
1650
 
1587
1651
  export type PalletBalancesAdjustmentDirection = 'Increase' | 'Decrease';
1588
1652
 
1653
+ /**
1654
+ * Contains a variant per dispatchable extrinsic that this pallet has.
1655
+ **/
1656
+ export type PalletParametersCall =
1657
+ /**
1658
+ * Set the value of a parameter.
1659
+ *
1660
+ * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
1661
+ * deleted by setting them to `None`.
1662
+ **/
1663
+ { name: 'SetParameter'; params: { keyValue: RococoRuntimeRuntimeParameters } };
1664
+
1665
+ export type PalletParametersCallLike =
1666
+ /**
1667
+ * Set the value of a parameter.
1668
+ *
1669
+ * The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
1670
+ * deleted by setting them to `None`.
1671
+ **/
1672
+ { name: 'SetParameter'; params: { keyValue: RococoRuntimeRuntimeParameters } };
1673
+
1674
+ export type RococoRuntimeRuntimeParameters =
1675
+ | { tag: 'Nis'; value: RococoRuntimeDynamicParamsNisParameters }
1676
+ | { tag: 'Preimage'; value: RococoRuntimeDynamicParamsPreimageParameters };
1677
+
1678
+ export type RococoRuntimeDynamicParamsNisParameters =
1679
+ | { tag: 'Target'; value: [RococoRuntimeDynamicParamsNisTarget, Perquintill | undefined] }
1680
+ | { tag: 'MinBid'; value: [RococoRuntimeDynamicParamsNisMinBid, bigint | undefined] };
1681
+
1682
+ export type RococoRuntimeDynamicParamsPreimageParameters =
1683
+ | { tag: 'BaseDeposit'; value: [RococoRuntimeDynamicParamsPreimageBaseDeposit, bigint | undefined] }
1684
+ | { tag: 'ByteDeposit'; value: [RococoRuntimeDynamicParamsPreimageByteDeposit, bigint | undefined] };
1685
+
1589
1686
  /**
1590
1687
  * Contains a variant per dispatchable extrinsic that this pallet has.
1591
1688
  **/
@@ -7246,7 +7343,17 @@ export type PolkadotRuntimeParachainsHrmpPalletCall =
7246
7343
  | {
7247
7344
  name: 'PokeChannelDeposits';
7248
7345
  params: { sender: PolkadotParachainPrimitivesPrimitivesId; recipient: PolkadotParachainPrimitivesPrimitivesId };
7249
- };
7346
+ }
7347
+ /**
7348
+ * Establish a bidirectional HRMP channel between a parachain and a system chain.
7349
+ *
7350
+ * Arguments:
7351
+ *
7352
+ * - `target_system_chain`: A system chain, `ParaId`.
7353
+ *
7354
+ * The origin needs to be the parachain origin.
7355
+ **/
7356
+ | { name: 'EstablishChannelWithSystem'; params: { targetSystemChain: PolkadotParachainPrimitivesPrimitivesId } };
7250
7357
 
7251
7358
  export type PolkadotRuntimeParachainsHrmpPalletCallLike =
7252
7359
  /**
@@ -7382,7 +7489,17 @@ export type PolkadotRuntimeParachainsHrmpPalletCallLike =
7382
7489
  | {
7383
7490
  name: 'PokeChannelDeposits';
7384
7491
  params: { sender: PolkadotParachainPrimitivesPrimitivesId; recipient: PolkadotParachainPrimitivesPrimitivesId };
7385
- };
7492
+ }
7493
+ /**
7494
+ * Establish a bidirectional HRMP channel between a parachain and a system chain.
7495
+ *
7496
+ * Arguments:
7497
+ *
7498
+ * - `target_system_chain`: A system chain, `ParaId`.
7499
+ *
7500
+ * The origin needs to be the parachain origin.
7501
+ **/
7502
+ | { name: 'EstablishChannelWithSystem'; params: { targetSystemChain: PolkadotParachainPrimitivesPrimitivesId } };
7386
7503
 
7387
7504
  export type PolkadotParachainPrimitivesPrimitivesHrmpChannelId = {
7388
7505
  sender: PolkadotParachainPrimitivesPrimitivesId;
@@ -7704,7 +7821,7 @@ export type PolkadotRuntimeCommonParasRegistrarPalletCall =
7704
7821
  * validators have reported on the validity of the code, the code will either be enacted
7705
7822
  * or the upgrade will be rejected. If the code will be enacted, the current code of the
7706
7823
  * parachain will be overwritten directly. This means that any PoV will be checked by this
7707
- * new code. The parachain itself will not be informed explictely that the validation code
7824
+ * new code. The parachain itself will not be informed explicitly that the validation code
7708
7825
  * has changed.
7709
7826
  *
7710
7827
  * Can be called by Root, the parachain, or the parachain manager if the parachain is
@@ -7844,7 +7961,7 @@ export type PolkadotRuntimeCommonParasRegistrarPalletCallLike =
7844
7961
  * validators have reported on the validity of the code, the code will either be enacted
7845
7962
  * or the upgrade will be rejected. If the code will be enacted, the current code of the
7846
7963
  * parachain will be overwritten directly. This means that any PoV will be checked by this
7847
- * new code. The parachain itself will not be informed explictely that the validation code
7964
+ * new code. The parachain itself will not be informed explicitly that the validation code
7848
7965
  * has changed.
7849
7966
  *
7850
7967
  * Can be called by Root, the parachain, or the parachain manager if the parachain is
@@ -8304,9 +8421,6 @@ export type PolkadotRuntimeParachainsAssignerCoretimePartsOf57600 = number;
8304
8421
  * Contains a variant per dispatchable extrinsic that this pallet has.
8305
8422
  **/
8306
8423
  export type PalletXcmCall =
8307
- /**
8308
- * WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
8309
- **/
8310
8424
  | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
8311
8425
  /**
8312
8426
  * Teleport some assets from the local chain to some destination chain.
@@ -8387,9 +8501,6 @@ export type PalletXcmCall =
8387
8501
  * No more than `max_weight` will be used in its attempted execution. If this is less than
8388
8502
  * the maximum amount of weight that the message could take to be executed, then no
8389
8503
  * execution attempt will be made.
8390
- *
8391
- * WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
8392
- * instead.
8393
8504
  **/
8394
8505
  | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } }
8395
8506
  /**
@@ -8559,32 +8670,69 @@ export type PalletXcmCall =
8559
8670
  **/
8560
8671
  | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
8561
8672
  /**
8562
- * Execute an XCM from a local, signed, origin.
8673
+ * Transfer assets from the local chain to the destination chain using explicit transfer
8674
+ * types for assets and fees.
8563
8675
  *
8564
- * An event is deposited indicating whether the message could be executed completely
8565
- * or only partially.
8566
- *
8567
- * No more than `max_weight` will be used in its attempted execution. If this is less than
8568
- * the maximum amount of weight that the message could take to be executed, then no
8569
- * execution attempt will be made.
8676
+ * `assets` must have same reserve location or may be teleportable to `dest`. Caller must
8677
+ * provide the `assets_transfer_type` to be used for `assets`:
8678
+ * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
8679
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
8680
+ * assets to `beneficiary`.
8681
+ * - `TransferType::DestinationReserve`: burn local assets and forward a notification to
8682
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
8683
+ * deposit them to `beneficiary`.
8684
+ * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
8685
+ * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
8686
+ * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
8687
+ * the remote `reserve` is Asset Hub.
8688
+ * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
8689
+ * mint/teleport assets and deposit them to `beneficiary`.
8690
+ *
8691
+ * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
8692
+ * buy execution using transferred `assets` identified by `remote_fees_id`.
8693
+ * Make sure enough of the specified `remote_fees_id` asset is included in the given list
8694
+ * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
8695
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
8696
+ * at risk.
8570
8697
  *
8571
- * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
8572
- **/
8573
- | { name: 'ExecuteBlob'; params: { encodedMessage: Bytes; maxWeight: SpWeightsWeightV2Weight } }
8574
- /**
8575
- * Send an XCM from a local, signed, origin.
8698
+ * `remote_fees_id` may use different transfer type than rest of `assets` and can be
8699
+ * specified through `fees_transfer_type`.
8576
8700
  *
8577
- * The destination, `dest`, will receive this message with a `DescendOrigin` instruction
8578
- * that makes the origin of the message be the origin on this system.
8701
+ * The caller needs to specify what should happen to the transferred assets once they reach
8702
+ * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
8703
+ * contains the instructions to execute on `dest` as a final step.
8704
+ * This is usually as simple as:
8705
+ * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
8706
+ * but could be something more exotic like sending the `assets` even further.
8579
8707
  *
8580
- * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
8708
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
8709
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
8710
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
8711
+ * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
8712
+ * parachain across a bridge to another ecosystem destination.
8713
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
8714
+ * fee on the `dest` (and possibly reserve) chains.
8715
+ * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
8716
+ * - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
8717
+ * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
8718
+ * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
8719
+ * transfer, which also determines what happens to the assets on the destination chain.
8720
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
8581
8721
  **/
8582
- | { name: 'SendBlob'; params: { dest: XcmVersionedLocation; encodedMessage: Bytes } };
8722
+ | {
8723
+ name: 'TransferAssetsUsingTypeAndThen';
8724
+ params: {
8725
+ dest: XcmVersionedLocation;
8726
+ assets: XcmVersionedAssets;
8727
+ assetsTransferType: StagingXcmExecutorAssetTransferTransferType;
8728
+ remoteFeesId: XcmVersionedAssetId;
8729
+ feesTransferType: StagingXcmExecutorAssetTransferTransferType;
8730
+ customXcmOnDest: XcmVersionedXcm;
8731
+ weightLimit: XcmV3WeightLimit;
8732
+ };
8733
+ };
8583
8734
 
8584
8735
  export type PalletXcmCallLike =
8585
- /**
8586
- * WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
8587
- **/
8588
8736
  | { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
8589
8737
  /**
8590
8738
  * Teleport some assets from the local chain to some destination chain.
@@ -8665,9 +8813,6 @@ export type PalletXcmCallLike =
8665
8813
  * No more than `max_weight` will be used in its attempted execution. If this is less than
8666
8814
  * the maximum amount of weight that the message could take to be executed, then no
8667
8815
  * execution attempt will be made.
8668
- *
8669
- * WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
8670
- * instead.
8671
8816
  **/
8672
8817
  | { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } }
8673
8818
  /**
@@ -8837,27 +8982,67 @@ export type PalletXcmCallLike =
8837
8982
  **/
8838
8983
  | { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
8839
8984
  /**
8840
- * Execute an XCM from a local, signed, origin.
8985
+ * Transfer assets from the local chain to the destination chain using explicit transfer
8986
+ * types for assets and fees.
8841
8987
  *
8842
- * An event is deposited indicating whether the message could be executed completely
8843
- * or only partially.
8988
+ * `assets` must have same reserve location or may be teleportable to `dest`. Caller must
8989
+ * provide the `assets_transfer_type` to be used for `assets`:
8990
+ * - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
8991
+ * chain and forward a notification XCM to `dest` to mint and deposit reserve-based
8992
+ * assets to `beneficiary`.
8993
+ * - `TransferType::DestinationReserve`: burn local assets and forward a notification to
8994
+ * `dest` chain to withdraw the reserve assets from this chain's sovereign account and
8995
+ * deposit them to `beneficiary`.
8996
+ * - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
8997
+ * chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
8998
+ * XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
8999
+ * the remote `reserve` is Asset Hub.
9000
+ * - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
9001
+ * mint/teleport assets and deposit them to `beneficiary`.
9002
+ *
9003
+ * On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
9004
+ * buy execution using transferred `assets` identified by `remote_fees_id`.
9005
+ * Make sure enough of the specified `remote_fees_id` asset is included in the given list
9006
+ * of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
9007
+ * is needed than `weight_limit`, then the operation will fail and the sent assets may be
9008
+ * at risk.
8844
9009
  *
8845
- * No more than `max_weight` will be used in its attempted execution. If this is less than
8846
- * the maximum amount of weight that the message could take to be executed, then no
8847
- * execution attempt will be made.
9010
+ * `remote_fees_id` may use different transfer type than rest of `assets` and can be
9011
+ * specified through `fees_transfer_type`.
8848
9012
  *
8849
- * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
8850
- **/
8851
- | { name: 'ExecuteBlob'; params: { encodedMessage: BytesLike; maxWeight: SpWeightsWeightV2Weight } }
8852
- /**
8853
- * Send an XCM from a local, signed, origin.
8854
- *
8855
- * The destination, `dest`, will receive this message with a `DescendOrigin` instruction
8856
- * that makes the origin of the message be the origin on this system.
9013
+ * The caller needs to specify what should happen to the transferred assets once they reach
9014
+ * the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
9015
+ * contains the instructions to execute on `dest` as a final step.
9016
+ * This is usually as simple as:
9017
+ * `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
9018
+ * but could be something more exotic like sending the `assets` even further.
8857
9019
  *
8858
- * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
9020
+ * - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
9021
+ * - `dest`: Destination context for the assets. Will typically be `[Parent,
9022
+ * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
9023
+ * relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
9024
+ * parachain across a bridge to another ecosystem destination.
9025
+ * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
9026
+ * fee on the `dest` (and possibly reserve) chains.
9027
+ * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
9028
+ * - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
9029
+ * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
9030
+ * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
9031
+ * transfer, which also determines what happens to the assets on the destination chain.
9032
+ * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
8859
9033
  **/
8860
- | { name: 'SendBlob'; params: { dest: XcmVersionedLocation; encodedMessage: BytesLike } };
9034
+ | {
9035
+ name: 'TransferAssetsUsingTypeAndThen';
9036
+ params: {
9037
+ dest: XcmVersionedLocation;
9038
+ assets: XcmVersionedAssets;
9039
+ assetsTransferType: StagingXcmExecutorAssetTransferTransferType;
9040
+ remoteFeesId: XcmVersionedAssetId;
9041
+ feesTransferType: StagingXcmExecutorAssetTransferTransferType;
9042
+ customXcmOnDest: XcmVersionedXcm;
9043
+ weightLimit: XcmV3WeightLimit;
9044
+ };
9045
+ };
8861
9046
 
8862
9047
  export type XcmVersionedXcm =
8863
9048
  | { tag: 'V2'; value: XcmV2Xcm }
@@ -9351,6 +9536,16 @@ export type XcmVersionedAssets =
9351
9536
  | { tag: 'V3'; value: XcmV3MultiassetMultiAssets }
9352
9537
  | { tag: 'V4'; value: StagingXcmV4AssetAssets };
9353
9538
 
9539
+ export type StagingXcmExecutorAssetTransferTransferType =
9540
+ | { tag: 'Teleport' }
9541
+ | { tag: 'LocalReserve' }
9542
+ | { tag: 'DestinationReserve' }
9543
+ | { tag: 'RemoteReserve'; value: XcmVersionedLocation };
9544
+
9545
+ export type XcmVersionedAssetId =
9546
+ | { tag: 'V3'; value: XcmV3MultiassetAssetId }
9547
+ | { tag: 'V4'; value: StagingXcmV4AssetAssetId };
9548
+
9354
9549
  /**
9355
9550
  * Contains a variant per dispatchable extrinsic that this pallet has.
9356
9551
  **/
@@ -10986,7 +11181,7 @@ export type PolkadotRuntimeParachainsHrmpPalletEvent =
10986
11181
  };
10987
11182
  }
10988
11183
  /**
10989
- * An HRMP channel was opened between two system chains.
11184
+ * An HRMP channel was opened with a system chain.
10990
11185
  **/
10991
11186
  | {
10992
11187
  name: 'HrmpSystemChannelOpened';
@@ -14072,10 +14267,6 @@ export type PalletXcmVersionMigrationStage =
14072
14267
  | { tag: 'NotifyCurrentTargets'; value?: Bytes | undefined }
14073
14268
  | { tag: 'MigrateAndNotifyOldTargets' };
14074
14269
 
14075
- export type XcmVersionedAssetId =
14076
- | { tag: 'V3'; value: XcmV3MultiassetAssetId }
14077
- | { tag: 'V4'; value: StagingXcmV4AssetAssetId };
14078
-
14079
14270
  export type PalletXcmRemoteLockedFungibleRecord = {
14080
14271
  amount: bigint;
14081
14272
  owner: XcmVersionedLocation;
@@ -14170,10 +14361,6 @@ export type PalletXcmError =
14170
14361
  * The unlock operation cannot succeed because there are still consumers of the lock.
14171
14362
  **/
14172
14363
  | 'InUse'
14173
- /**
14174
- * Invalid non-concrete asset.
14175
- **/
14176
- | 'InvalidAssetNotConcrete'
14177
14364
  /**
14178
14365
  * Invalid asset, reserve chain could not be determined for it.
14179
14366
  **/
@@ -14189,16 +14376,7 @@ export type PalletXcmError =
14189
14376
  /**
14190
14377
  * Local XCM execution incomplete.
14191
14378
  **/
14192
- | 'LocalExecutionIncomplete'
14193
- /**
14194
- * Could not decode XCM.
14195
- **/
14196
- | 'UnableToDecode'
14197
- /**
14198
- * XCM encoded length is too large.
14199
- * Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
14200
- **/
14201
- | 'XcmTooLarge';
14379
+ | 'LocalExecutionIncomplete';
14202
14380
 
14203
14381
  /**
14204
14382
  * The `Error` enum of this pallet.
@@ -775,4 +775,47 @@ export interface ChainConsts extends GenericChainConsts {
775
775
  **/
776
776
  [name: string]: any;
777
777
  };
778
+ /**
779
+ * Pallet `StateTrieMigration`'s constants
780
+ **/
781
+ stateTrieMigration: {
782
+ /**
783
+ * Maximal number of bytes that a key can have.
784
+ *
785
+ * FRAME itself does not limit the key length.
786
+ * The concrete value must therefore depend on your storage usage.
787
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
788
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
789
+ *
790
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
791
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
792
+ *
793
+ * The migration will halt with a `Halted` event if this value is too small.
794
+ * Since there is no real penalty from over-estimating, it is advised to use a large
795
+ * value. The default is 512 byte.
796
+ *
797
+ * Some key lengths for reference:
798
+ * - [`frame_support::storage::StorageValue`]: 32 byte
799
+ * - [`frame_support::storage::StorageMap`]: 64 byte
800
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
801
+ *
802
+ * For more info see
803
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
804
+ **/
805
+ maxKeyLen: number;
806
+
807
+ /**
808
+ * Generic pallet constant
809
+ **/
810
+ [name: string]: any;
811
+ };
812
+ /**
813
+ * Pallet `AssetConversionMigration`'s constants
814
+ **/
815
+ assetConversionMigration: {
816
+ /**
817
+ * Generic pallet constant
818
+ **/
819
+ [name: string]: any;
820
+ };
778
821
  }
@@ -439,11 +439,6 @@ export interface ChainErrors extends GenericChainErrors {
439
439
  **/
440
440
  InUse: GenericPalletError;
441
441
 
442
- /**
443
- * Invalid non-concrete asset.
444
- **/
445
- InvalidAssetNotConcrete: GenericPalletError;
446
-
447
442
  /**
448
443
  * Invalid asset, reserve chain could not be determined for it.
449
444
  **/
@@ -464,17 +459,6 @@ export interface ChainErrors extends GenericChainErrors {
464
459
  **/
465
460
  LocalExecutionIncomplete: GenericPalletError;
466
461
 
467
- /**
468
- * Could not decode XCM.
469
- **/
470
- UnableToDecode: GenericPalletError;
471
-
472
- /**
473
- * XCM encoded length is too large.
474
- * Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
475
- **/
476
- XcmTooLarge: GenericPalletError;
477
-
478
462
  /**
479
463
  * Generic pallet error
480
464
  **/
@@ -1502,6 +1486,80 @@ export interface ChainErrors extends GenericChainErrors {
1502
1486
  **/
1503
1487
  BelowMinimum: GenericPalletError;
1504
1488
 
1489
+ /**
1490
+ * Generic pallet error
1491
+ **/
1492
+ [error: string]: GenericPalletError;
1493
+ };
1494
+ /**
1495
+ * Pallet `StateTrieMigration`'s errors
1496
+ **/
1497
+ stateTrieMigration: {
1498
+ /**
1499
+ * Max signed limits not respected.
1500
+ **/
1501
+ MaxSignedLimits: GenericPalletError;
1502
+
1503
+ /**
1504
+ * A key was longer than the configured maximum.
1505
+ *
1506
+ * This means that the migration halted at the current [`Progress`] and
1507
+ * can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
1508
+ * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
1509
+ * The value should only be increased to avoid a storage migration for the currently
1510
+ * stored [`crate::Progress::LastKey`].
1511
+ **/
1512
+ KeyTooLong: GenericPalletError;
1513
+
1514
+ /**
1515
+ * submitter does not have enough funds.
1516
+ **/
1517
+ NotEnoughFunds: GenericPalletError;
1518
+
1519
+ /**
1520
+ * Bad witness data provided.
1521
+ **/
1522
+ BadWitness: GenericPalletError;
1523
+
1524
+ /**
1525
+ * Signed migration is not allowed because the maximum limit is not set yet.
1526
+ **/
1527
+ SignedMigrationNotAllowed: GenericPalletError;
1528
+
1529
+ /**
1530
+ * Bad child root provided.
1531
+ **/
1532
+ BadChildRoot: GenericPalletError;
1533
+
1534
+ /**
1535
+ * Generic pallet error
1536
+ **/
1537
+ [error: string]: GenericPalletError;
1538
+ };
1539
+ /**
1540
+ * Pallet `AssetConversionMigration`'s errors
1541
+ **/
1542
+ assetConversionMigration: {
1543
+ /**
1544
+ * Provided asset pair is not supported for pool.
1545
+ **/
1546
+ InvalidAssetPair: GenericPalletError;
1547
+
1548
+ /**
1549
+ * The pool doesn't exist.
1550
+ **/
1551
+ PoolNotFound: GenericPalletError;
1552
+
1553
+ /**
1554
+ * Pool's balance cannot be zero.
1555
+ **/
1556
+ ZeroBalance: GenericPalletError;
1557
+
1558
+ /**
1559
+ * Indicates a partial transfer of balance to the new account during a migration.
1560
+ **/
1561
+ PartialTransfer: GenericPalletError;
1562
+
1505
1563
  /**
1506
1564
  * Generic pallet error
1507
1565
  **/