@dedot/chaintypes 0.96.0 → 0.97.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/westend/consts.d.ts +37 -2
- package/westend/errors.d.ts +56 -0
- package/westend/events.d.ts +160 -0
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +151 -0
- package/westend/tx.d.ts +206 -8
- package/westend/types.d.ts +494 -25
- package/westend-asset-hub/consts.d.ts +569 -1
- package/westend-asset-hub/errors.d.ts +1159 -9
- package/westend-asset-hub/events.d.ts +1623 -21
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +1597 -6
- package/westend-asset-hub/runtime.d.ts +142 -0
- package/westend-asset-hub/tx.d.ts +10328 -5573
- package/westend-asset-hub/types.d.ts +15285 -8631
package/westend/tx.d.ts
CHANGED
|
@@ -85,6 +85,8 @@ import type {
|
|
|
85
85
|
PolkadotRuntimeCommonAssignedSlotsSlotLeasePeriodStart,
|
|
86
86
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
87
87
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
88
|
+
PalletStakingAsyncRcClientValidatorSetReport,
|
|
89
|
+
PalletStakingAsyncAhClientOperatingMode,
|
|
88
90
|
PalletMigrationsMigrationCursor,
|
|
89
91
|
PalletMigrationsHistoricCleanupSelector,
|
|
90
92
|
XcmVersionedAssets,
|
|
@@ -97,6 +99,7 @@ import type {
|
|
|
97
99
|
SpConsensusBeefyDoubleVotingProof,
|
|
98
100
|
SpConsensusBeefyForkVotingProof,
|
|
99
101
|
SpConsensusBeefyFutureBlockVotingProof,
|
|
102
|
+
PalletRcMigratorMigrationStage,
|
|
100
103
|
} from './types.js';
|
|
101
104
|
|
|
102
105
|
export type ChainSubmittableExtrinsic<
|
|
@@ -1029,6 +1032,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1029
1032
|
* period ends. If this leaves an amount actively bonded less than
|
|
1030
1033
|
* [`asset::existential_deposit`], then it is increased to the full amount.
|
|
1031
1034
|
*
|
|
1035
|
+
* The stash may be chilled if the ledger total amount falls to 0 after unbonding.
|
|
1036
|
+
*
|
|
1032
1037
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
1033
1038
|
*
|
|
1034
1039
|
* Once the unlock period is done, you can call `withdraw_unbonded` to actually move
|
|
@@ -1454,6 +1459,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1454
1459
|
* Can be called by the `T::AdminOrigin`.
|
|
1455
1460
|
*
|
|
1456
1461
|
* Parameters: era and indices of the slashes for that era to kill.
|
|
1462
|
+
* They **must** be sorted in ascending order, *and* unique.
|
|
1457
1463
|
*
|
|
1458
1464
|
* @param {number} era
|
|
1459
1465
|
* @param {Array<number>} slashIndices
|
|
@@ -3359,6 +3365,47 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3359
3365
|
>
|
|
3360
3366
|
>;
|
|
3361
3367
|
|
|
3368
|
+
/**
|
|
3369
|
+
* Poke deposits for recovery configurations and / or active recoveries.
|
|
3370
|
+
*
|
|
3371
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
3372
|
+
*
|
|
3373
|
+
* The dispatch origin for this call must be _Signed_.
|
|
3374
|
+
*
|
|
3375
|
+
* Parameters:
|
|
3376
|
+
* - `maybe_account`: Optional recoverable account for which you have an active recovery
|
|
3377
|
+
* and want to adjust the deposit for the active recovery.
|
|
3378
|
+
*
|
|
3379
|
+
* This function checks both recovery configuration deposit and active recovery deposits
|
|
3380
|
+
* of the caller:
|
|
3381
|
+
* - If the caller has created a recovery configuration, checks and adjusts its deposit
|
|
3382
|
+
* - If the caller has initiated any active recoveries, and provides the account in
|
|
3383
|
+
* `maybe_account`, checks and adjusts those deposits
|
|
3384
|
+
*
|
|
3385
|
+
* If any deposit is updated, the difference will be reserved/unreserved from the caller's
|
|
3386
|
+
* account.
|
|
3387
|
+
*
|
|
3388
|
+
* The transaction is made free if any deposit is updated and paid otherwise.
|
|
3389
|
+
*
|
|
3390
|
+
* Emits `DepositPoked` if any deposit is updated.
|
|
3391
|
+
* Multiple events may be emitted in case both types of deposits are updated.
|
|
3392
|
+
*
|
|
3393
|
+
* @param {MultiAddressLike | undefined} maybeAccount
|
|
3394
|
+
**/
|
|
3395
|
+
pokeDeposit: GenericTxCall<
|
|
3396
|
+
Rv,
|
|
3397
|
+
(maybeAccount: MultiAddressLike | undefined) => ChainSubmittableExtrinsic<
|
|
3398
|
+
Rv,
|
|
3399
|
+
{
|
|
3400
|
+
pallet: 'Recovery';
|
|
3401
|
+
palletCall: {
|
|
3402
|
+
name: 'PokeDeposit';
|
|
3403
|
+
params: { maybeAccount: MultiAddressLike | undefined };
|
|
3404
|
+
};
|
|
3405
|
+
}
|
|
3406
|
+
>
|
|
3407
|
+
>;
|
|
3408
|
+
|
|
3362
3409
|
/**
|
|
3363
3410
|
* Generic pallet tx call
|
|
3364
3411
|
**/
|
|
@@ -4284,7 +4331,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4284
4331
|
* `pure` with corresponding parameters.
|
|
4285
4332
|
*
|
|
4286
4333
|
* - `spawner`: The account that originally called `pure` to create this account.
|
|
4287
|
-
* - `index`: The disambiguation index originally passed to `
|
|
4334
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
4288
4335
|
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
4289
4336
|
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
4290
4337
|
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
@@ -4890,21 +4937,15 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4890
4937
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
4891
4938
|
* calling [`Call::set_emergency_election_result`].
|
|
4892
4939
|
*
|
|
4893
|
-
* @param {number | undefined} maybeMaxVoters
|
|
4894
|
-
* @param {number | undefined} maybeMaxTargets
|
|
4895
4940
|
**/
|
|
4896
4941
|
governanceFallback: GenericTxCall<
|
|
4897
4942
|
Rv,
|
|
4898
|
-
(
|
|
4899
|
-
maybeMaxVoters: number | undefined,
|
|
4900
|
-
maybeMaxTargets: number | undefined,
|
|
4901
|
-
) => ChainSubmittableExtrinsic<
|
|
4943
|
+
() => ChainSubmittableExtrinsic<
|
|
4902
4944
|
Rv,
|
|
4903
4945
|
{
|
|
4904
4946
|
pallet: 'ElectionProviderMultiPhase';
|
|
4905
4947
|
palletCall: {
|
|
4906
4948
|
name: 'GovernanceFallback';
|
|
4907
|
-
params: { maybeMaxVoters: number | undefined; maybeMaxTargets: number | undefined };
|
|
4908
4949
|
};
|
|
4909
4950
|
}
|
|
4910
4951
|
>
|
|
@@ -7977,6 +8018,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7977
8018
|
>
|
|
7978
8019
|
>;
|
|
7979
8020
|
|
|
8021
|
+
/**
|
|
8022
|
+
* Remove an upgrade cooldown for a parachain.
|
|
8023
|
+
*
|
|
8024
|
+
* The cost for removing the cooldown earlier depends on the time left for the cooldown
|
|
8025
|
+
* multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned.
|
|
8026
|
+
*
|
|
8027
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
8028
|
+
**/
|
|
8029
|
+
removeUpgradeCooldown: GenericTxCall<
|
|
8030
|
+
Rv,
|
|
8031
|
+
(para: PolkadotParachainPrimitivesPrimitivesId) => ChainSubmittableExtrinsic<
|
|
8032
|
+
Rv,
|
|
8033
|
+
{
|
|
8034
|
+
pallet: 'Paras';
|
|
8035
|
+
palletCall: {
|
|
8036
|
+
name: 'RemoveUpgradeCooldown';
|
|
8037
|
+
params: { para: PolkadotParachainPrimitivesPrimitivesId };
|
|
8038
|
+
};
|
|
8039
|
+
}
|
|
8040
|
+
>
|
|
8041
|
+
>;
|
|
8042
|
+
|
|
7980
8043
|
/**
|
|
7981
8044
|
* Generic pallet tx call
|
|
7982
8045
|
**/
|
|
@@ -9684,6 +9747,52 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9684
9747
|
**/
|
|
9685
9748
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9686
9749
|
};
|
|
9750
|
+
/**
|
|
9751
|
+
* Pallet `AssetHubStakingClient`'s transaction calls
|
|
9752
|
+
**/
|
|
9753
|
+
assetHubStakingClient: {
|
|
9754
|
+
/**
|
|
9755
|
+
*
|
|
9756
|
+
* @param {PalletStakingAsyncRcClientValidatorSetReport} report
|
|
9757
|
+
**/
|
|
9758
|
+
validatorSet: GenericTxCall<
|
|
9759
|
+
Rv,
|
|
9760
|
+
(report: PalletStakingAsyncRcClientValidatorSetReport) => ChainSubmittableExtrinsic<
|
|
9761
|
+
Rv,
|
|
9762
|
+
{
|
|
9763
|
+
pallet: 'AssetHubStakingClient';
|
|
9764
|
+
palletCall: {
|
|
9765
|
+
name: 'ValidatorSet';
|
|
9766
|
+
params: { report: PalletStakingAsyncRcClientValidatorSetReport };
|
|
9767
|
+
};
|
|
9768
|
+
}
|
|
9769
|
+
>
|
|
9770
|
+
>;
|
|
9771
|
+
|
|
9772
|
+
/**
|
|
9773
|
+
* Allows governance to force set the operating mode of the pallet.
|
|
9774
|
+
*
|
|
9775
|
+
* @param {PalletStakingAsyncAhClientOperatingMode} mode
|
|
9776
|
+
**/
|
|
9777
|
+
setMode: GenericTxCall<
|
|
9778
|
+
Rv,
|
|
9779
|
+
(mode: PalletStakingAsyncAhClientOperatingMode) => ChainSubmittableExtrinsic<
|
|
9780
|
+
Rv,
|
|
9781
|
+
{
|
|
9782
|
+
pallet: 'AssetHubStakingClient';
|
|
9783
|
+
palletCall: {
|
|
9784
|
+
name: 'SetMode';
|
|
9785
|
+
params: { mode: PalletStakingAsyncAhClientOperatingMode };
|
|
9786
|
+
};
|
|
9787
|
+
}
|
|
9788
|
+
>
|
|
9789
|
+
>;
|
|
9790
|
+
|
|
9791
|
+
/**
|
|
9792
|
+
* Generic pallet tx call
|
|
9793
|
+
**/
|
|
9794
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
9795
|
+
};
|
|
9687
9796
|
/**
|
|
9688
9797
|
* Pallet `MultiBlockMigrations`'s transaction calls
|
|
9689
9798
|
**/
|
|
@@ -10931,6 +11040,95 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10931
11040
|
>
|
|
10932
11041
|
>;
|
|
10933
11042
|
|
|
11043
|
+
/**
|
|
11044
|
+
* Generic pallet tx call
|
|
11045
|
+
**/
|
|
11046
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
11047
|
+
};
|
|
11048
|
+
/**
|
|
11049
|
+
* Pallet `RcMigrator`'s transaction calls
|
|
11050
|
+
**/
|
|
11051
|
+
rcMigrator: {
|
|
11052
|
+
/**
|
|
11053
|
+
* Set the migration stage.
|
|
11054
|
+
*
|
|
11055
|
+
* This call is intended for emergency use only and is guarded by the
|
|
11056
|
+
* [`Config::ManagerOrigin`].
|
|
11057
|
+
*
|
|
11058
|
+
* @param {PalletRcMigratorMigrationStage} stage
|
|
11059
|
+
**/
|
|
11060
|
+
forceSetStage: GenericTxCall<
|
|
11061
|
+
Rv,
|
|
11062
|
+
(stage: PalletRcMigratorMigrationStage) => ChainSubmittableExtrinsic<
|
|
11063
|
+
Rv,
|
|
11064
|
+
{
|
|
11065
|
+
pallet: 'RcMigrator';
|
|
11066
|
+
palletCall: {
|
|
11067
|
+
name: 'ForceSetStage';
|
|
11068
|
+
params: { stage: PalletRcMigratorMigrationStage };
|
|
11069
|
+
};
|
|
11070
|
+
}
|
|
11071
|
+
>
|
|
11072
|
+
>;
|
|
11073
|
+
|
|
11074
|
+
/**
|
|
11075
|
+
* Schedule the migration to start at a given moment.
|
|
11076
|
+
*
|
|
11077
|
+
* @param {FrameSupportScheduleDispatchTime} startMoment
|
|
11078
|
+
**/
|
|
11079
|
+
scheduleMigration: GenericTxCall<
|
|
11080
|
+
Rv,
|
|
11081
|
+
(startMoment: FrameSupportScheduleDispatchTime) => ChainSubmittableExtrinsic<
|
|
11082
|
+
Rv,
|
|
11083
|
+
{
|
|
11084
|
+
pallet: 'RcMigrator';
|
|
11085
|
+
palletCall: {
|
|
11086
|
+
name: 'ScheduleMigration';
|
|
11087
|
+
params: { startMoment: FrameSupportScheduleDispatchTime };
|
|
11088
|
+
};
|
|
11089
|
+
}
|
|
11090
|
+
>
|
|
11091
|
+
>;
|
|
11092
|
+
|
|
11093
|
+
/**
|
|
11094
|
+
* Start the data migration.
|
|
11095
|
+
*
|
|
11096
|
+
* This is typically called by the Asset Hub to indicate it's readiness to receive the
|
|
11097
|
+
* migration data.
|
|
11098
|
+
*
|
|
11099
|
+
**/
|
|
11100
|
+
startDataMigration: GenericTxCall<
|
|
11101
|
+
Rv,
|
|
11102
|
+
() => ChainSubmittableExtrinsic<
|
|
11103
|
+
Rv,
|
|
11104
|
+
{
|
|
11105
|
+
pallet: 'RcMigrator';
|
|
11106
|
+
palletCall: {
|
|
11107
|
+
name: 'StartDataMigration';
|
|
11108
|
+
};
|
|
11109
|
+
}
|
|
11110
|
+
>
|
|
11111
|
+
>;
|
|
11112
|
+
|
|
11113
|
+
/**
|
|
11114
|
+
* Update the total number of XCM messages processed by the Asset Hub.
|
|
11115
|
+
*
|
|
11116
|
+
* @param {number} count
|
|
11117
|
+
**/
|
|
11118
|
+
updateAhMsgProcessedCount: GenericTxCall<
|
|
11119
|
+
Rv,
|
|
11120
|
+
(count: number) => ChainSubmittableExtrinsic<
|
|
11121
|
+
Rv,
|
|
11122
|
+
{
|
|
11123
|
+
pallet: 'RcMigrator';
|
|
11124
|
+
palletCall: {
|
|
11125
|
+
name: 'UpdateAhMsgProcessedCount';
|
|
11126
|
+
params: { count: number };
|
|
11127
|
+
};
|
|
11128
|
+
}
|
|
11129
|
+
>
|
|
11130
|
+
>;
|
|
11131
|
+
|
|
10934
11132
|
/**
|
|
10935
11133
|
* Generic pallet tx call
|
|
10936
11134
|
**/
|