@dedot/chaintypes 0.37.0 → 0.38.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/moonbeam/consts.d.ts +30 -52
- package/moonbeam/errors.d.ts +26 -117
- package/moonbeam/events.d.ts +55 -118
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +89 -36
- package/moonbeam/runtime.d.ts +76 -9
- package/moonbeam/tx.d.ts +93 -412
- package/moonbeam/types.d.ts +241 -672
- package/package.json +2 -2
package/moonbeam/tx.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import type {
|
|
|
28
28
|
FrameSystemEventRecord,
|
|
29
29
|
CumulusPrimitivesParachainInherentParachainInherentData,
|
|
30
30
|
PalletBalancesAdjustmentDirection,
|
|
31
|
+
PalletParachainStakingInflationDistributionConfig,
|
|
31
32
|
PalletAuthorSlotFilterNumNonZeroU32,
|
|
32
33
|
NimbusPrimitivesNimbusCryptoPublic,
|
|
33
34
|
MoonbeamRuntimeOriginCaller,
|
|
@@ -36,6 +37,7 @@ import type {
|
|
|
36
37
|
PalletIdentityLegacyIdentityInfo,
|
|
37
38
|
PalletIdentityJudgement,
|
|
38
39
|
PalletMultisigTimepoint,
|
|
40
|
+
MoonbeamRuntimeRuntimeParamsRuntimeParameters,
|
|
39
41
|
EthereumTransactionTransactionV2,
|
|
40
42
|
PalletConvictionVotingVoteAccountVote,
|
|
41
43
|
PalletConvictionVotingConviction,
|
|
@@ -51,12 +53,10 @@ import type {
|
|
|
51
53
|
XcmVersionedAssetId,
|
|
52
54
|
MoonbeamRuntimeXcmConfigAssetType,
|
|
53
55
|
MoonbeamRuntimeAssetConfigAssetRegistrarMetadata,
|
|
54
|
-
MoonbeamRuntimeXcmConfigCurrencyId,
|
|
55
|
-
XcmVersionedAsset,
|
|
56
56
|
MoonbeamRuntimeXcmConfigTransactors,
|
|
57
57
|
PalletXcmTransactorCurrencyPayment,
|
|
58
58
|
PalletXcmTransactorTransactWeights,
|
|
59
|
-
|
|
59
|
+
XcmV3OriginKind,
|
|
60
60
|
PalletXcmTransactorHrmpOperation,
|
|
61
61
|
XcmPrimitivesEthereumXcmEthereumXcmTransaction,
|
|
62
62
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
@@ -749,6 +749,35 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
749
749
|
>
|
|
750
750
|
>;
|
|
751
751
|
|
|
752
|
+
/**
|
|
753
|
+
* Burn the specified liquid free balance from the origin account.
|
|
754
|
+
*
|
|
755
|
+
* If the origin's account ends up below the existential deposit as a result
|
|
756
|
+
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
757
|
+
*
|
|
758
|
+
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
759
|
+
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
760
|
+
*
|
|
761
|
+
* @param {bigint} value
|
|
762
|
+
* @param {boolean} keepAlive
|
|
763
|
+
**/
|
|
764
|
+
burn: GenericTxCall<
|
|
765
|
+
Rv,
|
|
766
|
+
(
|
|
767
|
+
value: bigint,
|
|
768
|
+
keepAlive: boolean,
|
|
769
|
+
) => ChainSubmittableExtrinsic<
|
|
770
|
+
Rv,
|
|
771
|
+
{
|
|
772
|
+
pallet: 'Balances';
|
|
773
|
+
palletCall: {
|
|
774
|
+
name: 'Burn';
|
|
775
|
+
params: { value: bigint; keepAlive: boolean };
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
>
|
|
779
|
+
>;
|
|
780
|
+
|
|
752
781
|
/**
|
|
753
782
|
* Generic pallet tx call
|
|
754
783
|
**/
|
|
@@ -798,6 +827,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
798
827
|
>;
|
|
799
828
|
|
|
800
829
|
/**
|
|
830
|
+
* Deprecated: please use `set_inflation_distribution_config` instead.
|
|
831
|
+
*
|
|
801
832
|
* Set the account that will hold funds set aside for parachain bond
|
|
802
833
|
*
|
|
803
834
|
* @param {AccountId20Like} new_
|
|
@@ -817,6 +848,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
817
848
|
>;
|
|
818
849
|
|
|
819
850
|
/**
|
|
851
|
+
* Deprecated: please use `set_inflation_distribution_config` instead.
|
|
852
|
+
*
|
|
820
853
|
* Set the percent of inflation set aside for parachain bond
|
|
821
854
|
*
|
|
822
855
|
* @param {Percent} new_
|
|
@@ -1443,6 +1476,25 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1443
1476
|
>
|
|
1444
1477
|
>;
|
|
1445
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* Set the inflation distribution configuration.
|
|
1481
|
+
*
|
|
1482
|
+
* @param {PalletParachainStakingInflationDistributionConfig} new_
|
|
1483
|
+
**/
|
|
1484
|
+
setInflationDistributionConfig: GenericTxCall<
|
|
1485
|
+
Rv,
|
|
1486
|
+
(new_: PalletParachainStakingInflationDistributionConfig) => ChainSubmittableExtrinsic<
|
|
1487
|
+
Rv,
|
|
1488
|
+
{
|
|
1489
|
+
pallet: 'ParachainStaking';
|
|
1490
|
+
palletCall: {
|
|
1491
|
+
name: 'SetInflationDistributionConfig';
|
|
1492
|
+
params: { new: PalletParachainStakingInflationDistributionConfig };
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
>
|
|
1496
|
+
>;
|
|
1497
|
+
|
|
1446
1498
|
/**
|
|
1447
1499
|
* Generic pallet tx call
|
|
1448
1500
|
**/
|
|
@@ -3263,6 +3315,37 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3263
3315
|
**/
|
|
3264
3316
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3265
3317
|
};
|
|
3318
|
+
/**
|
|
3319
|
+
* Pallet `Parameters`'s transaction calls
|
|
3320
|
+
**/
|
|
3321
|
+
parameters: {
|
|
3322
|
+
/**
|
|
3323
|
+
* Set the value of a parameter.
|
|
3324
|
+
*
|
|
3325
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3326
|
+
* deleted by setting them to `None`.
|
|
3327
|
+
*
|
|
3328
|
+
* @param {MoonbeamRuntimeRuntimeParamsRuntimeParameters} keyValue
|
|
3329
|
+
**/
|
|
3330
|
+
setParameter: GenericTxCall<
|
|
3331
|
+
Rv,
|
|
3332
|
+
(keyValue: MoonbeamRuntimeRuntimeParamsRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
3333
|
+
Rv,
|
|
3334
|
+
{
|
|
3335
|
+
pallet: 'Parameters';
|
|
3336
|
+
palletCall: {
|
|
3337
|
+
name: 'SetParameter';
|
|
3338
|
+
params: { keyValue: MoonbeamRuntimeRuntimeParamsRuntimeParameters };
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
>
|
|
3342
|
+
>;
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
* Generic pallet tx call
|
|
3346
|
+
**/
|
|
3347
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
3348
|
+
};
|
|
3266
3349
|
/**
|
|
3267
3350
|
* Pallet `EVM`'s transaction calls
|
|
3268
3351
|
**/
|
|
@@ -4947,112 +5030,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4947
5030
|
* Pallet `Treasury`'s transaction calls
|
|
4948
5031
|
**/
|
|
4949
5032
|
treasury: {
|
|
4950
|
-
/**
|
|
4951
|
-
* Put forward a suggestion for spending.
|
|
4952
|
-
*
|
|
4953
|
-
* ## Dispatch Origin
|
|
4954
|
-
*
|
|
4955
|
-
* Must be signed.
|
|
4956
|
-
*
|
|
4957
|
-
* ## Details
|
|
4958
|
-
* A deposit proportional to the value is reserved and slashed if the proposal is rejected.
|
|
4959
|
-
* It is returned once the proposal is awarded.
|
|
4960
|
-
*
|
|
4961
|
-
* ### Complexity
|
|
4962
|
-
* - O(1)
|
|
4963
|
-
*
|
|
4964
|
-
* ## Events
|
|
4965
|
-
*
|
|
4966
|
-
* Emits [`Event::Proposed`] if successful.
|
|
4967
|
-
*
|
|
4968
|
-
* @param {bigint} value
|
|
4969
|
-
* @param {AccountId20Like} beneficiary
|
|
4970
|
-
**/
|
|
4971
|
-
proposeSpend: GenericTxCall<
|
|
4972
|
-
Rv,
|
|
4973
|
-
(
|
|
4974
|
-
value: bigint,
|
|
4975
|
-
beneficiary: AccountId20Like,
|
|
4976
|
-
) => ChainSubmittableExtrinsic<
|
|
4977
|
-
Rv,
|
|
4978
|
-
{
|
|
4979
|
-
pallet: 'Treasury';
|
|
4980
|
-
palletCall: {
|
|
4981
|
-
name: 'ProposeSpend';
|
|
4982
|
-
params: { value: bigint; beneficiary: AccountId20Like };
|
|
4983
|
-
};
|
|
4984
|
-
}
|
|
4985
|
-
>
|
|
4986
|
-
>;
|
|
4987
|
-
|
|
4988
|
-
/**
|
|
4989
|
-
* Reject a proposed spend.
|
|
4990
|
-
*
|
|
4991
|
-
* ## Dispatch Origin
|
|
4992
|
-
*
|
|
4993
|
-
* Must be [`Config::RejectOrigin`].
|
|
4994
|
-
*
|
|
4995
|
-
* ## Details
|
|
4996
|
-
* The original deposit will be slashed.
|
|
4997
|
-
*
|
|
4998
|
-
* ### Complexity
|
|
4999
|
-
* - O(1)
|
|
5000
|
-
*
|
|
5001
|
-
* ## Events
|
|
5002
|
-
*
|
|
5003
|
-
* Emits [`Event::Rejected`] if successful.
|
|
5004
|
-
*
|
|
5005
|
-
* @param {number} proposalId
|
|
5006
|
-
**/
|
|
5007
|
-
rejectProposal: GenericTxCall<
|
|
5008
|
-
Rv,
|
|
5009
|
-
(proposalId: number) => ChainSubmittableExtrinsic<
|
|
5010
|
-
Rv,
|
|
5011
|
-
{
|
|
5012
|
-
pallet: 'Treasury';
|
|
5013
|
-
palletCall: {
|
|
5014
|
-
name: 'RejectProposal';
|
|
5015
|
-
params: { proposalId: number };
|
|
5016
|
-
};
|
|
5017
|
-
}
|
|
5018
|
-
>
|
|
5019
|
-
>;
|
|
5020
|
-
|
|
5021
|
-
/**
|
|
5022
|
-
* Approve a proposal.
|
|
5023
|
-
*
|
|
5024
|
-
* ## Dispatch Origin
|
|
5025
|
-
*
|
|
5026
|
-
* Must be [`Config::ApproveOrigin`].
|
|
5027
|
-
*
|
|
5028
|
-
* ## Details
|
|
5029
|
-
*
|
|
5030
|
-
* At a later time, the proposal will be allocated to the beneficiary and the original
|
|
5031
|
-
* deposit will be returned.
|
|
5032
|
-
*
|
|
5033
|
-
* ### Complexity
|
|
5034
|
-
* - O(1).
|
|
5035
|
-
*
|
|
5036
|
-
* ## Events
|
|
5037
|
-
*
|
|
5038
|
-
* No events are emitted from this dispatch.
|
|
5039
|
-
*
|
|
5040
|
-
* @param {number} proposalId
|
|
5041
|
-
**/
|
|
5042
|
-
approveProposal: GenericTxCall<
|
|
5043
|
-
Rv,
|
|
5044
|
-
(proposalId: number) => ChainSubmittableExtrinsic<
|
|
5045
|
-
Rv,
|
|
5046
|
-
{
|
|
5047
|
-
pallet: 'Treasury';
|
|
5048
|
-
palletCall: {
|
|
5049
|
-
name: 'ApproveProposal';
|
|
5050
|
-
params: { proposalId: number };
|
|
5051
|
-
};
|
|
5052
|
-
}
|
|
5053
|
-
>
|
|
5054
|
-
>;
|
|
5055
|
-
|
|
5056
5033
|
/**
|
|
5057
5034
|
* Propose and approve a spend of treasury funds.
|
|
5058
5035
|
*
|
|
@@ -5188,7 +5165,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5188
5165
|
*
|
|
5189
5166
|
* ## Dispatch Origin
|
|
5190
5167
|
*
|
|
5191
|
-
* Must be signed
|
|
5168
|
+
* Must be signed
|
|
5192
5169
|
*
|
|
5193
5170
|
* ## Details
|
|
5194
5171
|
*
|
|
@@ -5446,15 +5423,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5446
5423
|
**/
|
|
5447
5424
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
5448
5425
|
};
|
|
5449
|
-
/**
|
|
5450
|
-
* Pallet `DmpQueue`'s transaction calls
|
|
5451
|
-
**/
|
|
5452
|
-
dmpQueue: {
|
|
5453
|
-
/**
|
|
5454
|
-
* Generic pallet tx call
|
|
5455
|
-
**/
|
|
5456
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
5457
|
-
};
|
|
5458
5426
|
/**
|
|
5459
5427
|
* Pallet `PolkadotXcm`'s transaction calls
|
|
5460
5428
|
**/
|
|
@@ -5995,7 +5963,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5995
5963
|
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
5996
5964
|
* fee on the `dest` (and possibly reserve) chains.
|
|
5997
5965
|
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
5998
|
-
* - `remote_fees_id`: One of the included `assets` to be
|
|
5966
|
+
* - `remote_fees_id`: One of the included `assets` to be used to pay fees.
|
|
5999
5967
|
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
6000
5968
|
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
6001
5969
|
* transfer, which also determines what happens to the assets on the destination chain.
|
|
@@ -6059,7 +6027,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6059
6027
|
*
|
|
6060
6028
|
* Parameters:
|
|
6061
6029
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
6062
|
-
* an existing asset.
|
|
6030
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
6063
6031
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
6064
6032
|
* member of the asset class's admin team.
|
|
6065
6033
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -6101,7 +6069,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6101
6069
|
* Unlike `create`, no funds are reserved.
|
|
6102
6070
|
*
|
|
6103
6071
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
6104
|
-
* an existing asset.
|
|
6072
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
6105
6073
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
6106
6074
|
* over this asset, but may later change and configure the permissions using
|
|
6107
6075
|
* `transfer_ownership` and `set_team`.
|
|
@@ -7325,293 +7293,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7325
7293
|
**/
|
|
7326
7294
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
7327
7295
|
};
|
|
7328
|
-
/**
|
|
7329
|
-
* Pallet `XTokens`'s transaction calls
|
|
7330
|
-
**/
|
|
7331
|
-
xTokens: {
|
|
7332
|
-
/**
|
|
7333
|
-
* Transfer native currencies.
|
|
7334
|
-
*
|
|
7335
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7336
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7337
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7338
|
-
* received.
|
|
7339
|
-
*
|
|
7340
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7341
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7342
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7343
|
-
* by the network, and if the receiving chain would handle
|
|
7344
|
-
* messages correctly.
|
|
7345
|
-
*
|
|
7346
|
-
* @param {MoonbeamRuntimeXcmConfigCurrencyId} currencyId
|
|
7347
|
-
* @param {bigint} amount
|
|
7348
|
-
* @param {XcmVersionedLocation} dest
|
|
7349
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7350
|
-
**/
|
|
7351
|
-
transfer: GenericTxCall<
|
|
7352
|
-
Rv,
|
|
7353
|
-
(
|
|
7354
|
-
currencyId: MoonbeamRuntimeXcmConfigCurrencyId,
|
|
7355
|
-
amount: bigint,
|
|
7356
|
-
dest: XcmVersionedLocation,
|
|
7357
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7358
|
-
) => ChainSubmittableExtrinsic<
|
|
7359
|
-
Rv,
|
|
7360
|
-
{
|
|
7361
|
-
pallet: 'XTokens';
|
|
7362
|
-
palletCall: {
|
|
7363
|
-
name: 'Transfer';
|
|
7364
|
-
params: {
|
|
7365
|
-
currencyId: MoonbeamRuntimeXcmConfigCurrencyId;
|
|
7366
|
-
amount: bigint;
|
|
7367
|
-
dest: XcmVersionedLocation;
|
|
7368
|
-
destWeightLimit: XcmV3WeightLimit;
|
|
7369
|
-
};
|
|
7370
|
-
};
|
|
7371
|
-
}
|
|
7372
|
-
>
|
|
7373
|
-
>;
|
|
7374
|
-
|
|
7375
|
-
/**
|
|
7376
|
-
* Transfer `Asset`.
|
|
7377
|
-
*
|
|
7378
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7379
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7380
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7381
|
-
* received.
|
|
7382
|
-
*
|
|
7383
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7384
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7385
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7386
|
-
* by the network, and if the receiving chain would handle
|
|
7387
|
-
* messages correctly.
|
|
7388
|
-
*
|
|
7389
|
-
* @param {XcmVersionedAsset} asset
|
|
7390
|
-
* @param {XcmVersionedLocation} dest
|
|
7391
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7392
|
-
**/
|
|
7393
|
-
transferMultiasset: GenericTxCall<
|
|
7394
|
-
Rv,
|
|
7395
|
-
(
|
|
7396
|
-
asset: XcmVersionedAsset,
|
|
7397
|
-
dest: XcmVersionedLocation,
|
|
7398
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7399
|
-
) => ChainSubmittableExtrinsic<
|
|
7400
|
-
Rv,
|
|
7401
|
-
{
|
|
7402
|
-
pallet: 'XTokens';
|
|
7403
|
-
palletCall: {
|
|
7404
|
-
name: 'TransferMultiasset';
|
|
7405
|
-
params: { asset: XcmVersionedAsset; dest: XcmVersionedLocation; destWeightLimit: XcmV3WeightLimit };
|
|
7406
|
-
};
|
|
7407
|
-
}
|
|
7408
|
-
>
|
|
7409
|
-
>;
|
|
7410
|
-
|
|
7411
|
-
/**
|
|
7412
|
-
* Transfer native currencies specifying the fee and amount as
|
|
7413
|
-
* separate.
|
|
7414
|
-
*
|
|
7415
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7416
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7417
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7418
|
-
* received.
|
|
7419
|
-
*
|
|
7420
|
-
* `fee` is the amount to be spent to pay for execution in destination
|
|
7421
|
-
* chain. Both fee and amount will be subtracted form the callers
|
|
7422
|
-
* balance.
|
|
7423
|
-
*
|
|
7424
|
-
* If `fee` is not high enough to cover for the execution costs in the
|
|
7425
|
-
* destination chain, then the assets will be trapped in the
|
|
7426
|
-
* destination chain
|
|
7427
|
-
*
|
|
7428
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7429
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7430
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7431
|
-
* by the network, and if the receiving chain would handle
|
|
7432
|
-
* messages correctly.
|
|
7433
|
-
*
|
|
7434
|
-
* @param {MoonbeamRuntimeXcmConfigCurrencyId} currencyId
|
|
7435
|
-
* @param {bigint} amount
|
|
7436
|
-
* @param {bigint} fee
|
|
7437
|
-
* @param {XcmVersionedLocation} dest
|
|
7438
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7439
|
-
**/
|
|
7440
|
-
transferWithFee: GenericTxCall<
|
|
7441
|
-
Rv,
|
|
7442
|
-
(
|
|
7443
|
-
currencyId: MoonbeamRuntimeXcmConfigCurrencyId,
|
|
7444
|
-
amount: bigint,
|
|
7445
|
-
fee: bigint,
|
|
7446
|
-
dest: XcmVersionedLocation,
|
|
7447
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7448
|
-
) => ChainSubmittableExtrinsic<
|
|
7449
|
-
Rv,
|
|
7450
|
-
{
|
|
7451
|
-
pallet: 'XTokens';
|
|
7452
|
-
palletCall: {
|
|
7453
|
-
name: 'TransferWithFee';
|
|
7454
|
-
params: {
|
|
7455
|
-
currencyId: MoonbeamRuntimeXcmConfigCurrencyId;
|
|
7456
|
-
amount: bigint;
|
|
7457
|
-
fee: bigint;
|
|
7458
|
-
dest: XcmVersionedLocation;
|
|
7459
|
-
destWeightLimit: XcmV3WeightLimit;
|
|
7460
|
-
};
|
|
7461
|
-
};
|
|
7462
|
-
}
|
|
7463
|
-
>
|
|
7464
|
-
>;
|
|
7465
|
-
|
|
7466
|
-
/**
|
|
7467
|
-
* Transfer `Asset` specifying the fee and amount as separate.
|
|
7468
|
-
*
|
|
7469
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7470
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7471
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7472
|
-
* received.
|
|
7473
|
-
*
|
|
7474
|
-
* `fee` is the Asset to be spent to pay for execution in
|
|
7475
|
-
* destination chain. Both fee and amount will be subtracted form the
|
|
7476
|
-
* callers balance For now we only accept fee and asset having the same
|
|
7477
|
-
* `Location` id.
|
|
7478
|
-
*
|
|
7479
|
-
* If `fee` is not high enough to cover for the execution costs in the
|
|
7480
|
-
* destination chain, then the assets will be trapped in the
|
|
7481
|
-
* destination chain
|
|
7482
|
-
*
|
|
7483
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7484
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7485
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7486
|
-
* by the network, and if the receiving chain would handle
|
|
7487
|
-
* messages correctly.
|
|
7488
|
-
*
|
|
7489
|
-
* @param {XcmVersionedAsset} asset
|
|
7490
|
-
* @param {XcmVersionedAsset} fee
|
|
7491
|
-
* @param {XcmVersionedLocation} dest
|
|
7492
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7493
|
-
**/
|
|
7494
|
-
transferMultiassetWithFee: GenericTxCall<
|
|
7495
|
-
Rv,
|
|
7496
|
-
(
|
|
7497
|
-
asset: XcmVersionedAsset,
|
|
7498
|
-
fee: XcmVersionedAsset,
|
|
7499
|
-
dest: XcmVersionedLocation,
|
|
7500
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7501
|
-
) => ChainSubmittableExtrinsic<
|
|
7502
|
-
Rv,
|
|
7503
|
-
{
|
|
7504
|
-
pallet: 'XTokens';
|
|
7505
|
-
palletCall: {
|
|
7506
|
-
name: 'TransferMultiassetWithFee';
|
|
7507
|
-
params: {
|
|
7508
|
-
asset: XcmVersionedAsset;
|
|
7509
|
-
fee: XcmVersionedAsset;
|
|
7510
|
-
dest: XcmVersionedLocation;
|
|
7511
|
-
destWeightLimit: XcmV3WeightLimit;
|
|
7512
|
-
};
|
|
7513
|
-
};
|
|
7514
|
-
}
|
|
7515
|
-
>
|
|
7516
|
-
>;
|
|
7517
|
-
|
|
7518
|
-
/**
|
|
7519
|
-
* Transfer several currencies specifying the item to be used as fee
|
|
7520
|
-
*
|
|
7521
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7522
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7523
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7524
|
-
* received.
|
|
7525
|
-
*
|
|
7526
|
-
* `fee_item` is index of the currencies tuple that we want to use for
|
|
7527
|
-
* payment
|
|
7528
|
-
*
|
|
7529
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7530
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7531
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7532
|
-
* by the network, and if the receiving chain would handle
|
|
7533
|
-
* messages correctly.
|
|
7534
|
-
*
|
|
7535
|
-
* @param {Array<[MoonbeamRuntimeXcmConfigCurrencyId, bigint]>} currencies
|
|
7536
|
-
* @param {number} feeItem
|
|
7537
|
-
* @param {XcmVersionedLocation} dest
|
|
7538
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7539
|
-
**/
|
|
7540
|
-
transferMulticurrencies: GenericTxCall<
|
|
7541
|
-
Rv,
|
|
7542
|
-
(
|
|
7543
|
-
currencies: Array<[MoonbeamRuntimeXcmConfigCurrencyId, bigint]>,
|
|
7544
|
-
feeItem: number,
|
|
7545
|
-
dest: XcmVersionedLocation,
|
|
7546
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7547
|
-
) => ChainSubmittableExtrinsic<
|
|
7548
|
-
Rv,
|
|
7549
|
-
{
|
|
7550
|
-
pallet: 'XTokens';
|
|
7551
|
-
palletCall: {
|
|
7552
|
-
name: 'TransferMulticurrencies';
|
|
7553
|
-
params: {
|
|
7554
|
-
currencies: Array<[MoonbeamRuntimeXcmConfigCurrencyId, bigint]>;
|
|
7555
|
-
feeItem: number;
|
|
7556
|
-
dest: XcmVersionedLocation;
|
|
7557
|
-
destWeightLimit: XcmV3WeightLimit;
|
|
7558
|
-
};
|
|
7559
|
-
};
|
|
7560
|
-
}
|
|
7561
|
-
>
|
|
7562
|
-
>;
|
|
7563
|
-
|
|
7564
|
-
/**
|
|
7565
|
-
* Transfer several `Asset` specifying the item to be used as fee
|
|
7566
|
-
*
|
|
7567
|
-
* `dest_weight_limit` is the weight for XCM execution on the dest
|
|
7568
|
-
* chain, and it would be charged from the transferred assets. If set
|
|
7569
|
-
* below requirements, the execution may fail and assets wouldn't be
|
|
7570
|
-
* received.
|
|
7571
|
-
*
|
|
7572
|
-
* `fee_item` is index of the Assets that we want to use for
|
|
7573
|
-
* payment
|
|
7574
|
-
*
|
|
7575
|
-
* It's a no-op if any error on local XCM execution or message sending.
|
|
7576
|
-
* Note sending assets out per se doesn't guarantee they would be
|
|
7577
|
-
* received. Receiving depends on if the XCM message could be delivered
|
|
7578
|
-
* by the network, and if the receiving chain would handle
|
|
7579
|
-
* messages correctly.
|
|
7580
|
-
*
|
|
7581
|
-
* @param {XcmVersionedAssets} assets
|
|
7582
|
-
* @param {number} feeItem
|
|
7583
|
-
* @param {XcmVersionedLocation} dest
|
|
7584
|
-
* @param {XcmV3WeightLimit} destWeightLimit
|
|
7585
|
-
**/
|
|
7586
|
-
transferMultiassets: GenericTxCall<
|
|
7587
|
-
Rv,
|
|
7588
|
-
(
|
|
7589
|
-
assets: XcmVersionedAssets,
|
|
7590
|
-
feeItem: number,
|
|
7591
|
-
dest: XcmVersionedLocation,
|
|
7592
|
-
destWeightLimit: XcmV3WeightLimit,
|
|
7593
|
-
) => ChainSubmittableExtrinsic<
|
|
7594
|
-
Rv,
|
|
7595
|
-
{
|
|
7596
|
-
pallet: 'XTokens';
|
|
7597
|
-
palletCall: {
|
|
7598
|
-
name: 'TransferMultiassets';
|
|
7599
|
-
params: {
|
|
7600
|
-
assets: XcmVersionedAssets;
|
|
7601
|
-
feeItem: number;
|
|
7602
|
-
dest: XcmVersionedLocation;
|
|
7603
|
-
destWeightLimit: XcmV3WeightLimit;
|
|
7604
|
-
};
|
|
7605
|
-
};
|
|
7606
|
-
}
|
|
7607
|
-
>
|
|
7608
|
-
>;
|
|
7609
|
-
|
|
7610
|
-
/**
|
|
7611
|
-
* Generic pallet tx call
|
|
7612
|
-
**/
|
|
7613
|
-
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
7614
|
-
};
|
|
7615
7296
|
/**
|
|
7616
7297
|
* Pallet `XcmTransactor`'s transaction calls
|
|
7617
7298
|
**/
|
|
@@ -7718,7 +7399,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7718
7399
|
* @param {AccountId20Like | undefined} feePayer
|
|
7719
7400
|
* @param {PalletXcmTransactorCurrencyPayment} fee
|
|
7720
7401
|
* @param {BytesLike} call
|
|
7721
|
-
* @param {
|
|
7402
|
+
* @param {XcmV3OriginKind} originKind
|
|
7722
7403
|
* @param {PalletXcmTransactorTransactWeights} weightInfo
|
|
7723
7404
|
* @param {boolean} refund
|
|
7724
7405
|
**/
|
|
@@ -7729,7 +7410,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7729
7410
|
feePayer: AccountId20Like | undefined,
|
|
7730
7411
|
fee: PalletXcmTransactorCurrencyPayment,
|
|
7731
7412
|
call: BytesLike,
|
|
7732
|
-
originKind:
|
|
7413
|
+
originKind: XcmV3OriginKind,
|
|
7733
7414
|
weightInfo: PalletXcmTransactorTransactWeights,
|
|
7734
7415
|
refund: boolean,
|
|
7735
7416
|
) => ChainSubmittableExtrinsic<
|
|
@@ -7743,7 +7424,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7743
7424
|
feePayer: AccountId20Like | undefined;
|
|
7744
7425
|
fee: PalletXcmTransactorCurrencyPayment;
|
|
7745
7426
|
call: BytesLike;
|
|
7746
|
-
originKind:
|
|
7427
|
+
originKind: XcmV3OriginKind;
|
|
7747
7428
|
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7748
7429
|
refund: boolean;
|
|
7749
7430
|
};
|