@dedot/chaintypes 0.196.0 → 0.198.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 +10 -49
- package/moonbeam/errors.d.ts +1 -127
- package/moonbeam/events.d.ts +0 -176
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +28 -74
- package/moonbeam/tx.d.ts +32 -1219
- package/moonbeam/types.d.ts +206 -1584
- package/package.json +2 -5
- package/paseo/errors.d.ts +5 -0
- package/paseo/events.d.ts +20 -0
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +26 -5
- package/paseo/runtime.d.ts +0 -20
- package/paseo/tx.d.ts +19 -0
- package/paseo/types.d.ts +38 -7
- package/paseo-asset-hub/events.d.ts +48 -0
- package/paseo-asset-hub/index.d.ts +1 -1
- package/paseo-asset-hub/runtime.d.ts +20 -0
- package/paseo-asset-hub/tx.d.ts +6 -2
- package/paseo-asset-hub/types.d.ts +60 -3
- package/paseo-people/index.d.ts +1 -1
package/moonbeam/types.d.ts
CHANGED
|
@@ -79,7 +79,6 @@ export type MoonbeamRuntimeRuntimeEvent =
|
|
|
79
79
|
| { pallet: 'XcmpQueue'; palletEvent: CumulusPalletXcmpQueueEvent }
|
|
80
80
|
| { pallet: 'CumulusXcm'; palletEvent: CumulusPalletXcmEvent }
|
|
81
81
|
| { pallet: 'PolkadotXcm'; palletEvent: PalletXcmEvent }
|
|
82
|
-
| { pallet: 'Assets'; palletEvent: PalletAssetsEvent }
|
|
83
82
|
| { pallet: 'XcmTransactor'; palletEvent: PalletXcmTransactorEvent }
|
|
84
83
|
| { pallet: 'EthereumXcm'; palletEvent: PalletEthereumXcmEvent }
|
|
85
84
|
| { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
|
|
@@ -1450,7 +1449,6 @@ export type MoonbeamRuntimeRuntimeCall =
|
|
|
1450
1449
|
| { pallet: 'Treasury'; palletCall: PalletTreasuryCall }
|
|
1451
1450
|
| { pallet: 'CrowdloanRewards'; palletCall: PalletCrowdloanRewardsCall }
|
|
1452
1451
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCall }
|
|
1453
|
-
| { pallet: 'Assets'; palletCall: PalletAssetsCall }
|
|
1454
1452
|
| { pallet: 'XcmTransactor'; palletCall: PalletXcmTransactorCall }
|
|
1455
1453
|
| { pallet: 'EthereumXcm'; palletCall: PalletEthereumXcmCall }
|
|
1456
1454
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
|
|
@@ -1494,7 +1492,6 @@ export type MoonbeamRuntimeRuntimeCallLike =
|
|
|
1494
1492
|
| { pallet: 'Treasury'; palletCall: PalletTreasuryCallLike }
|
|
1495
1493
|
| { pallet: 'CrowdloanRewards'; palletCall: PalletCrowdloanRewardsCallLike }
|
|
1496
1494
|
| { pallet: 'PolkadotXcm'; palletCall: PalletXcmCallLike }
|
|
1497
|
-
| { pallet: 'Assets'; palletCall: PalletAssetsCallLike }
|
|
1498
1495
|
| { pallet: 'XcmTransactor'; palletCall: PalletXcmTransactorCallLike }
|
|
1499
1496
|
| { pallet: 'EthereumXcm'; palletCall: PalletEthereumXcmCallLike }
|
|
1500
1497
|
| { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
|
|
@@ -2094,7 +2091,25 @@ export type PalletParachainStakingCall =
|
|
|
2094
2091
|
/**
|
|
2095
2092
|
* Set the inflation distribution configuration.
|
|
2096
2093
|
**/
|
|
2097
|
-
| { name: 'SetInflationDistributionConfig'; params: { new: PalletParachainStakingInflationDistributionConfig } }
|
|
2094
|
+
| { name: 'SetInflationDistributionConfig'; params: { new: PalletParachainStakingInflationDistributionConfig } }
|
|
2095
|
+
/**
|
|
2096
|
+
* Batch migrate locks to freezes for a list of accounts.
|
|
2097
|
+
*
|
|
2098
|
+
* This function allows migrating multiple accounts from the old lock-based
|
|
2099
|
+
* staking to the new freeze-based staking in a single transaction.
|
|
2100
|
+
*
|
|
2101
|
+
* Parameters:
|
|
2102
|
+
* - `accounts`: List of tuples containing (account_id, is_collator)
|
|
2103
|
+
* where is_collator indicates if the account is a collator (true) or delegator (false)
|
|
2104
|
+
*
|
|
2105
|
+
* The maximum number of accounts that can be migrated in one batch is MAX_ACCOUNTS_PER_MIGRATION_BATCH.
|
|
2106
|
+
* The batch cannot be empty.
|
|
2107
|
+
*
|
|
2108
|
+
* If 50% or more of the migration attempts are successful, the entire
|
|
2109
|
+
* extrinsic fee is refunded to incentivize successful batch migrations.
|
|
2110
|
+
* Weight is calculated based on actual successful operations performed.
|
|
2111
|
+
**/
|
|
2112
|
+
| { name: 'MigrateLocksToFreezesBatch'; params: { accounts: Array<[AccountId20, boolean]> } };
|
|
2098
2113
|
|
|
2099
2114
|
export type PalletParachainStakingCallLike =
|
|
2100
2115
|
/**
|
|
@@ -2234,7 +2249,25 @@ export type PalletParachainStakingCallLike =
|
|
|
2234
2249
|
/**
|
|
2235
2250
|
* Set the inflation distribution configuration.
|
|
2236
2251
|
**/
|
|
2237
|
-
| { name: 'SetInflationDistributionConfig'; params: { new: PalletParachainStakingInflationDistributionConfig } }
|
|
2252
|
+
| { name: 'SetInflationDistributionConfig'; params: { new: PalletParachainStakingInflationDistributionConfig } }
|
|
2253
|
+
/**
|
|
2254
|
+
* Batch migrate locks to freezes for a list of accounts.
|
|
2255
|
+
*
|
|
2256
|
+
* This function allows migrating multiple accounts from the old lock-based
|
|
2257
|
+
* staking to the new freeze-based staking in a single transaction.
|
|
2258
|
+
*
|
|
2259
|
+
* Parameters:
|
|
2260
|
+
* - `accounts`: List of tuples containing (account_id, is_collator)
|
|
2261
|
+
* where is_collator indicates if the account is a collator (true) or delegator (false)
|
|
2262
|
+
*
|
|
2263
|
+
* The maximum number of accounts that can be migrated in one batch is MAX_ACCOUNTS_PER_MIGRATION_BATCH.
|
|
2264
|
+
* The batch cannot be empty.
|
|
2265
|
+
*
|
|
2266
|
+
* If 50% or more of the migration attempts are successful, the entire
|
|
2267
|
+
* extrinsic fee is refunded to incentivize successful batch migrations.
|
|
2268
|
+
* Weight is calculated based on actual successful operations performed.
|
|
2269
|
+
**/
|
|
2270
|
+
| { name: 'MigrateLocksToFreezesBatch'; params: { accounts: Array<[AccountId20Like, boolean]> } };
|
|
2238
2271
|
|
|
2239
2272
|
/**
|
|
2240
2273
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5659,20 +5692,7 @@ export type PalletCrowdloanRewardsCall =
|
|
|
5659
5692
|
/**
|
|
5660
5693
|
* Update reward address, proving that the caller owns the current native key
|
|
5661
5694
|
**/
|
|
5662
|
-
| { name: 'UpdateRewardAddress'; params: { newRewardAccount: AccountId20 } }
|
|
5663
|
-
/**
|
|
5664
|
-
* This extrinsic completes the initialization if some checks are fullfiled. These checks are:
|
|
5665
|
-
* -The reward contribution money matches the crowdloan pot
|
|
5666
|
-
* -The end vesting block is higher than the init vesting block
|
|
5667
|
-
* -The initialization has not complete yet
|
|
5668
|
-
**/
|
|
5669
|
-
| { name: 'CompleteInitialization'; params: { leaseEndingBlock: number } }
|
|
5670
|
-
/**
|
|
5671
|
-
* Initialize the reward distribution storage. It shortcuts whenever an error is found
|
|
5672
|
-
* This does not enforce any checks other than making sure we dont go over funds
|
|
5673
|
-
* complete_initialization should perform any additional
|
|
5674
|
-
**/
|
|
5675
|
-
| { name: 'InitializeRewardVec'; params: { rewards: Array<[FixedBytes<32>, AccountId20 | undefined, bigint]> } };
|
|
5695
|
+
| { name: 'UpdateRewardAddress'; params: { newRewardAccount: AccountId20 } };
|
|
5676
5696
|
|
|
5677
5697
|
export type PalletCrowdloanRewardsCallLike =
|
|
5678
5698
|
/**
|
|
@@ -5708,20 +5728,7 @@ export type PalletCrowdloanRewardsCallLike =
|
|
|
5708
5728
|
/**
|
|
5709
5729
|
* Update reward address, proving that the caller owns the current native key
|
|
5710
5730
|
**/
|
|
5711
|
-
| { name: 'UpdateRewardAddress'; params: { newRewardAccount: AccountId20Like } }
|
|
5712
|
-
/**
|
|
5713
|
-
* This extrinsic completes the initialization if some checks are fullfiled. These checks are:
|
|
5714
|
-
* -The reward contribution money matches the crowdloan pot
|
|
5715
|
-
* -The end vesting block is higher than the init vesting block
|
|
5716
|
-
* -The initialization has not complete yet
|
|
5717
|
-
**/
|
|
5718
|
-
| { name: 'CompleteInitialization'; params: { leaseEndingBlock: number } }
|
|
5719
|
-
/**
|
|
5720
|
-
* Initialize the reward distribution storage. It shortcuts whenever an error is found
|
|
5721
|
-
* This does not enforce any checks other than making sure we dont go over funds
|
|
5722
|
-
* complete_initialization should perform any additional
|
|
5723
|
-
**/
|
|
5724
|
-
| { name: 'InitializeRewardVec'; params: { rewards: Array<[FixedBytes<32>, AccountId20Like | undefined, bigint]> } };
|
|
5731
|
+
| { name: 'UpdateRewardAddress'; params: { newRewardAccount: AccountId20Like } };
|
|
5725
5732
|
|
|
5726
5733
|
export type SpRuntimeMultiSignature =
|
|
5727
5734
|
| { type: 'Ed25519'; value: FixedBytes<64> }
|
|
@@ -7093,1347 +7100,208 @@ export type XcmVersionedAssetId =
|
|
|
7093
7100
|
/**
|
|
7094
7101
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
7095
7102
|
**/
|
|
7096
|
-
export type
|
|
7103
|
+
export type PalletXcmTransactorCall =
|
|
7097
7104
|
/**
|
|
7098
|
-
*
|
|
7099
|
-
*
|
|
7100
|
-
* This new asset class has no assets initially and its owner is the origin.
|
|
7101
|
-
*
|
|
7102
|
-
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
7103
|
-
*
|
|
7104
|
-
* Funds of sender are reserved by `AssetDeposit`.
|
|
7105
|
-
*
|
|
7106
|
-
* Parameters:
|
|
7107
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7108
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7109
|
-
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
7110
|
-
* member of the asset class's admin team.
|
|
7111
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
7112
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
7105
|
+
* Register a derivative index for an account id. Dispatchable by
|
|
7106
|
+
* DerivativeAddressRegistrationOrigin
|
|
7113
7107
|
*
|
|
7114
|
-
*
|
|
7108
|
+
* We do not store the derivative address, but only the index. We do not need to store
|
|
7109
|
+
* the derivative address to issue calls, only the index is enough
|
|
7115
7110
|
*
|
|
7116
|
-
*
|
|
7111
|
+
* For now an index is registered for all possible destinations and not per-destination.
|
|
7112
|
+
* We can change this in the future although it would just make things more complicated
|
|
7117
7113
|
**/
|
|
7118
|
-
| { name: '
|
|
7114
|
+
| { name: 'Register'; params: { who: AccountId20; index: number } }
|
|
7119
7115
|
/**
|
|
7120
|
-
*
|
|
7121
|
-
*
|
|
7122
|
-
* This new asset class has no assets initially.
|
|
7123
|
-
*
|
|
7124
|
-
* The origin must conform to `ForceOrigin`.
|
|
7125
|
-
*
|
|
7126
|
-
* Unlike `create`, no funds are reserved.
|
|
7127
|
-
*
|
|
7128
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7129
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7130
|
-
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
7131
|
-
* over this asset, but may later change and configure the permissions using
|
|
7132
|
-
* `transfer_ownership` and `set_team`.
|
|
7133
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
7134
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
7135
|
-
*
|
|
7136
|
-
* Emits `ForceCreated` event when successful.
|
|
7137
|
-
*
|
|
7138
|
-
* Weight: `O(1)`
|
|
7116
|
+
* De-Register a derivative index. This prevents an account to use a derivative address
|
|
7117
|
+
* (represented by an index) from our of our sovereign accounts anymore
|
|
7139
7118
|
**/
|
|
7140
|
-
| { name: '
|
|
7119
|
+
| { name: 'Deregister'; params: { index: number } }
|
|
7141
7120
|
/**
|
|
7142
|
-
*
|
|
7143
|
-
*
|
|
7144
|
-
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
7145
|
-
* destruction of an asset class.
|
|
7146
|
-
*
|
|
7147
|
-
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
7148
|
-
*
|
|
7149
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7150
|
-
* asset.
|
|
7121
|
+
* Transact the inner call through a derivative account in a destination chain,
|
|
7122
|
+
* using 'fee_location' to pay for the fees. This fee_location is given as a multilocation
|
|
7151
7123
|
*
|
|
7152
|
-
*
|
|
7153
|
-
*
|
|
7124
|
+
* The caller needs to have the index registered in this pallet. The fee multiasset needs
|
|
7125
|
+
* to be a reserve asset for the destination transactor::multilocation.
|
|
7154
7126
|
**/
|
|
7155
|
-
| {
|
|
7127
|
+
| {
|
|
7128
|
+
name: 'TransactThroughDerivative';
|
|
7129
|
+
params: {
|
|
7130
|
+
dest: MoonbeamRuntimeXcmConfigTransactors;
|
|
7131
|
+
index: number;
|
|
7132
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7133
|
+
innerCall: Bytes;
|
|
7134
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7135
|
+
refund: boolean;
|
|
7136
|
+
};
|
|
7137
|
+
}
|
|
7156
7138
|
/**
|
|
7157
|
-
*
|
|
7158
|
-
*
|
|
7159
|
-
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
7160
|
-
* asset is in a `Destroying` state.
|
|
7161
|
-
*
|
|
7162
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
7163
|
-
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
7164
|
-
*
|
|
7165
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7166
|
-
* asset.
|
|
7139
|
+
* Transact the call through the sovereign account in a destination chain,
|
|
7140
|
+
* 'fee_payer' pays for the fee
|
|
7167
7141
|
*
|
|
7168
|
-
*
|
|
7142
|
+
* SovereignAccountDispatcherOrigin callable only
|
|
7169
7143
|
**/
|
|
7170
|
-
| {
|
|
7144
|
+
| {
|
|
7145
|
+
name: 'TransactThroughSovereign';
|
|
7146
|
+
params: {
|
|
7147
|
+
dest: XcmVersionedLocation;
|
|
7148
|
+
feePayer?: AccountId20 | undefined;
|
|
7149
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7150
|
+
call: Bytes;
|
|
7151
|
+
originKind: XcmV3OriginKind;
|
|
7152
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7153
|
+
refund: boolean;
|
|
7154
|
+
};
|
|
7155
|
+
}
|
|
7171
7156
|
/**
|
|
7172
|
-
*
|
|
7173
|
-
*
|
|
7174
|
-
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
7175
|
-
* asset is in a `Destroying` state.
|
|
7176
|
-
*
|
|
7177
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
7178
|
-
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
7179
|
-
*
|
|
7180
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7181
|
-
* asset.
|
|
7182
|
-
*
|
|
7183
|
-
* Each call emits the `Event::DestroyedApprovals` event.
|
|
7157
|
+
* Change the transact info of a location
|
|
7184
7158
|
**/
|
|
7185
|
-
| {
|
|
7159
|
+
| {
|
|
7160
|
+
name: 'SetTransactInfo';
|
|
7161
|
+
params: {
|
|
7162
|
+
location: XcmVersionedLocation;
|
|
7163
|
+
transactExtraWeight: SpWeightsWeightV2Weight;
|
|
7164
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
7165
|
+
transactExtraWeightSigned?: SpWeightsWeightV2Weight | undefined;
|
|
7166
|
+
};
|
|
7167
|
+
}
|
|
7186
7168
|
/**
|
|
7187
|
-
*
|
|
7188
|
-
*
|
|
7189
|
-
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
7190
|
-
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
7191
|
-
* hand.
|
|
7192
|
-
*
|
|
7193
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7194
|
-
* asset.
|
|
7195
|
-
*
|
|
7196
|
-
* Each successful call emits the `Event::Destroyed` event.
|
|
7169
|
+
* Remove the transact info of a location
|
|
7197
7170
|
**/
|
|
7198
|
-
| { name: '
|
|
7171
|
+
| { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
|
|
7199
7172
|
/**
|
|
7200
|
-
*
|
|
7201
|
-
*
|
|
7202
|
-
*
|
|
7203
|
-
*
|
|
7204
|
-
* - `id`: The identifier of the asset to have some amount minted.
|
|
7205
|
-
* - `beneficiary`: The account to be credited with the minted assets.
|
|
7206
|
-
* - `amount`: The amount of the asset to be minted.
|
|
7207
|
-
*
|
|
7208
|
-
* Emits `Issued` event when successful.
|
|
7173
|
+
* Transact the call through the a signed origin in this chain
|
|
7174
|
+
* that should be converted to a transaction dispatch account in the destination chain
|
|
7175
|
+
* by any method implemented in the destination chains runtime
|
|
7209
7176
|
*
|
|
7210
|
-
*
|
|
7211
|
-
* Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
|
|
7177
|
+
* This time we are giving the currency as a currencyId instead of multilocation
|
|
7212
7178
|
**/
|
|
7213
|
-
| {
|
|
7179
|
+
| {
|
|
7180
|
+
name: 'TransactThroughSigned';
|
|
7181
|
+
params: {
|
|
7182
|
+
dest: XcmVersionedLocation;
|
|
7183
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7184
|
+
call: Bytes;
|
|
7185
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7186
|
+
refund: boolean;
|
|
7187
|
+
};
|
|
7188
|
+
}
|
|
7214
7189
|
/**
|
|
7215
|
-
*
|
|
7216
|
-
*
|
|
7217
|
-
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
7218
|
-
*
|
|
7219
|
-
* Bails with `NoAccount` if the `who` is already dead.
|
|
7220
|
-
*
|
|
7221
|
-
* - `id`: The identifier of the asset to have some amount burned.
|
|
7222
|
-
* - `who`: The account to be debited from.
|
|
7223
|
-
* - `amount`: The maximum amount by which `who`'s balance should be reduced.
|
|
7224
|
-
*
|
|
7225
|
-
* Emits `Burned` with the actual amount burned. If this takes the balance to below the
|
|
7226
|
-
* minimum for the asset, then the amount burned is increased to take it to zero.
|
|
7227
|
-
*
|
|
7228
|
-
* Weight: `O(1)`
|
|
7229
|
-
* Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
|
|
7190
|
+
* Set the fee per second of an asset on its reserve chain
|
|
7230
7191
|
**/
|
|
7231
|
-
| { name: '
|
|
7192
|
+
| { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
|
|
7232
7193
|
/**
|
|
7233
|
-
*
|
|
7234
|
-
*
|
|
7235
|
-
* Origin must be Signed.
|
|
7236
|
-
*
|
|
7237
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7238
|
-
* - `target`: The account to be credited.
|
|
7239
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
7240
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7241
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
7242
|
-
* the minimum balance. Must be greater than zero.
|
|
7243
|
-
*
|
|
7244
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
7245
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
7246
|
-
* to zero.
|
|
7247
|
-
*
|
|
7248
|
-
* Weight: `O(1)`
|
|
7249
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
7250
|
-
* `target`.
|
|
7194
|
+
* Remove the fee per second of an asset on its reserve chain
|
|
7251
7195
|
**/
|
|
7252
|
-
| { name: '
|
|
7196
|
+
| { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
|
|
7253
7197
|
/**
|
|
7254
|
-
*
|
|
7255
|
-
*
|
|
7256
|
-
* Origin must be Signed.
|
|
7257
|
-
*
|
|
7258
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7259
|
-
* - `target`: The account to be credited.
|
|
7260
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
7261
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7262
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
7263
|
-
* the minimum balance. Must be greater than zero.
|
|
7264
|
-
*
|
|
7265
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
7266
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
7267
|
-
* to zero.
|
|
7268
|
-
*
|
|
7269
|
-
* Weight: `O(1)`
|
|
7270
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
7271
|
-
* `target`.
|
|
7198
|
+
* Manage HRMP operations
|
|
7272
7199
|
**/
|
|
7273
|
-
| {
|
|
7200
|
+
| {
|
|
7201
|
+
name: 'HrmpManage';
|
|
7202
|
+
params: {
|
|
7203
|
+
action: PalletXcmTransactorHrmpOperation;
|
|
7204
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7205
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7206
|
+
};
|
|
7207
|
+
};
|
|
7208
|
+
|
|
7209
|
+
export type PalletXcmTransactorCallLike =
|
|
7274
7210
|
/**
|
|
7275
|
-
*
|
|
7276
|
-
*
|
|
7277
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7278
|
-
*
|
|
7279
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7280
|
-
* - `source`: The account to be debited.
|
|
7281
|
-
* - `dest`: The account to be credited.
|
|
7282
|
-
* - `amount`: The amount by which the `source`'s balance of assets should be reduced and
|
|
7283
|
-
* `dest`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7284
|
-
* the case that the transfer would otherwise take the `source` balance above zero but
|
|
7285
|
-
* below the minimum balance. Must be greater than zero.
|
|
7211
|
+
* Register a derivative index for an account id. Dispatchable by
|
|
7212
|
+
* DerivativeAddressRegistrationOrigin
|
|
7286
7213
|
*
|
|
7287
|
-
*
|
|
7288
|
-
*
|
|
7289
|
-
* to zero.
|
|
7214
|
+
* We do not store the derivative address, but only the index. We do not need to store
|
|
7215
|
+
* the derivative address to issue calls, only the index is enough
|
|
7290
7216
|
*
|
|
7291
|
-
*
|
|
7292
|
-
*
|
|
7293
|
-
* `dest`.
|
|
7217
|
+
* For now an index is registered for all possible destinations and not per-destination.
|
|
7218
|
+
* We can change this in the future although it would just make things more complicated
|
|
7294
7219
|
**/
|
|
7295
|
-
| { name: '
|
|
7220
|
+
| { name: 'Register'; params: { who: AccountId20Like; index: number } }
|
|
7296
7221
|
/**
|
|
7297
|
-
*
|
|
7298
|
-
*
|
|
7299
|
-
* account that does not have an entry, use `touch_other` first.
|
|
7300
|
-
*
|
|
7301
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7302
|
-
*
|
|
7303
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7304
|
-
* - `who`: The account to be frozen.
|
|
7305
|
-
*
|
|
7306
|
-
* Emits `Frozen`.
|
|
7307
|
-
*
|
|
7308
|
-
* Weight: `O(1)`
|
|
7222
|
+
* De-Register a derivative index. This prevents an account to use a derivative address
|
|
7223
|
+
* (represented by an index) from our of our sovereign accounts anymore
|
|
7309
7224
|
**/
|
|
7310
|
-
| { name: '
|
|
7225
|
+
| { name: 'Deregister'; params: { index: number } }
|
|
7311
7226
|
/**
|
|
7312
|
-
*
|
|
7313
|
-
*
|
|
7314
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7315
|
-
*
|
|
7316
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7317
|
-
* - `who`: The account to be unfrozen.
|
|
7318
|
-
*
|
|
7319
|
-
* Emits `Thawed`.
|
|
7227
|
+
* Transact the inner call through a derivative account in a destination chain,
|
|
7228
|
+
* using 'fee_location' to pay for the fees. This fee_location is given as a multilocation
|
|
7320
7229
|
*
|
|
7321
|
-
*
|
|
7230
|
+
* The caller needs to have the index registered in this pallet. The fee multiasset needs
|
|
7231
|
+
* to be a reserve asset for the destination transactor::multilocation.
|
|
7322
7232
|
**/
|
|
7323
|
-
| {
|
|
7233
|
+
| {
|
|
7234
|
+
name: 'TransactThroughDerivative';
|
|
7235
|
+
params: {
|
|
7236
|
+
dest: MoonbeamRuntimeXcmConfigTransactors;
|
|
7237
|
+
index: number;
|
|
7238
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7239
|
+
innerCall: BytesLike;
|
|
7240
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7241
|
+
refund: boolean;
|
|
7242
|
+
};
|
|
7243
|
+
}
|
|
7324
7244
|
/**
|
|
7325
|
-
*
|
|
7326
|
-
*
|
|
7327
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7328
|
-
*
|
|
7329
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7330
|
-
*
|
|
7331
|
-
* Emits `Frozen`.
|
|
7245
|
+
* Transact the call through the sovereign account in a destination chain,
|
|
7246
|
+
* 'fee_payer' pays for the fee
|
|
7332
7247
|
*
|
|
7333
|
-
*
|
|
7248
|
+
* SovereignAccountDispatcherOrigin callable only
|
|
7334
7249
|
**/
|
|
7335
|
-
| {
|
|
7250
|
+
| {
|
|
7251
|
+
name: 'TransactThroughSovereign';
|
|
7252
|
+
params: {
|
|
7253
|
+
dest: XcmVersionedLocation;
|
|
7254
|
+
feePayer?: AccountId20Like | undefined;
|
|
7255
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7256
|
+
call: BytesLike;
|
|
7257
|
+
originKind: XcmV3OriginKind;
|
|
7258
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7259
|
+
refund: boolean;
|
|
7260
|
+
};
|
|
7261
|
+
}
|
|
7336
7262
|
/**
|
|
7337
|
-
*
|
|
7338
|
-
*
|
|
7339
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7340
|
-
*
|
|
7341
|
-
* - `id`: The identifier of the asset to be thawed.
|
|
7342
|
-
*
|
|
7343
|
-
* Emits `Thawed`.
|
|
7344
|
-
*
|
|
7345
|
-
* Weight: `O(1)`
|
|
7263
|
+
* Change the transact info of a location
|
|
7346
7264
|
**/
|
|
7347
|
-
| {
|
|
7265
|
+
| {
|
|
7266
|
+
name: 'SetTransactInfo';
|
|
7267
|
+
params: {
|
|
7268
|
+
location: XcmVersionedLocation;
|
|
7269
|
+
transactExtraWeight: SpWeightsWeightV2Weight;
|
|
7270
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
7271
|
+
transactExtraWeightSigned?: SpWeightsWeightV2Weight | undefined;
|
|
7272
|
+
};
|
|
7273
|
+
}
|
|
7348
7274
|
/**
|
|
7349
|
-
*
|
|
7350
|
-
*
|
|
7351
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7352
|
-
*
|
|
7353
|
-
* - `id`: The identifier of the asset.
|
|
7354
|
-
* - `owner`: The new Owner of this asset.
|
|
7355
|
-
*
|
|
7356
|
-
* Emits `OwnerChanged`.
|
|
7357
|
-
*
|
|
7358
|
-
* Weight: `O(1)`
|
|
7275
|
+
* Remove the transact info of a location
|
|
7359
7276
|
**/
|
|
7360
|
-
| { name: '
|
|
7277
|
+
| { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
|
|
7361
7278
|
/**
|
|
7362
|
-
*
|
|
7363
|
-
*
|
|
7364
|
-
*
|
|
7365
|
-
*
|
|
7366
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7367
|
-
* - `issuer`: The new Issuer of this asset.
|
|
7368
|
-
* - `admin`: The new Admin of this asset.
|
|
7369
|
-
* - `freezer`: The new Freezer of this asset.
|
|
7370
|
-
*
|
|
7371
|
-
* Emits `TeamChanged`.
|
|
7279
|
+
* Transact the call through the a signed origin in this chain
|
|
7280
|
+
* that should be converted to a transaction dispatch account in the destination chain
|
|
7281
|
+
* by any method implemented in the destination chains runtime
|
|
7372
7282
|
*
|
|
7373
|
-
*
|
|
7283
|
+
* This time we are giving the currency as a currencyId instead of multilocation
|
|
7374
7284
|
**/
|
|
7375
|
-
| {
|
|
7285
|
+
| {
|
|
7286
|
+
name: 'TransactThroughSigned';
|
|
7287
|
+
params: {
|
|
7288
|
+
dest: XcmVersionedLocation;
|
|
7289
|
+
fee: PalletXcmTransactorCurrencyPayment;
|
|
7290
|
+
call: BytesLike;
|
|
7291
|
+
weightInfo: PalletXcmTransactorTransactWeights;
|
|
7292
|
+
refund: boolean;
|
|
7293
|
+
};
|
|
7294
|
+
}
|
|
7376
7295
|
/**
|
|
7377
|
-
* Set the
|
|
7378
|
-
*
|
|
7379
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7380
|
-
*
|
|
7381
|
-
* Funds of sender are reserved according to the formula:
|
|
7382
|
-
* `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
|
|
7383
|
-
* account any already reserved funds.
|
|
7384
|
-
*
|
|
7385
|
-
* - `id`: The identifier of the asset to update.
|
|
7386
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
7387
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
7388
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
7389
|
-
*
|
|
7390
|
-
* Emits `MetadataSet`.
|
|
7391
|
-
*
|
|
7392
|
-
* Weight: `O(1)`
|
|
7296
|
+
* Set the fee per second of an asset on its reserve chain
|
|
7393
7297
|
**/
|
|
7394
|
-
| { name: '
|
|
7298
|
+
| { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
|
|
7395
7299
|
/**
|
|
7396
|
-
*
|
|
7397
|
-
*
|
|
7398
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7399
|
-
*
|
|
7400
|
-
* Any deposit is freed for the asset owner.
|
|
7401
|
-
*
|
|
7402
|
-
* - `id`: The identifier of the asset to clear.
|
|
7403
|
-
*
|
|
7404
|
-
* Emits `MetadataCleared`.
|
|
7405
|
-
*
|
|
7406
|
-
* Weight: `O(1)`
|
|
7300
|
+
* Remove the fee per second of an asset on its reserve chain
|
|
7407
7301
|
**/
|
|
7408
|
-
| { name: '
|
|
7302
|
+
| { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
|
|
7409
7303
|
/**
|
|
7410
|
-
*
|
|
7411
|
-
*
|
|
7412
|
-
* Origin must be ForceOrigin.
|
|
7413
|
-
*
|
|
7414
|
-
* Any deposit is left alone.
|
|
7415
|
-
*
|
|
7416
|
-
* - `id`: The identifier of the asset to update.
|
|
7417
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
7418
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
7419
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
7420
|
-
*
|
|
7421
|
-
* Emits `MetadataSet`.
|
|
7422
|
-
*
|
|
7423
|
-
* Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
|
|
7424
|
-
**/
|
|
7425
|
-
| {
|
|
7426
|
-
name: 'ForceSetMetadata';
|
|
7427
|
-
params: { id: bigint; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean };
|
|
7428
|
-
}
|
|
7429
|
-
/**
|
|
7430
|
-
* Clear the metadata for an asset.
|
|
7431
|
-
*
|
|
7432
|
-
* Origin must be ForceOrigin.
|
|
7433
|
-
*
|
|
7434
|
-
* Any deposit is returned.
|
|
7435
|
-
*
|
|
7436
|
-
* - `id`: The identifier of the asset to clear.
|
|
7437
|
-
*
|
|
7438
|
-
* Emits `MetadataCleared`.
|
|
7439
|
-
*
|
|
7440
|
-
* Weight: `O(1)`
|
|
7441
|
-
**/
|
|
7442
|
-
| { name: 'ForceClearMetadata'; params: { id: bigint } }
|
|
7443
|
-
/**
|
|
7444
|
-
* Alter the attributes of a given asset.
|
|
7445
|
-
*
|
|
7446
|
-
* Origin must be `ForceOrigin`.
|
|
7447
|
-
*
|
|
7448
|
-
* - `id`: The identifier of the asset.
|
|
7449
|
-
* - `owner`: The new Owner of this asset.
|
|
7450
|
-
* - `issuer`: The new Issuer of this asset.
|
|
7451
|
-
* - `admin`: The new Admin of this asset.
|
|
7452
|
-
* - `freezer`: The new Freezer of this asset.
|
|
7453
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
7454
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
7455
|
-
* - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
|
|
7456
|
-
* value to account for the state bloat associated with its balance storage. If set to
|
|
7457
|
-
* `true`, then non-zero balances may be stored without a `consumer` reference (and thus
|
|
7458
|
-
* an ED in the Balances pallet or whatever else is used to control user-account state
|
|
7459
|
-
* growth).
|
|
7460
|
-
* - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
|
|
7461
|
-
* instructions.
|
|
7462
|
-
*
|
|
7463
|
-
* Emits `AssetStatusChanged` with the identity of the asset.
|
|
7464
|
-
*
|
|
7465
|
-
* Weight: `O(1)`
|
|
7466
|
-
**/
|
|
7467
|
-
| {
|
|
7468
|
-
name: 'ForceAssetStatus';
|
|
7469
|
-
params: {
|
|
7470
|
-
id: bigint;
|
|
7471
|
-
owner: AccountId20;
|
|
7472
|
-
issuer: AccountId20;
|
|
7473
|
-
admin: AccountId20;
|
|
7474
|
-
freezer: AccountId20;
|
|
7475
|
-
minBalance: bigint;
|
|
7476
|
-
isSufficient: boolean;
|
|
7477
|
-
isFrozen: boolean;
|
|
7478
|
-
};
|
|
7479
|
-
}
|
|
7480
|
-
/**
|
|
7481
|
-
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
7482
|
-
*
|
|
7483
|
-
* Origin must be Signed.
|
|
7484
|
-
*
|
|
7485
|
-
* Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
|
|
7486
|
-
* for the purpose of holding the approval. If some non-zero amount of assets is already
|
|
7487
|
-
* approved from signing account to `delegate`, then it is topped up or unreserved to
|
|
7488
|
-
* meet the right value.
|
|
7489
|
-
*
|
|
7490
|
-
* NOTE: The signing account does not need to own `amount` of assets at the point of
|
|
7491
|
-
* making this call.
|
|
7492
|
-
*
|
|
7493
|
-
* - `id`: The identifier of the asset.
|
|
7494
|
-
* - `delegate`: The account to delegate permission to transfer asset.
|
|
7495
|
-
* - `amount`: The amount of asset that may be transferred by `delegate`. If there is
|
|
7496
|
-
* already an approval in place, then this acts additively.
|
|
7497
|
-
*
|
|
7498
|
-
* Emits `ApprovedTransfer` on success.
|
|
7499
|
-
*
|
|
7500
|
-
* Weight: `O(1)`
|
|
7501
|
-
**/
|
|
7502
|
-
| { name: 'ApproveTransfer'; params: { id: bigint; delegate: AccountId20; amount: bigint } }
|
|
7503
|
-
/**
|
|
7504
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
7505
|
-
*
|
|
7506
|
-
* Origin must be Signed and there must be an approval in place between signer and
|
|
7507
|
-
* `delegate`.
|
|
7508
|
-
*
|
|
7509
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
7510
|
-
*
|
|
7511
|
-
* - `id`: The identifier of the asset.
|
|
7512
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
7513
|
-
*
|
|
7514
|
-
* Emits `ApprovalCancelled` on success.
|
|
7515
|
-
*
|
|
7516
|
-
* Weight: `O(1)`
|
|
7517
|
-
**/
|
|
7518
|
-
| { name: 'CancelApproval'; params: { id: bigint; delegate: AccountId20 } }
|
|
7519
|
-
/**
|
|
7520
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
7521
|
-
*
|
|
7522
|
-
* Origin must be either ForceOrigin or Signed origin with the signer being the Admin
|
|
7523
|
-
* account of the asset `id`.
|
|
7524
|
-
*
|
|
7525
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
7526
|
-
*
|
|
7527
|
-
* - `id`: The identifier of the asset.
|
|
7528
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
7529
|
-
*
|
|
7530
|
-
* Emits `ApprovalCancelled` on success.
|
|
7531
|
-
*
|
|
7532
|
-
* Weight: `O(1)`
|
|
7533
|
-
**/
|
|
7534
|
-
| { name: 'ForceCancelApproval'; params: { id: bigint; owner: AccountId20; delegate: AccountId20 } }
|
|
7535
|
-
/**
|
|
7536
|
-
* Transfer some asset balance from a previously delegated account to some third-party
|
|
7537
|
-
* account.
|
|
7538
|
-
*
|
|
7539
|
-
* Origin must be Signed and there must be an approval in place by the `owner` to the
|
|
7540
|
-
* signer.
|
|
7541
|
-
*
|
|
7542
|
-
* If the entire amount approved for transfer is transferred, then any deposit previously
|
|
7543
|
-
* reserved by `approve_transfer` is unreserved.
|
|
7544
|
-
*
|
|
7545
|
-
* - `id`: The identifier of the asset.
|
|
7546
|
-
* - `owner`: The account which previously approved for a transfer of at least `amount` and
|
|
7547
|
-
* from which the asset balance will be withdrawn.
|
|
7548
|
-
* - `destination`: The account to which the asset balance of `amount` will be transferred.
|
|
7549
|
-
* - `amount`: The amount of assets to transfer.
|
|
7550
|
-
*
|
|
7551
|
-
* Emits `TransferredApproved` on success.
|
|
7552
|
-
*
|
|
7553
|
-
* Weight: `O(1)`
|
|
7554
|
-
**/
|
|
7555
|
-
| { name: 'TransferApproved'; params: { id: bigint; owner: AccountId20; destination: AccountId20; amount: bigint } }
|
|
7556
|
-
/**
|
|
7557
|
-
* Create an asset account for non-provider assets.
|
|
7558
|
-
*
|
|
7559
|
-
* A deposit will be taken from the signer account.
|
|
7560
|
-
*
|
|
7561
|
-
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
7562
|
-
* to be taken.
|
|
7563
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
7564
|
-
*
|
|
7565
|
-
* Emits `Touched` event when successful.
|
|
7566
|
-
**/
|
|
7567
|
-
| { name: 'Touch'; params: { id: bigint } }
|
|
7568
|
-
/**
|
|
7569
|
-
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
|
7570
|
-
* account.
|
|
7571
|
-
*
|
|
7572
|
-
* The origin must be Signed.
|
|
7573
|
-
*
|
|
7574
|
-
* - `id`: The identifier of the asset for which the caller would like the deposit
|
|
7575
|
-
* refunded.
|
|
7576
|
-
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
7577
|
-
*
|
|
7578
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7579
|
-
* the asset account contains holds or freezes in place.
|
|
7580
|
-
*
|
|
7581
|
-
* Emits `Refunded` event when successful.
|
|
7582
|
-
**/
|
|
7583
|
-
| { name: 'Refund'; params: { id: bigint; allowBurn: boolean } }
|
|
7584
|
-
/**
|
|
7585
|
-
* Sets the minimum balance of an asset.
|
|
7586
|
-
*
|
|
7587
|
-
* Only works if there aren't any accounts that are holding the asset or if
|
|
7588
|
-
* the new value of `min_balance` is less than the old one.
|
|
7589
|
-
*
|
|
7590
|
-
* Origin must be Signed and the sender has to be the Owner of the
|
|
7591
|
-
* asset `id`.
|
|
7592
|
-
*
|
|
7593
|
-
* - `id`: The identifier of the asset.
|
|
7594
|
-
* - `min_balance`: The new value of `min_balance`.
|
|
7595
|
-
*
|
|
7596
|
-
* Emits `AssetMinBalanceChanged` event when successful.
|
|
7597
|
-
**/
|
|
7598
|
-
| { name: 'SetMinBalance'; params: { id: bigint; minBalance: bigint } }
|
|
7599
|
-
/**
|
|
7600
|
-
* Create an asset account for `who`.
|
|
7601
|
-
*
|
|
7602
|
-
* A deposit will be taken from the signer account.
|
|
7603
|
-
*
|
|
7604
|
-
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
|
7605
|
-
* must have sufficient funds for a deposit to be taken.
|
|
7606
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
7607
|
-
* - `who`: The account to be created.
|
|
7608
|
-
*
|
|
7609
|
-
* Emits `Touched` event when successful.
|
|
7610
|
-
**/
|
|
7611
|
-
| { name: 'TouchOther'; params: { id: bigint; who: AccountId20 } }
|
|
7612
|
-
/**
|
|
7613
|
-
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
|
7614
|
-
*
|
|
7615
|
-
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
|
7616
|
-
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
|
7617
|
-
* use `refund`.
|
|
7618
|
-
*
|
|
7619
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
7620
|
-
* - `who`: The account to refund.
|
|
7621
|
-
*
|
|
7622
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7623
|
-
* the asset account contains holds or freezes in place.
|
|
7624
|
-
*
|
|
7625
|
-
* Emits `Refunded` event when successful.
|
|
7626
|
-
**/
|
|
7627
|
-
| { name: 'RefundOther'; params: { id: bigint; who: AccountId20 } }
|
|
7628
|
-
/**
|
|
7629
|
-
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
|
7630
|
-
*
|
|
7631
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7632
|
-
*
|
|
7633
|
-
* - `id`: The identifier of the account's asset.
|
|
7634
|
-
* - `who`: The account to be unblocked.
|
|
7635
|
-
*
|
|
7636
|
-
* Emits `Blocked`.
|
|
7637
|
-
*
|
|
7638
|
-
* Weight: `O(1)`
|
|
7639
|
-
**/
|
|
7640
|
-
| { name: 'Block'; params: { id: bigint; who: AccountId20 } }
|
|
7641
|
-
/**
|
|
7642
|
-
* Transfer the entire transferable balance from the caller asset account.
|
|
7643
|
-
*
|
|
7644
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
7645
|
-
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
7646
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
7647
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
7648
|
-
* deposits, etc...
|
|
7649
|
-
*
|
|
7650
|
-
* The dispatch origin of this call must be Signed.
|
|
7651
|
-
*
|
|
7652
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
7653
|
-
* - `dest`: The recipient of the transfer.
|
|
7654
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
7655
|
-
* of the funds the asset account has, causing the sender asset account to be killed
|
|
7656
|
-
* (false), or transfer everything except at least the minimum balance, which will
|
|
7657
|
-
* guarantee to keep the sender asset account alive (true).
|
|
7658
|
-
**/
|
|
7659
|
-
| { name: 'TransferAll'; params: { id: bigint; dest: AccountId20; keepAlive: boolean } };
|
|
7660
|
-
|
|
7661
|
-
export type PalletAssetsCallLike =
|
|
7662
|
-
/**
|
|
7663
|
-
* Issue a new class of fungible assets from a public origin.
|
|
7664
|
-
*
|
|
7665
|
-
* This new asset class has no assets initially and its owner is the origin.
|
|
7666
|
-
*
|
|
7667
|
-
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
7668
|
-
*
|
|
7669
|
-
* Funds of sender are reserved by `AssetDeposit`.
|
|
7670
|
-
*
|
|
7671
|
-
* Parameters:
|
|
7672
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7673
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7674
|
-
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
7675
|
-
* member of the asset class's admin team.
|
|
7676
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
7677
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
7678
|
-
*
|
|
7679
|
-
* Emits `Created` event when successful.
|
|
7680
|
-
*
|
|
7681
|
-
* Weight: `O(1)`
|
|
7682
|
-
**/
|
|
7683
|
-
| { name: 'Create'; params: { id: bigint; admin: AccountId20Like; minBalance: bigint } }
|
|
7684
|
-
/**
|
|
7685
|
-
* Issue a new class of fungible assets from a privileged origin.
|
|
7686
|
-
*
|
|
7687
|
-
* This new asset class has no assets initially.
|
|
7688
|
-
*
|
|
7689
|
-
* The origin must conform to `ForceOrigin`.
|
|
7690
|
-
*
|
|
7691
|
-
* Unlike `create`, no funds are reserved.
|
|
7692
|
-
*
|
|
7693
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7694
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7695
|
-
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
7696
|
-
* over this asset, but may later change and configure the permissions using
|
|
7697
|
-
* `transfer_ownership` and `set_team`.
|
|
7698
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
7699
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
7700
|
-
*
|
|
7701
|
-
* Emits `ForceCreated` event when successful.
|
|
7702
|
-
*
|
|
7703
|
-
* Weight: `O(1)`
|
|
7704
|
-
**/
|
|
7705
|
-
| { name: 'ForceCreate'; params: { id: bigint; owner: AccountId20Like; isSufficient: boolean; minBalance: bigint } }
|
|
7706
|
-
/**
|
|
7707
|
-
* Start the process of destroying a fungible asset class.
|
|
7708
|
-
*
|
|
7709
|
-
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
7710
|
-
* destruction of an asset class.
|
|
7711
|
-
*
|
|
7712
|
-
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
7713
|
-
*
|
|
7714
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7715
|
-
* asset.
|
|
7716
|
-
*
|
|
7717
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7718
|
-
* an account contains holds or freezes in place.
|
|
7719
|
-
**/
|
|
7720
|
-
| { name: 'StartDestroy'; params: { id: bigint } }
|
|
7721
|
-
/**
|
|
7722
|
-
* Destroy all accounts associated with a given asset.
|
|
7723
|
-
*
|
|
7724
|
-
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
7725
|
-
* asset is in a `Destroying` state.
|
|
7726
|
-
*
|
|
7727
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
7728
|
-
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
7729
|
-
*
|
|
7730
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7731
|
-
* asset.
|
|
7732
|
-
*
|
|
7733
|
-
* Each call emits the `Event::DestroyedAccounts` event.
|
|
7734
|
-
**/
|
|
7735
|
-
| { name: 'DestroyAccounts'; params: { id: bigint } }
|
|
7736
|
-
/**
|
|
7737
|
-
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
|
7738
|
-
*
|
|
7739
|
-
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
7740
|
-
* asset is in a `Destroying` state.
|
|
7741
|
-
*
|
|
7742
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
7743
|
-
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
7744
|
-
*
|
|
7745
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7746
|
-
* asset.
|
|
7747
|
-
*
|
|
7748
|
-
* Each call emits the `Event::DestroyedApprovals` event.
|
|
7749
|
-
**/
|
|
7750
|
-
| { name: 'DestroyApprovals'; params: { id: bigint } }
|
|
7751
|
-
/**
|
|
7752
|
-
* Complete destroying asset and unreserve currency.
|
|
7753
|
-
*
|
|
7754
|
-
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
7755
|
-
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
7756
|
-
* hand.
|
|
7757
|
-
*
|
|
7758
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
7759
|
-
* asset.
|
|
7760
|
-
*
|
|
7761
|
-
* Each successful call emits the `Event::Destroyed` event.
|
|
7762
|
-
**/
|
|
7763
|
-
| { name: 'FinishDestroy'; params: { id: bigint } }
|
|
7764
|
-
/**
|
|
7765
|
-
* Mint assets of a particular class.
|
|
7766
|
-
*
|
|
7767
|
-
* The origin must be Signed and the sender must be the Issuer of the asset `id`.
|
|
7768
|
-
*
|
|
7769
|
-
* - `id`: The identifier of the asset to have some amount minted.
|
|
7770
|
-
* - `beneficiary`: The account to be credited with the minted assets.
|
|
7771
|
-
* - `amount`: The amount of the asset to be minted.
|
|
7772
|
-
*
|
|
7773
|
-
* Emits `Issued` event when successful.
|
|
7774
|
-
*
|
|
7775
|
-
* Weight: `O(1)`
|
|
7776
|
-
* Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
|
|
7777
|
-
**/
|
|
7778
|
-
| { name: 'Mint'; params: { id: bigint; beneficiary: AccountId20Like; amount: bigint } }
|
|
7779
|
-
/**
|
|
7780
|
-
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
|
|
7781
|
-
*
|
|
7782
|
-
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
7783
|
-
*
|
|
7784
|
-
* Bails with `NoAccount` if the `who` is already dead.
|
|
7785
|
-
*
|
|
7786
|
-
* - `id`: The identifier of the asset to have some amount burned.
|
|
7787
|
-
* - `who`: The account to be debited from.
|
|
7788
|
-
* - `amount`: The maximum amount by which `who`'s balance should be reduced.
|
|
7789
|
-
*
|
|
7790
|
-
* Emits `Burned` with the actual amount burned. If this takes the balance to below the
|
|
7791
|
-
* minimum for the asset, then the amount burned is increased to take it to zero.
|
|
7792
|
-
*
|
|
7793
|
-
* Weight: `O(1)`
|
|
7794
|
-
* Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
|
|
7795
|
-
**/
|
|
7796
|
-
| { name: 'Burn'; params: { id: bigint; who: AccountId20Like; amount: bigint } }
|
|
7797
|
-
/**
|
|
7798
|
-
* Move some assets from the sender account to another.
|
|
7799
|
-
*
|
|
7800
|
-
* Origin must be Signed.
|
|
7801
|
-
*
|
|
7802
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7803
|
-
* - `target`: The account to be credited.
|
|
7804
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
7805
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7806
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
7807
|
-
* the minimum balance. Must be greater than zero.
|
|
7808
|
-
*
|
|
7809
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
7810
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
7811
|
-
* to zero.
|
|
7812
|
-
*
|
|
7813
|
-
* Weight: `O(1)`
|
|
7814
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
7815
|
-
* `target`.
|
|
7816
|
-
**/
|
|
7817
|
-
| { name: 'Transfer'; params: { id: bigint; target: AccountId20Like; amount: bigint } }
|
|
7818
|
-
/**
|
|
7819
|
-
* Move some assets from the sender account to another, keeping the sender account alive.
|
|
7820
|
-
*
|
|
7821
|
-
* Origin must be Signed.
|
|
7822
|
-
*
|
|
7823
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7824
|
-
* - `target`: The account to be credited.
|
|
7825
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
7826
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7827
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
7828
|
-
* the minimum balance. Must be greater than zero.
|
|
7829
|
-
*
|
|
7830
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
7831
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
7832
|
-
* to zero.
|
|
7833
|
-
*
|
|
7834
|
-
* Weight: `O(1)`
|
|
7835
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
7836
|
-
* `target`.
|
|
7837
|
-
**/
|
|
7838
|
-
| { name: 'TransferKeepAlive'; params: { id: bigint; target: AccountId20Like; amount: bigint } }
|
|
7839
|
-
/**
|
|
7840
|
-
* Move some assets from one account to another.
|
|
7841
|
-
*
|
|
7842
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7843
|
-
*
|
|
7844
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
7845
|
-
* - `source`: The account to be debited.
|
|
7846
|
-
* - `dest`: The account to be credited.
|
|
7847
|
-
* - `amount`: The amount by which the `source`'s balance of assets should be reduced and
|
|
7848
|
-
* `dest`'s balance increased. The amount actually transferred may be slightly greater in
|
|
7849
|
-
* the case that the transfer would otherwise take the `source` balance above zero but
|
|
7850
|
-
* below the minimum balance. Must be greater than zero.
|
|
7851
|
-
*
|
|
7852
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
7853
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
7854
|
-
* to zero.
|
|
7855
|
-
*
|
|
7856
|
-
* Weight: `O(1)`
|
|
7857
|
-
* Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
|
|
7858
|
-
* `dest`.
|
|
7859
|
-
**/
|
|
7860
|
-
| { name: 'ForceTransfer'; params: { id: bigint; source: AccountId20Like; dest: AccountId20Like; amount: bigint } }
|
|
7861
|
-
/**
|
|
7862
|
-
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
|
|
7863
|
-
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
|
|
7864
|
-
* account that does not have an entry, use `touch_other` first.
|
|
7865
|
-
*
|
|
7866
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7867
|
-
*
|
|
7868
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7869
|
-
* - `who`: The account to be frozen.
|
|
7870
|
-
*
|
|
7871
|
-
* Emits `Frozen`.
|
|
7872
|
-
*
|
|
7873
|
-
* Weight: `O(1)`
|
|
7874
|
-
**/
|
|
7875
|
-
| { name: 'Freeze'; params: { id: bigint; who: AccountId20Like } }
|
|
7876
|
-
/**
|
|
7877
|
-
* Allow unprivileged transfers to and from an account again.
|
|
7878
|
-
*
|
|
7879
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7880
|
-
*
|
|
7881
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7882
|
-
* - `who`: The account to be unfrozen.
|
|
7883
|
-
*
|
|
7884
|
-
* Emits `Thawed`.
|
|
7885
|
-
*
|
|
7886
|
-
* Weight: `O(1)`
|
|
7887
|
-
**/
|
|
7888
|
-
| { name: 'Thaw'; params: { id: bigint; who: AccountId20Like } }
|
|
7889
|
-
/**
|
|
7890
|
-
* Disallow further unprivileged transfers for the asset class.
|
|
7891
|
-
*
|
|
7892
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7893
|
-
*
|
|
7894
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7895
|
-
*
|
|
7896
|
-
* Emits `Frozen`.
|
|
7897
|
-
*
|
|
7898
|
-
* Weight: `O(1)`
|
|
7899
|
-
**/
|
|
7900
|
-
| { name: 'FreezeAsset'; params: { id: bigint } }
|
|
7901
|
-
/**
|
|
7902
|
-
* Allow unprivileged transfers for the asset again.
|
|
7903
|
-
*
|
|
7904
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
7905
|
-
*
|
|
7906
|
-
* - `id`: The identifier of the asset to be thawed.
|
|
7907
|
-
*
|
|
7908
|
-
* Emits `Thawed`.
|
|
7909
|
-
*
|
|
7910
|
-
* Weight: `O(1)`
|
|
7911
|
-
**/
|
|
7912
|
-
| { name: 'ThawAsset'; params: { id: bigint } }
|
|
7913
|
-
/**
|
|
7914
|
-
* Change the Owner of an asset.
|
|
7915
|
-
*
|
|
7916
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7917
|
-
*
|
|
7918
|
-
* - `id`: The identifier of the asset.
|
|
7919
|
-
* - `owner`: The new Owner of this asset.
|
|
7920
|
-
*
|
|
7921
|
-
* Emits `OwnerChanged`.
|
|
7922
|
-
*
|
|
7923
|
-
* Weight: `O(1)`
|
|
7924
|
-
**/
|
|
7925
|
-
| { name: 'TransferOwnership'; params: { id: bigint; owner: AccountId20Like } }
|
|
7926
|
-
/**
|
|
7927
|
-
* Change the Issuer, Admin and Freezer of an asset.
|
|
7928
|
-
*
|
|
7929
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7930
|
-
*
|
|
7931
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
7932
|
-
* - `issuer`: The new Issuer of this asset.
|
|
7933
|
-
* - `admin`: The new Admin of this asset.
|
|
7934
|
-
* - `freezer`: The new Freezer of this asset.
|
|
7935
|
-
*
|
|
7936
|
-
* Emits `TeamChanged`.
|
|
7937
|
-
*
|
|
7938
|
-
* Weight: `O(1)`
|
|
7939
|
-
**/
|
|
7940
|
-
| {
|
|
7941
|
-
name: 'SetTeam';
|
|
7942
|
-
params: { id: bigint; issuer: AccountId20Like; admin: AccountId20Like; freezer: AccountId20Like };
|
|
7943
|
-
}
|
|
7944
|
-
/**
|
|
7945
|
-
* Set the metadata for an asset.
|
|
7946
|
-
*
|
|
7947
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7948
|
-
*
|
|
7949
|
-
* Funds of sender are reserved according to the formula:
|
|
7950
|
-
* `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
|
|
7951
|
-
* account any already reserved funds.
|
|
7952
|
-
*
|
|
7953
|
-
* - `id`: The identifier of the asset to update.
|
|
7954
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
7955
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
7956
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
7957
|
-
*
|
|
7958
|
-
* Emits `MetadataSet`.
|
|
7959
|
-
*
|
|
7960
|
-
* Weight: `O(1)`
|
|
7961
|
-
**/
|
|
7962
|
-
| { name: 'SetMetadata'; params: { id: bigint; name: BytesLike; symbol: BytesLike; decimals: number } }
|
|
7963
|
-
/**
|
|
7964
|
-
* Clear the metadata for an asset.
|
|
7965
|
-
*
|
|
7966
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
7967
|
-
*
|
|
7968
|
-
* Any deposit is freed for the asset owner.
|
|
7969
|
-
*
|
|
7970
|
-
* - `id`: The identifier of the asset to clear.
|
|
7971
|
-
*
|
|
7972
|
-
* Emits `MetadataCleared`.
|
|
7973
|
-
*
|
|
7974
|
-
* Weight: `O(1)`
|
|
7975
|
-
**/
|
|
7976
|
-
| { name: 'ClearMetadata'; params: { id: bigint } }
|
|
7977
|
-
/**
|
|
7978
|
-
* Force the metadata for an asset to some value.
|
|
7979
|
-
*
|
|
7980
|
-
* Origin must be ForceOrigin.
|
|
7981
|
-
*
|
|
7982
|
-
* Any deposit is left alone.
|
|
7983
|
-
*
|
|
7984
|
-
* - `id`: The identifier of the asset to update.
|
|
7985
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
7986
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
7987
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
7988
|
-
*
|
|
7989
|
-
* Emits `MetadataSet`.
|
|
7990
|
-
*
|
|
7991
|
-
* Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
|
|
7992
|
-
**/
|
|
7993
|
-
| {
|
|
7994
|
-
name: 'ForceSetMetadata';
|
|
7995
|
-
params: { id: bigint; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean };
|
|
7996
|
-
}
|
|
7997
|
-
/**
|
|
7998
|
-
* Clear the metadata for an asset.
|
|
7999
|
-
*
|
|
8000
|
-
* Origin must be ForceOrigin.
|
|
8001
|
-
*
|
|
8002
|
-
* Any deposit is returned.
|
|
8003
|
-
*
|
|
8004
|
-
* - `id`: The identifier of the asset to clear.
|
|
8005
|
-
*
|
|
8006
|
-
* Emits `MetadataCleared`.
|
|
8007
|
-
*
|
|
8008
|
-
* Weight: `O(1)`
|
|
8009
|
-
**/
|
|
8010
|
-
| { name: 'ForceClearMetadata'; params: { id: bigint } }
|
|
8011
|
-
/**
|
|
8012
|
-
* Alter the attributes of a given asset.
|
|
8013
|
-
*
|
|
8014
|
-
* Origin must be `ForceOrigin`.
|
|
8015
|
-
*
|
|
8016
|
-
* - `id`: The identifier of the asset.
|
|
8017
|
-
* - `owner`: The new Owner of this asset.
|
|
8018
|
-
* - `issuer`: The new Issuer of this asset.
|
|
8019
|
-
* - `admin`: The new Admin of this asset.
|
|
8020
|
-
* - `freezer`: The new Freezer of this asset.
|
|
8021
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
8022
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
8023
|
-
* - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
|
|
8024
|
-
* value to account for the state bloat associated with its balance storage. If set to
|
|
8025
|
-
* `true`, then non-zero balances may be stored without a `consumer` reference (and thus
|
|
8026
|
-
* an ED in the Balances pallet or whatever else is used to control user-account state
|
|
8027
|
-
* growth).
|
|
8028
|
-
* - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
|
|
8029
|
-
* instructions.
|
|
8030
|
-
*
|
|
8031
|
-
* Emits `AssetStatusChanged` with the identity of the asset.
|
|
8032
|
-
*
|
|
8033
|
-
* Weight: `O(1)`
|
|
8034
|
-
**/
|
|
8035
|
-
| {
|
|
8036
|
-
name: 'ForceAssetStatus';
|
|
8037
|
-
params: {
|
|
8038
|
-
id: bigint;
|
|
8039
|
-
owner: AccountId20Like;
|
|
8040
|
-
issuer: AccountId20Like;
|
|
8041
|
-
admin: AccountId20Like;
|
|
8042
|
-
freezer: AccountId20Like;
|
|
8043
|
-
minBalance: bigint;
|
|
8044
|
-
isSufficient: boolean;
|
|
8045
|
-
isFrozen: boolean;
|
|
8046
|
-
};
|
|
8047
|
-
}
|
|
8048
|
-
/**
|
|
8049
|
-
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
8050
|
-
*
|
|
8051
|
-
* Origin must be Signed.
|
|
8052
|
-
*
|
|
8053
|
-
* Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
|
|
8054
|
-
* for the purpose of holding the approval. If some non-zero amount of assets is already
|
|
8055
|
-
* approved from signing account to `delegate`, then it is topped up or unreserved to
|
|
8056
|
-
* meet the right value.
|
|
8057
|
-
*
|
|
8058
|
-
* NOTE: The signing account does not need to own `amount` of assets at the point of
|
|
8059
|
-
* making this call.
|
|
8060
|
-
*
|
|
8061
|
-
* - `id`: The identifier of the asset.
|
|
8062
|
-
* - `delegate`: The account to delegate permission to transfer asset.
|
|
8063
|
-
* - `amount`: The amount of asset that may be transferred by `delegate`. If there is
|
|
8064
|
-
* already an approval in place, then this acts additively.
|
|
8065
|
-
*
|
|
8066
|
-
* Emits `ApprovedTransfer` on success.
|
|
8067
|
-
*
|
|
8068
|
-
* Weight: `O(1)`
|
|
8069
|
-
**/
|
|
8070
|
-
| { name: 'ApproveTransfer'; params: { id: bigint; delegate: AccountId20Like; amount: bigint } }
|
|
8071
|
-
/**
|
|
8072
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
8073
|
-
*
|
|
8074
|
-
* Origin must be Signed and there must be an approval in place between signer and
|
|
8075
|
-
* `delegate`.
|
|
8076
|
-
*
|
|
8077
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
8078
|
-
*
|
|
8079
|
-
* - `id`: The identifier of the asset.
|
|
8080
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
8081
|
-
*
|
|
8082
|
-
* Emits `ApprovalCancelled` on success.
|
|
8083
|
-
*
|
|
8084
|
-
* Weight: `O(1)`
|
|
8085
|
-
**/
|
|
8086
|
-
| { name: 'CancelApproval'; params: { id: bigint; delegate: AccountId20Like } }
|
|
8087
|
-
/**
|
|
8088
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
8089
|
-
*
|
|
8090
|
-
* Origin must be either ForceOrigin or Signed origin with the signer being the Admin
|
|
8091
|
-
* account of the asset `id`.
|
|
8092
|
-
*
|
|
8093
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
8094
|
-
*
|
|
8095
|
-
* - `id`: The identifier of the asset.
|
|
8096
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
8097
|
-
*
|
|
8098
|
-
* Emits `ApprovalCancelled` on success.
|
|
8099
|
-
*
|
|
8100
|
-
* Weight: `O(1)`
|
|
8101
|
-
**/
|
|
8102
|
-
| { name: 'ForceCancelApproval'; params: { id: bigint; owner: AccountId20Like; delegate: AccountId20Like } }
|
|
8103
|
-
/**
|
|
8104
|
-
* Transfer some asset balance from a previously delegated account to some third-party
|
|
8105
|
-
* account.
|
|
8106
|
-
*
|
|
8107
|
-
* Origin must be Signed and there must be an approval in place by the `owner` to the
|
|
8108
|
-
* signer.
|
|
8109
|
-
*
|
|
8110
|
-
* If the entire amount approved for transfer is transferred, then any deposit previously
|
|
8111
|
-
* reserved by `approve_transfer` is unreserved.
|
|
8112
|
-
*
|
|
8113
|
-
* - `id`: The identifier of the asset.
|
|
8114
|
-
* - `owner`: The account which previously approved for a transfer of at least `amount` and
|
|
8115
|
-
* from which the asset balance will be withdrawn.
|
|
8116
|
-
* - `destination`: The account to which the asset balance of `amount` will be transferred.
|
|
8117
|
-
* - `amount`: The amount of assets to transfer.
|
|
8118
|
-
*
|
|
8119
|
-
* Emits `TransferredApproved` on success.
|
|
8120
|
-
*
|
|
8121
|
-
* Weight: `O(1)`
|
|
8122
|
-
**/
|
|
8123
|
-
| {
|
|
8124
|
-
name: 'TransferApproved';
|
|
8125
|
-
params: { id: bigint; owner: AccountId20Like; destination: AccountId20Like; amount: bigint };
|
|
8126
|
-
}
|
|
8127
|
-
/**
|
|
8128
|
-
* Create an asset account for non-provider assets.
|
|
8129
|
-
*
|
|
8130
|
-
* A deposit will be taken from the signer account.
|
|
8131
|
-
*
|
|
8132
|
-
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
8133
|
-
* to be taken.
|
|
8134
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
8135
|
-
*
|
|
8136
|
-
* Emits `Touched` event when successful.
|
|
8137
|
-
**/
|
|
8138
|
-
| { name: 'Touch'; params: { id: bigint } }
|
|
8139
|
-
/**
|
|
8140
|
-
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
|
8141
|
-
* account.
|
|
8142
|
-
*
|
|
8143
|
-
* The origin must be Signed.
|
|
8144
|
-
*
|
|
8145
|
-
* - `id`: The identifier of the asset for which the caller would like the deposit
|
|
8146
|
-
* refunded.
|
|
8147
|
-
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
8148
|
-
*
|
|
8149
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
8150
|
-
* the asset account contains holds or freezes in place.
|
|
8151
|
-
*
|
|
8152
|
-
* Emits `Refunded` event when successful.
|
|
8153
|
-
**/
|
|
8154
|
-
| { name: 'Refund'; params: { id: bigint; allowBurn: boolean } }
|
|
8155
|
-
/**
|
|
8156
|
-
* Sets the minimum balance of an asset.
|
|
8157
|
-
*
|
|
8158
|
-
* Only works if there aren't any accounts that are holding the asset or if
|
|
8159
|
-
* the new value of `min_balance` is less than the old one.
|
|
8160
|
-
*
|
|
8161
|
-
* Origin must be Signed and the sender has to be the Owner of the
|
|
8162
|
-
* asset `id`.
|
|
8163
|
-
*
|
|
8164
|
-
* - `id`: The identifier of the asset.
|
|
8165
|
-
* - `min_balance`: The new value of `min_balance`.
|
|
8166
|
-
*
|
|
8167
|
-
* Emits `AssetMinBalanceChanged` event when successful.
|
|
8168
|
-
**/
|
|
8169
|
-
| { name: 'SetMinBalance'; params: { id: bigint; minBalance: bigint } }
|
|
8170
|
-
/**
|
|
8171
|
-
* Create an asset account for `who`.
|
|
8172
|
-
*
|
|
8173
|
-
* A deposit will be taken from the signer account.
|
|
8174
|
-
*
|
|
8175
|
-
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
|
8176
|
-
* must have sufficient funds for a deposit to be taken.
|
|
8177
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
8178
|
-
* - `who`: The account to be created.
|
|
8179
|
-
*
|
|
8180
|
-
* Emits `Touched` event when successful.
|
|
8181
|
-
**/
|
|
8182
|
-
| { name: 'TouchOther'; params: { id: bigint; who: AccountId20Like } }
|
|
8183
|
-
/**
|
|
8184
|
-
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
|
8185
|
-
*
|
|
8186
|
-
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
|
8187
|
-
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
|
8188
|
-
* use `refund`.
|
|
8189
|
-
*
|
|
8190
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
8191
|
-
* - `who`: The account to refund.
|
|
8192
|
-
*
|
|
8193
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
8194
|
-
* the asset account contains holds or freezes in place.
|
|
8195
|
-
*
|
|
8196
|
-
* Emits `Refunded` event when successful.
|
|
8197
|
-
**/
|
|
8198
|
-
| { name: 'RefundOther'; params: { id: bigint; who: AccountId20Like } }
|
|
8199
|
-
/**
|
|
8200
|
-
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
|
8201
|
-
*
|
|
8202
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
8203
|
-
*
|
|
8204
|
-
* - `id`: The identifier of the account's asset.
|
|
8205
|
-
* - `who`: The account to be unblocked.
|
|
8206
|
-
*
|
|
8207
|
-
* Emits `Blocked`.
|
|
8208
|
-
*
|
|
8209
|
-
* Weight: `O(1)`
|
|
8210
|
-
**/
|
|
8211
|
-
| { name: 'Block'; params: { id: bigint; who: AccountId20Like } }
|
|
8212
|
-
/**
|
|
8213
|
-
* Transfer the entire transferable balance from the caller asset account.
|
|
8214
|
-
*
|
|
8215
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
8216
|
-
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
8217
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
8218
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
8219
|
-
* deposits, etc...
|
|
8220
|
-
*
|
|
8221
|
-
* The dispatch origin of this call must be Signed.
|
|
8222
|
-
*
|
|
8223
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
8224
|
-
* - `dest`: The recipient of the transfer.
|
|
8225
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
8226
|
-
* of the funds the asset account has, causing the sender asset account to be killed
|
|
8227
|
-
* (false), or transfer everything except at least the minimum balance, which will
|
|
8228
|
-
* guarantee to keep the sender asset account alive (true).
|
|
8229
|
-
**/
|
|
8230
|
-
| { name: 'TransferAll'; params: { id: bigint; dest: AccountId20Like; keepAlive: boolean } };
|
|
8231
|
-
|
|
8232
|
-
/**
|
|
8233
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8234
|
-
**/
|
|
8235
|
-
export type PalletXcmTransactorCall =
|
|
8236
|
-
/**
|
|
8237
|
-
* Register a derivative index for an account id. Dispatchable by
|
|
8238
|
-
* DerivativeAddressRegistrationOrigin
|
|
8239
|
-
*
|
|
8240
|
-
* We do not store the derivative address, but only the index. We do not need to store
|
|
8241
|
-
* the derivative address to issue calls, only the index is enough
|
|
8242
|
-
*
|
|
8243
|
-
* For now an index is registered for all possible destinations and not per-destination.
|
|
8244
|
-
* We can change this in the future although it would just make things more complicated
|
|
8245
|
-
**/
|
|
8246
|
-
| { name: 'Register'; params: { who: AccountId20; index: number } }
|
|
8247
|
-
/**
|
|
8248
|
-
* De-Register a derivative index. This prevents an account to use a derivative address
|
|
8249
|
-
* (represented by an index) from our of our sovereign accounts anymore
|
|
8250
|
-
**/
|
|
8251
|
-
| { name: 'Deregister'; params: { index: number } }
|
|
8252
|
-
/**
|
|
8253
|
-
* Transact the inner call through a derivative account in a destination chain,
|
|
8254
|
-
* using 'fee_location' to pay for the fees. This fee_location is given as a multilocation
|
|
8255
|
-
*
|
|
8256
|
-
* The caller needs to have the index registered in this pallet. The fee multiasset needs
|
|
8257
|
-
* to be a reserve asset for the destination transactor::multilocation.
|
|
8258
|
-
**/
|
|
8259
|
-
| {
|
|
8260
|
-
name: 'TransactThroughDerivative';
|
|
8261
|
-
params: {
|
|
8262
|
-
dest: MoonbeamRuntimeXcmConfigTransactors;
|
|
8263
|
-
index: number;
|
|
8264
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8265
|
-
innerCall: Bytes;
|
|
8266
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8267
|
-
refund: boolean;
|
|
8268
|
-
};
|
|
8269
|
-
}
|
|
8270
|
-
/**
|
|
8271
|
-
* Transact the call through the sovereign account in a destination chain,
|
|
8272
|
-
* 'fee_payer' pays for the fee
|
|
8273
|
-
*
|
|
8274
|
-
* SovereignAccountDispatcherOrigin callable only
|
|
8275
|
-
**/
|
|
8276
|
-
| {
|
|
8277
|
-
name: 'TransactThroughSovereign';
|
|
8278
|
-
params: {
|
|
8279
|
-
dest: XcmVersionedLocation;
|
|
8280
|
-
feePayer?: AccountId20 | undefined;
|
|
8281
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8282
|
-
call: Bytes;
|
|
8283
|
-
originKind: XcmV3OriginKind;
|
|
8284
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8285
|
-
refund: boolean;
|
|
8286
|
-
};
|
|
8287
|
-
}
|
|
8288
|
-
/**
|
|
8289
|
-
* Change the transact info of a location
|
|
8290
|
-
**/
|
|
8291
|
-
| {
|
|
8292
|
-
name: 'SetTransactInfo';
|
|
8293
|
-
params: {
|
|
8294
|
-
location: XcmVersionedLocation;
|
|
8295
|
-
transactExtraWeight: SpWeightsWeightV2Weight;
|
|
8296
|
-
maxWeight: SpWeightsWeightV2Weight;
|
|
8297
|
-
transactExtraWeightSigned?: SpWeightsWeightV2Weight | undefined;
|
|
8298
|
-
};
|
|
8299
|
-
}
|
|
8300
|
-
/**
|
|
8301
|
-
* Remove the transact info of a location
|
|
8302
|
-
**/
|
|
8303
|
-
| { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
|
|
8304
|
-
/**
|
|
8305
|
-
* Transact the call through the a signed origin in this chain
|
|
8306
|
-
* that should be converted to a transaction dispatch account in the destination chain
|
|
8307
|
-
* by any method implemented in the destination chains runtime
|
|
8308
|
-
*
|
|
8309
|
-
* This time we are giving the currency as a currencyId instead of multilocation
|
|
8310
|
-
**/
|
|
8311
|
-
| {
|
|
8312
|
-
name: 'TransactThroughSigned';
|
|
8313
|
-
params: {
|
|
8314
|
-
dest: XcmVersionedLocation;
|
|
8315
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8316
|
-
call: Bytes;
|
|
8317
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8318
|
-
refund: boolean;
|
|
8319
|
-
};
|
|
8320
|
-
}
|
|
8321
|
-
/**
|
|
8322
|
-
* Set the fee per second of an asset on its reserve chain
|
|
8323
|
-
**/
|
|
8324
|
-
| { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
|
|
8325
|
-
/**
|
|
8326
|
-
* Remove the fee per second of an asset on its reserve chain
|
|
8327
|
-
**/
|
|
8328
|
-
| { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
|
|
8329
|
-
/**
|
|
8330
|
-
* Manage HRMP operations
|
|
8331
|
-
**/
|
|
8332
|
-
| {
|
|
8333
|
-
name: 'HrmpManage';
|
|
8334
|
-
params: {
|
|
8335
|
-
action: PalletXcmTransactorHrmpOperation;
|
|
8336
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8337
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8338
|
-
};
|
|
8339
|
-
};
|
|
8340
|
-
|
|
8341
|
-
export type PalletXcmTransactorCallLike =
|
|
8342
|
-
/**
|
|
8343
|
-
* Register a derivative index for an account id. Dispatchable by
|
|
8344
|
-
* DerivativeAddressRegistrationOrigin
|
|
8345
|
-
*
|
|
8346
|
-
* We do not store the derivative address, but only the index. We do not need to store
|
|
8347
|
-
* the derivative address to issue calls, only the index is enough
|
|
8348
|
-
*
|
|
8349
|
-
* For now an index is registered for all possible destinations and not per-destination.
|
|
8350
|
-
* We can change this in the future although it would just make things more complicated
|
|
8351
|
-
**/
|
|
8352
|
-
| { name: 'Register'; params: { who: AccountId20Like; index: number } }
|
|
8353
|
-
/**
|
|
8354
|
-
* De-Register a derivative index. This prevents an account to use a derivative address
|
|
8355
|
-
* (represented by an index) from our of our sovereign accounts anymore
|
|
8356
|
-
**/
|
|
8357
|
-
| { name: 'Deregister'; params: { index: number } }
|
|
8358
|
-
/**
|
|
8359
|
-
* Transact the inner call through a derivative account in a destination chain,
|
|
8360
|
-
* using 'fee_location' to pay for the fees. This fee_location is given as a multilocation
|
|
8361
|
-
*
|
|
8362
|
-
* The caller needs to have the index registered in this pallet. The fee multiasset needs
|
|
8363
|
-
* to be a reserve asset for the destination transactor::multilocation.
|
|
8364
|
-
**/
|
|
8365
|
-
| {
|
|
8366
|
-
name: 'TransactThroughDerivative';
|
|
8367
|
-
params: {
|
|
8368
|
-
dest: MoonbeamRuntimeXcmConfigTransactors;
|
|
8369
|
-
index: number;
|
|
8370
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8371
|
-
innerCall: BytesLike;
|
|
8372
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8373
|
-
refund: boolean;
|
|
8374
|
-
};
|
|
8375
|
-
}
|
|
8376
|
-
/**
|
|
8377
|
-
* Transact the call through the sovereign account in a destination chain,
|
|
8378
|
-
* 'fee_payer' pays for the fee
|
|
8379
|
-
*
|
|
8380
|
-
* SovereignAccountDispatcherOrigin callable only
|
|
8381
|
-
**/
|
|
8382
|
-
| {
|
|
8383
|
-
name: 'TransactThroughSovereign';
|
|
8384
|
-
params: {
|
|
8385
|
-
dest: XcmVersionedLocation;
|
|
8386
|
-
feePayer?: AccountId20Like | undefined;
|
|
8387
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8388
|
-
call: BytesLike;
|
|
8389
|
-
originKind: XcmV3OriginKind;
|
|
8390
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8391
|
-
refund: boolean;
|
|
8392
|
-
};
|
|
8393
|
-
}
|
|
8394
|
-
/**
|
|
8395
|
-
* Change the transact info of a location
|
|
8396
|
-
**/
|
|
8397
|
-
| {
|
|
8398
|
-
name: 'SetTransactInfo';
|
|
8399
|
-
params: {
|
|
8400
|
-
location: XcmVersionedLocation;
|
|
8401
|
-
transactExtraWeight: SpWeightsWeightV2Weight;
|
|
8402
|
-
maxWeight: SpWeightsWeightV2Weight;
|
|
8403
|
-
transactExtraWeightSigned?: SpWeightsWeightV2Weight | undefined;
|
|
8404
|
-
};
|
|
8405
|
-
}
|
|
8406
|
-
/**
|
|
8407
|
-
* Remove the transact info of a location
|
|
8408
|
-
**/
|
|
8409
|
-
| { name: 'RemoveTransactInfo'; params: { location: XcmVersionedLocation } }
|
|
8410
|
-
/**
|
|
8411
|
-
* Transact the call through the a signed origin in this chain
|
|
8412
|
-
* that should be converted to a transaction dispatch account in the destination chain
|
|
8413
|
-
* by any method implemented in the destination chains runtime
|
|
8414
|
-
*
|
|
8415
|
-
* This time we are giving the currency as a currencyId instead of multilocation
|
|
8416
|
-
**/
|
|
8417
|
-
| {
|
|
8418
|
-
name: 'TransactThroughSigned';
|
|
8419
|
-
params: {
|
|
8420
|
-
dest: XcmVersionedLocation;
|
|
8421
|
-
fee: PalletXcmTransactorCurrencyPayment;
|
|
8422
|
-
call: BytesLike;
|
|
8423
|
-
weightInfo: PalletXcmTransactorTransactWeights;
|
|
8424
|
-
refund: boolean;
|
|
8425
|
-
};
|
|
8426
|
-
}
|
|
8427
|
-
/**
|
|
8428
|
-
* Set the fee per second of an asset on its reserve chain
|
|
8429
|
-
**/
|
|
8430
|
-
| { name: 'SetFeePerSecond'; params: { assetLocation: XcmVersionedLocation; feePerSecond: bigint } }
|
|
8431
|
-
/**
|
|
8432
|
-
* Remove the fee per second of an asset on its reserve chain
|
|
8433
|
-
**/
|
|
8434
|
-
| { name: 'RemoveFeePerSecond'; params: { assetLocation: XcmVersionedLocation } }
|
|
8435
|
-
/**
|
|
8436
|
-
* Manage HRMP operations
|
|
7304
|
+
* Manage HRMP operations
|
|
8437
7305
|
**/
|
|
8438
7306
|
| {
|
|
8439
7307
|
name: 'HrmpManage';
|
|
@@ -9897,119 +8765,6 @@ export type XcmV3TraitsSendError =
|
|
|
9897
8765
|
| 'MissingArgument'
|
|
9898
8766
|
| 'Fees';
|
|
9899
8767
|
|
|
9900
|
-
/**
|
|
9901
|
-
* The `Event` enum of this pallet
|
|
9902
|
-
**/
|
|
9903
|
-
export type PalletAssetsEvent =
|
|
9904
|
-
/**
|
|
9905
|
-
* Some asset class was created.
|
|
9906
|
-
**/
|
|
9907
|
-
| { name: 'Created'; data: { assetId: bigint; creator: AccountId20; owner: AccountId20 } }
|
|
9908
|
-
/**
|
|
9909
|
-
* Some assets were issued.
|
|
9910
|
-
**/
|
|
9911
|
-
| { name: 'Issued'; data: { assetId: bigint; owner: AccountId20; amount: bigint } }
|
|
9912
|
-
/**
|
|
9913
|
-
* Some assets were transferred.
|
|
9914
|
-
**/
|
|
9915
|
-
| { name: 'Transferred'; data: { assetId: bigint; from: AccountId20; to: AccountId20; amount: bigint } }
|
|
9916
|
-
/**
|
|
9917
|
-
* Some assets were destroyed.
|
|
9918
|
-
**/
|
|
9919
|
-
| { name: 'Burned'; data: { assetId: bigint; owner: AccountId20; balance: bigint } }
|
|
9920
|
-
/**
|
|
9921
|
-
* The management team changed.
|
|
9922
|
-
**/
|
|
9923
|
-
| { name: 'TeamChanged'; data: { assetId: bigint; issuer: AccountId20; admin: AccountId20; freezer: AccountId20 } }
|
|
9924
|
-
/**
|
|
9925
|
-
* The owner changed.
|
|
9926
|
-
**/
|
|
9927
|
-
| { name: 'OwnerChanged'; data: { assetId: bigint; owner: AccountId20 } }
|
|
9928
|
-
/**
|
|
9929
|
-
* Some account `who` was frozen.
|
|
9930
|
-
**/
|
|
9931
|
-
| { name: 'Frozen'; data: { assetId: bigint; who: AccountId20 } }
|
|
9932
|
-
/**
|
|
9933
|
-
* Some account `who` was thawed.
|
|
9934
|
-
**/
|
|
9935
|
-
| { name: 'Thawed'; data: { assetId: bigint; who: AccountId20 } }
|
|
9936
|
-
/**
|
|
9937
|
-
* Some asset `asset_id` was frozen.
|
|
9938
|
-
**/
|
|
9939
|
-
| { name: 'AssetFrozen'; data: { assetId: bigint } }
|
|
9940
|
-
/**
|
|
9941
|
-
* Some asset `asset_id` was thawed.
|
|
9942
|
-
**/
|
|
9943
|
-
| { name: 'AssetThawed'; data: { assetId: bigint } }
|
|
9944
|
-
/**
|
|
9945
|
-
* Accounts were destroyed for given asset.
|
|
9946
|
-
**/
|
|
9947
|
-
| { name: 'AccountsDestroyed'; data: { assetId: bigint; accountsDestroyed: number; accountsRemaining: number } }
|
|
9948
|
-
/**
|
|
9949
|
-
* Approvals were destroyed for given asset.
|
|
9950
|
-
**/
|
|
9951
|
-
| { name: 'ApprovalsDestroyed'; data: { assetId: bigint; approvalsDestroyed: number; approvalsRemaining: number } }
|
|
9952
|
-
/**
|
|
9953
|
-
* An asset class is in the process of being destroyed.
|
|
9954
|
-
**/
|
|
9955
|
-
| { name: 'DestructionStarted'; data: { assetId: bigint } }
|
|
9956
|
-
/**
|
|
9957
|
-
* An asset class was destroyed.
|
|
9958
|
-
**/
|
|
9959
|
-
| { name: 'Destroyed'; data: { assetId: bigint } }
|
|
9960
|
-
/**
|
|
9961
|
-
* Some asset class was force-created.
|
|
9962
|
-
**/
|
|
9963
|
-
| { name: 'ForceCreated'; data: { assetId: bigint; owner: AccountId20 } }
|
|
9964
|
-
/**
|
|
9965
|
-
* New metadata has been set for an asset.
|
|
9966
|
-
**/
|
|
9967
|
-
| { name: 'MetadataSet'; data: { assetId: bigint; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean } }
|
|
9968
|
-
/**
|
|
9969
|
-
* Metadata has been cleared for an asset.
|
|
9970
|
-
**/
|
|
9971
|
-
| { name: 'MetadataCleared'; data: { assetId: bigint } }
|
|
9972
|
-
/**
|
|
9973
|
-
* (Additional) funds have been approved for transfer to a destination account.
|
|
9974
|
-
**/
|
|
9975
|
-
| { name: 'ApprovedTransfer'; data: { assetId: bigint; source: AccountId20; delegate: AccountId20; amount: bigint } }
|
|
9976
|
-
/**
|
|
9977
|
-
* An approval for account `delegate` was cancelled by `owner`.
|
|
9978
|
-
**/
|
|
9979
|
-
| { name: 'ApprovalCancelled'; data: { assetId: bigint; owner: AccountId20; delegate: AccountId20 } }
|
|
9980
|
-
/**
|
|
9981
|
-
* An `amount` was transferred in its entirety from `owner` to `destination` by
|
|
9982
|
-
* the approved `delegate`.
|
|
9983
|
-
**/
|
|
9984
|
-
| {
|
|
9985
|
-
name: 'TransferredApproved';
|
|
9986
|
-
data: { assetId: bigint; owner: AccountId20; delegate: AccountId20; destination: AccountId20; amount: bigint };
|
|
9987
|
-
}
|
|
9988
|
-
/**
|
|
9989
|
-
* An asset has had its attributes changed by the `Force` origin.
|
|
9990
|
-
**/
|
|
9991
|
-
| { name: 'AssetStatusChanged'; data: { assetId: bigint } }
|
|
9992
|
-
/**
|
|
9993
|
-
* The min_balance of an asset has been updated by the asset owner.
|
|
9994
|
-
**/
|
|
9995
|
-
| { name: 'AssetMinBalanceChanged'; data: { assetId: bigint; newMinBalance: bigint } }
|
|
9996
|
-
/**
|
|
9997
|
-
* Some account `who` was created with a deposit from `depositor`.
|
|
9998
|
-
**/
|
|
9999
|
-
| { name: 'Touched'; data: { assetId: bigint; who: AccountId20; depositor: AccountId20 } }
|
|
10000
|
-
/**
|
|
10001
|
-
* Some account `who` was blocked.
|
|
10002
|
-
**/
|
|
10003
|
-
| { name: 'Blocked'; data: { assetId: bigint; who: AccountId20 } }
|
|
10004
|
-
/**
|
|
10005
|
-
* Some assets were deposited (e.g. for transaction fees).
|
|
10006
|
-
**/
|
|
10007
|
-
| { name: 'Deposited'; data: { assetId: bigint; who: AccountId20; amount: bigint } }
|
|
10008
|
-
/**
|
|
10009
|
-
* Some assets were withdrawn from the account (e.g. for transaction fees).
|
|
10010
|
-
**/
|
|
10011
|
-
| { name: 'Withdrawn'; data: { assetId: bigint; who: AccountId20; amount: bigint } };
|
|
10012
|
-
|
|
10013
8768
|
/**
|
|
10014
8769
|
* The `Event` enum of this pallet
|
|
10015
8770
|
**/
|
|
@@ -10897,7 +9652,17 @@ export type PalletPreimageHoldReason = 'Preimage';
|
|
|
10897
9652
|
|
|
10898
9653
|
export type PalletXcmBridgeHubHoldReason = 'BridgeDeposit';
|
|
10899
9654
|
|
|
10900
|
-
export type
|
|
9655
|
+
export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
|
|
9656
|
+
id: MoonbeamRuntimeRuntimeFreezeReason;
|
|
9657
|
+
amount: bigint;
|
|
9658
|
+
};
|
|
9659
|
+
|
|
9660
|
+
export type MoonbeamRuntimeRuntimeFreezeReason = {
|
|
9661
|
+
type: 'ParachainStaking';
|
|
9662
|
+
value: PalletParachainStakingFreezeReason;
|
|
9663
|
+
};
|
|
9664
|
+
|
|
9665
|
+
export type PalletParachainStakingFreezeReason = 'StakingCollator' | 'StakingDelegator';
|
|
10901
9666
|
|
|
10902
9667
|
/**
|
|
10903
9668
|
* The `Error` enum of this pallet.
|
|
@@ -11082,7 +9847,8 @@ export type PalletParachainStakingError =
|
|
|
11082
9847
|
| 'CandidateLimitReached'
|
|
11083
9848
|
| 'CannotSetAboveMaxCandidates'
|
|
11084
9849
|
| 'MarkingOfflineNotEnabled'
|
|
11085
|
-
| 'CurrentRoundTooLow'
|
|
9850
|
+
| 'CurrentRoundTooLow'
|
|
9851
|
+
| 'EmptyMigrationBatch';
|
|
11086
9852
|
|
|
11087
9853
|
/**
|
|
11088
9854
|
* The `Error` enum of this pallet.
|
|
@@ -12315,149 +11081,6 @@ export type PalletXcmError =
|
|
|
12315
11081
|
**/
|
|
12316
11082
|
| 'AliasNotFound';
|
|
12317
11083
|
|
|
12318
|
-
export type PalletAssetsAssetDetails = {
|
|
12319
|
-
owner: AccountId20;
|
|
12320
|
-
issuer: AccountId20;
|
|
12321
|
-
admin: AccountId20;
|
|
12322
|
-
freezer: AccountId20;
|
|
12323
|
-
supply: bigint;
|
|
12324
|
-
deposit: bigint;
|
|
12325
|
-
minBalance: bigint;
|
|
12326
|
-
isSufficient: boolean;
|
|
12327
|
-
accounts: number;
|
|
12328
|
-
sufficients: number;
|
|
12329
|
-
approvals: number;
|
|
12330
|
-
status: PalletAssetsAssetStatus;
|
|
12331
|
-
};
|
|
12332
|
-
|
|
12333
|
-
export type PalletAssetsAssetStatus = 'Live' | 'Frozen' | 'Destroying';
|
|
12334
|
-
|
|
12335
|
-
export type PalletAssetsAssetAccount = {
|
|
12336
|
-
balance: bigint;
|
|
12337
|
-
status: PalletAssetsAccountStatus;
|
|
12338
|
-
reason: PalletAssetsExistenceReason;
|
|
12339
|
-
extra: [];
|
|
12340
|
-
};
|
|
12341
|
-
|
|
12342
|
-
export type PalletAssetsAccountStatus = 'Liquid' | 'Frozen' | 'Blocked';
|
|
12343
|
-
|
|
12344
|
-
export type PalletAssetsExistenceReason =
|
|
12345
|
-
| { type: 'Consumer' }
|
|
12346
|
-
| { type: 'Sufficient' }
|
|
12347
|
-
| { type: 'DepositHeld'; value: bigint }
|
|
12348
|
-
| { type: 'DepositRefunded' }
|
|
12349
|
-
| { type: 'DepositFrom'; value: [AccountId20, bigint] };
|
|
12350
|
-
|
|
12351
|
-
export type PalletAssetsApproval = { amount: bigint; deposit: bigint };
|
|
12352
|
-
|
|
12353
|
-
export type PalletAssetsAssetMetadata = {
|
|
12354
|
-
deposit: bigint;
|
|
12355
|
-
name: Bytes;
|
|
12356
|
-
symbol: Bytes;
|
|
12357
|
-
decimals: number;
|
|
12358
|
-
isFrozen: boolean;
|
|
12359
|
-
};
|
|
12360
|
-
|
|
12361
|
-
/**
|
|
12362
|
-
* The `Error` enum of this pallet.
|
|
12363
|
-
**/
|
|
12364
|
-
export type PalletAssetsError =
|
|
12365
|
-
/**
|
|
12366
|
-
* Account balance must be greater than or equal to the transfer amount.
|
|
12367
|
-
**/
|
|
12368
|
-
| 'BalanceLow'
|
|
12369
|
-
/**
|
|
12370
|
-
* The account to alter does not exist.
|
|
12371
|
-
**/
|
|
12372
|
-
| 'NoAccount'
|
|
12373
|
-
/**
|
|
12374
|
-
* The signing account has no permission to do the operation.
|
|
12375
|
-
**/
|
|
12376
|
-
| 'NoPermission'
|
|
12377
|
-
/**
|
|
12378
|
-
* The given asset ID is unknown.
|
|
12379
|
-
**/
|
|
12380
|
-
| 'Unknown'
|
|
12381
|
-
/**
|
|
12382
|
-
* The origin account is frozen.
|
|
12383
|
-
**/
|
|
12384
|
-
| 'Frozen'
|
|
12385
|
-
/**
|
|
12386
|
-
* The asset ID is already taken.
|
|
12387
|
-
**/
|
|
12388
|
-
| 'InUse'
|
|
12389
|
-
/**
|
|
12390
|
-
* Invalid witness data given.
|
|
12391
|
-
**/
|
|
12392
|
-
| 'BadWitness'
|
|
12393
|
-
/**
|
|
12394
|
-
* Minimum balance should be non-zero.
|
|
12395
|
-
**/
|
|
12396
|
-
| 'MinBalanceZero'
|
|
12397
|
-
/**
|
|
12398
|
-
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
12399
|
-
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
12400
|
-
* fewer then the maximum number of consumers has been reached.
|
|
12401
|
-
**/
|
|
12402
|
-
| 'UnavailableConsumer'
|
|
12403
|
-
/**
|
|
12404
|
-
* Invalid metadata given.
|
|
12405
|
-
**/
|
|
12406
|
-
| 'BadMetadata'
|
|
12407
|
-
/**
|
|
12408
|
-
* No approval exists that would allow the transfer.
|
|
12409
|
-
**/
|
|
12410
|
-
| 'Unapproved'
|
|
12411
|
-
/**
|
|
12412
|
-
* The source account would not survive the transfer and it needs to stay alive.
|
|
12413
|
-
**/
|
|
12414
|
-
| 'WouldDie'
|
|
12415
|
-
/**
|
|
12416
|
-
* The asset-account already exists.
|
|
12417
|
-
**/
|
|
12418
|
-
| 'AlreadyExists'
|
|
12419
|
-
/**
|
|
12420
|
-
* The asset-account doesn't have an associated deposit.
|
|
12421
|
-
**/
|
|
12422
|
-
| 'NoDeposit'
|
|
12423
|
-
/**
|
|
12424
|
-
* The operation would result in funds being burned.
|
|
12425
|
-
**/
|
|
12426
|
-
| 'WouldBurn'
|
|
12427
|
-
/**
|
|
12428
|
-
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
12429
|
-
* as `start_destroy` which require the asset to be in a destroying state.
|
|
12430
|
-
**/
|
|
12431
|
-
| 'LiveAsset'
|
|
12432
|
-
/**
|
|
12433
|
-
* The asset is not live, and likely being destroyed.
|
|
12434
|
-
**/
|
|
12435
|
-
| 'AssetNotLive'
|
|
12436
|
-
/**
|
|
12437
|
-
* The asset status is not the expected status.
|
|
12438
|
-
**/
|
|
12439
|
-
| 'IncorrectStatus'
|
|
12440
|
-
/**
|
|
12441
|
-
* The asset should be frozen before the given operation.
|
|
12442
|
-
**/
|
|
12443
|
-
| 'NotFrozen'
|
|
12444
|
-
/**
|
|
12445
|
-
* Callback action resulted in error
|
|
12446
|
-
**/
|
|
12447
|
-
| 'CallbackFailed'
|
|
12448
|
-
/**
|
|
12449
|
-
* The asset ID must be equal to the [`NextAssetId`].
|
|
12450
|
-
**/
|
|
12451
|
-
| 'BadAssetId'
|
|
12452
|
-
/**
|
|
12453
|
-
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
12454
|
-
**/
|
|
12455
|
-
| 'ContainsFreezes'
|
|
12456
|
-
/**
|
|
12457
|
-
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
12458
|
-
**/
|
|
12459
|
-
| 'ContainsHolds';
|
|
12460
|
-
|
|
12461
11084
|
export type PalletXcmTransactorRelayIndicesRelayChainIndices = {
|
|
12462
11085
|
staking: number;
|
|
12463
11086
|
utility: number;
|
|
@@ -13178,7 +11801,6 @@ export type MoonbeamRuntimeRuntimeError =
|
|
|
13178
11801
|
| { pallet: 'CrowdloanRewards'; palletError: PalletCrowdloanRewardsError }
|
|
13179
11802
|
| { pallet: 'XcmpQueue'; palletError: CumulusPalletXcmpQueueError }
|
|
13180
11803
|
| { pallet: 'PolkadotXcm'; palletError: PalletXcmError }
|
|
13181
|
-
| { pallet: 'Assets'; palletError: PalletAssetsError }
|
|
13182
11804
|
| { pallet: 'XcmTransactor'; palletError: PalletXcmTransactorError }
|
|
13183
11805
|
| { pallet: 'EthereumXcm'; palletError: PalletEthereumXcmError }
|
|
13184
11806
|
| { pallet: 'MessageQueue'; palletError: PalletMessageQueueError }
|