@dedot/chaintypes 0.30.0 → 0.32.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 +27 -0
- package/moonbeam/errors.d.ts +87 -0
- package/moonbeam/events.d.ts +120 -6
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +81 -21
- package/moonbeam/tx.d.ts +281 -52
- package/moonbeam/types.d.ts +243 -34
- package/package.json +2 -2
- package/westend/events.d.ts +4 -4
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +3 -3
- package/westend/runtime.d.ts +13 -11
- package/westend/tx.d.ts +5 -5
- package/westend/types.d.ts +62 -37
package/moonbeam/tx.d.ts
CHANGED
|
@@ -3240,6 +3240,24 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3240
3240
|
>
|
|
3241
3241
|
>;
|
|
3242
3242
|
|
|
3243
|
+
/**
|
|
3244
|
+
*
|
|
3245
|
+
* @param {H160} address
|
|
3246
|
+
**/
|
|
3247
|
+
createContractMetadata: GenericTxCall<
|
|
3248
|
+
Rv,
|
|
3249
|
+
(address: H160) => ChainSubmittableExtrinsic<
|
|
3250
|
+
Rv,
|
|
3251
|
+
{
|
|
3252
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3253
|
+
palletCall: {
|
|
3254
|
+
name: 'CreateContractMetadata';
|
|
3255
|
+
params: { address: H160 };
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
>
|
|
3259
|
+
>;
|
|
3260
|
+
|
|
3243
3261
|
/**
|
|
3244
3262
|
* Generic pallet tx call
|
|
3245
3263
|
**/
|
|
@@ -7226,36 +7244,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7226
7244
|
>
|
|
7227
7245
|
>;
|
|
7228
7246
|
|
|
7229
|
-
/**
|
|
7230
|
-
* Change the amount of units we are charging per execution second
|
|
7231
|
-
* for a given ForeignAssetType
|
|
7232
|
-
*
|
|
7233
|
-
* @param {MoonbeamRuntimeXcmConfigAssetType} assetType
|
|
7234
|
-
* @param {bigint} unitsPerSecond
|
|
7235
|
-
* @param {number} numAssetsWeightHint
|
|
7236
|
-
**/
|
|
7237
|
-
setAssetUnitsPerSecond: GenericTxCall<
|
|
7238
|
-
Rv,
|
|
7239
|
-
(
|
|
7240
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType,
|
|
7241
|
-
unitsPerSecond: bigint,
|
|
7242
|
-
numAssetsWeightHint: number,
|
|
7243
|
-
) => ChainSubmittableExtrinsic<
|
|
7244
|
-
Rv,
|
|
7245
|
-
{
|
|
7246
|
-
pallet: 'AssetManager';
|
|
7247
|
-
palletCall: {
|
|
7248
|
-
name: 'SetAssetUnitsPerSecond';
|
|
7249
|
-
params: {
|
|
7250
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType;
|
|
7251
|
-
unitsPerSecond: bigint;
|
|
7252
|
-
numAssetsWeightHint: number;
|
|
7253
|
-
};
|
|
7254
|
-
};
|
|
7255
|
-
}
|
|
7256
|
-
>
|
|
7257
|
-
>;
|
|
7258
|
-
|
|
7259
7247
|
/**
|
|
7260
7248
|
* Change the xcm type mapping for a given assetId
|
|
7261
7249
|
* We also change this if the previous units per second where pointing at the old
|
|
@@ -7283,28 +7271,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7283
7271
|
>
|
|
7284
7272
|
>;
|
|
7285
7273
|
|
|
7286
|
-
/**
|
|
7287
|
-
*
|
|
7288
|
-
* @param {MoonbeamRuntimeXcmConfigAssetType} assetType
|
|
7289
|
-
* @param {number} numAssetsWeightHint
|
|
7290
|
-
**/
|
|
7291
|
-
removeSupportedAsset: GenericTxCall<
|
|
7292
|
-
Rv,
|
|
7293
|
-
(
|
|
7294
|
-
assetType: MoonbeamRuntimeXcmConfigAssetType,
|
|
7295
|
-
numAssetsWeightHint: number,
|
|
7296
|
-
) => ChainSubmittableExtrinsic<
|
|
7297
|
-
Rv,
|
|
7298
|
-
{
|
|
7299
|
-
pallet: 'AssetManager';
|
|
7300
|
-
palletCall: {
|
|
7301
|
-
name: 'RemoveSupportedAsset';
|
|
7302
|
-
params: { assetType: MoonbeamRuntimeXcmConfigAssetType; numAssetsWeightHint: number };
|
|
7303
|
-
};
|
|
7304
|
-
}
|
|
7305
|
-
>
|
|
7306
|
-
>;
|
|
7307
|
-
|
|
7308
7274
|
/**
|
|
7309
7275
|
* Remove a given assetId -> assetType association
|
|
7310
7276
|
*
|
|
@@ -8150,6 +8116,269 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8150
8116
|
**/
|
|
8151
8117
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8152
8118
|
};
|
|
8119
|
+
/**
|
|
8120
|
+
* Pallet `EvmForeignAssets`'s transaction calls
|
|
8121
|
+
**/
|
|
8122
|
+
evmForeignAssets: {
|
|
8123
|
+
/**
|
|
8124
|
+
* Create new asset with the ForeignAssetCreator
|
|
8125
|
+
*
|
|
8126
|
+
* @param {bigint} assetId
|
|
8127
|
+
* @param {StagingXcmV4Location} xcmLocation
|
|
8128
|
+
* @param {number} decimals
|
|
8129
|
+
* @param {BytesLike} symbol
|
|
8130
|
+
* @param {BytesLike} name
|
|
8131
|
+
**/
|
|
8132
|
+
createForeignAsset: GenericTxCall<
|
|
8133
|
+
Rv,
|
|
8134
|
+
(
|
|
8135
|
+
assetId: bigint,
|
|
8136
|
+
xcmLocation: StagingXcmV4Location,
|
|
8137
|
+
decimals: number,
|
|
8138
|
+
symbol: BytesLike,
|
|
8139
|
+
name: BytesLike,
|
|
8140
|
+
) => ChainSubmittableExtrinsic<
|
|
8141
|
+
Rv,
|
|
8142
|
+
{
|
|
8143
|
+
pallet: 'EvmForeignAssets';
|
|
8144
|
+
palletCall: {
|
|
8145
|
+
name: 'CreateForeignAsset';
|
|
8146
|
+
params: {
|
|
8147
|
+
assetId: bigint;
|
|
8148
|
+
xcmLocation: StagingXcmV4Location;
|
|
8149
|
+
decimals: number;
|
|
8150
|
+
symbol: BytesLike;
|
|
8151
|
+
name: BytesLike;
|
|
8152
|
+
};
|
|
8153
|
+
};
|
|
8154
|
+
}
|
|
8155
|
+
>
|
|
8156
|
+
>;
|
|
8157
|
+
|
|
8158
|
+
/**
|
|
8159
|
+
* Change the xcm type mapping for a given assetId
|
|
8160
|
+
* We also change this if the previous units per second where pointing at the old
|
|
8161
|
+
* assetType
|
|
8162
|
+
*
|
|
8163
|
+
* @param {bigint} assetId
|
|
8164
|
+
* @param {StagingXcmV4Location} newXcmLocation
|
|
8165
|
+
**/
|
|
8166
|
+
changeXcmLocation: GenericTxCall<
|
|
8167
|
+
Rv,
|
|
8168
|
+
(
|
|
8169
|
+
assetId: bigint,
|
|
8170
|
+
newXcmLocation: StagingXcmV4Location,
|
|
8171
|
+
) => ChainSubmittableExtrinsic<
|
|
8172
|
+
Rv,
|
|
8173
|
+
{
|
|
8174
|
+
pallet: 'EvmForeignAssets';
|
|
8175
|
+
palletCall: {
|
|
8176
|
+
name: 'ChangeXcmLocation';
|
|
8177
|
+
params: { assetId: bigint; newXcmLocation: StagingXcmV4Location };
|
|
8178
|
+
};
|
|
8179
|
+
}
|
|
8180
|
+
>
|
|
8181
|
+
>;
|
|
8182
|
+
|
|
8183
|
+
/**
|
|
8184
|
+
* Freeze a given foreign assetId
|
|
8185
|
+
*
|
|
8186
|
+
* @param {bigint} assetId
|
|
8187
|
+
* @param {boolean} allowXcmDeposit
|
|
8188
|
+
**/
|
|
8189
|
+
freezeForeignAsset: GenericTxCall<
|
|
8190
|
+
Rv,
|
|
8191
|
+
(
|
|
8192
|
+
assetId: bigint,
|
|
8193
|
+
allowXcmDeposit: boolean,
|
|
8194
|
+
) => ChainSubmittableExtrinsic<
|
|
8195
|
+
Rv,
|
|
8196
|
+
{
|
|
8197
|
+
pallet: 'EvmForeignAssets';
|
|
8198
|
+
palletCall: {
|
|
8199
|
+
name: 'FreezeForeignAsset';
|
|
8200
|
+
params: { assetId: bigint; allowXcmDeposit: boolean };
|
|
8201
|
+
};
|
|
8202
|
+
}
|
|
8203
|
+
>
|
|
8204
|
+
>;
|
|
8205
|
+
|
|
8206
|
+
/**
|
|
8207
|
+
* Unfreeze a given foreign assetId
|
|
8208
|
+
*
|
|
8209
|
+
* @param {bigint} assetId
|
|
8210
|
+
**/
|
|
8211
|
+
unfreezeForeignAsset: GenericTxCall<
|
|
8212
|
+
Rv,
|
|
8213
|
+
(assetId: bigint) => ChainSubmittableExtrinsic<
|
|
8214
|
+
Rv,
|
|
8215
|
+
{
|
|
8216
|
+
pallet: 'EvmForeignAssets';
|
|
8217
|
+
palletCall: {
|
|
8218
|
+
name: 'UnfreezeForeignAsset';
|
|
8219
|
+
params: { assetId: bigint };
|
|
8220
|
+
};
|
|
8221
|
+
}
|
|
8222
|
+
>
|
|
8223
|
+
>;
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* Generic pallet tx call
|
|
8227
|
+
**/
|
|
8228
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8229
|
+
};
|
|
8230
|
+
/**
|
|
8231
|
+
* Pallet `XcmWeightTrader`'s transaction calls
|
|
8232
|
+
**/
|
|
8233
|
+
xcmWeightTrader: {
|
|
8234
|
+
/**
|
|
8235
|
+
*
|
|
8236
|
+
* @param {StagingXcmV4Location} location
|
|
8237
|
+
* @param {bigint} relativePrice
|
|
8238
|
+
**/
|
|
8239
|
+
addAsset: GenericTxCall<
|
|
8240
|
+
Rv,
|
|
8241
|
+
(
|
|
8242
|
+
location: StagingXcmV4Location,
|
|
8243
|
+
relativePrice: bigint,
|
|
8244
|
+
) => ChainSubmittableExtrinsic<
|
|
8245
|
+
Rv,
|
|
8246
|
+
{
|
|
8247
|
+
pallet: 'XcmWeightTrader';
|
|
8248
|
+
palletCall: {
|
|
8249
|
+
name: 'AddAsset';
|
|
8250
|
+
params: { location: StagingXcmV4Location; relativePrice: bigint };
|
|
8251
|
+
};
|
|
8252
|
+
}
|
|
8253
|
+
>
|
|
8254
|
+
>;
|
|
8255
|
+
|
|
8256
|
+
/**
|
|
8257
|
+
*
|
|
8258
|
+
* @param {StagingXcmV4Location} location
|
|
8259
|
+
* @param {bigint} relativePrice
|
|
8260
|
+
**/
|
|
8261
|
+
editAsset: GenericTxCall<
|
|
8262
|
+
Rv,
|
|
8263
|
+
(
|
|
8264
|
+
location: StagingXcmV4Location,
|
|
8265
|
+
relativePrice: bigint,
|
|
8266
|
+
) => ChainSubmittableExtrinsic<
|
|
8267
|
+
Rv,
|
|
8268
|
+
{
|
|
8269
|
+
pallet: 'XcmWeightTrader';
|
|
8270
|
+
palletCall: {
|
|
8271
|
+
name: 'EditAsset';
|
|
8272
|
+
params: { location: StagingXcmV4Location; relativePrice: bigint };
|
|
8273
|
+
};
|
|
8274
|
+
}
|
|
8275
|
+
>
|
|
8276
|
+
>;
|
|
8277
|
+
|
|
8278
|
+
/**
|
|
8279
|
+
*
|
|
8280
|
+
* @param {StagingXcmV4Location} location
|
|
8281
|
+
**/
|
|
8282
|
+
pauseAssetSupport: GenericTxCall<
|
|
8283
|
+
Rv,
|
|
8284
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8285
|
+
Rv,
|
|
8286
|
+
{
|
|
8287
|
+
pallet: 'XcmWeightTrader';
|
|
8288
|
+
palletCall: {
|
|
8289
|
+
name: 'PauseAssetSupport';
|
|
8290
|
+
params: { location: StagingXcmV4Location };
|
|
8291
|
+
};
|
|
8292
|
+
}
|
|
8293
|
+
>
|
|
8294
|
+
>;
|
|
8295
|
+
|
|
8296
|
+
/**
|
|
8297
|
+
*
|
|
8298
|
+
* @param {StagingXcmV4Location} location
|
|
8299
|
+
**/
|
|
8300
|
+
resumeAssetSupport: GenericTxCall<
|
|
8301
|
+
Rv,
|
|
8302
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8303
|
+
Rv,
|
|
8304
|
+
{
|
|
8305
|
+
pallet: 'XcmWeightTrader';
|
|
8306
|
+
palletCall: {
|
|
8307
|
+
name: 'ResumeAssetSupport';
|
|
8308
|
+
params: { location: StagingXcmV4Location };
|
|
8309
|
+
};
|
|
8310
|
+
}
|
|
8311
|
+
>
|
|
8312
|
+
>;
|
|
8313
|
+
|
|
8314
|
+
/**
|
|
8315
|
+
*
|
|
8316
|
+
* @param {StagingXcmV4Location} location
|
|
8317
|
+
**/
|
|
8318
|
+
removeAsset: GenericTxCall<
|
|
8319
|
+
Rv,
|
|
8320
|
+
(location: StagingXcmV4Location) => ChainSubmittableExtrinsic<
|
|
8321
|
+
Rv,
|
|
8322
|
+
{
|
|
8323
|
+
pallet: 'XcmWeightTrader';
|
|
8324
|
+
palletCall: {
|
|
8325
|
+
name: 'RemoveAsset';
|
|
8326
|
+
params: { location: StagingXcmV4Location };
|
|
8327
|
+
};
|
|
8328
|
+
}
|
|
8329
|
+
>
|
|
8330
|
+
>;
|
|
8331
|
+
|
|
8332
|
+
/**
|
|
8333
|
+
* Generic pallet tx call
|
|
8334
|
+
**/
|
|
8335
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8336
|
+
};
|
|
8337
|
+
/**
|
|
8338
|
+
* Pallet `EmergencyParaXcm`'s transaction calls
|
|
8339
|
+
**/
|
|
8340
|
+
emergencyParaXcm: {
|
|
8341
|
+
/**
|
|
8342
|
+
* Resume `Normal` mode
|
|
8343
|
+
*
|
|
8344
|
+
**/
|
|
8345
|
+
pausedToNormal: GenericTxCall<
|
|
8346
|
+
Rv,
|
|
8347
|
+
() => ChainSubmittableExtrinsic<
|
|
8348
|
+
Rv,
|
|
8349
|
+
{
|
|
8350
|
+
pallet: 'EmergencyParaXcm';
|
|
8351
|
+
palletCall: {
|
|
8352
|
+
name: 'PausedToNormal';
|
|
8353
|
+
};
|
|
8354
|
+
}
|
|
8355
|
+
>
|
|
8356
|
+
>;
|
|
8357
|
+
|
|
8358
|
+
/**
|
|
8359
|
+
* Authorize a runtime upgrade. Only callable in `Paused` mode
|
|
8360
|
+
*
|
|
8361
|
+
* @param {H256} codeHash
|
|
8362
|
+
**/
|
|
8363
|
+
fastAuthorizeUpgrade: GenericTxCall<
|
|
8364
|
+
Rv,
|
|
8365
|
+
(codeHash: H256) => ChainSubmittableExtrinsic<
|
|
8366
|
+
Rv,
|
|
8367
|
+
{
|
|
8368
|
+
pallet: 'EmergencyParaXcm';
|
|
8369
|
+
palletCall: {
|
|
8370
|
+
name: 'FastAuthorizeUpgrade';
|
|
8371
|
+
params: { codeHash: H256 };
|
|
8372
|
+
};
|
|
8373
|
+
}
|
|
8374
|
+
>
|
|
8375
|
+
>;
|
|
8376
|
+
|
|
8377
|
+
/**
|
|
8378
|
+
* Generic pallet tx call
|
|
8379
|
+
**/
|
|
8380
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
8381
|
+
};
|
|
8153
8382
|
/**
|
|
8154
8383
|
* Pallet `Randomness`'s transaction calls
|
|
8155
8384
|
**/
|