@dedot/chaintypes 0.197.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 -2
package/moonbeam/tx.d.ts
CHANGED
|
@@ -1255,6 +1255,38 @@ export interface ChainTx<
|
|
|
1255
1255
|
>
|
|
1256
1256
|
>;
|
|
1257
1257
|
|
|
1258
|
+
/**
|
|
1259
|
+
* Batch migrate locks to freezes for a list of accounts.
|
|
1260
|
+
*
|
|
1261
|
+
* This function allows migrating multiple accounts from the old lock-based
|
|
1262
|
+
* staking to the new freeze-based staking in a single transaction.
|
|
1263
|
+
*
|
|
1264
|
+
* Parameters:
|
|
1265
|
+
* - `accounts`: List of tuples containing (account_id, is_collator)
|
|
1266
|
+
* where is_collator indicates if the account is a collator (true) or delegator (false)
|
|
1267
|
+
*
|
|
1268
|
+
* The maximum number of accounts that can be migrated in one batch is MAX_ACCOUNTS_PER_MIGRATION_BATCH.
|
|
1269
|
+
* The batch cannot be empty.
|
|
1270
|
+
*
|
|
1271
|
+
* If 50% or more of the migration attempts are successful, the entire
|
|
1272
|
+
* extrinsic fee is refunded to incentivize successful batch migrations.
|
|
1273
|
+
* Weight is calculated based on actual successful operations performed.
|
|
1274
|
+
*
|
|
1275
|
+
* @param {Array<[AccountId20Like, boolean]>} accounts
|
|
1276
|
+
**/
|
|
1277
|
+
migrateLocksToFreezesBatch: GenericTxCall<
|
|
1278
|
+
(accounts: Array<[AccountId20Like, boolean]>) => ChainSubmittableExtrinsic<
|
|
1279
|
+
{
|
|
1280
|
+
pallet: 'ParachainStaking';
|
|
1281
|
+
palletCall: {
|
|
1282
|
+
name: 'MigrateLocksToFreezesBatch';
|
|
1283
|
+
params: { accounts: Array<[AccountId20Like, boolean]> };
|
|
1284
|
+
};
|
|
1285
|
+
},
|
|
1286
|
+
ChainKnownTypes
|
|
1287
|
+
>
|
|
1288
|
+
>;
|
|
1289
|
+
|
|
1258
1290
|
/**
|
|
1259
1291
|
* Generic pallet tx call
|
|
1260
1292
|
**/
|
|
@@ -5290,47 +5322,6 @@ export interface ChainTx<
|
|
|
5290
5322
|
>
|
|
5291
5323
|
>;
|
|
5292
5324
|
|
|
5293
|
-
/**
|
|
5294
|
-
* This extrinsic completes the initialization if some checks are fullfiled. These checks are:
|
|
5295
|
-
* -The reward contribution money matches the crowdloan pot
|
|
5296
|
-
* -The end vesting block is higher than the init vesting block
|
|
5297
|
-
* -The initialization has not complete yet
|
|
5298
|
-
*
|
|
5299
|
-
* @param {number} leaseEndingBlock
|
|
5300
|
-
**/
|
|
5301
|
-
completeInitialization: GenericTxCall<
|
|
5302
|
-
(leaseEndingBlock: number) => ChainSubmittableExtrinsic<
|
|
5303
|
-
{
|
|
5304
|
-
pallet: 'CrowdloanRewards';
|
|
5305
|
-
palletCall: {
|
|
5306
|
-
name: 'CompleteInitialization';
|
|
5307
|
-
params: { leaseEndingBlock: number };
|
|
5308
|
-
};
|
|
5309
|
-
},
|
|
5310
|
-
ChainKnownTypes
|
|
5311
|
-
>
|
|
5312
|
-
>;
|
|
5313
|
-
|
|
5314
|
-
/**
|
|
5315
|
-
* Initialize the reward distribution storage. It shortcuts whenever an error is found
|
|
5316
|
-
* This does not enforce any checks other than making sure we dont go over funds
|
|
5317
|
-
* complete_initialization should perform any additional
|
|
5318
|
-
*
|
|
5319
|
-
* @param {Array<[FixedBytes<32>, AccountId20Like | undefined, bigint]>} rewards
|
|
5320
|
-
**/
|
|
5321
|
-
initializeRewardVec: GenericTxCall<
|
|
5322
|
-
(rewards: Array<[FixedBytes<32>, AccountId20Like | undefined, bigint]>) => ChainSubmittableExtrinsic<
|
|
5323
|
-
{
|
|
5324
|
-
pallet: 'CrowdloanRewards';
|
|
5325
|
-
palletCall: {
|
|
5326
|
-
name: 'InitializeRewardVec';
|
|
5327
|
-
params: { rewards: Array<[FixedBytes<32>, AccountId20Like | undefined, bigint]> };
|
|
5328
|
-
};
|
|
5329
|
-
},
|
|
5330
|
-
ChainKnownTypes
|
|
5331
|
-
>
|
|
5332
|
-
>;
|
|
5333
|
-
|
|
5334
5325
|
/**
|
|
5335
5326
|
* Generic pallet tx call
|
|
5336
5327
|
**/
|
|
@@ -5979,1184 +5970,6 @@ export interface ChainTx<
|
|
|
5979
5970
|
**/
|
|
5980
5971
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
5981
5972
|
};
|
|
5982
|
-
/**
|
|
5983
|
-
* Pallet `Assets`'s transaction calls
|
|
5984
|
-
**/
|
|
5985
|
-
assets: {
|
|
5986
|
-
/**
|
|
5987
|
-
* Issue a new class of fungible assets from a public origin.
|
|
5988
|
-
*
|
|
5989
|
-
* This new asset class has no assets initially and its owner is the origin.
|
|
5990
|
-
*
|
|
5991
|
-
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
5992
|
-
*
|
|
5993
|
-
* Funds of sender are reserved by `AssetDeposit`.
|
|
5994
|
-
*
|
|
5995
|
-
* Parameters:
|
|
5996
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
5997
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
5998
|
-
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
5999
|
-
* member of the asset class's admin team.
|
|
6000
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
6001
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
6002
|
-
*
|
|
6003
|
-
* Emits `Created` event when successful.
|
|
6004
|
-
*
|
|
6005
|
-
* Weight: `O(1)`
|
|
6006
|
-
*
|
|
6007
|
-
* @param {bigint} id
|
|
6008
|
-
* @param {AccountId20Like} admin
|
|
6009
|
-
* @param {bigint} minBalance
|
|
6010
|
-
**/
|
|
6011
|
-
create: GenericTxCall<
|
|
6012
|
-
(
|
|
6013
|
-
id: bigint,
|
|
6014
|
-
admin: AccountId20Like,
|
|
6015
|
-
minBalance: bigint,
|
|
6016
|
-
) => ChainSubmittableExtrinsic<
|
|
6017
|
-
{
|
|
6018
|
-
pallet: 'Assets';
|
|
6019
|
-
palletCall: {
|
|
6020
|
-
name: 'Create';
|
|
6021
|
-
params: { id: bigint; admin: AccountId20Like; minBalance: bigint };
|
|
6022
|
-
};
|
|
6023
|
-
},
|
|
6024
|
-
ChainKnownTypes
|
|
6025
|
-
>
|
|
6026
|
-
>;
|
|
6027
|
-
|
|
6028
|
-
/**
|
|
6029
|
-
* Issue a new class of fungible assets from a privileged origin.
|
|
6030
|
-
*
|
|
6031
|
-
* This new asset class has no assets initially.
|
|
6032
|
-
*
|
|
6033
|
-
* The origin must conform to `ForceOrigin`.
|
|
6034
|
-
*
|
|
6035
|
-
* Unlike `create`, no funds are reserved.
|
|
6036
|
-
*
|
|
6037
|
-
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
6038
|
-
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
6039
|
-
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
6040
|
-
* over this asset, but may later change and configure the permissions using
|
|
6041
|
-
* `transfer_ownership` and `set_team`.
|
|
6042
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
6043
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
6044
|
-
*
|
|
6045
|
-
* Emits `ForceCreated` event when successful.
|
|
6046
|
-
*
|
|
6047
|
-
* Weight: `O(1)`
|
|
6048
|
-
*
|
|
6049
|
-
* @param {bigint} id
|
|
6050
|
-
* @param {AccountId20Like} owner
|
|
6051
|
-
* @param {boolean} isSufficient
|
|
6052
|
-
* @param {bigint} minBalance
|
|
6053
|
-
**/
|
|
6054
|
-
forceCreate: GenericTxCall<
|
|
6055
|
-
(
|
|
6056
|
-
id: bigint,
|
|
6057
|
-
owner: AccountId20Like,
|
|
6058
|
-
isSufficient: boolean,
|
|
6059
|
-
minBalance: bigint,
|
|
6060
|
-
) => ChainSubmittableExtrinsic<
|
|
6061
|
-
{
|
|
6062
|
-
pallet: 'Assets';
|
|
6063
|
-
palletCall: {
|
|
6064
|
-
name: 'ForceCreate';
|
|
6065
|
-
params: { id: bigint; owner: AccountId20Like; isSufficient: boolean; minBalance: bigint };
|
|
6066
|
-
};
|
|
6067
|
-
},
|
|
6068
|
-
ChainKnownTypes
|
|
6069
|
-
>
|
|
6070
|
-
>;
|
|
6071
|
-
|
|
6072
|
-
/**
|
|
6073
|
-
* Start the process of destroying a fungible asset class.
|
|
6074
|
-
*
|
|
6075
|
-
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
6076
|
-
* destruction of an asset class.
|
|
6077
|
-
*
|
|
6078
|
-
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
6079
|
-
*
|
|
6080
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6081
|
-
* asset.
|
|
6082
|
-
*
|
|
6083
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6084
|
-
* an account contains holds or freezes in place.
|
|
6085
|
-
*
|
|
6086
|
-
* @param {bigint} id
|
|
6087
|
-
**/
|
|
6088
|
-
startDestroy: GenericTxCall<
|
|
6089
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6090
|
-
{
|
|
6091
|
-
pallet: 'Assets';
|
|
6092
|
-
palletCall: {
|
|
6093
|
-
name: 'StartDestroy';
|
|
6094
|
-
params: { id: bigint };
|
|
6095
|
-
};
|
|
6096
|
-
},
|
|
6097
|
-
ChainKnownTypes
|
|
6098
|
-
>
|
|
6099
|
-
>;
|
|
6100
|
-
|
|
6101
|
-
/**
|
|
6102
|
-
* Destroy all accounts associated with a given asset.
|
|
6103
|
-
*
|
|
6104
|
-
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
6105
|
-
* asset is in a `Destroying` state.
|
|
6106
|
-
*
|
|
6107
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
6108
|
-
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
6109
|
-
*
|
|
6110
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6111
|
-
* asset.
|
|
6112
|
-
*
|
|
6113
|
-
* Each call emits the `Event::DestroyedAccounts` event.
|
|
6114
|
-
*
|
|
6115
|
-
* @param {bigint} id
|
|
6116
|
-
**/
|
|
6117
|
-
destroyAccounts: GenericTxCall<
|
|
6118
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6119
|
-
{
|
|
6120
|
-
pallet: 'Assets';
|
|
6121
|
-
palletCall: {
|
|
6122
|
-
name: 'DestroyAccounts';
|
|
6123
|
-
params: { id: bigint };
|
|
6124
|
-
};
|
|
6125
|
-
},
|
|
6126
|
-
ChainKnownTypes
|
|
6127
|
-
>
|
|
6128
|
-
>;
|
|
6129
|
-
|
|
6130
|
-
/**
|
|
6131
|
-
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
|
6132
|
-
*
|
|
6133
|
-
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
6134
|
-
* asset is in a `Destroying` state.
|
|
6135
|
-
*
|
|
6136
|
-
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
6137
|
-
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
6138
|
-
*
|
|
6139
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6140
|
-
* asset.
|
|
6141
|
-
*
|
|
6142
|
-
* Each call emits the `Event::DestroyedApprovals` event.
|
|
6143
|
-
*
|
|
6144
|
-
* @param {bigint} id
|
|
6145
|
-
**/
|
|
6146
|
-
destroyApprovals: GenericTxCall<
|
|
6147
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6148
|
-
{
|
|
6149
|
-
pallet: 'Assets';
|
|
6150
|
-
palletCall: {
|
|
6151
|
-
name: 'DestroyApprovals';
|
|
6152
|
-
params: { id: bigint };
|
|
6153
|
-
};
|
|
6154
|
-
},
|
|
6155
|
-
ChainKnownTypes
|
|
6156
|
-
>
|
|
6157
|
-
>;
|
|
6158
|
-
|
|
6159
|
-
/**
|
|
6160
|
-
* Complete destroying asset and unreserve currency.
|
|
6161
|
-
*
|
|
6162
|
-
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
6163
|
-
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
6164
|
-
* hand.
|
|
6165
|
-
*
|
|
6166
|
-
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
6167
|
-
* asset.
|
|
6168
|
-
*
|
|
6169
|
-
* Each successful call emits the `Event::Destroyed` event.
|
|
6170
|
-
*
|
|
6171
|
-
* @param {bigint} id
|
|
6172
|
-
**/
|
|
6173
|
-
finishDestroy: GenericTxCall<
|
|
6174
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6175
|
-
{
|
|
6176
|
-
pallet: 'Assets';
|
|
6177
|
-
palletCall: {
|
|
6178
|
-
name: 'FinishDestroy';
|
|
6179
|
-
params: { id: bigint };
|
|
6180
|
-
};
|
|
6181
|
-
},
|
|
6182
|
-
ChainKnownTypes
|
|
6183
|
-
>
|
|
6184
|
-
>;
|
|
6185
|
-
|
|
6186
|
-
/**
|
|
6187
|
-
* Mint assets of a particular class.
|
|
6188
|
-
*
|
|
6189
|
-
* The origin must be Signed and the sender must be the Issuer of the asset `id`.
|
|
6190
|
-
*
|
|
6191
|
-
* - `id`: The identifier of the asset to have some amount minted.
|
|
6192
|
-
* - `beneficiary`: The account to be credited with the minted assets.
|
|
6193
|
-
* - `amount`: The amount of the asset to be minted.
|
|
6194
|
-
*
|
|
6195
|
-
* Emits `Issued` event when successful.
|
|
6196
|
-
*
|
|
6197
|
-
* Weight: `O(1)`
|
|
6198
|
-
* Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
|
|
6199
|
-
*
|
|
6200
|
-
* @param {bigint} id
|
|
6201
|
-
* @param {AccountId20Like} beneficiary
|
|
6202
|
-
* @param {bigint} amount
|
|
6203
|
-
**/
|
|
6204
|
-
mint: GenericTxCall<
|
|
6205
|
-
(
|
|
6206
|
-
id: bigint,
|
|
6207
|
-
beneficiary: AccountId20Like,
|
|
6208
|
-
amount: bigint,
|
|
6209
|
-
) => ChainSubmittableExtrinsic<
|
|
6210
|
-
{
|
|
6211
|
-
pallet: 'Assets';
|
|
6212
|
-
palletCall: {
|
|
6213
|
-
name: 'Mint';
|
|
6214
|
-
params: { id: bigint; beneficiary: AccountId20Like; amount: bigint };
|
|
6215
|
-
};
|
|
6216
|
-
},
|
|
6217
|
-
ChainKnownTypes
|
|
6218
|
-
>
|
|
6219
|
-
>;
|
|
6220
|
-
|
|
6221
|
-
/**
|
|
6222
|
-
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
|
|
6223
|
-
*
|
|
6224
|
-
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
6225
|
-
*
|
|
6226
|
-
* Bails with `NoAccount` if the `who` is already dead.
|
|
6227
|
-
*
|
|
6228
|
-
* - `id`: The identifier of the asset to have some amount burned.
|
|
6229
|
-
* - `who`: The account to be debited from.
|
|
6230
|
-
* - `amount`: The maximum amount by which `who`'s balance should be reduced.
|
|
6231
|
-
*
|
|
6232
|
-
* Emits `Burned` with the actual amount burned. If this takes the balance to below the
|
|
6233
|
-
* minimum for the asset, then the amount burned is increased to take it to zero.
|
|
6234
|
-
*
|
|
6235
|
-
* Weight: `O(1)`
|
|
6236
|
-
* Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
|
|
6237
|
-
*
|
|
6238
|
-
* @param {bigint} id
|
|
6239
|
-
* @param {AccountId20Like} who
|
|
6240
|
-
* @param {bigint} amount
|
|
6241
|
-
**/
|
|
6242
|
-
burn: GenericTxCall<
|
|
6243
|
-
(
|
|
6244
|
-
id: bigint,
|
|
6245
|
-
who: AccountId20Like,
|
|
6246
|
-
amount: bigint,
|
|
6247
|
-
) => ChainSubmittableExtrinsic<
|
|
6248
|
-
{
|
|
6249
|
-
pallet: 'Assets';
|
|
6250
|
-
palletCall: {
|
|
6251
|
-
name: 'Burn';
|
|
6252
|
-
params: { id: bigint; who: AccountId20Like; amount: bigint };
|
|
6253
|
-
};
|
|
6254
|
-
},
|
|
6255
|
-
ChainKnownTypes
|
|
6256
|
-
>
|
|
6257
|
-
>;
|
|
6258
|
-
|
|
6259
|
-
/**
|
|
6260
|
-
* Move some assets from the sender account to another.
|
|
6261
|
-
*
|
|
6262
|
-
* Origin must be Signed.
|
|
6263
|
-
*
|
|
6264
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
6265
|
-
* - `target`: The account to be credited.
|
|
6266
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
6267
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
6268
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
6269
|
-
* the minimum balance. Must be greater than zero.
|
|
6270
|
-
*
|
|
6271
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
6272
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
6273
|
-
* to zero.
|
|
6274
|
-
*
|
|
6275
|
-
* Weight: `O(1)`
|
|
6276
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
6277
|
-
* `target`.
|
|
6278
|
-
*
|
|
6279
|
-
* @param {bigint} id
|
|
6280
|
-
* @param {AccountId20Like} target
|
|
6281
|
-
* @param {bigint} amount
|
|
6282
|
-
**/
|
|
6283
|
-
transfer: GenericTxCall<
|
|
6284
|
-
(
|
|
6285
|
-
id: bigint,
|
|
6286
|
-
target: AccountId20Like,
|
|
6287
|
-
amount: bigint,
|
|
6288
|
-
) => ChainSubmittableExtrinsic<
|
|
6289
|
-
{
|
|
6290
|
-
pallet: 'Assets';
|
|
6291
|
-
palletCall: {
|
|
6292
|
-
name: 'Transfer';
|
|
6293
|
-
params: { id: bigint; target: AccountId20Like; amount: bigint };
|
|
6294
|
-
};
|
|
6295
|
-
},
|
|
6296
|
-
ChainKnownTypes
|
|
6297
|
-
>
|
|
6298
|
-
>;
|
|
6299
|
-
|
|
6300
|
-
/**
|
|
6301
|
-
* Move some assets from the sender account to another, keeping the sender account alive.
|
|
6302
|
-
*
|
|
6303
|
-
* Origin must be Signed.
|
|
6304
|
-
*
|
|
6305
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
6306
|
-
* - `target`: The account to be credited.
|
|
6307
|
-
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
6308
|
-
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
6309
|
-
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
6310
|
-
* the minimum balance. Must be greater than zero.
|
|
6311
|
-
*
|
|
6312
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
6313
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
6314
|
-
* to zero.
|
|
6315
|
-
*
|
|
6316
|
-
* Weight: `O(1)`
|
|
6317
|
-
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
6318
|
-
* `target`.
|
|
6319
|
-
*
|
|
6320
|
-
* @param {bigint} id
|
|
6321
|
-
* @param {AccountId20Like} target
|
|
6322
|
-
* @param {bigint} amount
|
|
6323
|
-
**/
|
|
6324
|
-
transferKeepAlive: GenericTxCall<
|
|
6325
|
-
(
|
|
6326
|
-
id: bigint,
|
|
6327
|
-
target: AccountId20Like,
|
|
6328
|
-
amount: bigint,
|
|
6329
|
-
) => ChainSubmittableExtrinsic<
|
|
6330
|
-
{
|
|
6331
|
-
pallet: 'Assets';
|
|
6332
|
-
palletCall: {
|
|
6333
|
-
name: 'TransferKeepAlive';
|
|
6334
|
-
params: { id: bigint; target: AccountId20Like; amount: bigint };
|
|
6335
|
-
};
|
|
6336
|
-
},
|
|
6337
|
-
ChainKnownTypes
|
|
6338
|
-
>
|
|
6339
|
-
>;
|
|
6340
|
-
|
|
6341
|
-
/**
|
|
6342
|
-
* Move some assets from one account to another.
|
|
6343
|
-
*
|
|
6344
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
6345
|
-
*
|
|
6346
|
-
* - `id`: The identifier of the asset to have some amount transferred.
|
|
6347
|
-
* - `source`: The account to be debited.
|
|
6348
|
-
* - `dest`: The account to be credited.
|
|
6349
|
-
* - `amount`: The amount by which the `source`'s balance of assets should be reduced and
|
|
6350
|
-
* `dest`'s balance increased. The amount actually transferred may be slightly greater in
|
|
6351
|
-
* the case that the transfer would otherwise take the `source` balance above zero but
|
|
6352
|
-
* below the minimum balance. Must be greater than zero.
|
|
6353
|
-
*
|
|
6354
|
-
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
6355
|
-
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
6356
|
-
* to zero.
|
|
6357
|
-
*
|
|
6358
|
-
* Weight: `O(1)`
|
|
6359
|
-
* Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
|
|
6360
|
-
* `dest`.
|
|
6361
|
-
*
|
|
6362
|
-
* @param {bigint} id
|
|
6363
|
-
* @param {AccountId20Like} source
|
|
6364
|
-
* @param {AccountId20Like} dest
|
|
6365
|
-
* @param {bigint} amount
|
|
6366
|
-
**/
|
|
6367
|
-
forceTransfer: GenericTxCall<
|
|
6368
|
-
(
|
|
6369
|
-
id: bigint,
|
|
6370
|
-
source: AccountId20Like,
|
|
6371
|
-
dest: AccountId20Like,
|
|
6372
|
-
amount: bigint,
|
|
6373
|
-
) => ChainSubmittableExtrinsic<
|
|
6374
|
-
{
|
|
6375
|
-
pallet: 'Assets';
|
|
6376
|
-
palletCall: {
|
|
6377
|
-
name: 'ForceTransfer';
|
|
6378
|
-
params: { id: bigint; source: AccountId20Like; dest: AccountId20Like; amount: bigint };
|
|
6379
|
-
};
|
|
6380
|
-
},
|
|
6381
|
-
ChainKnownTypes
|
|
6382
|
-
>
|
|
6383
|
-
>;
|
|
6384
|
-
|
|
6385
|
-
/**
|
|
6386
|
-
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
|
|
6387
|
-
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
|
|
6388
|
-
* account that does not have an entry, use `touch_other` first.
|
|
6389
|
-
*
|
|
6390
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
6391
|
-
*
|
|
6392
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
6393
|
-
* - `who`: The account to be frozen.
|
|
6394
|
-
*
|
|
6395
|
-
* Emits `Frozen`.
|
|
6396
|
-
*
|
|
6397
|
-
* Weight: `O(1)`
|
|
6398
|
-
*
|
|
6399
|
-
* @param {bigint} id
|
|
6400
|
-
* @param {AccountId20Like} who
|
|
6401
|
-
**/
|
|
6402
|
-
freeze: GenericTxCall<
|
|
6403
|
-
(
|
|
6404
|
-
id: bigint,
|
|
6405
|
-
who: AccountId20Like,
|
|
6406
|
-
) => ChainSubmittableExtrinsic<
|
|
6407
|
-
{
|
|
6408
|
-
pallet: 'Assets';
|
|
6409
|
-
palletCall: {
|
|
6410
|
-
name: 'Freeze';
|
|
6411
|
-
params: { id: bigint; who: AccountId20Like };
|
|
6412
|
-
};
|
|
6413
|
-
},
|
|
6414
|
-
ChainKnownTypes
|
|
6415
|
-
>
|
|
6416
|
-
>;
|
|
6417
|
-
|
|
6418
|
-
/**
|
|
6419
|
-
* Allow unprivileged transfers to and from an account again.
|
|
6420
|
-
*
|
|
6421
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
6422
|
-
*
|
|
6423
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
6424
|
-
* - `who`: The account to be unfrozen.
|
|
6425
|
-
*
|
|
6426
|
-
* Emits `Thawed`.
|
|
6427
|
-
*
|
|
6428
|
-
* Weight: `O(1)`
|
|
6429
|
-
*
|
|
6430
|
-
* @param {bigint} id
|
|
6431
|
-
* @param {AccountId20Like} who
|
|
6432
|
-
**/
|
|
6433
|
-
thaw: GenericTxCall<
|
|
6434
|
-
(
|
|
6435
|
-
id: bigint,
|
|
6436
|
-
who: AccountId20Like,
|
|
6437
|
-
) => ChainSubmittableExtrinsic<
|
|
6438
|
-
{
|
|
6439
|
-
pallet: 'Assets';
|
|
6440
|
-
palletCall: {
|
|
6441
|
-
name: 'Thaw';
|
|
6442
|
-
params: { id: bigint; who: AccountId20Like };
|
|
6443
|
-
};
|
|
6444
|
-
},
|
|
6445
|
-
ChainKnownTypes
|
|
6446
|
-
>
|
|
6447
|
-
>;
|
|
6448
|
-
|
|
6449
|
-
/**
|
|
6450
|
-
* Disallow further unprivileged transfers for the asset class.
|
|
6451
|
-
*
|
|
6452
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
6453
|
-
*
|
|
6454
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
6455
|
-
*
|
|
6456
|
-
* Emits `Frozen`.
|
|
6457
|
-
*
|
|
6458
|
-
* Weight: `O(1)`
|
|
6459
|
-
*
|
|
6460
|
-
* @param {bigint} id
|
|
6461
|
-
**/
|
|
6462
|
-
freezeAsset: GenericTxCall<
|
|
6463
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6464
|
-
{
|
|
6465
|
-
pallet: 'Assets';
|
|
6466
|
-
palletCall: {
|
|
6467
|
-
name: 'FreezeAsset';
|
|
6468
|
-
params: { id: bigint };
|
|
6469
|
-
};
|
|
6470
|
-
},
|
|
6471
|
-
ChainKnownTypes
|
|
6472
|
-
>
|
|
6473
|
-
>;
|
|
6474
|
-
|
|
6475
|
-
/**
|
|
6476
|
-
* Allow unprivileged transfers for the asset again.
|
|
6477
|
-
*
|
|
6478
|
-
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
6479
|
-
*
|
|
6480
|
-
* - `id`: The identifier of the asset to be thawed.
|
|
6481
|
-
*
|
|
6482
|
-
* Emits `Thawed`.
|
|
6483
|
-
*
|
|
6484
|
-
* Weight: `O(1)`
|
|
6485
|
-
*
|
|
6486
|
-
* @param {bigint} id
|
|
6487
|
-
**/
|
|
6488
|
-
thawAsset: GenericTxCall<
|
|
6489
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6490
|
-
{
|
|
6491
|
-
pallet: 'Assets';
|
|
6492
|
-
palletCall: {
|
|
6493
|
-
name: 'ThawAsset';
|
|
6494
|
-
params: { id: bigint };
|
|
6495
|
-
};
|
|
6496
|
-
},
|
|
6497
|
-
ChainKnownTypes
|
|
6498
|
-
>
|
|
6499
|
-
>;
|
|
6500
|
-
|
|
6501
|
-
/**
|
|
6502
|
-
* Change the Owner of an asset.
|
|
6503
|
-
*
|
|
6504
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
6505
|
-
*
|
|
6506
|
-
* - `id`: The identifier of the asset.
|
|
6507
|
-
* - `owner`: The new Owner of this asset.
|
|
6508
|
-
*
|
|
6509
|
-
* Emits `OwnerChanged`.
|
|
6510
|
-
*
|
|
6511
|
-
* Weight: `O(1)`
|
|
6512
|
-
*
|
|
6513
|
-
* @param {bigint} id
|
|
6514
|
-
* @param {AccountId20Like} owner
|
|
6515
|
-
**/
|
|
6516
|
-
transferOwnership: GenericTxCall<
|
|
6517
|
-
(
|
|
6518
|
-
id: bigint,
|
|
6519
|
-
owner: AccountId20Like,
|
|
6520
|
-
) => ChainSubmittableExtrinsic<
|
|
6521
|
-
{
|
|
6522
|
-
pallet: 'Assets';
|
|
6523
|
-
palletCall: {
|
|
6524
|
-
name: 'TransferOwnership';
|
|
6525
|
-
params: { id: bigint; owner: AccountId20Like };
|
|
6526
|
-
};
|
|
6527
|
-
},
|
|
6528
|
-
ChainKnownTypes
|
|
6529
|
-
>
|
|
6530
|
-
>;
|
|
6531
|
-
|
|
6532
|
-
/**
|
|
6533
|
-
* Change the Issuer, Admin and Freezer of an asset.
|
|
6534
|
-
*
|
|
6535
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
6536
|
-
*
|
|
6537
|
-
* - `id`: The identifier of the asset to be frozen.
|
|
6538
|
-
* - `issuer`: The new Issuer of this asset.
|
|
6539
|
-
* - `admin`: The new Admin of this asset.
|
|
6540
|
-
* - `freezer`: The new Freezer of this asset.
|
|
6541
|
-
*
|
|
6542
|
-
* Emits `TeamChanged`.
|
|
6543
|
-
*
|
|
6544
|
-
* Weight: `O(1)`
|
|
6545
|
-
*
|
|
6546
|
-
* @param {bigint} id
|
|
6547
|
-
* @param {AccountId20Like} issuer
|
|
6548
|
-
* @param {AccountId20Like} admin
|
|
6549
|
-
* @param {AccountId20Like} freezer
|
|
6550
|
-
**/
|
|
6551
|
-
setTeam: GenericTxCall<
|
|
6552
|
-
(
|
|
6553
|
-
id: bigint,
|
|
6554
|
-
issuer: AccountId20Like,
|
|
6555
|
-
admin: AccountId20Like,
|
|
6556
|
-
freezer: AccountId20Like,
|
|
6557
|
-
) => ChainSubmittableExtrinsic<
|
|
6558
|
-
{
|
|
6559
|
-
pallet: 'Assets';
|
|
6560
|
-
palletCall: {
|
|
6561
|
-
name: 'SetTeam';
|
|
6562
|
-
params: { id: bigint; issuer: AccountId20Like; admin: AccountId20Like; freezer: AccountId20Like };
|
|
6563
|
-
};
|
|
6564
|
-
},
|
|
6565
|
-
ChainKnownTypes
|
|
6566
|
-
>
|
|
6567
|
-
>;
|
|
6568
|
-
|
|
6569
|
-
/**
|
|
6570
|
-
* Set the metadata for an asset.
|
|
6571
|
-
*
|
|
6572
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
6573
|
-
*
|
|
6574
|
-
* Funds of sender are reserved according to the formula:
|
|
6575
|
-
* `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
|
|
6576
|
-
* account any already reserved funds.
|
|
6577
|
-
*
|
|
6578
|
-
* - `id`: The identifier of the asset to update.
|
|
6579
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
6580
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
6581
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
6582
|
-
*
|
|
6583
|
-
* Emits `MetadataSet`.
|
|
6584
|
-
*
|
|
6585
|
-
* Weight: `O(1)`
|
|
6586
|
-
*
|
|
6587
|
-
* @param {bigint} id
|
|
6588
|
-
* @param {BytesLike} name
|
|
6589
|
-
* @param {BytesLike} symbol
|
|
6590
|
-
* @param {number} decimals
|
|
6591
|
-
**/
|
|
6592
|
-
setMetadata: GenericTxCall<
|
|
6593
|
-
(
|
|
6594
|
-
id: bigint,
|
|
6595
|
-
name: BytesLike,
|
|
6596
|
-
symbol: BytesLike,
|
|
6597
|
-
decimals: number,
|
|
6598
|
-
) => ChainSubmittableExtrinsic<
|
|
6599
|
-
{
|
|
6600
|
-
pallet: 'Assets';
|
|
6601
|
-
palletCall: {
|
|
6602
|
-
name: 'SetMetadata';
|
|
6603
|
-
params: { id: bigint; name: BytesLike; symbol: BytesLike; decimals: number };
|
|
6604
|
-
};
|
|
6605
|
-
},
|
|
6606
|
-
ChainKnownTypes
|
|
6607
|
-
>
|
|
6608
|
-
>;
|
|
6609
|
-
|
|
6610
|
-
/**
|
|
6611
|
-
* Clear the metadata for an asset.
|
|
6612
|
-
*
|
|
6613
|
-
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
6614
|
-
*
|
|
6615
|
-
* Any deposit is freed for the asset owner.
|
|
6616
|
-
*
|
|
6617
|
-
* - `id`: The identifier of the asset to clear.
|
|
6618
|
-
*
|
|
6619
|
-
* Emits `MetadataCleared`.
|
|
6620
|
-
*
|
|
6621
|
-
* Weight: `O(1)`
|
|
6622
|
-
*
|
|
6623
|
-
* @param {bigint} id
|
|
6624
|
-
**/
|
|
6625
|
-
clearMetadata: GenericTxCall<
|
|
6626
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6627
|
-
{
|
|
6628
|
-
pallet: 'Assets';
|
|
6629
|
-
palletCall: {
|
|
6630
|
-
name: 'ClearMetadata';
|
|
6631
|
-
params: { id: bigint };
|
|
6632
|
-
};
|
|
6633
|
-
},
|
|
6634
|
-
ChainKnownTypes
|
|
6635
|
-
>
|
|
6636
|
-
>;
|
|
6637
|
-
|
|
6638
|
-
/**
|
|
6639
|
-
* Force the metadata for an asset to some value.
|
|
6640
|
-
*
|
|
6641
|
-
* Origin must be ForceOrigin.
|
|
6642
|
-
*
|
|
6643
|
-
* Any deposit is left alone.
|
|
6644
|
-
*
|
|
6645
|
-
* - `id`: The identifier of the asset to update.
|
|
6646
|
-
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
6647
|
-
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
6648
|
-
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
6649
|
-
*
|
|
6650
|
-
* Emits `MetadataSet`.
|
|
6651
|
-
*
|
|
6652
|
-
* Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
|
|
6653
|
-
*
|
|
6654
|
-
* @param {bigint} id
|
|
6655
|
-
* @param {BytesLike} name
|
|
6656
|
-
* @param {BytesLike} symbol
|
|
6657
|
-
* @param {number} decimals
|
|
6658
|
-
* @param {boolean} isFrozen
|
|
6659
|
-
**/
|
|
6660
|
-
forceSetMetadata: GenericTxCall<
|
|
6661
|
-
(
|
|
6662
|
-
id: bigint,
|
|
6663
|
-
name: BytesLike,
|
|
6664
|
-
symbol: BytesLike,
|
|
6665
|
-
decimals: number,
|
|
6666
|
-
isFrozen: boolean,
|
|
6667
|
-
) => ChainSubmittableExtrinsic<
|
|
6668
|
-
{
|
|
6669
|
-
pallet: 'Assets';
|
|
6670
|
-
palletCall: {
|
|
6671
|
-
name: 'ForceSetMetadata';
|
|
6672
|
-
params: { id: bigint; name: BytesLike; symbol: BytesLike; decimals: number; isFrozen: boolean };
|
|
6673
|
-
};
|
|
6674
|
-
},
|
|
6675
|
-
ChainKnownTypes
|
|
6676
|
-
>
|
|
6677
|
-
>;
|
|
6678
|
-
|
|
6679
|
-
/**
|
|
6680
|
-
* Clear the metadata for an asset.
|
|
6681
|
-
*
|
|
6682
|
-
* Origin must be ForceOrigin.
|
|
6683
|
-
*
|
|
6684
|
-
* Any deposit is returned.
|
|
6685
|
-
*
|
|
6686
|
-
* - `id`: The identifier of the asset to clear.
|
|
6687
|
-
*
|
|
6688
|
-
* Emits `MetadataCleared`.
|
|
6689
|
-
*
|
|
6690
|
-
* Weight: `O(1)`
|
|
6691
|
-
*
|
|
6692
|
-
* @param {bigint} id
|
|
6693
|
-
**/
|
|
6694
|
-
forceClearMetadata: GenericTxCall<
|
|
6695
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6696
|
-
{
|
|
6697
|
-
pallet: 'Assets';
|
|
6698
|
-
palletCall: {
|
|
6699
|
-
name: 'ForceClearMetadata';
|
|
6700
|
-
params: { id: bigint };
|
|
6701
|
-
};
|
|
6702
|
-
},
|
|
6703
|
-
ChainKnownTypes
|
|
6704
|
-
>
|
|
6705
|
-
>;
|
|
6706
|
-
|
|
6707
|
-
/**
|
|
6708
|
-
* Alter the attributes of a given asset.
|
|
6709
|
-
*
|
|
6710
|
-
* Origin must be `ForceOrigin`.
|
|
6711
|
-
*
|
|
6712
|
-
* - `id`: The identifier of the asset.
|
|
6713
|
-
* - `owner`: The new Owner of this asset.
|
|
6714
|
-
* - `issuer`: The new Issuer of this asset.
|
|
6715
|
-
* - `admin`: The new Admin of this asset.
|
|
6716
|
-
* - `freezer`: The new Freezer of this asset.
|
|
6717
|
-
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
6718
|
-
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
6719
|
-
* - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
|
|
6720
|
-
* value to account for the state bloat associated with its balance storage. If set to
|
|
6721
|
-
* `true`, then non-zero balances may be stored without a `consumer` reference (and thus
|
|
6722
|
-
* an ED in the Balances pallet or whatever else is used to control user-account state
|
|
6723
|
-
* growth).
|
|
6724
|
-
* - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
|
|
6725
|
-
* instructions.
|
|
6726
|
-
*
|
|
6727
|
-
* Emits `AssetStatusChanged` with the identity of the asset.
|
|
6728
|
-
*
|
|
6729
|
-
* Weight: `O(1)`
|
|
6730
|
-
*
|
|
6731
|
-
* @param {bigint} id
|
|
6732
|
-
* @param {AccountId20Like} owner
|
|
6733
|
-
* @param {AccountId20Like} issuer
|
|
6734
|
-
* @param {AccountId20Like} admin
|
|
6735
|
-
* @param {AccountId20Like} freezer
|
|
6736
|
-
* @param {bigint} minBalance
|
|
6737
|
-
* @param {boolean} isSufficient
|
|
6738
|
-
* @param {boolean} isFrozen
|
|
6739
|
-
**/
|
|
6740
|
-
forceAssetStatus: GenericTxCall<
|
|
6741
|
-
(
|
|
6742
|
-
id: bigint,
|
|
6743
|
-
owner: AccountId20Like,
|
|
6744
|
-
issuer: AccountId20Like,
|
|
6745
|
-
admin: AccountId20Like,
|
|
6746
|
-
freezer: AccountId20Like,
|
|
6747
|
-
minBalance: bigint,
|
|
6748
|
-
isSufficient: boolean,
|
|
6749
|
-
isFrozen: boolean,
|
|
6750
|
-
) => ChainSubmittableExtrinsic<
|
|
6751
|
-
{
|
|
6752
|
-
pallet: 'Assets';
|
|
6753
|
-
palletCall: {
|
|
6754
|
-
name: 'ForceAssetStatus';
|
|
6755
|
-
params: {
|
|
6756
|
-
id: bigint;
|
|
6757
|
-
owner: AccountId20Like;
|
|
6758
|
-
issuer: AccountId20Like;
|
|
6759
|
-
admin: AccountId20Like;
|
|
6760
|
-
freezer: AccountId20Like;
|
|
6761
|
-
minBalance: bigint;
|
|
6762
|
-
isSufficient: boolean;
|
|
6763
|
-
isFrozen: boolean;
|
|
6764
|
-
};
|
|
6765
|
-
};
|
|
6766
|
-
},
|
|
6767
|
-
ChainKnownTypes
|
|
6768
|
-
>
|
|
6769
|
-
>;
|
|
6770
|
-
|
|
6771
|
-
/**
|
|
6772
|
-
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
6773
|
-
*
|
|
6774
|
-
* Origin must be Signed.
|
|
6775
|
-
*
|
|
6776
|
-
* Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
|
|
6777
|
-
* for the purpose of holding the approval. If some non-zero amount of assets is already
|
|
6778
|
-
* approved from signing account to `delegate`, then it is topped up or unreserved to
|
|
6779
|
-
* meet the right value.
|
|
6780
|
-
*
|
|
6781
|
-
* NOTE: The signing account does not need to own `amount` of assets at the point of
|
|
6782
|
-
* making this call.
|
|
6783
|
-
*
|
|
6784
|
-
* - `id`: The identifier of the asset.
|
|
6785
|
-
* - `delegate`: The account to delegate permission to transfer asset.
|
|
6786
|
-
* - `amount`: The amount of asset that may be transferred by `delegate`. If there is
|
|
6787
|
-
* already an approval in place, then this acts additively.
|
|
6788
|
-
*
|
|
6789
|
-
* Emits `ApprovedTransfer` on success.
|
|
6790
|
-
*
|
|
6791
|
-
* Weight: `O(1)`
|
|
6792
|
-
*
|
|
6793
|
-
* @param {bigint} id
|
|
6794
|
-
* @param {AccountId20Like} delegate
|
|
6795
|
-
* @param {bigint} amount
|
|
6796
|
-
**/
|
|
6797
|
-
approveTransfer: GenericTxCall<
|
|
6798
|
-
(
|
|
6799
|
-
id: bigint,
|
|
6800
|
-
delegate: AccountId20Like,
|
|
6801
|
-
amount: bigint,
|
|
6802
|
-
) => ChainSubmittableExtrinsic<
|
|
6803
|
-
{
|
|
6804
|
-
pallet: 'Assets';
|
|
6805
|
-
palletCall: {
|
|
6806
|
-
name: 'ApproveTransfer';
|
|
6807
|
-
params: { id: bigint; delegate: AccountId20Like; amount: bigint };
|
|
6808
|
-
};
|
|
6809
|
-
},
|
|
6810
|
-
ChainKnownTypes
|
|
6811
|
-
>
|
|
6812
|
-
>;
|
|
6813
|
-
|
|
6814
|
-
/**
|
|
6815
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
6816
|
-
*
|
|
6817
|
-
* Origin must be Signed and there must be an approval in place between signer and
|
|
6818
|
-
* `delegate`.
|
|
6819
|
-
*
|
|
6820
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
6821
|
-
*
|
|
6822
|
-
* - `id`: The identifier of the asset.
|
|
6823
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
6824
|
-
*
|
|
6825
|
-
* Emits `ApprovalCancelled` on success.
|
|
6826
|
-
*
|
|
6827
|
-
* Weight: `O(1)`
|
|
6828
|
-
*
|
|
6829
|
-
* @param {bigint} id
|
|
6830
|
-
* @param {AccountId20Like} delegate
|
|
6831
|
-
**/
|
|
6832
|
-
cancelApproval: GenericTxCall<
|
|
6833
|
-
(
|
|
6834
|
-
id: bigint,
|
|
6835
|
-
delegate: AccountId20Like,
|
|
6836
|
-
) => ChainSubmittableExtrinsic<
|
|
6837
|
-
{
|
|
6838
|
-
pallet: 'Assets';
|
|
6839
|
-
palletCall: {
|
|
6840
|
-
name: 'CancelApproval';
|
|
6841
|
-
params: { id: bigint; delegate: AccountId20Like };
|
|
6842
|
-
};
|
|
6843
|
-
},
|
|
6844
|
-
ChainKnownTypes
|
|
6845
|
-
>
|
|
6846
|
-
>;
|
|
6847
|
-
|
|
6848
|
-
/**
|
|
6849
|
-
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
6850
|
-
*
|
|
6851
|
-
* Origin must be either ForceOrigin or Signed origin with the signer being the Admin
|
|
6852
|
-
* account of the asset `id`.
|
|
6853
|
-
*
|
|
6854
|
-
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
6855
|
-
*
|
|
6856
|
-
* - `id`: The identifier of the asset.
|
|
6857
|
-
* - `delegate`: The account delegated permission to transfer asset.
|
|
6858
|
-
*
|
|
6859
|
-
* Emits `ApprovalCancelled` on success.
|
|
6860
|
-
*
|
|
6861
|
-
* Weight: `O(1)`
|
|
6862
|
-
*
|
|
6863
|
-
* @param {bigint} id
|
|
6864
|
-
* @param {AccountId20Like} owner
|
|
6865
|
-
* @param {AccountId20Like} delegate
|
|
6866
|
-
**/
|
|
6867
|
-
forceCancelApproval: GenericTxCall<
|
|
6868
|
-
(
|
|
6869
|
-
id: bigint,
|
|
6870
|
-
owner: AccountId20Like,
|
|
6871
|
-
delegate: AccountId20Like,
|
|
6872
|
-
) => ChainSubmittableExtrinsic<
|
|
6873
|
-
{
|
|
6874
|
-
pallet: 'Assets';
|
|
6875
|
-
palletCall: {
|
|
6876
|
-
name: 'ForceCancelApproval';
|
|
6877
|
-
params: { id: bigint; owner: AccountId20Like; delegate: AccountId20Like };
|
|
6878
|
-
};
|
|
6879
|
-
},
|
|
6880
|
-
ChainKnownTypes
|
|
6881
|
-
>
|
|
6882
|
-
>;
|
|
6883
|
-
|
|
6884
|
-
/**
|
|
6885
|
-
* Transfer some asset balance from a previously delegated account to some third-party
|
|
6886
|
-
* account.
|
|
6887
|
-
*
|
|
6888
|
-
* Origin must be Signed and there must be an approval in place by the `owner` to the
|
|
6889
|
-
* signer.
|
|
6890
|
-
*
|
|
6891
|
-
* If the entire amount approved for transfer is transferred, then any deposit previously
|
|
6892
|
-
* reserved by `approve_transfer` is unreserved.
|
|
6893
|
-
*
|
|
6894
|
-
* - `id`: The identifier of the asset.
|
|
6895
|
-
* - `owner`: The account which previously approved for a transfer of at least `amount` and
|
|
6896
|
-
* from which the asset balance will be withdrawn.
|
|
6897
|
-
* - `destination`: The account to which the asset balance of `amount` will be transferred.
|
|
6898
|
-
* - `amount`: The amount of assets to transfer.
|
|
6899
|
-
*
|
|
6900
|
-
* Emits `TransferredApproved` on success.
|
|
6901
|
-
*
|
|
6902
|
-
* Weight: `O(1)`
|
|
6903
|
-
*
|
|
6904
|
-
* @param {bigint} id
|
|
6905
|
-
* @param {AccountId20Like} owner
|
|
6906
|
-
* @param {AccountId20Like} destination
|
|
6907
|
-
* @param {bigint} amount
|
|
6908
|
-
**/
|
|
6909
|
-
transferApproved: GenericTxCall<
|
|
6910
|
-
(
|
|
6911
|
-
id: bigint,
|
|
6912
|
-
owner: AccountId20Like,
|
|
6913
|
-
destination: AccountId20Like,
|
|
6914
|
-
amount: bigint,
|
|
6915
|
-
) => ChainSubmittableExtrinsic<
|
|
6916
|
-
{
|
|
6917
|
-
pallet: 'Assets';
|
|
6918
|
-
palletCall: {
|
|
6919
|
-
name: 'TransferApproved';
|
|
6920
|
-
params: { id: bigint; owner: AccountId20Like; destination: AccountId20Like; amount: bigint };
|
|
6921
|
-
};
|
|
6922
|
-
},
|
|
6923
|
-
ChainKnownTypes
|
|
6924
|
-
>
|
|
6925
|
-
>;
|
|
6926
|
-
|
|
6927
|
-
/**
|
|
6928
|
-
* Create an asset account for non-provider assets.
|
|
6929
|
-
*
|
|
6930
|
-
* A deposit will be taken from the signer account.
|
|
6931
|
-
*
|
|
6932
|
-
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
6933
|
-
* to be taken.
|
|
6934
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
6935
|
-
*
|
|
6936
|
-
* Emits `Touched` event when successful.
|
|
6937
|
-
*
|
|
6938
|
-
* @param {bigint} id
|
|
6939
|
-
**/
|
|
6940
|
-
touch: GenericTxCall<
|
|
6941
|
-
(id: bigint) => ChainSubmittableExtrinsic<
|
|
6942
|
-
{
|
|
6943
|
-
pallet: 'Assets';
|
|
6944
|
-
palletCall: {
|
|
6945
|
-
name: 'Touch';
|
|
6946
|
-
params: { id: bigint };
|
|
6947
|
-
};
|
|
6948
|
-
},
|
|
6949
|
-
ChainKnownTypes
|
|
6950
|
-
>
|
|
6951
|
-
>;
|
|
6952
|
-
|
|
6953
|
-
/**
|
|
6954
|
-
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
|
6955
|
-
* account.
|
|
6956
|
-
*
|
|
6957
|
-
* The origin must be Signed.
|
|
6958
|
-
*
|
|
6959
|
-
* - `id`: The identifier of the asset for which the caller would like the deposit
|
|
6960
|
-
* refunded.
|
|
6961
|
-
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
6962
|
-
*
|
|
6963
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
6964
|
-
* the asset account contains holds or freezes in place.
|
|
6965
|
-
*
|
|
6966
|
-
* Emits `Refunded` event when successful.
|
|
6967
|
-
*
|
|
6968
|
-
* @param {bigint} id
|
|
6969
|
-
* @param {boolean} allowBurn
|
|
6970
|
-
**/
|
|
6971
|
-
refund: GenericTxCall<
|
|
6972
|
-
(
|
|
6973
|
-
id: bigint,
|
|
6974
|
-
allowBurn: boolean,
|
|
6975
|
-
) => ChainSubmittableExtrinsic<
|
|
6976
|
-
{
|
|
6977
|
-
pallet: 'Assets';
|
|
6978
|
-
palletCall: {
|
|
6979
|
-
name: 'Refund';
|
|
6980
|
-
params: { id: bigint; allowBurn: boolean };
|
|
6981
|
-
};
|
|
6982
|
-
},
|
|
6983
|
-
ChainKnownTypes
|
|
6984
|
-
>
|
|
6985
|
-
>;
|
|
6986
|
-
|
|
6987
|
-
/**
|
|
6988
|
-
* Sets the minimum balance of an asset.
|
|
6989
|
-
*
|
|
6990
|
-
* Only works if there aren't any accounts that are holding the asset or if
|
|
6991
|
-
* the new value of `min_balance` is less than the old one.
|
|
6992
|
-
*
|
|
6993
|
-
* Origin must be Signed and the sender has to be the Owner of the
|
|
6994
|
-
* asset `id`.
|
|
6995
|
-
*
|
|
6996
|
-
* - `id`: The identifier of the asset.
|
|
6997
|
-
* - `min_balance`: The new value of `min_balance`.
|
|
6998
|
-
*
|
|
6999
|
-
* Emits `AssetMinBalanceChanged` event when successful.
|
|
7000
|
-
*
|
|
7001
|
-
* @param {bigint} id
|
|
7002
|
-
* @param {bigint} minBalance
|
|
7003
|
-
**/
|
|
7004
|
-
setMinBalance: GenericTxCall<
|
|
7005
|
-
(
|
|
7006
|
-
id: bigint,
|
|
7007
|
-
minBalance: bigint,
|
|
7008
|
-
) => ChainSubmittableExtrinsic<
|
|
7009
|
-
{
|
|
7010
|
-
pallet: 'Assets';
|
|
7011
|
-
palletCall: {
|
|
7012
|
-
name: 'SetMinBalance';
|
|
7013
|
-
params: { id: bigint; minBalance: bigint };
|
|
7014
|
-
};
|
|
7015
|
-
},
|
|
7016
|
-
ChainKnownTypes
|
|
7017
|
-
>
|
|
7018
|
-
>;
|
|
7019
|
-
|
|
7020
|
-
/**
|
|
7021
|
-
* Create an asset account for `who`.
|
|
7022
|
-
*
|
|
7023
|
-
* A deposit will be taken from the signer account.
|
|
7024
|
-
*
|
|
7025
|
-
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
|
7026
|
-
* must have sufficient funds for a deposit to be taken.
|
|
7027
|
-
* - `id`: The identifier of the asset for the account to be created.
|
|
7028
|
-
* - `who`: The account to be created.
|
|
7029
|
-
*
|
|
7030
|
-
* Emits `Touched` event when successful.
|
|
7031
|
-
*
|
|
7032
|
-
* @param {bigint} id
|
|
7033
|
-
* @param {AccountId20Like} who
|
|
7034
|
-
**/
|
|
7035
|
-
touchOther: GenericTxCall<
|
|
7036
|
-
(
|
|
7037
|
-
id: bigint,
|
|
7038
|
-
who: AccountId20Like,
|
|
7039
|
-
) => ChainSubmittableExtrinsic<
|
|
7040
|
-
{
|
|
7041
|
-
pallet: 'Assets';
|
|
7042
|
-
palletCall: {
|
|
7043
|
-
name: 'TouchOther';
|
|
7044
|
-
params: { id: bigint; who: AccountId20Like };
|
|
7045
|
-
};
|
|
7046
|
-
},
|
|
7047
|
-
ChainKnownTypes
|
|
7048
|
-
>
|
|
7049
|
-
>;
|
|
7050
|
-
|
|
7051
|
-
/**
|
|
7052
|
-
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
|
7053
|
-
*
|
|
7054
|
-
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
|
7055
|
-
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
|
7056
|
-
* use `refund`.
|
|
7057
|
-
*
|
|
7058
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
7059
|
-
* - `who`: The account to refund.
|
|
7060
|
-
*
|
|
7061
|
-
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
7062
|
-
* the asset account contains holds or freezes in place.
|
|
7063
|
-
*
|
|
7064
|
-
* Emits `Refunded` event when successful.
|
|
7065
|
-
*
|
|
7066
|
-
* @param {bigint} id
|
|
7067
|
-
* @param {AccountId20Like} who
|
|
7068
|
-
**/
|
|
7069
|
-
refundOther: GenericTxCall<
|
|
7070
|
-
(
|
|
7071
|
-
id: bigint,
|
|
7072
|
-
who: AccountId20Like,
|
|
7073
|
-
) => ChainSubmittableExtrinsic<
|
|
7074
|
-
{
|
|
7075
|
-
pallet: 'Assets';
|
|
7076
|
-
palletCall: {
|
|
7077
|
-
name: 'RefundOther';
|
|
7078
|
-
params: { id: bigint; who: AccountId20Like };
|
|
7079
|
-
};
|
|
7080
|
-
},
|
|
7081
|
-
ChainKnownTypes
|
|
7082
|
-
>
|
|
7083
|
-
>;
|
|
7084
|
-
|
|
7085
|
-
/**
|
|
7086
|
-
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
|
7087
|
-
*
|
|
7088
|
-
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
7089
|
-
*
|
|
7090
|
-
* - `id`: The identifier of the account's asset.
|
|
7091
|
-
* - `who`: The account to be unblocked.
|
|
7092
|
-
*
|
|
7093
|
-
* Emits `Blocked`.
|
|
7094
|
-
*
|
|
7095
|
-
* Weight: `O(1)`
|
|
7096
|
-
*
|
|
7097
|
-
* @param {bigint} id
|
|
7098
|
-
* @param {AccountId20Like} who
|
|
7099
|
-
**/
|
|
7100
|
-
block: GenericTxCall<
|
|
7101
|
-
(
|
|
7102
|
-
id: bigint,
|
|
7103
|
-
who: AccountId20Like,
|
|
7104
|
-
) => ChainSubmittableExtrinsic<
|
|
7105
|
-
{
|
|
7106
|
-
pallet: 'Assets';
|
|
7107
|
-
palletCall: {
|
|
7108
|
-
name: 'Block';
|
|
7109
|
-
params: { id: bigint; who: AccountId20Like };
|
|
7110
|
-
};
|
|
7111
|
-
},
|
|
7112
|
-
ChainKnownTypes
|
|
7113
|
-
>
|
|
7114
|
-
>;
|
|
7115
|
-
|
|
7116
|
-
/**
|
|
7117
|
-
* Transfer the entire transferable balance from the caller asset account.
|
|
7118
|
-
*
|
|
7119
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
7120
|
-
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
7121
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
7122
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
7123
|
-
* deposits, etc...
|
|
7124
|
-
*
|
|
7125
|
-
* The dispatch origin of this call must be Signed.
|
|
7126
|
-
*
|
|
7127
|
-
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
7128
|
-
* - `dest`: The recipient of the transfer.
|
|
7129
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
7130
|
-
* of the funds the asset account has, causing the sender asset account to be killed
|
|
7131
|
-
* (false), or transfer everything except at least the minimum balance, which will
|
|
7132
|
-
* guarantee to keep the sender asset account alive (true).
|
|
7133
|
-
*
|
|
7134
|
-
* @param {bigint} id
|
|
7135
|
-
* @param {AccountId20Like} dest
|
|
7136
|
-
* @param {boolean} keepAlive
|
|
7137
|
-
**/
|
|
7138
|
-
transferAll: GenericTxCall<
|
|
7139
|
-
(
|
|
7140
|
-
id: bigint,
|
|
7141
|
-
dest: AccountId20Like,
|
|
7142
|
-
keepAlive: boolean,
|
|
7143
|
-
) => ChainSubmittableExtrinsic<
|
|
7144
|
-
{
|
|
7145
|
-
pallet: 'Assets';
|
|
7146
|
-
palletCall: {
|
|
7147
|
-
name: 'TransferAll';
|
|
7148
|
-
params: { id: bigint; dest: AccountId20Like; keepAlive: boolean };
|
|
7149
|
-
};
|
|
7150
|
-
},
|
|
7151
|
-
ChainKnownTypes
|
|
7152
|
-
>
|
|
7153
|
-
>;
|
|
7154
|
-
|
|
7155
|
-
/**
|
|
7156
|
-
* Generic pallet tx call
|
|
7157
|
-
**/
|
|
7158
|
-
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
7159
|
-
};
|
|
7160
5973
|
/**
|
|
7161
5974
|
* Pallet `XcmTransactor`'s transaction calls
|
|
7162
5975
|
**/
|