@dedot/chaintypes 0.40.0 → 0.41.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/package.json +2 -2
- package/paseo/json-rpc.d.ts +7 -0
- package/westend/consts.d.ts +42 -2
- package/westend/errors.d.ts +38 -28
- package/westend/events.d.ts +208 -42
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +92 -42
- package/westend/runtime.d.ts +64 -6
- package/westend/tx.d.ts +178 -52
- package/westend/types.d.ts +642 -333
- package/westend-asset-hub/errors.d.ts +0 -5
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/runtime.d.ts +4 -5
- package/westend-asset-hub/types.d.ts +1 -5
package/westend/tx.d.ts
CHANGED
|
@@ -85,8 +85,10 @@ import type {
|
|
|
85
85
|
PolkadotRuntimeCommonAssignedSlotsSlotLeasePeriodStart,
|
|
86
86
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
87
87
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
88
|
+
PalletMigrationsMigrationCursor,
|
|
89
|
+
PalletMigrationsHistoricCleanupSelector,
|
|
88
90
|
XcmVersionedAssets,
|
|
89
|
-
|
|
91
|
+
StagingXcmV5Location,
|
|
90
92
|
XcmV3WeightLimit,
|
|
91
93
|
StagingXcmExecutorAssetTransferTransferType,
|
|
92
94
|
XcmVersionedAssetId,
|
|
@@ -2692,8 +2694,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2692
2694
|
/**
|
|
2693
2695
|
* Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
|
|
2694
2696
|
*
|
|
2695
|
-
* The authority can grant up to `allocation` usernames. To top up
|
|
2696
|
-
*
|
|
2697
|
+
* The authority can grant up to `allocation` usernames. To top up the allocation or
|
|
2698
|
+
* change the account used to grant usernames, this call can be used with the updated
|
|
2699
|
+
* parameters to overwrite the existing configuration.
|
|
2697
2700
|
*
|
|
2698
2701
|
* @param {MultiAddressLike} authority
|
|
2699
2702
|
* @param {BytesLike} suffix
|
|
@@ -2720,17 +2723,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2720
2723
|
/**
|
|
2721
2724
|
* Remove `authority` from the username authorities.
|
|
2722
2725
|
*
|
|
2726
|
+
* @param {BytesLike} suffix
|
|
2723
2727
|
* @param {MultiAddressLike} authority
|
|
2724
2728
|
**/
|
|
2725
2729
|
removeUsernameAuthority: GenericTxCall<
|
|
2726
2730
|
Rv,
|
|
2727
|
-
(
|
|
2731
|
+
(
|
|
2732
|
+
suffix: BytesLike,
|
|
2733
|
+
authority: MultiAddressLike,
|
|
2734
|
+
) => ChainSubmittableExtrinsic<
|
|
2728
2735
|
Rv,
|
|
2729
2736
|
{
|
|
2730
2737
|
pallet: 'Identity';
|
|
2731
2738
|
palletCall: {
|
|
2732
2739
|
name: 'RemoveUsernameAuthority';
|
|
2733
|
-
params: { authority: MultiAddressLike };
|
|
2740
|
+
params: { suffix: BytesLike; authority: MultiAddressLike };
|
|
2734
2741
|
};
|
|
2735
2742
|
}
|
|
2736
2743
|
>
|
|
@@ -2739,7 +2746,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2739
2746
|
/**
|
|
2740
2747
|
* Set the username for `who`. Must be called by a username authority.
|
|
2741
2748
|
*
|
|
2742
|
-
*
|
|
2749
|
+
* If `use_allocation` is set, the authority must have a username allocation available to
|
|
2750
|
+
* spend. Otherwise, the authority will need to put up a deposit for registering the
|
|
2751
|
+
* username.
|
|
2752
|
+
*
|
|
2753
|
+
* Users can either pre-sign their usernames or
|
|
2743
2754
|
* accept them later.
|
|
2744
2755
|
*
|
|
2745
2756
|
* Usernames must:
|
|
@@ -2750,6 +2761,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2750
2761
|
* @param {MultiAddressLike} who
|
|
2751
2762
|
* @param {BytesLike} username
|
|
2752
2763
|
* @param {SpRuntimeMultiSignature | undefined} signature
|
|
2764
|
+
* @param {boolean} useAllocation
|
|
2753
2765
|
**/
|
|
2754
2766
|
setUsernameFor: GenericTxCall<
|
|
2755
2767
|
Rv,
|
|
@@ -2757,13 +2769,19 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2757
2769
|
who: MultiAddressLike,
|
|
2758
2770
|
username: BytesLike,
|
|
2759
2771
|
signature: SpRuntimeMultiSignature | undefined,
|
|
2772
|
+
useAllocation: boolean,
|
|
2760
2773
|
) => ChainSubmittableExtrinsic<
|
|
2761
2774
|
Rv,
|
|
2762
2775
|
{
|
|
2763
2776
|
pallet: 'Identity';
|
|
2764
2777
|
palletCall: {
|
|
2765
2778
|
name: 'SetUsernameFor';
|
|
2766
|
-
params: {
|
|
2779
|
+
params: {
|
|
2780
|
+
who: MultiAddressLike;
|
|
2781
|
+
username: BytesLike;
|
|
2782
|
+
signature: SpRuntimeMultiSignature | undefined;
|
|
2783
|
+
useAllocation: boolean;
|
|
2784
|
+
};
|
|
2767
2785
|
};
|
|
2768
2786
|
}
|
|
2769
2787
|
>
|
|
@@ -2830,19 +2848,60 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2830
2848
|
>;
|
|
2831
2849
|
|
|
2832
2850
|
/**
|
|
2833
|
-
*
|
|
2834
|
-
*
|
|
2851
|
+
* Start the process of removing a username by placing it in the unbinding usernames map.
|
|
2852
|
+
* Once the grace period has passed, the username can be deleted by calling
|
|
2853
|
+
* [remove_username](crate::Call::remove_username).
|
|
2835
2854
|
*
|
|
2836
2855
|
* @param {BytesLike} username
|
|
2837
2856
|
**/
|
|
2838
|
-
|
|
2857
|
+
unbindUsername: GenericTxCall<
|
|
2839
2858
|
Rv,
|
|
2840
2859
|
(username: BytesLike) => ChainSubmittableExtrinsic<
|
|
2841
2860
|
Rv,
|
|
2842
2861
|
{
|
|
2843
2862
|
pallet: 'Identity';
|
|
2844
2863
|
palletCall: {
|
|
2845
|
-
name: '
|
|
2864
|
+
name: 'UnbindUsername';
|
|
2865
|
+
params: { username: BytesLike };
|
|
2866
|
+
};
|
|
2867
|
+
}
|
|
2868
|
+
>
|
|
2869
|
+
>;
|
|
2870
|
+
|
|
2871
|
+
/**
|
|
2872
|
+
* Permanently delete a username which has been unbinding for longer than the grace period.
|
|
2873
|
+
* Caller is refunded the fee if the username expired and the removal was successful.
|
|
2874
|
+
*
|
|
2875
|
+
* @param {BytesLike} username
|
|
2876
|
+
**/
|
|
2877
|
+
removeUsername: GenericTxCall<
|
|
2878
|
+
Rv,
|
|
2879
|
+
(username: BytesLike) => ChainSubmittableExtrinsic<
|
|
2880
|
+
Rv,
|
|
2881
|
+
{
|
|
2882
|
+
pallet: 'Identity';
|
|
2883
|
+
palletCall: {
|
|
2884
|
+
name: 'RemoveUsername';
|
|
2885
|
+
params: { username: BytesLike };
|
|
2886
|
+
};
|
|
2887
|
+
}
|
|
2888
|
+
>
|
|
2889
|
+
>;
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
|
|
2893
|
+
* and slashes any deposit associated with it.
|
|
2894
|
+
*
|
|
2895
|
+
* @param {BytesLike} username
|
|
2896
|
+
**/
|
|
2897
|
+
killUsername: GenericTxCall<
|
|
2898
|
+
Rv,
|
|
2899
|
+
(username: BytesLike) => ChainSubmittableExtrinsic<
|
|
2900
|
+
Rv,
|
|
2901
|
+
{
|
|
2902
|
+
pallet: 'Identity';
|
|
2903
|
+
palletCall: {
|
|
2904
|
+
name: 'KillUsername';
|
|
2846
2905
|
params: { username: BytesLike };
|
|
2847
2906
|
};
|
|
2848
2907
|
}
|
|
@@ -6631,25 +6690,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6631
6690
|
>
|
|
6632
6691
|
>;
|
|
6633
6692
|
|
|
6634
|
-
/**
|
|
6635
|
-
* Set the max number of times a claim may timeout on a core before it is abandoned
|
|
6636
|
-
*
|
|
6637
|
-
* @param {number} new_
|
|
6638
|
-
**/
|
|
6639
|
-
setMaxAvailabilityTimeouts: GenericTxCall<
|
|
6640
|
-
Rv,
|
|
6641
|
-
(new_: number) => ChainSubmittableExtrinsic<
|
|
6642
|
-
Rv,
|
|
6643
|
-
{
|
|
6644
|
-
pallet: 'Configuration';
|
|
6645
|
-
palletCall: {
|
|
6646
|
-
name: 'SetMaxAvailabilityTimeouts';
|
|
6647
|
-
params: { new: number };
|
|
6648
|
-
};
|
|
6649
|
-
}
|
|
6650
|
-
>
|
|
6651
|
-
>;
|
|
6652
|
-
|
|
6653
6693
|
/**
|
|
6654
6694
|
* Set the parachain validator-group rotation frequency
|
|
6655
6695
|
*
|
|
@@ -7322,25 +7362,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7322
7362
|
>
|
|
7323
7363
|
>;
|
|
7324
7364
|
|
|
7325
|
-
/**
|
|
7326
|
-
* Set the on demand (parathreads) ttl in the claimqueue.
|
|
7327
|
-
*
|
|
7328
|
-
* @param {number} new_
|
|
7329
|
-
**/
|
|
7330
|
-
setOnDemandTtl: GenericTxCall<
|
|
7331
|
-
Rv,
|
|
7332
|
-
(new_: number) => ChainSubmittableExtrinsic<
|
|
7333
|
-
Rv,
|
|
7334
|
-
{
|
|
7335
|
-
pallet: 'Configuration';
|
|
7336
|
-
palletCall: {
|
|
7337
|
-
name: 'SetOnDemandTtl';
|
|
7338
|
-
params: { new: number };
|
|
7339
|
-
};
|
|
7340
|
-
}
|
|
7341
|
-
>
|
|
7342
|
-
>;
|
|
7343
|
-
|
|
7344
7365
|
/**
|
|
7345
7366
|
* Set the minimum backing votes threshold.
|
|
7346
7367
|
*
|
|
@@ -9355,6 +9376,111 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9355
9376
|
**/
|
|
9356
9377
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9357
9378
|
};
|
|
9379
|
+
/**
|
|
9380
|
+
* Pallet `MultiBlockMigrations`'s transaction calls
|
|
9381
|
+
**/
|
|
9382
|
+
multiBlockMigrations: {
|
|
9383
|
+
/**
|
|
9384
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
9385
|
+
*
|
|
9386
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
9387
|
+
* restarting the migration process in this manner will not call the
|
|
9388
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
9389
|
+
*
|
|
9390
|
+
* @param {PalletMigrationsMigrationCursor | undefined} cursor
|
|
9391
|
+
**/
|
|
9392
|
+
forceSetCursor: GenericTxCall<
|
|
9393
|
+
Rv,
|
|
9394
|
+
(cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
|
|
9395
|
+
Rv,
|
|
9396
|
+
{
|
|
9397
|
+
pallet: 'MultiBlockMigrations';
|
|
9398
|
+
palletCall: {
|
|
9399
|
+
name: 'ForceSetCursor';
|
|
9400
|
+
params: { cursor: PalletMigrationsMigrationCursor | undefined };
|
|
9401
|
+
};
|
|
9402
|
+
}
|
|
9403
|
+
>
|
|
9404
|
+
>;
|
|
9405
|
+
|
|
9406
|
+
/**
|
|
9407
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
9408
|
+
*
|
|
9409
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
9410
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
9411
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
9412
|
+
* indicates that the current block number plus one should be used.
|
|
9413
|
+
*
|
|
9414
|
+
* @param {number} index
|
|
9415
|
+
* @param {BytesLike | undefined} innerCursor
|
|
9416
|
+
* @param {number | undefined} startedAt
|
|
9417
|
+
**/
|
|
9418
|
+
forceSetActiveCursor: GenericTxCall<
|
|
9419
|
+
Rv,
|
|
9420
|
+
(
|
|
9421
|
+
index: number,
|
|
9422
|
+
innerCursor: BytesLike | undefined,
|
|
9423
|
+
startedAt: number | undefined,
|
|
9424
|
+
) => ChainSubmittableExtrinsic<
|
|
9425
|
+
Rv,
|
|
9426
|
+
{
|
|
9427
|
+
pallet: 'MultiBlockMigrations';
|
|
9428
|
+
palletCall: {
|
|
9429
|
+
name: 'ForceSetActiveCursor';
|
|
9430
|
+
params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
|
|
9431
|
+
};
|
|
9432
|
+
}
|
|
9433
|
+
>
|
|
9434
|
+
>;
|
|
9435
|
+
|
|
9436
|
+
/**
|
|
9437
|
+
* Forces the onboarding of the migrations.
|
|
9438
|
+
*
|
|
9439
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
9440
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
9441
|
+
*
|
|
9442
|
+
**/
|
|
9443
|
+
forceOnboardMbms: GenericTxCall<
|
|
9444
|
+
Rv,
|
|
9445
|
+
() => ChainSubmittableExtrinsic<
|
|
9446
|
+
Rv,
|
|
9447
|
+
{
|
|
9448
|
+
pallet: 'MultiBlockMigrations';
|
|
9449
|
+
palletCall: {
|
|
9450
|
+
name: 'ForceOnboardMbms';
|
|
9451
|
+
};
|
|
9452
|
+
}
|
|
9453
|
+
>
|
|
9454
|
+
>;
|
|
9455
|
+
|
|
9456
|
+
/**
|
|
9457
|
+
* Clears the `Historic` set.
|
|
9458
|
+
*
|
|
9459
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
9460
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
9461
|
+
* way that will result in a sensible weight.
|
|
9462
|
+
*
|
|
9463
|
+
* @param {PalletMigrationsHistoricCleanupSelector} selector
|
|
9464
|
+
**/
|
|
9465
|
+
clearHistoric: GenericTxCall<
|
|
9466
|
+
Rv,
|
|
9467
|
+
(selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
|
|
9468
|
+
Rv,
|
|
9469
|
+
{
|
|
9470
|
+
pallet: 'MultiBlockMigrations';
|
|
9471
|
+
palletCall: {
|
|
9472
|
+
name: 'ClearHistoric';
|
|
9473
|
+
params: { selector: PalletMigrationsHistoricCleanupSelector };
|
|
9474
|
+
};
|
|
9475
|
+
}
|
|
9476
|
+
>
|
|
9477
|
+
>;
|
|
9478
|
+
|
|
9479
|
+
/**
|
|
9480
|
+
* Generic pallet tx call
|
|
9481
|
+
**/
|
|
9482
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9483
|
+
};
|
|
9358
9484
|
/**
|
|
9359
9485
|
* Pallet `XcmPallet`'s transaction calls
|
|
9360
9486
|
**/
|
|
@@ -9529,13 +9655,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9529
9655
|
* - `location`: The destination that is being described.
|
|
9530
9656
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
9531
9657
|
*
|
|
9532
|
-
* @param {
|
|
9658
|
+
* @param {StagingXcmV5Location} location
|
|
9533
9659
|
* @param {number} version
|
|
9534
9660
|
**/
|
|
9535
9661
|
forceXcmVersion: GenericTxCall<
|
|
9536
9662
|
Rv,
|
|
9537
9663
|
(
|
|
9538
|
-
location:
|
|
9664
|
+
location: StagingXcmV5Location,
|
|
9539
9665
|
version: number,
|
|
9540
9666
|
) => ChainSubmittableExtrinsic<
|
|
9541
9667
|
Rv,
|
|
@@ -9543,7 +9669,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9543
9669
|
pallet: 'XcmPallet';
|
|
9544
9670
|
palletCall: {
|
|
9545
9671
|
name: 'ForceXcmVersion';
|
|
9546
|
-
params: { location:
|
|
9672
|
+
params: { location: StagingXcmV5Location; version: number };
|
|
9547
9673
|
};
|
|
9548
9674
|
}
|
|
9549
9675
|
>
|