@dedot/chaintypes 0.12.0 → 0.14.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/astar/consts.d.ts +25 -12
- package/astar/errors.d.ts +1 -6
- package/astar/events.d.ts +0 -68
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +18 -31
- package/astar/runtime.d.ts +151 -14
- package/astar/tx.d.ts +114 -13
- package/astar/types.d.ts +185 -121
- package/moonbeam/consts.d.ts +29 -4
- package/moonbeam/errors.d.ts +16 -11
- package/moonbeam/events.d.ts +47 -2
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +38 -14
- package/moonbeam/runtime.d.ts +125 -15
- package/moonbeam/tx.d.ts +2233 -253
- package/moonbeam/types.d.ts +4110 -583
- package/package.json +2 -2
package/astar/types.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
MultiAddressLike,
|
|
21
21
|
AccountId32Like,
|
|
22
22
|
Permill,
|
|
23
|
+
Perbill,
|
|
23
24
|
Era,
|
|
24
25
|
Header,
|
|
25
26
|
UncheckedExtrinsic,
|
|
@@ -73,7 +74,6 @@ export type AstarRuntimeRuntimeEvent =
|
|
|
73
74
|
| { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
|
|
74
75
|
| { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent }
|
|
75
76
|
| { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent }
|
|
76
|
-
| { pallet: 'DmpQueue'; palletEvent: CumulusPalletDmpQueueEvent }
|
|
77
77
|
| { pallet: 'XcAssetConfig'; palletEvent: PalletXcAssetConfigEvent }
|
|
78
78
|
| { pallet: 'XTokens'; palletEvent: OrmlXtokensModuleEvent }
|
|
79
79
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
@@ -1463,59 +1463,6 @@ export type CumulusPalletXcmEvent =
|
|
|
1463
1463
|
**/
|
|
1464
1464
|
| { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] };
|
|
1465
1465
|
|
|
1466
|
-
/**
|
|
1467
|
-
* The `Event` enum of this pallet
|
|
1468
|
-
**/
|
|
1469
|
-
export type CumulusPalletDmpQueueEvent =
|
|
1470
|
-
/**
|
|
1471
|
-
* The export of pages started.
|
|
1472
|
-
**/
|
|
1473
|
-
| { name: 'StartedExport' }
|
|
1474
|
-
/**
|
|
1475
|
-
* The export of a page completed.
|
|
1476
|
-
**/
|
|
1477
|
-
| { name: 'Exported'; data: { page: number } }
|
|
1478
|
-
/**
|
|
1479
|
-
* The export of a page failed.
|
|
1480
|
-
*
|
|
1481
|
-
* This should never be emitted.
|
|
1482
|
-
**/
|
|
1483
|
-
| { name: 'ExportFailed'; data: { page: number } }
|
|
1484
|
-
/**
|
|
1485
|
-
* The export of pages completed.
|
|
1486
|
-
**/
|
|
1487
|
-
| { name: 'CompletedExport' }
|
|
1488
|
-
/**
|
|
1489
|
-
* The export of overweight messages started.
|
|
1490
|
-
**/
|
|
1491
|
-
| { name: 'StartedOverweightExport' }
|
|
1492
|
-
/**
|
|
1493
|
-
* The export of an overweight message completed.
|
|
1494
|
-
**/
|
|
1495
|
-
| { name: 'ExportedOverweight'; data: { index: bigint } }
|
|
1496
|
-
/**
|
|
1497
|
-
* The export of an overweight message failed.
|
|
1498
|
-
*
|
|
1499
|
-
* This should never be emitted.
|
|
1500
|
-
**/
|
|
1501
|
-
| { name: 'ExportOverweightFailed'; data: { index: bigint } }
|
|
1502
|
-
/**
|
|
1503
|
-
* The export of overweight messages completed.
|
|
1504
|
-
**/
|
|
1505
|
-
| { name: 'CompletedOverweightExport' }
|
|
1506
|
-
/**
|
|
1507
|
-
* The cleanup of remaining pallet storage started.
|
|
1508
|
-
**/
|
|
1509
|
-
| { name: 'StartedCleanup' }
|
|
1510
|
-
/**
|
|
1511
|
-
* Some debris was cleaned up.
|
|
1512
|
-
**/
|
|
1513
|
-
| { name: 'CleanedSome'; data: { keysRemoved: number } }
|
|
1514
|
-
/**
|
|
1515
|
-
* The cleanup of remaining pallet storage completed.
|
|
1516
|
-
**/
|
|
1517
|
-
| { name: 'Completed'; data: { error: boolean } };
|
|
1518
|
-
|
|
1519
1466
|
/**
|
|
1520
1467
|
* The `Event` enum of this pallet
|
|
1521
1468
|
**/
|
|
@@ -2371,7 +2318,6 @@ export type AstarRuntimeRuntimeCall =
|
|
|
2371
2318
|
| { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCall }
|
|
2372
2319
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall }
|
|
2373
2320
|
| { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCall }
|
|
2374
|
-
| { pallet: 'DmpQueue'; palletCall: CumulusPalletDmpQueueCall }
|
|
2375
2321
|
| { pallet: 'XcAssetConfig'; palletCall: PalletXcAssetConfigCall }
|
|
2376
2322
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCall }
|
|
2377
2323
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
|
|
@@ -2402,7 +2348,6 @@ export type AstarRuntimeRuntimeCallLike =
|
|
|
2402
2348
|
| { pallet: 'XcmpQueue'; palletCall: CumulusPalletXcmpQueueCallLike }
|
|
2403
2349
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike }
|
|
2404
2350
|
| { pallet: 'CumulusXcm'; palletCall: CumulusPalletXcmCallLike }
|
|
2405
|
-
| { pallet: 'DmpQueue'; palletCall: CumulusPalletDmpQueueCallLike }
|
|
2406
2351
|
| { pallet: 'XcAssetConfig'; palletCall: PalletXcAssetConfigCallLike }
|
|
2407
2352
|
| { pallet: 'XTokens'; palletCall: OrmlXtokensModuleCallLike }
|
|
2408
2353
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
|
|
@@ -2901,15 +2846,9 @@ export type PalletIdentityJudgement =
|
|
|
2901
2846
|
| { type: 'Erroneous' };
|
|
2902
2847
|
|
|
2903
2848
|
export type SpRuntimeMultiSignature =
|
|
2904
|
-
| { type: 'Ed25519'; value:
|
|
2905
|
-
| { type: 'Sr25519'; value:
|
|
2906
|
-
| { type: 'Ecdsa'; value:
|
|
2907
|
-
|
|
2908
|
-
export type SpCoreEd25519Signature = FixedBytes<64>;
|
|
2909
|
-
|
|
2910
|
-
export type SpCoreSr25519Signature = FixedBytes<64>;
|
|
2911
|
-
|
|
2912
|
-
export type SpCoreEcdsaSignature = FixedBytes<65>;
|
|
2849
|
+
| { type: 'Ed25519'; value: FixedBytes<64> }
|
|
2850
|
+
| { type: 'Sr25519'; value: FixedBytes<64> }
|
|
2851
|
+
| { type: 'Ecdsa'; value: FixedBytes<65> };
|
|
2913
2852
|
|
|
2914
2853
|
/**
|
|
2915
2854
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -3665,13 +3604,13 @@ export type CumulusPalletParachainSystemCallLike =
|
|
|
3665
3604
|
| { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } };
|
|
3666
3605
|
|
|
3667
3606
|
export type CumulusPrimitivesParachainInherentParachainInherentData = {
|
|
3668
|
-
validationData:
|
|
3607
|
+
validationData: PolkadotPrimitivesV7PersistedValidationData;
|
|
3669
3608
|
relayChainState: SpTrieStorageProof;
|
|
3670
3609
|
downwardMessages: Array<PolkadotCorePrimitivesInboundDownwardMessage>;
|
|
3671
3610
|
horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>;
|
|
3672
3611
|
};
|
|
3673
3612
|
|
|
3674
|
-
export type
|
|
3613
|
+
export type PolkadotPrimitivesV7PersistedValidationData = {
|
|
3675
3614
|
parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
|
|
3676
3615
|
relayParentNumber: number;
|
|
3677
3616
|
relayParentStorageRoot: H256;
|
|
@@ -3753,7 +3692,7 @@ export type PalletBalancesCall =
|
|
|
3753
3692
|
*
|
|
3754
3693
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
3755
3694
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
3756
|
-
*
|
|
3695
|
+
* possibility of churn).
|
|
3757
3696
|
**/
|
|
3758
3697
|
| { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
|
|
3759
3698
|
/**
|
|
@@ -3829,7 +3768,7 @@ export type PalletBalancesCallLike =
|
|
|
3829
3768
|
*
|
|
3830
3769
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
3831
3770
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
3832
|
-
*
|
|
3771
|
+
* possibility of churn).
|
|
3833
3772
|
**/
|
|
3834
3773
|
| { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
|
|
3835
3774
|
/**
|
|
@@ -5674,7 +5613,12 @@ export type PalletCollatorSelectionCall =
|
|
|
5674
5613
|
* Withdraw `CandidacyBond` after un-bonding period has finished.
|
|
5675
5614
|
* This call will fail called during un-bonding or if there's no `CandidacyBound` reserved.
|
|
5676
5615
|
**/
|
|
5677
|
-
| { name: 'WithdrawBond' }
|
|
5616
|
+
| { name: 'WithdrawBond' }
|
|
5617
|
+
/**
|
|
5618
|
+
* Set slash destination.
|
|
5619
|
+
* Use `Some` to deposit slashed balance into destination or `None` to burn it.
|
|
5620
|
+
**/
|
|
5621
|
+
| { name: 'SetSlashDestination'; params: { destination?: AccountId32 | undefined } };
|
|
5678
5622
|
|
|
5679
5623
|
export type PalletCollatorSelectionCallLike =
|
|
5680
5624
|
/**
|
|
@@ -5711,7 +5655,12 @@ export type PalletCollatorSelectionCallLike =
|
|
|
5711
5655
|
* Withdraw `CandidacyBond` after un-bonding period has finished.
|
|
5712
5656
|
* This call will fail called during un-bonding or if there's no `CandidacyBound` reserved.
|
|
5713
5657
|
**/
|
|
5714
|
-
| { name: 'WithdrawBond' }
|
|
5658
|
+
| { name: 'WithdrawBond' }
|
|
5659
|
+
/**
|
|
5660
|
+
* Set slash destination.
|
|
5661
|
+
* Use `Some` to deposit slashed balance into destination or `None` to burn it.
|
|
5662
|
+
**/
|
|
5663
|
+
| { name: 'SetSlashDestination'; params: { destination?: AccountId32Like | undefined } };
|
|
5715
5664
|
|
|
5716
5665
|
/**
|
|
5717
5666
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5776,9 +5725,7 @@ export type PalletSessionCallLike =
|
|
|
5776
5725
|
|
|
5777
5726
|
export type AstarRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public };
|
|
5778
5727
|
|
|
5779
|
-
export type SpConsensusAuraSr25519AppSr25519Public =
|
|
5780
|
-
|
|
5781
|
-
export type SpCoreSr25519Public = FixedBytes<32>;
|
|
5728
|
+
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
5782
5729
|
|
|
5783
5730
|
/**
|
|
5784
5731
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5999,7 +5946,7 @@ export type PalletXcmCall =
|
|
|
5999
5946
|
*
|
|
6000
5947
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6001
5948
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
6002
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
5949
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6003
5950
|
* at risk.
|
|
6004
5951
|
*
|
|
6005
5952
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -6029,7 +5976,7 @@ export type PalletXcmCall =
|
|
|
6029
5976
|
*
|
|
6030
5977
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6031
5978
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
6032
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
5979
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6033
5980
|
* at risk.
|
|
6034
5981
|
*
|
|
6035
5982
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -6068,7 +6015,7 @@ export type PalletXcmCall =
|
|
|
6068
6015
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6069
6016
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
6070
6017
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
6071
|
-
* operation will fail and the assets
|
|
6018
|
+
* operation will fail and the sent assets may be at risk.
|
|
6072
6019
|
*
|
|
6073
6020
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
6074
6021
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -6114,7 +6061,69 @@ export type PalletXcmCall =
|
|
|
6114
6061
|
* was the latest when they were trapped.
|
|
6115
6062
|
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
6116
6063
|
**/
|
|
6117
|
-
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
6064
|
+
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
6065
|
+
/**
|
|
6066
|
+
* Transfer assets from the local chain to the destination chain using explicit transfer
|
|
6067
|
+
* types for assets and fees.
|
|
6068
|
+
*
|
|
6069
|
+
* `assets` must have same reserve location or may be teleportable to `dest`. Caller must
|
|
6070
|
+
* provide the `assets_transfer_type` to be used for `assets`:
|
|
6071
|
+
* - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
|
|
6072
|
+
* chain and forward a notification XCM to `dest` to mint and deposit reserve-based
|
|
6073
|
+
* assets to `beneficiary`.
|
|
6074
|
+
* - `TransferType::DestinationReserve`: burn local assets and forward a notification to
|
|
6075
|
+
* `dest` chain to withdraw the reserve assets from this chain's sovereign account and
|
|
6076
|
+
* deposit them to `beneficiary`.
|
|
6077
|
+
* - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
|
|
6078
|
+
* chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
|
|
6079
|
+
* XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
|
|
6080
|
+
* the remote `reserve` is Asset Hub.
|
|
6081
|
+
* - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
|
|
6082
|
+
* mint/teleport assets and deposit them to `beneficiary`.
|
|
6083
|
+
*
|
|
6084
|
+
* On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
|
|
6085
|
+
* buy execution using transferred `assets` identified by `remote_fees_id`.
|
|
6086
|
+
* Make sure enough of the specified `remote_fees_id` asset is included in the given list
|
|
6087
|
+
* of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
|
|
6088
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6089
|
+
* at risk.
|
|
6090
|
+
*
|
|
6091
|
+
* `remote_fees_id` may use different transfer type than rest of `assets` and can be
|
|
6092
|
+
* specified through `fees_transfer_type`.
|
|
6093
|
+
*
|
|
6094
|
+
* The caller needs to specify what should happen to the transferred assets once they reach
|
|
6095
|
+
* the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
|
|
6096
|
+
* contains the instructions to execute on `dest` as a final step.
|
|
6097
|
+
* This is usually as simple as:
|
|
6098
|
+
* `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
|
|
6099
|
+
* but could be something more exotic like sending the `assets` even further.
|
|
6100
|
+
*
|
|
6101
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
6102
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
6103
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
6104
|
+
* relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
|
|
6105
|
+
* parachain across a bridge to another ecosystem destination.
|
|
6106
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
6107
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
6108
|
+
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
6109
|
+
* - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
|
|
6110
|
+
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
6111
|
+
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
6112
|
+
* transfer, which also determines what happens to the assets on the destination chain.
|
|
6113
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
6114
|
+
**/
|
|
6115
|
+
| {
|
|
6116
|
+
name: 'TransferAssetsUsingTypeAndThen';
|
|
6117
|
+
params: {
|
|
6118
|
+
dest: XcmVersionedLocation;
|
|
6119
|
+
assets: XcmVersionedAssets;
|
|
6120
|
+
assetsTransferType: StagingXcmExecutorAssetTransferTransferType;
|
|
6121
|
+
remoteFeesId: XcmVersionedAssetId;
|
|
6122
|
+
feesTransferType: StagingXcmExecutorAssetTransferTransferType;
|
|
6123
|
+
customXcmOnDest: XcmVersionedXcm;
|
|
6124
|
+
weightLimit: XcmV3WeightLimit;
|
|
6125
|
+
};
|
|
6126
|
+
};
|
|
6118
6127
|
|
|
6119
6128
|
export type PalletXcmCallLike =
|
|
6120
6129
|
| { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
|
|
@@ -6249,7 +6258,7 @@ export type PalletXcmCallLike =
|
|
|
6249
6258
|
*
|
|
6250
6259
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6251
6260
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
6252
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
6261
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6253
6262
|
* at risk.
|
|
6254
6263
|
*
|
|
6255
6264
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -6279,7 +6288,7 @@ export type PalletXcmCallLike =
|
|
|
6279
6288
|
*
|
|
6280
6289
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6281
6290
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
6282
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
6291
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6283
6292
|
* at risk.
|
|
6284
6293
|
*
|
|
6285
6294
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -6318,7 +6327,7 @@ export type PalletXcmCallLike =
|
|
|
6318
6327
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
6319
6328
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
6320
6329
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
6321
|
-
* operation will fail and the assets
|
|
6330
|
+
* operation will fail and the sent assets may be at risk.
|
|
6322
6331
|
*
|
|
6323
6332
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
6324
6333
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -6364,7 +6373,69 @@ export type PalletXcmCallLike =
|
|
|
6364
6373
|
* was the latest when they were trapped.
|
|
6365
6374
|
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
6366
6375
|
**/
|
|
6367
|
-
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
6376
|
+
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
6377
|
+
/**
|
|
6378
|
+
* Transfer assets from the local chain to the destination chain using explicit transfer
|
|
6379
|
+
* types for assets and fees.
|
|
6380
|
+
*
|
|
6381
|
+
* `assets` must have same reserve location or may be teleportable to `dest`. Caller must
|
|
6382
|
+
* provide the `assets_transfer_type` to be used for `assets`:
|
|
6383
|
+
* - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
|
|
6384
|
+
* chain and forward a notification XCM to `dest` to mint and deposit reserve-based
|
|
6385
|
+
* assets to `beneficiary`.
|
|
6386
|
+
* - `TransferType::DestinationReserve`: burn local assets and forward a notification to
|
|
6387
|
+
* `dest` chain to withdraw the reserve assets from this chain's sovereign account and
|
|
6388
|
+
* deposit them to `beneficiary`.
|
|
6389
|
+
* - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
|
|
6390
|
+
* chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
|
|
6391
|
+
* XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
|
|
6392
|
+
* the remote `reserve` is Asset Hub.
|
|
6393
|
+
* - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
|
|
6394
|
+
* mint/teleport assets and deposit them to `beneficiary`.
|
|
6395
|
+
*
|
|
6396
|
+
* On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
|
|
6397
|
+
* buy execution using transferred `assets` identified by `remote_fees_id`.
|
|
6398
|
+
* Make sure enough of the specified `remote_fees_id` asset is included in the given list
|
|
6399
|
+
* of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
|
|
6400
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
6401
|
+
* at risk.
|
|
6402
|
+
*
|
|
6403
|
+
* `remote_fees_id` may use different transfer type than rest of `assets` and can be
|
|
6404
|
+
* specified through `fees_transfer_type`.
|
|
6405
|
+
*
|
|
6406
|
+
* The caller needs to specify what should happen to the transferred assets once they reach
|
|
6407
|
+
* the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
|
|
6408
|
+
* contains the instructions to execute on `dest` as a final step.
|
|
6409
|
+
* This is usually as simple as:
|
|
6410
|
+
* `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
|
|
6411
|
+
* but could be something more exotic like sending the `assets` even further.
|
|
6412
|
+
*
|
|
6413
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
6414
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
6415
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
6416
|
+
* relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
|
|
6417
|
+
* parachain across a bridge to another ecosystem destination.
|
|
6418
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
6419
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
6420
|
+
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
6421
|
+
* - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
|
|
6422
|
+
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
6423
|
+
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
6424
|
+
* transfer, which also determines what happens to the assets on the destination chain.
|
|
6425
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
6426
|
+
**/
|
|
6427
|
+
| {
|
|
6428
|
+
name: 'TransferAssetsUsingTypeAndThen';
|
|
6429
|
+
params: {
|
|
6430
|
+
dest: XcmVersionedLocation;
|
|
6431
|
+
assets: XcmVersionedAssets;
|
|
6432
|
+
assetsTransferType: StagingXcmExecutorAssetTransferTransferType;
|
|
6433
|
+
remoteFeesId: XcmVersionedAssetId;
|
|
6434
|
+
feesTransferType: StagingXcmExecutorAssetTransferTransferType;
|
|
6435
|
+
customXcmOnDest: XcmVersionedXcm;
|
|
6436
|
+
weightLimit: XcmV3WeightLimit;
|
|
6437
|
+
};
|
|
6438
|
+
};
|
|
6368
6439
|
|
|
6369
6440
|
export type XcmVersionedXcm =
|
|
6370
6441
|
| { type: 'V2'; value: XcmV2Xcm }
|
|
@@ -6625,19 +6696,22 @@ export type XcmV3MultiassetWildMultiAsset =
|
|
|
6625
6696
|
|
|
6626
6697
|
export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible';
|
|
6627
6698
|
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6699
|
+
export type StagingXcmExecutorAssetTransferTransferType =
|
|
6700
|
+
| { type: 'Teleport' }
|
|
6701
|
+
| { type: 'LocalReserve' }
|
|
6702
|
+
| { type: 'DestinationReserve' }
|
|
6703
|
+
| { type: 'RemoteReserve'; value: XcmVersionedLocation };
|
|
6632
6704
|
|
|
6633
|
-
export type
|
|
6705
|
+
export type XcmVersionedAssetId =
|
|
6706
|
+
| { type: 'V3'; value: XcmV3MultiassetAssetId }
|
|
6707
|
+
| { type: 'V4'; value: StagingXcmV4AssetAssetId };
|
|
6634
6708
|
|
|
6635
6709
|
/**
|
|
6636
6710
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
6637
6711
|
**/
|
|
6638
|
-
export type
|
|
6712
|
+
export type CumulusPalletXcmCall = null;
|
|
6639
6713
|
|
|
6640
|
-
export type
|
|
6714
|
+
export type CumulusPalletXcmCallLike = null;
|
|
6641
6715
|
|
|
6642
6716
|
/**
|
|
6643
6717
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -7988,7 +8062,7 @@ export type PalletProxyError =
|
|
|
7988
8062
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
7989
8063
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
7990
8064
|
paraHeadHash?: H256 | undefined;
|
|
7991
|
-
consumedGoAheadSignal?:
|
|
8065
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
|
|
7992
8066
|
};
|
|
7993
8067
|
|
|
7994
8068
|
export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
@@ -8001,21 +8075,21 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
|
8001
8075
|
|
|
8002
8076
|
export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
|
|
8003
8077
|
|
|
8004
|
-
export type
|
|
8078
|
+
export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead';
|
|
8005
8079
|
|
|
8006
8080
|
export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
|
|
8007
8081
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
8008
8082
|
hrmpWatermark?: number | undefined;
|
|
8009
|
-
consumedGoAheadSignal?:
|
|
8083
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
|
|
8010
8084
|
};
|
|
8011
8085
|
|
|
8012
|
-
export type
|
|
8086
|
+
export type PolkadotPrimitivesV7UpgradeRestriction = 'Present';
|
|
8013
8087
|
|
|
8014
8088
|
export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
|
|
8015
8089
|
dmqMqcHead: H256;
|
|
8016
8090
|
relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
|
|
8017
|
-
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
8018
|
-
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
8091
|
+
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
|
|
8092
|
+
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
|
|
8019
8093
|
};
|
|
8020
8094
|
|
|
8021
8095
|
export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
|
|
@@ -8023,7 +8097,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
|
|
|
8023
8097
|
remainingSize: number;
|
|
8024
8098
|
};
|
|
8025
8099
|
|
|
8026
|
-
export type
|
|
8100
|
+
export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
|
|
8027
8101
|
maxCapacity: number;
|
|
8028
8102
|
maxTotalSize: number;
|
|
8029
8103
|
maxMessageSize: number;
|
|
@@ -8032,7 +8106,7 @@ export type PolkadotPrimitivesV6AbridgedHrmpChannel = {
|
|
|
8032
8106
|
mqcHead?: H256 | undefined;
|
|
8033
8107
|
};
|
|
8034
8108
|
|
|
8035
|
-
export type
|
|
8109
|
+
export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
|
|
8036
8110
|
maxCodeSize: number;
|
|
8037
8111
|
maxHeadDataSize: number;
|
|
8038
8112
|
maxUpwardQueueCount: number;
|
|
@@ -8042,10 +8116,10 @@ export type PolkadotPrimitivesV6AbridgedHostConfiguration = {
|
|
|
8042
8116
|
hrmpMaxMessageNumPerCandidate: number;
|
|
8043
8117
|
validationUpgradeCooldown: number;
|
|
8044
8118
|
validationUpgradeDelay: number;
|
|
8045
|
-
asyncBackingParams:
|
|
8119
|
+
asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
|
|
8046
8120
|
};
|
|
8047
8121
|
|
|
8048
|
-
export type
|
|
8122
|
+
export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = {
|
|
8049
8123
|
maxCandidateDepth: number;
|
|
8050
8124
|
allowedAncestryLen: number;
|
|
8051
8125
|
};
|
|
@@ -8271,14 +8345,13 @@ export type PalletDappStakingV3TierParameters = {
|
|
|
8271
8345
|
};
|
|
8272
8346
|
|
|
8273
8347
|
export type PalletDappStakingV3TierThreshold =
|
|
8274
|
-
| { type: '
|
|
8275
|
-
| { type: '
|
|
8348
|
+
| { type: 'FixedPercentage'; value: { requiredPercentage: Perbill } }
|
|
8349
|
+
| { type: 'DynamicPercentage'; value: { percentage: Perbill; minimumRequiredPercentage: Perbill } };
|
|
8276
8350
|
|
|
8277
8351
|
export type PalletDappStakingV3TiersConfiguration = {
|
|
8278
|
-
numberOfSlots: number;
|
|
8279
8352
|
slotsPerTier: Array<number>;
|
|
8280
8353
|
rewardPortion: Array<Permill>;
|
|
8281
|
-
tierThresholds: Array<
|
|
8354
|
+
tierThresholds: Array<bigint>;
|
|
8282
8355
|
};
|
|
8283
8356
|
|
|
8284
8357
|
export type PalletDappStakingV3DAppTierRewards = {
|
|
@@ -8757,10 +8830,6 @@ export type PalletXcmVersionMigrationStage =
|
|
|
8757
8830
|
| { type: 'NotifyCurrentTargets'; value?: Bytes | undefined }
|
|
8758
8831
|
| { type: 'MigrateAndNotifyOldTargets' };
|
|
8759
8832
|
|
|
8760
|
-
export type XcmVersionedAssetId =
|
|
8761
|
-
| { type: 'V3'; value: XcmV3MultiassetAssetId }
|
|
8762
|
-
| { type: 'V4'; value: StagingXcmV4AssetAssetId };
|
|
8763
|
-
|
|
8764
8833
|
export type PalletXcmRemoteLockedFungibleRecord = {
|
|
8765
8834
|
amount: bigint;
|
|
8766
8835
|
owner: XcmVersionedLocation;
|
|
@@ -8855,10 +8924,6 @@ export type PalletXcmError =
|
|
|
8855
8924
|
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
8856
8925
|
**/
|
|
8857
8926
|
| 'InUse'
|
|
8858
|
-
/**
|
|
8859
|
-
* Invalid non-concrete asset.
|
|
8860
|
-
**/
|
|
8861
|
-
| 'InvalidAssetNotConcrete'
|
|
8862
8927
|
/**
|
|
8863
8928
|
* Invalid asset, reserve chain could not be determined for it.
|
|
8864
8929
|
**/
|
|
@@ -8876,15 +8941,6 @@ export type PalletXcmError =
|
|
|
8876
8941
|
**/
|
|
8877
8942
|
| 'LocalExecutionIncomplete';
|
|
8878
8943
|
|
|
8879
|
-
export type CumulusPalletDmpQueueMigrationState =
|
|
8880
|
-
| { type: 'NotStarted' }
|
|
8881
|
-
| { type: 'StartedExport'; value: { nextBeginUsed: number } }
|
|
8882
|
-
| { type: 'CompletedExport' }
|
|
8883
|
-
| { type: 'StartedOverweightExport'; value: { nextOverweightIndex: bigint } }
|
|
8884
|
-
| { type: 'CompletedOverweightExport' }
|
|
8885
|
-
| { type: 'StartedCleanup'; value: { cursor?: Bytes | undefined } }
|
|
8886
|
-
| { type: 'Completed' };
|
|
8887
|
-
|
|
8888
8944
|
/**
|
|
8889
8945
|
* The `Error` enum of this pallet.
|
|
8890
8946
|
**/
|
|
@@ -9457,7 +9513,7 @@ export type PalletContractsError =
|
|
|
9457
9513
|
**/
|
|
9458
9514
|
| 'CodeRejected'
|
|
9459
9515
|
/**
|
|
9460
|
-
* An
|
|
9516
|
+
* An indeterministic code was used in a context where this is not permitted.
|
|
9461
9517
|
**/
|
|
9462
9518
|
| 'Indeterministic'
|
|
9463
9519
|
/**
|
|
@@ -9646,6 +9702,14 @@ export type PalletContractsPrimitivesCodeUploadReturnValue = { codeHash: H256; d
|
|
|
9646
9702
|
|
|
9647
9703
|
export type PalletContractsPrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed' | 'MigrationInProgress';
|
|
9648
9704
|
|
|
9705
|
+
export type XcmFeePaymentRuntimeApiError =
|
|
9706
|
+
| 'Unimplemented'
|
|
9707
|
+
| 'VersionedConversionFailed'
|
|
9708
|
+
| 'WeightNotComputable'
|
|
9709
|
+
| 'UnhandledXcmVersion'
|
|
9710
|
+
| 'AssetNotFound'
|
|
9711
|
+
| 'Unroutable';
|
|
9712
|
+
|
|
9649
9713
|
export type AstarRuntimeRuntimeError =
|
|
9650
9714
|
| { pallet: 'System'; palletError: FrameSystemError }
|
|
9651
9715
|
| { pallet: 'Utility'; palletError: PalletUtilityError }
|
package/moonbeam/consts.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
9
10
|
SpWeightsWeightV2Weight,
|
|
10
11
|
PalletReferendaTrackInfo,
|
|
11
12
|
FrameSupportPalletId,
|
|
@@ -38,7 +39,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
38
39
|
dbWeight: SpWeightsRuntimeDbWeight;
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
* Get the chain's
|
|
42
|
+
* Get the chain's in-code version.
|
|
42
43
|
**/
|
|
43
44
|
version: RuntimeVersion;
|
|
44
45
|
|
|
@@ -60,6 +61,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
60
61
|
* Pallet `ParachainSystem`'s constants
|
|
61
62
|
**/
|
|
62
63
|
parachainSystem: {
|
|
64
|
+
/**
|
|
65
|
+
* Returns the parachain ID we are running with.
|
|
66
|
+
**/
|
|
67
|
+
selfParaId: PolkadotParachainPrimitivesPrimitivesId;
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* Generic pallet constant
|
|
65
71
|
**/
|
|
@@ -121,11 +127,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
121
127
|
/**
|
|
122
128
|
* The maximum number of locks that should exist on an account.
|
|
123
129
|
* Not strictly enforced, but used for weight estimation.
|
|
130
|
+
*
|
|
131
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
124
132
|
**/
|
|
125
133
|
maxLocks: number;
|
|
126
134
|
|
|
127
135
|
/**
|
|
128
136
|
* The maximum number of named reserves that can exist on an account.
|
|
137
|
+
*
|
|
138
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
129
139
|
**/
|
|
130
140
|
maxReserves: number;
|
|
131
141
|
|
|
@@ -438,7 +448,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
438
448
|
maxSubAccounts: number;
|
|
439
449
|
|
|
440
450
|
/**
|
|
441
|
-
*
|
|
451
|
+
* Maximum number of registrars allowed in the system. Needed to bound the complexity
|
|
442
452
|
* of, e.g., updating judgements.
|
|
443
453
|
**/
|
|
444
454
|
maxRegistrars: number;
|
|
@@ -877,6 +887,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
877
887
|
**/
|
|
878
888
|
baseXcmWeight: SpWeightsWeightV2Weight;
|
|
879
889
|
|
|
890
|
+
/**
|
|
891
|
+
* The id of the RateLimiter.
|
|
892
|
+
**/
|
|
893
|
+
rateLimiterId: [];
|
|
894
|
+
|
|
880
895
|
/**
|
|
881
896
|
* Generic pallet constant
|
|
882
897
|
**/
|
|
@@ -943,13 +958,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
943
958
|
|
|
944
959
|
/**
|
|
945
960
|
* The amount of weight (if any) which should be provided to the message queue for
|
|
946
|
-
* servicing enqueued items
|
|
961
|
+
* servicing enqueued items `on_initialize`.
|
|
947
962
|
*
|
|
948
963
|
* This may be legitimately `None` in the case that you will call
|
|
949
|
-
* `ServiceQueues::service_queues` manually
|
|
964
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
965
|
+
* it run in `on_idle`.
|
|
950
966
|
**/
|
|
951
967
|
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
952
968
|
|
|
969
|
+
/**
|
|
970
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
971
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
972
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
973
|
+
*
|
|
974
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
975
|
+
**/
|
|
976
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
977
|
+
|
|
953
978
|
/**
|
|
954
979
|
* Generic pallet constant
|
|
955
980
|
**/
|