@dedot/chaintypes 0.53.0 → 0.54.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/errors.d.ts +45 -10
- package/moonbeam/index.d.ts +1 -1
- package/moonbeam/query.d.ts +16 -6
- package/moonbeam/tx.d.ts +79 -13
- package/moonbeam/types.d.ts +59 -13
- package/package.json +2 -2
package/moonbeam/errors.d.ts
CHANGED
|
@@ -712,16 +712,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
712
712
|
**/
|
|
713
713
|
LimitCannotBeZero: GenericPalletError<Rv>;
|
|
714
714
|
|
|
715
|
-
/**
|
|
716
|
-
* There must be at least one address
|
|
717
|
-
**/
|
|
718
|
-
AddressesLengthCannotBeZero: GenericPalletError<Rv>;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* The contract is not corrupted (Still exist or properly suicided)
|
|
722
|
-
**/
|
|
723
|
-
ContractNotCorrupted: GenericPalletError<Rv>;
|
|
724
|
-
|
|
725
715
|
/**
|
|
726
716
|
* The contract already have metadata
|
|
727
717
|
**/
|
|
@@ -737,6 +727,51 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
737
727
|
**/
|
|
738
728
|
KeyTooLong: GenericPalletError<Rv>;
|
|
739
729
|
|
|
730
|
+
/**
|
|
731
|
+
* The symbol length exceeds the maximum allowed
|
|
732
|
+
**/
|
|
733
|
+
SymbolTooLong: GenericPalletError<Rv>;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* The name length exceeds the maximum allowed
|
|
737
|
+
**/
|
|
738
|
+
NameTooLong: GenericPalletError<Rv>;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* The asset type was not found
|
|
742
|
+
**/
|
|
743
|
+
AssetTypeNotFound: GenericPalletError<Rv>;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Asset not found
|
|
747
|
+
**/
|
|
748
|
+
AssetNotFound: GenericPalletError<Rv>;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* The location of the asset was not found
|
|
752
|
+
**/
|
|
753
|
+
LocationNotFound: GenericPalletError<Rv>;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Migration is not finished yet
|
|
757
|
+
**/
|
|
758
|
+
MigrationNotFinished: GenericPalletError<Rv>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* No migration in progress
|
|
762
|
+
**/
|
|
763
|
+
NoMigrationInProgress: GenericPalletError<Rv>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Fail to mint the foreign asset
|
|
767
|
+
**/
|
|
768
|
+
MintFailed: GenericPalletError<Rv>;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Fail to add an approval
|
|
772
|
+
**/
|
|
773
|
+
ApprovalFailed: GenericPalletError<Rv>;
|
|
774
|
+
|
|
740
775
|
/**
|
|
741
776
|
* Generic pallet error
|
|
742
777
|
**/
|
package/moonbeam/index.d.ts
CHANGED
package/moonbeam/query.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ import type {
|
|
|
64
64
|
PalletIdentityAuthorityProperties,
|
|
65
65
|
PalletMultisigMultisig,
|
|
66
66
|
PalletMoonbeamLazyMigrationsStateMigrationStatus,
|
|
67
|
+
PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus,
|
|
67
68
|
MoonbeamRuntimeRuntimeParamsRuntimeParametersValue,
|
|
68
69
|
MoonbeamRuntimeRuntimeParamsRuntimeParametersKey,
|
|
69
70
|
PalletEvmCodeMetadata,
|
|
@@ -1241,21 +1242,30 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1241
1242
|
**/
|
|
1242
1243
|
moonbeamLazyMigrations: {
|
|
1243
1244
|
/**
|
|
1244
|
-
* The total number of suicided contracts that were removed
|
|
1245
1245
|
*
|
|
1246
|
-
* @param {Callback<
|
|
1246
|
+
* @param {Callback<[PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]> =} callback
|
|
1247
1247
|
**/
|
|
1248
|
-
|
|
1248
|
+
stateMigrationStatusValue: GenericStorageQuery<
|
|
1249
|
+
Rv,
|
|
1250
|
+
() => [PalletMoonbeamLazyMigrationsStateMigrationStatus, bigint]
|
|
1251
|
+
>;
|
|
1249
1252
|
|
|
1250
1253
|
/**
|
|
1251
1254
|
*
|
|
1252
|
-
* @param {Callback<
|
|
1255
|
+
* @param {Callback<PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus> =} callback
|
|
1253
1256
|
**/
|
|
1254
|
-
|
|
1257
|
+
foreignAssetMigrationStatusValue: GenericStorageQuery<
|
|
1255
1258
|
Rv,
|
|
1256
|
-
() =>
|
|
1259
|
+
() => PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus
|
|
1257
1260
|
>;
|
|
1258
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @param {bigint} arg
|
|
1265
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1266
|
+
**/
|
|
1267
|
+
approvedForeignAssets: GenericStorageQuery<Rv, (arg: bigint) => [] | undefined, bigint>;
|
|
1268
|
+
|
|
1259
1269
|
/**
|
|
1260
1270
|
* Generic pallet storage query
|
|
1261
1271
|
**/
|
package/moonbeam/tx.d.ts
CHANGED
|
@@ -3272,21 +3272,71 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3272
3272
|
moonbeamLazyMigrations: {
|
|
3273
3273
|
/**
|
|
3274
3274
|
*
|
|
3275
|
-
* @param {
|
|
3275
|
+
* @param {H160} address
|
|
3276
|
+
**/
|
|
3277
|
+
createContractMetadata: GenericTxCall<
|
|
3278
|
+
Rv,
|
|
3279
|
+
(address: H160) => ChainSubmittableExtrinsic<
|
|
3280
|
+
Rv,
|
|
3281
|
+
{
|
|
3282
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3283
|
+
palletCall: {
|
|
3284
|
+
name: 'CreateContractMetadata';
|
|
3285
|
+
params: { address: H160 };
|
|
3286
|
+
};
|
|
3287
|
+
}
|
|
3288
|
+
>
|
|
3289
|
+
>;
|
|
3290
|
+
|
|
3291
|
+
/**
|
|
3292
|
+
*
|
|
3293
|
+
* @param {Array<bigint>} assets
|
|
3294
|
+
**/
|
|
3295
|
+
approveAssetsToMigrate: GenericTxCall<
|
|
3296
|
+
Rv,
|
|
3297
|
+
(assets: Array<bigint>) => ChainSubmittableExtrinsic<
|
|
3298
|
+
Rv,
|
|
3299
|
+
{
|
|
3300
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3301
|
+
palletCall: {
|
|
3302
|
+
name: 'ApproveAssetsToMigrate';
|
|
3303
|
+
params: { assets: Array<bigint> };
|
|
3304
|
+
};
|
|
3305
|
+
}
|
|
3306
|
+
>
|
|
3307
|
+
>;
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
*
|
|
3311
|
+
* @param {bigint} assetId
|
|
3312
|
+
**/
|
|
3313
|
+
startForeignAssetsMigration: GenericTxCall<
|
|
3314
|
+
Rv,
|
|
3315
|
+
(assetId: bigint) => ChainSubmittableExtrinsic<
|
|
3316
|
+
Rv,
|
|
3317
|
+
{
|
|
3318
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3319
|
+
palletCall: {
|
|
3320
|
+
name: 'StartForeignAssetsMigration';
|
|
3321
|
+
params: { assetId: bigint };
|
|
3322
|
+
};
|
|
3323
|
+
}
|
|
3324
|
+
>
|
|
3325
|
+
>;
|
|
3326
|
+
|
|
3327
|
+
/**
|
|
3328
|
+
*
|
|
3276
3329
|
* @param {number} limit
|
|
3277
3330
|
**/
|
|
3278
|
-
|
|
3331
|
+
migrateForeignAssetBalances: GenericTxCall<
|
|
3279
3332
|
Rv,
|
|
3280
|
-
(
|
|
3281
|
-
addresses: Array<H160>,
|
|
3282
|
-
limit: number,
|
|
3283
|
-
) => ChainSubmittableExtrinsic<
|
|
3333
|
+
(limit: number) => ChainSubmittableExtrinsic<
|
|
3284
3334
|
Rv,
|
|
3285
3335
|
{
|
|
3286
3336
|
pallet: 'MoonbeamLazyMigrations';
|
|
3287
3337
|
palletCall: {
|
|
3288
|
-
name: '
|
|
3289
|
-
params: {
|
|
3338
|
+
name: 'MigrateForeignAssetBalances';
|
|
3339
|
+
params: { limit: number };
|
|
3290
3340
|
};
|
|
3291
3341
|
}
|
|
3292
3342
|
>
|
|
@@ -3294,17 +3344,33 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3294
3344
|
|
|
3295
3345
|
/**
|
|
3296
3346
|
*
|
|
3297
|
-
* @param {
|
|
3347
|
+
* @param {number} limit
|
|
3298
3348
|
**/
|
|
3299
|
-
|
|
3349
|
+
migrateForeignAssetApprovals: GenericTxCall<
|
|
3300
3350
|
Rv,
|
|
3301
|
-
(
|
|
3351
|
+
(limit: number) => ChainSubmittableExtrinsic<
|
|
3302
3352
|
Rv,
|
|
3303
3353
|
{
|
|
3304
3354
|
pallet: 'MoonbeamLazyMigrations';
|
|
3305
3355
|
palletCall: {
|
|
3306
|
-
name: '
|
|
3307
|
-
params: {
|
|
3356
|
+
name: 'MigrateForeignAssetApprovals';
|
|
3357
|
+
params: { limit: number };
|
|
3358
|
+
};
|
|
3359
|
+
}
|
|
3360
|
+
>
|
|
3361
|
+
>;
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
*
|
|
3365
|
+
**/
|
|
3366
|
+
finishForeignAssetsMigration: GenericTxCall<
|
|
3367
|
+
Rv,
|
|
3368
|
+
() => ChainSubmittableExtrinsic<
|
|
3369
|
+
Rv,
|
|
3370
|
+
{
|
|
3371
|
+
pallet: 'MoonbeamLazyMigrations';
|
|
3372
|
+
palletCall: {
|
|
3373
|
+
name: 'FinishForeignAssetsMigration';
|
|
3308
3374
|
};
|
|
3309
3375
|
}
|
|
3310
3376
|
>
|
package/moonbeam/types.d.ts
CHANGED
|
@@ -3890,12 +3890,20 @@ export type PalletMultisigCallLike =
|
|
|
3890
3890
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3891
3891
|
**/
|
|
3892
3892
|
export type PalletMoonbeamLazyMigrationsCall =
|
|
3893
|
-
| { name: '
|
|
3894
|
-
| { name: '
|
|
3893
|
+
| { name: 'CreateContractMetadata'; params: { address: H160 } }
|
|
3894
|
+
| { name: 'ApproveAssetsToMigrate'; params: { assets: Array<bigint> } }
|
|
3895
|
+
| { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
|
|
3896
|
+
| { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
|
|
3897
|
+
| { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
|
|
3898
|
+
| { name: 'FinishForeignAssetsMigration' };
|
|
3895
3899
|
|
|
3896
3900
|
export type PalletMoonbeamLazyMigrationsCallLike =
|
|
3897
|
-
| { name: '
|
|
3898
|
-
| { name: '
|
|
3901
|
+
| { name: 'CreateContractMetadata'; params: { address: H160 } }
|
|
3902
|
+
| { name: 'ApproveAssetsToMigrate'; params: { assets: Array<bigint> } }
|
|
3903
|
+
| { name: 'StartForeignAssetsMigration'; params: { assetId: bigint } }
|
|
3904
|
+
| { name: 'MigrateForeignAssetBalances'; params: { limit: number } }
|
|
3905
|
+
| { name: 'MigrateForeignAssetApprovals'; params: { limit: number } }
|
|
3906
|
+
| { name: 'FinishForeignAssetsMigration' };
|
|
3899
3907
|
|
|
3900
3908
|
/**
|
|
3901
3909
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -10056,6 +10064,16 @@ export type PalletMoonbeamLazyMigrationsStateMigrationStatus =
|
|
|
10056
10064
|
| { type: 'Error'; value: Bytes }
|
|
10057
10065
|
| { type: 'Complete' };
|
|
10058
10066
|
|
|
10067
|
+
export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationStatus =
|
|
10068
|
+
| { type: 'Idle' }
|
|
10069
|
+
| { type: 'Migrating'; value: PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo };
|
|
10070
|
+
|
|
10071
|
+
export type PalletMoonbeamLazyMigrationsForeignAssetForeignAssetMigrationInfo = {
|
|
10072
|
+
assetId: bigint;
|
|
10073
|
+
remainingBalances: number;
|
|
10074
|
+
remainingApprovals: number;
|
|
10075
|
+
};
|
|
10076
|
+
|
|
10059
10077
|
/**
|
|
10060
10078
|
* The `Error` enum of this pallet.
|
|
10061
10079
|
**/
|
|
@@ -10064,14 +10082,6 @@ export type PalletMoonbeamLazyMigrationsError =
|
|
|
10064
10082
|
* The limit cannot be zero
|
|
10065
10083
|
**/
|
|
10066
10084
|
| 'LimitCannotBeZero'
|
|
10067
|
-
/**
|
|
10068
|
-
* There must be at least one address
|
|
10069
|
-
**/
|
|
10070
|
-
| 'AddressesLengthCannotBeZero'
|
|
10071
|
-
/**
|
|
10072
|
-
* The contract is not corrupted (Still exist or properly suicided)
|
|
10073
|
-
**/
|
|
10074
|
-
| 'ContractNotCorrupted'
|
|
10075
10085
|
/**
|
|
10076
10086
|
* The contract already have metadata
|
|
10077
10087
|
**/
|
|
@@ -10083,7 +10093,43 @@ export type PalletMoonbeamLazyMigrationsError =
|
|
|
10083
10093
|
/**
|
|
10084
10094
|
* The key lengths exceeds the maximum allowed
|
|
10085
10095
|
**/
|
|
10086
|
-
| 'KeyTooLong'
|
|
10096
|
+
| 'KeyTooLong'
|
|
10097
|
+
/**
|
|
10098
|
+
* The symbol length exceeds the maximum allowed
|
|
10099
|
+
**/
|
|
10100
|
+
| 'SymbolTooLong'
|
|
10101
|
+
/**
|
|
10102
|
+
* The name length exceeds the maximum allowed
|
|
10103
|
+
**/
|
|
10104
|
+
| 'NameTooLong'
|
|
10105
|
+
/**
|
|
10106
|
+
* The asset type was not found
|
|
10107
|
+
**/
|
|
10108
|
+
| 'AssetTypeNotFound'
|
|
10109
|
+
/**
|
|
10110
|
+
* Asset not found
|
|
10111
|
+
**/
|
|
10112
|
+
| 'AssetNotFound'
|
|
10113
|
+
/**
|
|
10114
|
+
* The location of the asset was not found
|
|
10115
|
+
**/
|
|
10116
|
+
| 'LocationNotFound'
|
|
10117
|
+
/**
|
|
10118
|
+
* Migration is not finished yet
|
|
10119
|
+
**/
|
|
10120
|
+
| 'MigrationNotFinished'
|
|
10121
|
+
/**
|
|
10122
|
+
* No migration in progress
|
|
10123
|
+
**/
|
|
10124
|
+
| 'NoMigrationInProgress'
|
|
10125
|
+
/**
|
|
10126
|
+
* Fail to mint the foreign asset
|
|
10127
|
+
**/
|
|
10128
|
+
| 'MintFailed'
|
|
10129
|
+
/**
|
|
10130
|
+
* Fail to add an approval
|
|
10131
|
+
**/
|
|
10132
|
+
| 'ApprovalFailed';
|
|
10087
10133
|
|
|
10088
10134
|
export type PalletEvmCodeMetadata = { size: bigint; hash: H256 };
|
|
10089
10135
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "72af3941b8408447e54061262dcef9a49467892e",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|