@polkadot/api-augment 16.0.1 → 16.1.2
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/assetHubKusama/consts.d.ts +30 -0
- package/assetHubKusama/errors.d.ts +70 -0
- package/assetHubKusama/events.d.ts +83 -51
- package/assetHubKusama/query.d.ts +46 -8
- package/assetHubKusama/runtime.d.ts +18 -18
- package/assetHubKusama/tx.d.ts +240 -55
- package/cjs/assetHubKusama/consts.d.ts +30 -0
- package/cjs/assetHubKusama/errors.d.ts +70 -0
- package/cjs/assetHubKusama/events.d.ts +83 -51
- package/cjs/assetHubKusama/query.d.ts +46 -8
- package/cjs/assetHubKusama/runtime.d.ts +18 -18
- package/cjs/assetHubKusama/tx.d.ts +240 -55
- package/cjs/packageInfo.js +1 -1
- package/package.json +6 -6
- package/packageInfo.js +1 -1
package/assetHubKusama/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
6
|
+
import type { AssetHubKusamaRuntimeOriginCaller, AssetHubKusamaRuntimeProxyType, AssetHubKusamaRuntimeSessionKeys, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, PalletBalancesAdjustmentDirection, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletRemoteProxyRemoteProxyProof, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpRuntimeMultiSignature, SpWeightsWeightV2Weight, StagingXcmExecutorAssetTransferTransferType, StagingXcmV4Location, StagingXcmV5Location, XcmV3WeightLimit, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -3256,17 +3256,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3256
3256
|
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
3257
3257
|
**/
|
|
3258
3258
|
claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | {
|
|
3259
|
-
V2: any;
|
|
3260
|
-
} | {
|
|
3261
3259
|
V3: any;
|
|
3262
3260
|
} | {
|
|
3263
3261
|
V4: any;
|
|
3264
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3265
|
-
V2: any;
|
|
3266
3262
|
} | {
|
|
3263
|
+
V5: any;
|
|
3264
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3267
3265
|
V3: any;
|
|
3268
3266
|
} | {
|
|
3269
3267
|
V4: any;
|
|
3268
|
+
} | {
|
|
3269
|
+
V5: any;
|
|
3270
3270
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedAssets, XcmVersionedLocation]>;
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Execute an XCM message from a local, signed, origin.
|
|
@@ -3279,11 +3279,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3279
3279
|
* execution attempt will be made.
|
|
3280
3280
|
**/
|
|
3281
3281
|
execute: AugmentedSubmittable<(message: XcmVersionedXcm | {
|
|
3282
|
-
V2: any;
|
|
3283
|
-
} | {
|
|
3284
3282
|
V3: any;
|
|
3285
3283
|
} | {
|
|
3286
3284
|
V4: any;
|
|
3285
|
+
} | {
|
|
3286
|
+
V5: any;
|
|
3287
3287
|
} | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
|
|
3288
3288
|
refTime?: any;
|
|
3289
3289
|
proofSize?: any;
|
|
@@ -3303,11 +3303,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3303
3303
|
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
3304
3304
|
**/
|
|
3305
3305
|
forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | {
|
|
3306
|
-
V2: any;
|
|
3307
|
-
} | {
|
|
3308
3306
|
V3: any;
|
|
3309
3307
|
} | {
|
|
3310
3308
|
V4: any;
|
|
3309
|
+
} | {
|
|
3310
|
+
V5: any;
|
|
3311
3311
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
|
|
3312
3312
|
/**
|
|
3313
3313
|
* Set or unset the global suspension state of the XCM executor.
|
|
@@ -3325,11 +3325,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3325
3325
|
* notifications which we no longer desire.
|
|
3326
3326
|
**/
|
|
3327
3327
|
forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | {
|
|
3328
|
-
V2: any;
|
|
3329
|
-
} | {
|
|
3330
3328
|
V3: any;
|
|
3331
3329
|
} | {
|
|
3332
3330
|
V4: any;
|
|
3331
|
+
} | {
|
|
3332
|
+
V5: any;
|
|
3333
3333
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
|
|
3334
3334
|
/**
|
|
3335
3335
|
* Extoll that a particular destination can be communicated with through a particular
|
|
@@ -3339,10 +3339,10 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3339
3339
|
* - `location`: The destination that is being described.
|
|
3340
3340
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
3341
3341
|
**/
|
|
3342
|
-
forceXcmVersion: AugmentedSubmittable<(location:
|
|
3342
|
+
forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV5Location | {
|
|
3343
3343
|
parents?: any;
|
|
3344
3344
|
interior?: any;
|
|
3345
|
-
} | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3345
|
+
} | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV5Location, u32]>;
|
|
3346
3346
|
/**
|
|
3347
3347
|
* Transfer some assets from the local chain to the destination chain through their local,
|
|
3348
3348
|
* destination or remote reserve.
|
|
@@ -3376,23 +3376,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3376
3376
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3377
3377
|
**/
|
|
3378
3378
|
limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3379
|
-
V2: any;
|
|
3380
|
-
} | {
|
|
3381
3379
|
V3: any;
|
|
3382
3380
|
} | {
|
|
3383
3381
|
V4: any;
|
|
3384
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3385
|
-
V2: any;
|
|
3386
3382
|
} | {
|
|
3383
|
+
V5: any;
|
|
3384
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3387
3385
|
V3: any;
|
|
3388
3386
|
} | {
|
|
3389
3387
|
V4: any;
|
|
3390
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3391
|
-
V2: any;
|
|
3392
3388
|
} | {
|
|
3389
|
+
V5: any;
|
|
3390
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3393
3391
|
V3: any;
|
|
3394
3392
|
} | {
|
|
3395
3393
|
V4: any;
|
|
3394
|
+
} | {
|
|
3395
|
+
V5: any;
|
|
3396
3396
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
3397
3397
|
Unlimited: any;
|
|
3398
3398
|
} | {
|
|
@@ -3419,23 +3419,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3419
3419
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3420
3420
|
**/
|
|
3421
3421
|
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3422
|
-
V2: any;
|
|
3423
|
-
} | {
|
|
3424
3422
|
V3: any;
|
|
3425
3423
|
} | {
|
|
3426
3424
|
V4: any;
|
|
3427
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3428
|
-
V2: any;
|
|
3429
3425
|
} | {
|
|
3426
|
+
V5: any;
|
|
3427
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3430
3428
|
V3: any;
|
|
3431
3429
|
} | {
|
|
3432
3430
|
V4: any;
|
|
3433
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3434
|
-
V2: any;
|
|
3435
3431
|
} | {
|
|
3432
|
+
V5: any;
|
|
3433
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3436
3434
|
V3: any;
|
|
3437
3435
|
} | {
|
|
3438
3436
|
V4: any;
|
|
3437
|
+
} | {
|
|
3438
|
+
V5: any;
|
|
3439
3439
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
3440
3440
|
Unlimited: any;
|
|
3441
3441
|
} | {
|
|
@@ -3474,36 +3474,36 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3474
3474
|
* fees.
|
|
3475
3475
|
**/
|
|
3476
3476
|
reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3477
|
-
V2: any;
|
|
3478
|
-
} | {
|
|
3479
3477
|
V3: any;
|
|
3480
3478
|
} | {
|
|
3481
3479
|
V4: any;
|
|
3482
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3483
|
-
V2: any;
|
|
3484
3480
|
} | {
|
|
3481
|
+
V5: any;
|
|
3482
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3485
3483
|
V3: any;
|
|
3486
3484
|
} | {
|
|
3487
3485
|
V4: any;
|
|
3488
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3489
|
-
V2: any;
|
|
3490
3486
|
} | {
|
|
3487
|
+
V5: any;
|
|
3488
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3491
3489
|
V3: any;
|
|
3492
3490
|
} | {
|
|
3493
3491
|
V4: any;
|
|
3492
|
+
} | {
|
|
3493
|
+
V5: any;
|
|
3494
3494
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
|
|
3495
3495
|
send: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3496
|
-
V2: any;
|
|
3497
|
-
} | {
|
|
3498
3496
|
V3: any;
|
|
3499
3497
|
} | {
|
|
3500
3498
|
V4: any;
|
|
3501
|
-
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
3502
|
-
V2: any;
|
|
3503
3499
|
} | {
|
|
3500
|
+
V5: any;
|
|
3501
|
+
} | string | Uint8Array, message: XcmVersionedXcm | {
|
|
3504
3502
|
V3: any;
|
|
3505
3503
|
} | {
|
|
3506
3504
|
V4: any;
|
|
3505
|
+
} | {
|
|
3506
|
+
V5: any;
|
|
3507
3507
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedXcm]>;
|
|
3508
3508
|
/**
|
|
3509
3509
|
* Teleport some assets from the local chain to some destination chain.
|
|
@@ -3526,23 +3526,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3526
3526
|
* fees.
|
|
3527
3527
|
**/
|
|
3528
3528
|
teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3529
|
-
V2: any;
|
|
3530
|
-
} | {
|
|
3531
3529
|
V3: any;
|
|
3532
3530
|
} | {
|
|
3533
3531
|
V4: any;
|
|
3534
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3535
|
-
V2: any;
|
|
3536
3532
|
} | {
|
|
3533
|
+
V5: any;
|
|
3534
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3537
3535
|
V3: any;
|
|
3538
3536
|
} | {
|
|
3539
3537
|
V4: any;
|
|
3540
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3541
|
-
V2: any;
|
|
3542
3538
|
} | {
|
|
3539
|
+
V5: any;
|
|
3540
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3543
3541
|
V3: any;
|
|
3544
3542
|
} | {
|
|
3545
3543
|
V4: any;
|
|
3544
|
+
} | {
|
|
3545
|
+
V5: any;
|
|
3546
3546
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>;
|
|
3547
3547
|
/**
|
|
3548
3548
|
* Transfer some assets from the local chain to the destination chain through their local,
|
|
@@ -3580,23 +3580,23 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3580
3580
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3581
3581
|
**/
|
|
3582
3582
|
transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3583
|
-
V2: any;
|
|
3584
|
-
} | {
|
|
3585
3583
|
V3: any;
|
|
3586
3584
|
} | {
|
|
3587
3585
|
V4: any;
|
|
3588
|
-
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3589
|
-
V2: any;
|
|
3590
3586
|
} | {
|
|
3587
|
+
V5: any;
|
|
3588
|
+
} | string | Uint8Array, beneficiary: XcmVersionedLocation | {
|
|
3591
3589
|
V3: any;
|
|
3592
3590
|
} | {
|
|
3593
3591
|
V4: any;
|
|
3594
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3595
|
-
V2: any;
|
|
3596
3592
|
} | {
|
|
3593
|
+
V5: any;
|
|
3594
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3597
3595
|
V3: any;
|
|
3598
3596
|
} | {
|
|
3599
3597
|
V4: any;
|
|
3598
|
+
} | {
|
|
3599
|
+
V5: any;
|
|
3600
3600
|
} | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
3601
3601
|
Unlimited: any;
|
|
3602
3602
|
} | {
|
|
@@ -3653,17 +3653,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3653
3653
|
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
3654
3654
|
**/
|
|
3655
3655
|
transferAssetsUsingTypeAndThen: AugmentedSubmittable<(dest: XcmVersionedLocation | {
|
|
3656
|
-
V2: any;
|
|
3657
|
-
} | {
|
|
3658
3656
|
V3: any;
|
|
3659
3657
|
} | {
|
|
3660
3658
|
V4: any;
|
|
3661
|
-
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3662
|
-
V2: any;
|
|
3663
3659
|
} | {
|
|
3660
|
+
V5: any;
|
|
3661
|
+
} | string | Uint8Array, assets: XcmVersionedAssets | {
|
|
3664
3662
|
V3: any;
|
|
3665
3663
|
} | {
|
|
3666
3664
|
V4: any;
|
|
3665
|
+
} | {
|
|
3666
|
+
V5: any;
|
|
3667
3667
|
} | string | Uint8Array, assetsTransferType: StagingXcmExecutorAssetTransferTransferType | {
|
|
3668
3668
|
Teleport: any;
|
|
3669
3669
|
} | {
|
|
@@ -3676,6 +3676,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3676
3676
|
V3: any;
|
|
3677
3677
|
} | {
|
|
3678
3678
|
V4: any;
|
|
3679
|
+
} | {
|
|
3680
|
+
V5: any;
|
|
3679
3681
|
} | string | Uint8Array, feesTransferType: StagingXcmExecutorAssetTransferTransferType | {
|
|
3680
3682
|
Teleport: any;
|
|
3681
3683
|
} | {
|
|
@@ -3685,11 +3687,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3685
3687
|
} | {
|
|
3686
3688
|
RemoteReserve: any;
|
|
3687
3689
|
} | string | Uint8Array, customXcmOnDest: XcmVersionedXcm | {
|
|
3688
|
-
V2: any;
|
|
3689
|
-
} | {
|
|
3690
3690
|
V3: any;
|
|
3691
3691
|
} | {
|
|
3692
3692
|
V4: any;
|
|
3693
|
+
} | {
|
|
3694
|
+
V5: any;
|
|
3693
3695
|
} | string | Uint8Array, weightLimit: XcmV3WeightLimit | {
|
|
3694
3696
|
Unlimited: any;
|
|
3695
3697
|
} | {
|
|
@@ -4762,6 +4764,96 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4762
4764
|
**/
|
|
4763
4765
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4764
4766
|
};
|
|
4767
|
+
remoteProxyRelayChain: {
|
|
4768
|
+
/**
|
|
4769
|
+
* Register a given remote proxy proof in the current [`dispatch_context`].
|
|
4770
|
+
*
|
|
4771
|
+
* The registered remote proof can then be used later in the same context to execute a
|
|
4772
|
+
* remote proxy call. This is for example useful when having a multisig operation. The
|
|
4773
|
+
* multisig call can use [`Self::remote_proxy_with_registered_proof`] to get an approval by
|
|
4774
|
+
* the members of the multisig. The final execution of the multisig call should be at least
|
|
4775
|
+
* a batch of `register_remote_proxy_proof` and the multisig call that uses
|
|
4776
|
+
* `remote_proxy_with_registered_proof`. This way the final approver can use a recent proof
|
|
4777
|
+
* to prove the existence of the remote proxy. Otherwise it would require the multisig
|
|
4778
|
+
* members to approve the call in [`Config::MaxStorageRootsToKeep`] amount of time.
|
|
4779
|
+
*
|
|
4780
|
+
* It is supported to register multiple proofs, but the proofs need to be consumed in the
|
|
4781
|
+
* reverse order as they were registered. Basically this means last in, first out.
|
|
4782
|
+
*
|
|
4783
|
+
* The [`dispatch_context`] spans the entire lifetime of a transaction and every call in
|
|
4784
|
+
* the transaction gets access to the same context.
|
|
4785
|
+
*
|
|
4786
|
+
* # Example
|
|
4787
|
+
*
|
|
4788
|
+
* ```ignore
|
|
4789
|
+
* batch([
|
|
4790
|
+
* register_remote_proxy_proof,
|
|
4791
|
+
* as_multisig(remote_proxy_with_registered_proof(transfer))
|
|
4792
|
+
* ])
|
|
4793
|
+
* ```
|
|
4794
|
+
*
|
|
4795
|
+
* As `proofs` can not be verified indefinitely (the time the storage roots are stored is
|
|
4796
|
+
* limited) this function provides the possibility to provide a "fresh proof" at time of
|
|
4797
|
+
* dispatch. As in the example above, this could be useful for multisig operation that
|
|
4798
|
+
* depend on multiple members to approve a certain action, which can take multiple days.
|
|
4799
|
+
**/
|
|
4800
|
+
registerRemoteProxyProof: AugmentedSubmittable<(proof: PalletRemoteProxyRemoteProxyProof | {
|
|
4801
|
+
RelayChain: any;
|
|
4802
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletRemoteProxyRemoteProxyProof]>;
|
|
4803
|
+
/**
|
|
4804
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
4805
|
+
* chain.
|
|
4806
|
+
*
|
|
4807
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4808
|
+
*
|
|
4809
|
+
* Parameters:
|
|
4810
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
4811
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
4812
|
+
* - `call`: The call to be made by the `real` account.
|
|
4813
|
+
* - `proof`: The proof from the remote chain about the existence of the proxy.
|
|
4814
|
+
**/
|
|
4815
|
+
remoteProxy: AugmentedSubmittable<(real: MultiAddress | {
|
|
4816
|
+
Id: any;
|
|
4817
|
+
} | {
|
|
4818
|
+
Index: any;
|
|
4819
|
+
} | {
|
|
4820
|
+
Raw: any;
|
|
4821
|
+
} | {
|
|
4822
|
+
Address32: any;
|
|
4823
|
+
} | {
|
|
4824
|
+
Address20: any;
|
|
4825
|
+
} | string | Uint8Array, forceProxyType: Option<AssetHubKusamaRuntimeProxyType> | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array, proof: PalletRemoteProxyRemoteProxyProof | {
|
|
4826
|
+
RelayChain: any;
|
|
4827
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<AssetHubKusamaRuntimeProxyType>, Call, PalletRemoteProxyRemoteProxyProof]>;
|
|
4828
|
+
/**
|
|
4829
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
4830
|
+
* chain.
|
|
4831
|
+
*
|
|
4832
|
+
* The dispatch origin for this call must be _Signed_. The difference to
|
|
4833
|
+
* [`Self::remote_proxy`] is that the proof nees to registered before using
|
|
4834
|
+
* [`Self::register_remote_proxy_proof`] (see for more information).
|
|
4835
|
+
*
|
|
4836
|
+
* Parameters:
|
|
4837
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
4838
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
4839
|
+
* - `call`: The call to be made by the `real` account.
|
|
4840
|
+
**/
|
|
4841
|
+
remoteProxyWithRegisteredProof: AugmentedSubmittable<(real: MultiAddress | {
|
|
4842
|
+
Id: any;
|
|
4843
|
+
} | {
|
|
4844
|
+
Index: any;
|
|
4845
|
+
} | {
|
|
4846
|
+
Raw: any;
|
|
4847
|
+
} | {
|
|
4848
|
+
Address32: any;
|
|
4849
|
+
} | {
|
|
4850
|
+
Address20: any;
|
|
4851
|
+
} | string | Uint8Array, forceProxyType: Option<AssetHubKusamaRuntimeProxyType> | null | Uint8Array | AssetHubKusamaRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<AssetHubKusamaRuntimeProxyType>, Call]>;
|
|
4852
|
+
/**
|
|
4853
|
+
* Generic tx
|
|
4854
|
+
**/
|
|
4855
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4856
|
+
};
|
|
4765
4857
|
session: {
|
|
4766
4858
|
/**
|
|
4767
4859
|
* Removes any session key(s) of the function caller.
|
|
@@ -4797,6 +4889,101 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4797
4889
|
**/
|
|
4798
4890
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4799
4891
|
};
|
|
4892
|
+
stateTrieMigration: {
|
|
4893
|
+
/**
|
|
4894
|
+
* Continue the migration for the given `limits`.
|
|
4895
|
+
*
|
|
4896
|
+
* The dispatch origin of this call can be any signed account.
|
|
4897
|
+
*
|
|
4898
|
+
* This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
|
|
4899
|
+
* Upon successful execution, the transaction fee is returned.
|
|
4900
|
+
*
|
|
4901
|
+
* The (potentially over-estimated) of the byte length of all the data read must be
|
|
4902
|
+
* provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
|
|
4903
|
+
* that executing the current `MigrationTask` with the given `limits` will not exceed
|
|
4904
|
+
* `real_size_upper` bytes of read data.
|
|
4905
|
+
*
|
|
4906
|
+
* The `witness_task` is merely a helper to prevent the caller from being slashed or
|
|
4907
|
+
* generally trigger a migration that they do not intend. This parameter is just a message
|
|
4908
|
+
* from caller, saying that they believed `witness_task` was the last state of the
|
|
4909
|
+
* migration, and they only wish for their transaction to do anything, if this assumption
|
|
4910
|
+
* holds. In case `witness_task` does not match, the transaction fails.
|
|
4911
|
+
*
|
|
4912
|
+
* Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
|
|
4913
|
+
* recommended way of doing this is to pass a `limit` that only bounds `count`, as the
|
|
4914
|
+
* `size` limit can always be overwritten.
|
|
4915
|
+
**/
|
|
4916
|
+
continueMigrate: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
4917
|
+
size_?: any;
|
|
4918
|
+
item?: any;
|
|
4919
|
+
} | string | Uint8Array, realSizeUpper: u32 | AnyNumber | Uint8Array, witnessTask: PalletStateTrieMigrationMigrationTask | {
|
|
4920
|
+
progressTop?: any;
|
|
4921
|
+
progressChild?: any;
|
|
4922
|
+
size_?: any;
|
|
4923
|
+
topItems?: any;
|
|
4924
|
+
childItems?: any;
|
|
4925
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits, u32, PalletStateTrieMigrationMigrationTask]>;
|
|
4926
|
+
/**
|
|
4927
|
+
* Control the automatic migration.
|
|
4928
|
+
*
|
|
4929
|
+
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
|
4930
|
+
**/
|
|
4931
|
+
controlAutoMigration: AugmentedSubmittable<(maybeConfig: Option<PalletStateTrieMigrationMigrationLimits> | null | Uint8Array | PalletStateTrieMigrationMigrationLimits | {
|
|
4932
|
+
size_?: any;
|
|
4933
|
+
item?: any;
|
|
4934
|
+
} | string) => SubmittableExtrinsic<ApiType>, [Option<PalletStateTrieMigrationMigrationLimits>]>;
|
|
4935
|
+
/**
|
|
4936
|
+
* Forcefully set the progress the running migration.
|
|
4937
|
+
*
|
|
4938
|
+
* This is only useful in one case: the next key to migrate is too big to be migrated with
|
|
4939
|
+
* a signed account, in a parachain context, and we simply want to skip it. A reasonable
|
|
4940
|
+
* example of this would be `:code:`, which is both very expensive to migrate, and commonly
|
|
4941
|
+
* used, so probably it is already migrated.
|
|
4942
|
+
*
|
|
4943
|
+
* In case you mess things up, you can also, in principle, use this to reset the migration
|
|
4944
|
+
* process.
|
|
4945
|
+
**/
|
|
4946
|
+
forceSetProgress: AugmentedSubmittable<(progressTop: PalletStateTrieMigrationProgress | {
|
|
4947
|
+
ToStart: any;
|
|
4948
|
+
} | {
|
|
4949
|
+
LastKey: any;
|
|
4950
|
+
} | {
|
|
4951
|
+
Complete: any;
|
|
4952
|
+
} | string | Uint8Array, progressChild: PalletStateTrieMigrationProgress | {
|
|
4953
|
+
ToStart: any;
|
|
4954
|
+
} | {
|
|
4955
|
+
LastKey: any;
|
|
4956
|
+
} | {
|
|
4957
|
+
Complete: any;
|
|
4958
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationProgress, PalletStateTrieMigrationProgress]>;
|
|
4959
|
+
/**
|
|
4960
|
+
* Migrate the list of child keys by iterating each of them one by one.
|
|
4961
|
+
*
|
|
4962
|
+
* All of the given child keys must be present under one `child_root`.
|
|
4963
|
+
*
|
|
4964
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
4965
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
4966
|
+
**/
|
|
4967
|
+
migrateCustomChild: AugmentedSubmittable<(root: Bytes | string | Uint8Array, childKeys: Vec<Bytes> | (Bytes | string | Uint8Array)[], totalSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Vec<Bytes>, u32]>;
|
|
4968
|
+
/**
|
|
4969
|
+
* Migrate the list of top keys by iterating each of them one by one.
|
|
4970
|
+
*
|
|
4971
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
4972
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
4973
|
+
**/
|
|
4974
|
+
migrateCustomTop: AugmentedSubmittable<(keys: Vec<Bytes> | (Bytes | string | Uint8Array)[], witnessSize: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<Bytes>, u32]>;
|
|
4975
|
+
/**
|
|
4976
|
+
* Set the maximum limit of the signed migration.
|
|
4977
|
+
**/
|
|
4978
|
+
setSignedMaxLimits: AugmentedSubmittable<(limits: PalletStateTrieMigrationMigrationLimits | {
|
|
4979
|
+
size_?: any;
|
|
4980
|
+
item?: any;
|
|
4981
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStateTrieMigrationMigrationLimits]>;
|
|
4982
|
+
/**
|
|
4983
|
+
* Generic tx
|
|
4984
|
+
**/
|
|
4985
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
4986
|
+
};
|
|
4800
4987
|
system: {
|
|
4801
4988
|
/**
|
|
4802
4989
|
* Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
|
|
@@ -5568,8 +5755,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5568
5755
|
**/
|
|
5569
5756
|
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubKusamaRuntimeOriginCaller | {
|
|
5570
5757
|
system: any;
|
|
5571
|
-
} | {
|
|
5572
|
-
Void: any;
|
|
5573
5758
|
} | {
|
|
5574
5759
|
PolkadotXcm: any;
|
|
5575
5760
|
} | {
|
|
@@ -407,6 +407,36 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
407
407
|
**/
|
|
408
408
|
[key: string]: Codec;
|
|
409
409
|
};
|
|
410
|
+
stateTrieMigration: {
|
|
411
|
+
/**
|
|
412
|
+
* Maximal number of bytes that a key can have.
|
|
413
|
+
*
|
|
414
|
+
* FRAME itself does not limit the key length.
|
|
415
|
+
* The concrete value must therefore depend on your storage usage.
|
|
416
|
+
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
417
|
+
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
418
|
+
*
|
|
419
|
+
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
420
|
+
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
421
|
+
*
|
|
422
|
+
* The migration will halt with a `Halted` event if this value is too small.
|
|
423
|
+
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
424
|
+
* value. The default is 512 byte.
|
|
425
|
+
*
|
|
426
|
+
* Some key lengths for reference:
|
|
427
|
+
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
428
|
+
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
429
|
+
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
430
|
+
*
|
|
431
|
+
* For more info see
|
|
432
|
+
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
433
|
+
**/
|
|
434
|
+
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
435
|
+
/**
|
|
436
|
+
* Generic const
|
|
437
|
+
**/
|
|
438
|
+
[key: string]: Codec;
|
|
439
|
+
};
|
|
410
440
|
system: {
|
|
411
441
|
/**
|
|
412
442
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
@@ -1011,6 +1011,40 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1011
1011
|
**/
|
|
1012
1012
|
[key: string]: AugmentedError<ApiType>;
|
|
1013
1013
|
};
|
|
1014
|
+
remoteProxyRelayChain: {
|
|
1015
|
+
/**
|
|
1016
|
+
* The local account id could not converted to the remote account id.
|
|
1017
|
+
**/
|
|
1018
|
+
CouldNotConvertLocalToRemoteAccountId: AugmentedError<ApiType>;
|
|
1019
|
+
/**
|
|
1020
|
+
* Could not find any matching proxy definition in the proof.
|
|
1021
|
+
**/
|
|
1022
|
+
DidNotFindMatchingProxyDefinition: AugmentedError<ApiType>;
|
|
1023
|
+
/**
|
|
1024
|
+
* The proxy definition could not be found in the proof.
|
|
1025
|
+
**/
|
|
1026
|
+
InvalidProof: AugmentedError<ApiType>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Failed to decode the remote proxy definition from the proof.
|
|
1029
|
+
**/
|
|
1030
|
+
ProxyDefinitionDecodingFailed: AugmentedError<ApiType>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Proxy proof not registered.
|
|
1033
|
+
**/
|
|
1034
|
+
ProxyProofNotRegistered: AugmentedError<ApiType>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Announcement, if made at all, was made too recently.
|
|
1037
|
+
**/
|
|
1038
|
+
Unannounced: AugmentedError<ApiType>;
|
|
1039
|
+
/**
|
|
1040
|
+
* The anchor block of the remote proof is unknown.
|
|
1041
|
+
**/
|
|
1042
|
+
UnknownProofAnchorBlock: AugmentedError<ApiType>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Generic error
|
|
1045
|
+
**/
|
|
1046
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1047
|
+
};
|
|
1014
1048
|
session: {
|
|
1015
1049
|
/**
|
|
1016
1050
|
* Registered duplicate key.
|
|
@@ -1037,6 +1071,42 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1037
1071
|
**/
|
|
1038
1072
|
[key: string]: AugmentedError<ApiType>;
|
|
1039
1073
|
};
|
|
1074
|
+
stateTrieMigration: {
|
|
1075
|
+
/**
|
|
1076
|
+
* Bad child root provided.
|
|
1077
|
+
**/
|
|
1078
|
+
BadChildRoot: AugmentedError<ApiType>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Bad witness data provided.
|
|
1081
|
+
**/
|
|
1082
|
+
BadWitness: AugmentedError<ApiType>;
|
|
1083
|
+
/**
|
|
1084
|
+
* A key was longer than the configured maximum.
|
|
1085
|
+
*
|
|
1086
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1087
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1088
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1089
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1090
|
+
* stored [`crate::Progress::LastKey`].
|
|
1091
|
+
**/
|
|
1092
|
+
KeyTooLong: AugmentedError<ApiType>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Max signed limits not respected.
|
|
1095
|
+
**/
|
|
1096
|
+
MaxSignedLimits: AugmentedError<ApiType>;
|
|
1097
|
+
/**
|
|
1098
|
+
* submitter does not have enough funds.
|
|
1099
|
+
**/
|
|
1100
|
+
NotEnoughFunds: AugmentedError<ApiType>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1103
|
+
**/
|
|
1104
|
+
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Generic error
|
|
1107
|
+
**/
|
|
1108
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1109
|
+
};
|
|
1040
1110
|
system: {
|
|
1041
1111
|
/**
|
|
1042
1112
|
* The origin filter prevent the call to be dispatched.
|