@dedot/chaintypes 0.232.0 → 0.234.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/hydration/consts.d.ts +119 -47
- package/hydration/errors.d.ts +91 -130
- package/hydration/events.d.ts +340 -432
- package/hydration/index.d.ts +2 -3
- package/hydration/json-rpc.d.ts +10 -17
- package/hydration/query.d.ts +157 -277
- package/hydration/runtime.d.ts +21 -123
- package/hydration/tx.d.ts +502 -315
- package/hydration/types.d.ts +1366 -1284
- package/package.json +2 -2
- package/paseo/consts.d.ts +87 -18
- package/paseo/errors.d.ts +187 -30
- package/paseo/events.d.ts +676 -80
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +465 -71
- package/paseo/runtime.d.ts +85 -39
- package/paseo/tx.d.ts +1012 -165
- package/paseo/types.d.ts +8081 -6364
- package/paseo/view-functions.d.ts +75 -1
- package/paseo-asset-hub/consts.d.ts +0 -34
- package/paseo-asset-hub/errors.d.ts +0 -28
- package/paseo-asset-hub/events.d.ts +20 -205
- package/paseo-asset-hub/index.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +23 -66
- package/paseo-asset-hub/runtime.d.ts +15 -12
- package/paseo-asset-hub/tx.d.ts +127 -327
- package/paseo-asset-hub/types.d.ts +192 -513
- package/paseo-asset-hub/view-functions.d.ts +7 -7
- package/paseo-hydration/consts.d.ts +5 -0
- package/paseo-hydration/errors.d.ts +1 -1
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/json-rpc.d.ts +0 -10
- package/paseo-hydration/tx.d.ts +2 -1
- package/paseo-hydration/types.d.ts +5 -3
- package/paseo-people/consts.d.ts +75 -0
- package/paseo-people/errors.d.ts +165 -0
- package/paseo-people/events.d.ts +285 -2
- package/paseo-people/index.d.ts +5 -4
- package/paseo-people/query.d.ts +125 -0
- package/paseo-people/tx.d.ts +1286 -2
- package/paseo-people/types.d.ts +1776 -183
package/paseo/tx.d.ts
CHANGED
|
@@ -45,11 +45,10 @@ import type {
|
|
|
45
45
|
FrameSupportPreimagesBounded,
|
|
46
46
|
FrameSupportScheduleDispatchTime,
|
|
47
47
|
SpWeightsWeightV2Weight,
|
|
48
|
-
PaseoRuntimeRuntimeParameters,
|
|
49
48
|
PolkadotRuntimeCommonClaimsEcdsaSignature,
|
|
50
49
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
51
50
|
PalletVestingVestingInfo,
|
|
52
|
-
|
|
51
|
+
PaseoRuntimeConstantsProxyProxyType,
|
|
53
52
|
PalletMultisigTimepoint,
|
|
54
53
|
PalletElectionProviderMultiPhaseRawSolution,
|
|
55
54
|
PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
|
|
@@ -60,15 +59,17 @@ import type {
|
|
|
60
59
|
PalletNominationPoolsConfigOp,
|
|
61
60
|
PalletNominationPoolsConfigOpU32,
|
|
62
61
|
PalletNominationPoolsConfigOpPerbill,
|
|
63
|
-
|
|
62
|
+
PalletNominationPoolsConfigOpAccountId32,
|
|
64
63
|
PalletNominationPoolsClaimPermission,
|
|
65
64
|
PalletNominationPoolsCommissionChangeRate,
|
|
66
65
|
PalletNominationPoolsCommissionClaimPermission,
|
|
66
|
+
PalletStakingAsyncRcClientValidatorSetReport,
|
|
67
|
+
PalletStakingAsyncAhClientOperatingMode,
|
|
67
68
|
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
68
69
|
PolkadotPrimitivesV8ExecutorParams,
|
|
69
70
|
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
70
71
|
PolkadotPrimitivesV8SchedulerParams,
|
|
71
|
-
|
|
72
|
+
PolkadotPrimitivesVstagingInherentData,
|
|
72
73
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
73
74
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
74
75
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
@@ -76,7 +77,7 @@ import type {
|
|
|
76
77
|
PolkadotPrimitivesV8PvfCheckStatement,
|
|
77
78
|
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
78
79
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
79
|
-
|
|
80
|
+
PolkadotPrimitivesVstagingDisputeProof,
|
|
80
81
|
SpRuntimeMultiSigner,
|
|
81
82
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
82
83
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
@@ -85,7 +86,7 @@ import type {
|
|
|
85
86
|
PalletStateTrieMigrationProgress,
|
|
86
87
|
XcmVersionedXcm,
|
|
87
88
|
XcmVersionedAssets,
|
|
88
|
-
|
|
89
|
+
StagingXcmV5Location,
|
|
89
90
|
XcmV3WeightLimit,
|
|
90
91
|
StagingXcmExecutorAssetTransferTransferType,
|
|
91
92
|
XcmVersionedAssetId,
|
|
@@ -94,6 +95,11 @@ import type {
|
|
|
94
95
|
SpConsensusBeefyForkVotingProof,
|
|
95
96
|
SpConsensusBeefyFutureBlockVotingProof,
|
|
96
97
|
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
98
|
+
PalletRcMigratorMigrationStage,
|
|
99
|
+
StagingXcmV5Response,
|
|
100
|
+
PalletRcMigratorQueuePriority,
|
|
101
|
+
PalletRcMigratorManagerMultisigVote,
|
|
102
|
+
PalletRcMigratorMigrationSettings,
|
|
97
103
|
} from './types.js';
|
|
98
104
|
|
|
99
105
|
export type ChainSubmittableExtrinsic<
|
|
@@ -721,7 +727,7 @@ export interface ChainTx<
|
|
|
721
727
|
>;
|
|
722
728
|
|
|
723
729
|
/**
|
|
724
|
-
* Ensure that the
|
|
730
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
725
731
|
*
|
|
726
732
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
727
733
|
*
|
|
@@ -1034,6 +1040,33 @@ export interface ChainTx<
|
|
|
1034
1040
|
>
|
|
1035
1041
|
>;
|
|
1036
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Poke the deposit reserved for an index.
|
|
1045
|
+
*
|
|
1046
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
1047
|
+
* non-frozen account `index`.
|
|
1048
|
+
*
|
|
1049
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
1050
|
+
*
|
|
1051
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
1052
|
+
*
|
|
1053
|
+
* Emits `DepositPoked` if successful.
|
|
1054
|
+
*
|
|
1055
|
+
* @param {number} index
|
|
1056
|
+
**/
|
|
1057
|
+
pokeDeposit: GenericTxCall<
|
|
1058
|
+
(index: number) => ChainSubmittableExtrinsic<
|
|
1059
|
+
{
|
|
1060
|
+
pallet: 'Indices';
|
|
1061
|
+
palletCall: {
|
|
1062
|
+
name: 'PokeDeposit';
|
|
1063
|
+
params: { index: number };
|
|
1064
|
+
};
|
|
1065
|
+
},
|
|
1066
|
+
ChainKnownTypes
|
|
1067
|
+
>
|
|
1068
|
+
>;
|
|
1069
|
+
|
|
1037
1070
|
/**
|
|
1038
1071
|
* Generic pallet tx call
|
|
1039
1072
|
**/
|
|
@@ -1366,7 +1399,9 @@ export interface ChainTx<
|
|
|
1366
1399
|
/**
|
|
1367
1400
|
* Schedule a portion of the stash to be unlocked ready for transfer out after the bond
|
|
1368
1401
|
* period ends. If this leaves an amount actively bonded less than
|
|
1369
|
-
*
|
|
1402
|
+
* [`asset::existential_deposit`], then it is increased to the full amount.
|
|
1403
|
+
*
|
|
1404
|
+
* The stash may be chilled if the ledger total amount falls to 0 after unbonding.
|
|
1370
1405
|
*
|
|
1371
1406
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
1372
1407
|
*
|
|
@@ -1778,6 +1813,7 @@ export interface ChainTx<
|
|
|
1778
1813
|
* Can be called by the `T::AdminOrigin`.
|
|
1779
1814
|
*
|
|
1780
1815
|
* Parameters: era and indices of the slashes for that era to kill.
|
|
1816
|
+
* They **must** be sorted in ascending order, *and* unique.
|
|
1781
1817
|
*
|
|
1782
1818
|
* @param {number} era
|
|
1783
1819
|
* @param {Array<number>} slashIndices
|
|
@@ -2192,21 +2228,22 @@ export interface ChainTx<
|
|
|
2192
2228
|
>;
|
|
2193
2229
|
|
|
2194
2230
|
/**
|
|
2195
|
-
*
|
|
2231
|
+
* Removes the legacy Staking locks if they exist.
|
|
2196
2232
|
*
|
|
2197
|
-
* This
|
|
2198
|
-
*
|
|
2199
|
-
*
|
|
2200
|
-
*
|
|
2233
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
2234
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
2235
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
2236
|
+
*
|
|
2237
|
+
* The fee is waived if the migration is successful.
|
|
2201
2238
|
*
|
|
2202
2239
|
* @param {AccountId32Like} stash
|
|
2203
2240
|
**/
|
|
2204
|
-
|
|
2241
|
+
migrateCurrency: GenericTxCall<
|
|
2205
2242
|
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
2206
2243
|
{
|
|
2207
2244
|
pallet: 'Staking';
|
|
2208
2245
|
palletCall: {
|
|
2209
|
-
name: '
|
|
2246
|
+
name: 'MigrateCurrency';
|
|
2210
2247
|
params: { stash: AccountId32Like };
|
|
2211
2248
|
};
|
|
2212
2249
|
},
|
|
@@ -2214,6 +2251,50 @@ export interface ChainTx<
|
|
|
2214
2251
|
>
|
|
2215
2252
|
>;
|
|
2216
2253
|
|
|
2254
|
+
/**
|
|
2255
|
+
* This function allows governance to manually slash a validator and is a
|
|
2256
|
+
* **fallback mechanism**.
|
|
2257
|
+
*
|
|
2258
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
2259
|
+
*
|
|
2260
|
+
* ## Parameters
|
|
2261
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
2262
|
+
* - `era` - The era in which the validator was in the active set.
|
|
2263
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
2264
|
+
*
|
|
2265
|
+
* ## Behavior
|
|
2266
|
+
*
|
|
2267
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
2268
|
+
* configured `SlashDeferDuration`.
|
|
2269
|
+
*
|
|
2270
|
+
* This means:
|
|
2271
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
2272
|
+
* slash will have no additional effect.
|
|
2273
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
2274
|
+
* will be applied.
|
|
2275
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
2276
|
+
*
|
|
2277
|
+
* @param {AccountId32Like} validatorStash
|
|
2278
|
+
* @param {number} era
|
|
2279
|
+
* @param {Perbill} slashFraction
|
|
2280
|
+
**/
|
|
2281
|
+
manualSlash: GenericTxCall<
|
|
2282
|
+
(
|
|
2283
|
+
validatorStash: AccountId32Like,
|
|
2284
|
+
era: number,
|
|
2285
|
+
slashFraction: Perbill,
|
|
2286
|
+
) => ChainSubmittableExtrinsic<
|
|
2287
|
+
{
|
|
2288
|
+
pallet: 'Staking';
|
|
2289
|
+
palletCall: {
|
|
2290
|
+
name: 'ManualSlash';
|
|
2291
|
+
params: { validatorStash: AccountId32Like; era: number; slashFraction: Perbill };
|
|
2292
|
+
};
|
|
2293
|
+
},
|
|
2294
|
+
ChainKnownTypes
|
|
2295
|
+
>
|
|
2296
|
+
>;
|
|
2297
|
+
|
|
2217
2298
|
/**
|
|
2218
2299
|
* Generic pallet tx call
|
|
2219
2300
|
**/
|
|
@@ -2540,6 +2621,8 @@ export interface ChainTx<
|
|
|
2540
2621
|
* Emits [`Event::Paid`] if successful.
|
|
2541
2622
|
*
|
|
2542
2623
|
* @param {number} index
|
|
2624
|
+
*
|
|
2625
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
2543
2626
|
**/
|
|
2544
2627
|
payout: GenericTxCall<
|
|
2545
2628
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -2576,6 +2659,8 @@ export interface ChainTx<
|
|
|
2576
2659
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
2577
2660
|
*
|
|
2578
2661
|
* @param {number} index
|
|
2662
|
+
*
|
|
2663
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
2579
2664
|
**/
|
|
2580
2665
|
checkStatus: GenericTxCall<
|
|
2581
2666
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -3192,36 +3277,6 @@ export interface ChainTx<
|
|
|
3192
3277
|
**/
|
|
3193
3278
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3194
3279
|
};
|
|
3195
|
-
/**
|
|
3196
|
-
* Pallet `Parameters`'s transaction calls
|
|
3197
|
-
**/
|
|
3198
|
-
parameters: {
|
|
3199
|
-
/**
|
|
3200
|
-
* Set the value of a parameter.
|
|
3201
|
-
*
|
|
3202
|
-
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3203
|
-
* deleted by setting them to `None`.
|
|
3204
|
-
*
|
|
3205
|
-
* @param {PaseoRuntimeRuntimeParameters} keyValue
|
|
3206
|
-
**/
|
|
3207
|
-
setParameter: GenericTxCall<
|
|
3208
|
-
(keyValue: PaseoRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
3209
|
-
{
|
|
3210
|
-
pallet: 'Parameters';
|
|
3211
|
-
palletCall: {
|
|
3212
|
-
name: 'SetParameter';
|
|
3213
|
-
params: { keyValue: PaseoRuntimeRuntimeParameters };
|
|
3214
|
-
};
|
|
3215
|
-
},
|
|
3216
|
-
ChainKnownTypes
|
|
3217
|
-
>
|
|
3218
|
-
>;
|
|
3219
|
-
|
|
3220
|
-
/**
|
|
3221
|
-
* Generic pallet tx call
|
|
3222
|
-
**/
|
|
3223
|
-
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3224
|
-
};
|
|
3225
3280
|
/**
|
|
3226
3281
|
* Pallet `Claims`'s transaction calls
|
|
3227
3282
|
**/
|
|
@@ -3374,7 +3429,7 @@ export interface ChainTx<
|
|
|
3374
3429
|
* Attest to a statement, needed to finalize the claims process.
|
|
3375
3430
|
*
|
|
3376
3431
|
* WARNING: Insecure unless your chain includes `PrevalidateAttests` as a
|
|
3377
|
-
* `
|
|
3432
|
+
* `TransactionExtension`.
|
|
3378
3433
|
*
|
|
3379
3434
|
* Unsigned Validation:
|
|
3380
3435
|
* A call to attest is deemed valid if the sender has a `Preclaim` registered
|
|
@@ -3822,6 +3877,76 @@ export interface ChainTx<
|
|
|
3822
3877
|
>
|
|
3823
3878
|
>;
|
|
3824
3879
|
|
|
3880
|
+
/**
|
|
3881
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
3882
|
+
* May be called from any origin except `None`.
|
|
3883
|
+
*
|
|
3884
|
+
* This function first attempts to dispatch the `main` call.
|
|
3885
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
3886
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
3887
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
3888
|
+
*
|
|
3889
|
+
* In the event of a fallback failure the whole call fails
|
|
3890
|
+
* with the weights returned.
|
|
3891
|
+
*
|
|
3892
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
3893
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
3894
|
+
*
|
|
3895
|
+
* ## Dispatch Logic
|
|
3896
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
3897
|
+
* applying any origin filters.
|
|
3898
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
3899
|
+
* `fallback` calls.
|
|
3900
|
+
*
|
|
3901
|
+
* ## Use Case
|
|
3902
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
3903
|
+
* or both.
|
|
3904
|
+
*
|
|
3905
|
+
* @param {PaseoRuntimeRuntimeCallLike} main
|
|
3906
|
+
* @param {PaseoRuntimeRuntimeCallLike} fallback
|
|
3907
|
+
**/
|
|
3908
|
+
ifElse: GenericTxCall<
|
|
3909
|
+
(
|
|
3910
|
+
main: PaseoRuntimeRuntimeCallLike,
|
|
3911
|
+
fallback: PaseoRuntimeRuntimeCallLike,
|
|
3912
|
+
) => ChainSubmittableExtrinsic<
|
|
3913
|
+
{
|
|
3914
|
+
pallet: 'Utility';
|
|
3915
|
+
palletCall: {
|
|
3916
|
+
name: 'IfElse';
|
|
3917
|
+
params: { main: PaseoRuntimeRuntimeCallLike; fallback: PaseoRuntimeRuntimeCallLike };
|
|
3918
|
+
};
|
|
3919
|
+
},
|
|
3920
|
+
ChainKnownTypes
|
|
3921
|
+
>
|
|
3922
|
+
>;
|
|
3923
|
+
|
|
3924
|
+
/**
|
|
3925
|
+
* Dispatches a function call with a provided origin.
|
|
3926
|
+
*
|
|
3927
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
3928
|
+
*
|
|
3929
|
+
* The dispatch origin for this call must be _Root_.
|
|
3930
|
+
*
|
|
3931
|
+
* @param {PaseoRuntimeOriginCaller} asOrigin
|
|
3932
|
+
* @param {PaseoRuntimeRuntimeCallLike} call
|
|
3933
|
+
**/
|
|
3934
|
+
dispatchAsFallible: GenericTxCall<
|
|
3935
|
+
(
|
|
3936
|
+
asOrigin: PaseoRuntimeOriginCaller,
|
|
3937
|
+
call: PaseoRuntimeRuntimeCallLike,
|
|
3938
|
+
) => ChainSubmittableExtrinsic<
|
|
3939
|
+
{
|
|
3940
|
+
pallet: 'Utility';
|
|
3941
|
+
palletCall: {
|
|
3942
|
+
name: 'DispatchAsFallible';
|
|
3943
|
+
params: { asOrigin: PaseoRuntimeOriginCaller; call: PaseoRuntimeRuntimeCallLike };
|
|
3944
|
+
};
|
|
3945
|
+
},
|
|
3946
|
+
ChainKnownTypes
|
|
3947
|
+
>
|
|
3948
|
+
>;
|
|
3949
|
+
|
|
3825
3950
|
/**
|
|
3826
3951
|
* Generic pallet tx call
|
|
3827
3952
|
**/
|
|
@@ -3843,13 +3968,13 @@ export interface ChainTx<
|
|
|
3843
3968
|
* - `call`: The call to be made by the `real` account.
|
|
3844
3969
|
*
|
|
3845
3970
|
* @param {MultiAddressLike} real
|
|
3846
|
-
* @param {
|
|
3971
|
+
* @param {PaseoRuntimeConstantsProxyProxyType | undefined} forceProxyType
|
|
3847
3972
|
* @param {PaseoRuntimeRuntimeCallLike} call
|
|
3848
3973
|
**/
|
|
3849
3974
|
proxy: GenericTxCall<
|
|
3850
3975
|
(
|
|
3851
3976
|
real: MultiAddressLike,
|
|
3852
|
-
forceProxyType:
|
|
3977
|
+
forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined,
|
|
3853
3978
|
call: PaseoRuntimeRuntimeCallLike,
|
|
3854
3979
|
) => ChainSubmittableExtrinsic<
|
|
3855
3980
|
{
|
|
@@ -3858,7 +3983,7 @@ export interface ChainTx<
|
|
|
3858
3983
|
name: 'Proxy';
|
|
3859
3984
|
params: {
|
|
3860
3985
|
real: MultiAddressLike;
|
|
3861
|
-
forceProxyType:
|
|
3986
|
+
forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined;
|
|
3862
3987
|
call: PaseoRuntimeRuntimeCallLike;
|
|
3863
3988
|
};
|
|
3864
3989
|
};
|
|
@@ -3879,20 +4004,20 @@ export interface ChainTx<
|
|
|
3879
4004
|
* zero.
|
|
3880
4005
|
*
|
|
3881
4006
|
* @param {MultiAddressLike} delegate
|
|
3882
|
-
* @param {
|
|
4007
|
+
* @param {PaseoRuntimeConstantsProxyProxyType} proxyType
|
|
3883
4008
|
* @param {number} delay
|
|
3884
4009
|
**/
|
|
3885
4010
|
addProxy: GenericTxCall<
|
|
3886
4011
|
(
|
|
3887
4012
|
delegate: MultiAddressLike,
|
|
3888
|
-
proxyType:
|
|
4013
|
+
proxyType: PaseoRuntimeConstantsProxyProxyType,
|
|
3889
4014
|
delay: number,
|
|
3890
4015
|
) => ChainSubmittableExtrinsic<
|
|
3891
4016
|
{
|
|
3892
4017
|
pallet: 'Proxy';
|
|
3893
4018
|
palletCall: {
|
|
3894
4019
|
name: 'AddProxy';
|
|
3895
|
-
params: { delegate: MultiAddressLike; proxyType:
|
|
4020
|
+
params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number };
|
|
3896
4021
|
};
|
|
3897
4022
|
},
|
|
3898
4023
|
ChainKnownTypes
|
|
@@ -3909,20 +4034,20 @@ export interface ChainTx<
|
|
|
3909
4034
|
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
3910
4035
|
*
|
|
3911
4036
|
* @param {MultiAddressLike} delegate
|
|
3912
|
-
* @param {
|
|
4037
|
+
* @param {PaseoRuntimeConstantsProxyProxyType} proxyType
|
|
3913
4038
|
* @param {number} delay
|
|
3914
4039
|
**/
|
|
3915
4040
|
removeProxy: GenericTxCall<
|
|
3916
4041
|
(
|
|
3917
4042
|
delegate: MultiAddressLike,
|
|
3918
|
-
proxyType:
|
|
4043
|
+
proxyType: PaseoRuntimeConstantsProxyProxyType,
|
|
3919
4044
|
delay: number,
|
|
3920
4045
|
) => ChainSubmittableExtrinsic<
|
|
3921
4046
|
{
|
|
3922
4047
|
pallet: 'Proxy';
|
|
3923
4048
|
palletCall: {
|
|
3924
4049
|
name: 'RemoveProxy';
|
|
3925
|
-
params: { delegate: MultiAddressLike; proxyType:
|
|
4050
|
+
params: { delegate: MultiAddressLike; proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number };
|
|
3926
4051
|
};
|
|
3927
4052
|
},
|
|
3928
4053
|
ChainKnownTypes
|
|
@@ -3934,7 +4059,7 @@ export interface ChainTx<
|
|
|
3934
4059
|
*
|
|
3935
4060
|
* The dispatch origin for this call must be _Signed_.
|
|
3936
4061
|
*
|
|
3937
|
-
* WARNING: This may be called on accounts created by `
|
|
4062
|
+
* WARNING: This may be called on accounts created by `create_pure`, however if done, then
|
|
3938
4063
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
3939
4064
|
*
|
|
3940
4065
|
**/
|
|
@@ -3970,13 +4095,13 @@ export interface ChainTx<
|
|
|
3970
4095
|
*
|
|
3971
4096
|
* Fails if there are insufficient funds to pay for deposit.
|
|
3972
4097
|
*
|
|
3973
|
-
* @param {
|
|
4098
|
+
* @param {PaseoRuntimeConstantsProxyProxyType} proxyType
|
|
3974
4099
|
* @param {number} delay
|
|
3975
4100
|
* @param {number} index
|
|
3976
4101
|
**/
|
|
3977
4102
|
createPure: GenericTxCall<
|
|
3978
4103
|
(
|
|
3979
|
-
proxyType:
|
|
4104
|
+
proxyType: PaseoRuntimeConstantsProxyProxyType,
|
|
3980
4105
|
delay: number,
|
|
3981
4106
|
index: number,
|
|
3982
4107
|
) => ChainSubmittableExtrinsic<
|
|
@@ -3984,7 +4109,7 @@ export interface ChainTx<
|
|
|
3984
4109
|
pallet: 'Proxy';
|
|
3985
4110
|
palletCall: {
|
|
3986
4111
|
name: 'CreatePure';
|
|
3987
|
-
params: { proxyType:
|
|
4112
|
+
params: { proxyType: PaseoRuntimeConstantsProxyProxyType; delay: number; index: number };
|
|
3988
4113
|
};
|
|
3989
4114
|
},
|
|
3990
4115
|
ChainKnownTypes
|
|
@@ -3998,19 +4123,19 @@ export interface ChainTx<
|
|
|
3998
4123
|
* inaccessible.
|
|
3999
4124
|
*
|
|
4000
4125
|
* Requires a `Signed` origin, and the sender account must have been created by a call to
|
|
4001
|
-
* `
|
|
4126
|
+
* `create_pure` with corresponding parameters.
|
|
4002
4127
|
*
|
|
4003
|
-
* - `spawner`: The account that originally called `
|
|
4004
|
-
* - `index`: The disambiguation index originally passed to `
|
|
4005
|
-
* - `proxy_type`: The proxy type originally passed to `
|
|
4006
|
-
* - `height`: The height of the chain when the call to `
|
|
4007
|
-
* - `ext_index`: The extrinsic index in which the call to `
|
|
4128
|
+
* - `spawner`: The account that originally called `create_pure` to create this account.
|
|
4129
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
4130
|
+
* - `proxy_type`: The proxy type originally passed to `create_pure`.
|
|
4131
|
+
* - `height`: The height of the chain when the call to `create_pure` was processed.
|
|
4132
|
+
* - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
|
|
4008
4133
|
*
|
|
4009
4134
|
* Fails with `NoPermission` in case the caller is not a previously created pure
|
|
4010
|
-
* account whose `
|
|
4135
|
+
* account whose `create_pure` call has corresponding parameters.
|
|
4011
4136
|
*
|
|
4012
4137
|
* @param {MultiAddressLike} spawner
|
|
4013
|
-
* @param {
|
|
4138
|
+
* @param {PaseoRuntimeConstantsProxyProxyType} proxyType
|
|
4014
4139
|
* @param {number} index
|
|
4015
4140
|
* @param {number} height
|
|
4016
4141
|
* @param {number} extIndex
|
|
@@ -4018,7 +4143,7 @@ export interface ChainTx<
|
|
|
4018
4143
|
killPure: GenericTxCall<
|
|
4019
4144
|
(
|
|
4020
4145
|
spawner: MultiAddressLike,
|
|
4021
|
-
proxyType:
|
|
4146
|
+
proxyType: PaseoRuntimeConstantsProxyProxyType,
|
|
4022
4147
|
index: number,
|
|
4023
4148
|
height: number,
|
|
4024
4149
|
extIndex: number,
|
|
@@ -4029,7 +4154,7 @@ export interface ChainTx<
|
|
|
4029
4154
|
name: 'KillPure';
|
|
4030
4155
|
params: {
|
|
4031
4156
|
spawner: MultiAddressLike;
|
|
4032
|
-
proxyType:
|
|
4157
|
+
proxyType: PaseoRuntimeConstantsProxyProxyType;
|
|
4033
4158
|
index: number;
|
|
4034
4159
|
height: number;
|
|
4035
4160
|
extIndex: number;
|
|
@@ -4153,14 +4278,14 @@ export interface ChainTx<
|
|
|
4153
4278
|
*
|
|
4154
4279
|
* @param {MultiAddressLike} delegate
|
|
4155
4280
|
* @param {MultiAddressLike} real
|
|
4156
|
-
* @param {
|
|
4281
|
+
* @param {PaseoRuntimeConstantsProxyProxyType | undefined} forceProxyType
|
|
4157
4282
|
* @param {PaseoRuntimeRuntimeCallLike} call
|
|
4158
4283
|
**/
|
|
4159
4284
|
proxyAnnounced: GenericTxCall<
|
|
4160
4285
|
(
|
|
4161
4286
|
delegate: MultiAddressLike,
|
|
4162
4287
|
real: MultiAddressLike,
|
|
4163
|
-
forceProxyType:
|
|
4288
|
+
forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined,
|
|
4164
4289
|
call: PaseoRuntimeRuntimeCallLike,
|
|
4165
4290
|
) => ChainSubmittableExtrinsic<
|
|
4166
4291
|
{
|
|
@@ -4170,7 +4295,7 @@ export interface ChainTx<
|
|
|
4170
4295
|
params: {
|
|
4171
4296
|
delegate: MultiAddressLike;
|
|
4172
4297
|
real: MultiAddressLike;
|
|
4173
|
-
forceProxyType:
|
|
4298
|
+
forceProxyType: PaseoRuntimeConstantsProxyProxyType | undefined;
|
|
4174
4299
|
call: PaseoRuntimeRuntimeCallLike;
|
|
4175
4300
|
};
|
|
4176
4301
|
};
|
|
@@ -4179,6 +4304,29 @@ export interface ChainTx<
|
|
|
4179
4304
|
>
|
|
4180
4305
|
>;
|
|
4181
4306
|
|
|
4307
|
+
/**
|
|
4308
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
4309
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
4310
|
+
*
|
|
4311
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4312
|
+
*
|
|
4313
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4314
|
+
*
|
|
4315
|
+
* Emits `DepositPoked` if successful.
|
|
4316
|
+
*
|
|
4317
|
+
**/
|
|
4318
|
+
pokeDeposit: GenericTxCall<
|
|
4319
|
+
() => ChainSubmittableExtrinsic<
|
|
4320
|
+
{
|
|
4321
|
+
pallet: 'Proxy';
|
|
4322
|
+
palletCall: {
|
|
4323
|
+
name: 'PokeDeposit';
|
|
4324
|
+
};
|
|
4325
|
+
},
|
|
4326
|
+
ChainKnownTypes
|
|
4327
|
+
>
|
|
4328
|
+
>;
|
|
4329
|
+
|
|
4182
4330
|
/**
|
|
4183
4331
|
* Generic pallet tx call
|
|
4184
4332
|
**/
|
|
@@ -4407,6 +4555,42 @@ export interface ChainTx<
|
|
|
4407
4555
|
>
|
|
4408
4556
|
>;
|
|
4409
4557
|
|
|
4558
|
+
/**
|
|
4559
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4560
|
+
*
|
|
4561
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4562
|
+
* the multisig operation.
|
|
4563
|
+
*
|
|
4564
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4565
|
+
*
|
|
4566
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4567
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4568
|
+
* multisig.
|
|
4569
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4570
|
+
*
|
|
4571
|
+
* Emits `DepositPoked` if successful.
|
|
4572
|
+
*
|
|
4573
|
+
* @param {number} threshold
|
|
4574
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
4575
|
+
* @param {FixedBytes<32>} callHash
|
|
4576
|
+
**/
|
|
4577
|
+
pokeDeposit: GenericTxCall<
|
|
4578
|
+
(
|
|
4579
|
+
threshold: number,
|
|
4580
|
+
otherSignatories: Array<AccountId32Like>,
|
|
4581
|
+
callHash: FixedBytes<32>,
|
|
4582
|
+
) => ChainSubmittableExtrinsic<
|
|
4583
|
+
{
|
|
4584
|
+
pallet: 'Multisig';
|
|
4585
|
+
palletCall: {
|
|
4586
|
+
name: 'PokeDeposit';
|
|
4587
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
4588
|
+
};
|
|
4589
|
+
},
|
|
4590
|
+
ChainKnownTypes
|
|
4591
|
+
>
|
|
4592
|
+
>;
|
|
4593
|
+
|
|
4410
4594
|
/**
|
|
4411
4595
|
* Generic pallet tx call
|
|
4412
4596
|
**/
|
|
@@ -4672,6 +4856,72 @@ export interface ChainTx<
|
|
|
4672
4856
|
>
|
|
4673
4857
|
>;
|
|
4674
4858
|
|
|
4859
|
+
/**
|
|
4860
|
+
* Approve bountry and propose a curator simultaneously.
|
|
4861
|
+
* This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
|
|
4862
|
+
*
|
|
4863
|
+
* May only be called from `T::SpendOrigin`.
|
|
4864
|
+
*
|
|
4865
|
+
* - `bounty_id`: Bounty ID to approve.
|
|
4866
|
+
* - `curator`: The curator account whom will manage this bounty.
|
|
4867
|
+
* - `fee`: The curator fee.
|
|
4868
|
+
*
|
|
4869
|
+
* ## Complexity
|
|
4870
|
+
* - O(1).
|
|
4871
|
+
*
|
|
4872
|
+
* @param {number} bountyId
|
|
4873
|
+
* @param {MultiAddressLike} curator
|
|
4874
|
+
* @param {bigint} fee
|
|
4875
|
+
**/
|
|
4876
|
+
approveBountyWithCurator: GenericTxCall<
|
|
4877
|
+
(
|
|
4878
|
+
bountyId: number,
|
|
4879
|
+
curator: MultiAddressLike,
|
|
4880
|
+
fee: bigint,
|
|
4881
|
+
) => ChainSubmittableExtrinsic<
|
|
4882
|
+
{
|
|
4883
|
+
pallet: 'Bounties';
|
|
4884
|
+
palletCall: {
|
|
4885
|
+
name: 'ApproveBountyWithCurator';
|
|
4886
|
+
params: { bountyId: number; curator: MultiAddressLike; fee: bigint };
|
|
4887
|
+
};
|
|
4888
|
+
},
|
|
4889
|
+
ChainKnownTypes
|
|
4890
|
+
>
|
|
4891
|
+
>;
|
|
4892
|
+
|
|
4893
|
+
/**
|
|
4894
|
+
* Poke the deposit reserved for creating a bounty proposal.
|
|
4895
|
+
*
|
|
4896
|
+
* This can be used by accounts to update their reserved amount.
|
|
4897
|
+
*
|
|
4898
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4899
|
+
*
|
|
4900
|
+
* Parameters:
|
|
4901
|
+
* - `bounty_id`: The bounty id for which to adjust the deposit.
|
|
4902
|
+
*
|
|
4903
|
+
* If the deposit is updated, the difference will be reserved/unreserved from the
|
|
4904
|
+
* proposer's account.
|
|
4905
|
+
*
|
|
4906
|
+
* The transaction is made free if the deposit is updated and paid otherwise.
|
|
4907
|
+
*
|
|
4908
|
+
* Emits `DepositPoked` if the deposit is updated.
|
|
4909
|
+
*
|
|
4910
|
+
* @param {number} bountyId
|
|
4911
|
+
**/
|
|
4912
|
+
pokeDeposit: GenericTxCall<
|
|
4913
|
+
(bountyId: number) => ChainSubmittableExtrinsic<
|
|
4914
|
+
{
|
|
4915
|
+
pallet: 'Bounties';
|
|
4916
|
+
palletCall: {
|
|
4917
|
+
name: 'PokeDeposit';
|
|
4918
|
+
params: { bountyId: number };
|
|
4919
|
+
};
|
|
4920
|
+
},
|
|
4921
|
+
ChainKnownTypes
|
|
4922
|
+
>
|
|
4923
|
+
>;
|
|
4924
|
+
|
|
4675
4925
|
/**
|
|
4676
4926
|
* Generic pallet tx call
|
|
4677
4927
|
**/
|
|
@@ -5104,19 +5354,13 @@ export interface ChainTx<
|
|
|
5104
5354
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
5105
5355
|
* calling [`Call::set_emergency_election_result`].
|
|
5106
5356
|
*
|
|
5107
|
-
* @param {number | undefined} maybeMaxVoters
|
|
5108
|
-
* @param {number | undefined} maybeMaxTargets
|
|
5109
5357
|
**/
|
|
5110
5358
|
governanceFallback: GenericTxCall<
|
|
5111
|
-
(
|
|
5112
|
-
maybeMaxVoters: number | undefined,
|
|
5113
|
-
maybeMaxTargets: number | undefined,
|
|
5114
|
-
) => ChainSubmittableExtrinsic<
|
|
5359
|
+
() => ChainSubmittableExtrinsic<
|
|
5115
5360
|
{
|
|
5116
5361
|
pallet: 'ElectionProviderMultiPhase';
|
|
5117
5362
|
palletCall: {
|
|
5118
5363
|
name: 'GovernanceFallback';
|
|
5119
|
-
params: { maybeMaxVoters: number | undefined; maybeMaxTargets: number | undefined };
|
|
5120
5364
|
};
|
|
5121
5365
|
},
|
|
5122
5366
|
ChainKnownTypes
|
|
@@ -5512,13 +5756,13 @@ export interface ChainTx<
|
|
|
5512
5756
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
5513
5757
|
* root role.
|
|
5514
5758
|
*
|
|
5515
|
-
* This directly
|
|
5516
|
-
*
|
|
5759
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
5760
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
5517
5761
|
*
|
|
5518
5762
|
* # Note
|
|
5519
5763
|
*
|
|
5520
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
5521
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
5764
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
5765
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
5522
5766
|
*
|
|
5523
5767
|
* @param {number} poolId
|
|
5524
5768
|
* @param {Array<AccountId32Like>} validators
|
|
@@ -5652,16 +5896,16 @@ export interface ChainTx<
|
|
|
5652
5896
|
* most pool members and they should be informed of changes to pool roles.
|
|
5653
5897
|
*
|
|
5654
5898
|
* @param {number} poolId
|
|
5655
|
-
* @param {
|
|
5656
|
-
* @param {
|
|
5657
|
-
* @param {
|
|
5899
|
+
* @param {PalletNominationPoolsConfigOpAccountId32} newRoot
|
|
5900
|
+
* @param {PalletNominationPoolsConfigOpAccountId32} newNominator
|
|
5901
|
+
* @param {PalletNominationPoolsConfigOpAccountId32} newBouncer
|
|
5658
5902
|
**/
|
|
5659
5903
|
updateRoles: GenericTxCall<
|
|
5660
5904
|
(
|
|
5661
5905
|
poolId: number,
|
|
5662
|
-
newRoot:
|
|
5663
|
-
newNominator:
|
|
5664
|
-
newBouncer:
|
|
5906
|
+
newRoot: PalletNominationPoolsConfigOpAccountId32,
|
|
5907
|
+
newNominator: PalletNominationPoolsConfigOpAccountId32,
|
|
5908
|
+
newBouncer: PalletNominationPoolsConfigOpAccountId32,
|
|
5665
5909
|
) => ChainSubmittableExtrinsic<
|
|
5666
5910
|
{
|
|
5667
5911
|
pallet: 'NominationPools';
|
|
@@ -5669,9 +5913,9 @@ export interface ChainTx<
|
|
|
5669
5913
|
name: 'UpdateRoles';
|
|
5670
5914
|
params: {
|
|
5671
5915
|
poolId: number;
|
|
5672
|
-
newRoot:
|
|
5673
|
-
newNominator:
|
|
5674
|
-
newBouncer:
|
|
5916
|
+
newRoot: PalletNominationPoolsConfigOpAccountId32;
|
|
5917
|
+
newNominator: PalletNominationPoolsConfigOpAccountId32;
|
|
5918
|
+
newBouncer: PalletNominationPoolsConfigOpAccountId32;
|
|
5675
5919
|
};
|
|
5676
5920
|
};
|
|
5677
5921
|
},
|
|
@@ -5685,6 +5929,9 @@ export interface ChainTx<
|
|
|
5685
5929
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
5686
5930
|
* root role, same as [`Pallet::nominate`].
|
|
5687
5931
|
*
|
|
5932
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
5933
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
5934
|
+
*
|
|
5688
5935
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
5689
5936
|
* account).
|
|
5690
5937
|
*
|
|
@@ -5693,9 +5940,7 @@ export interface ChainTx<
|
|
|
5693
5940
|
* are unable to unbond.
|
|
5694
5941
|
*
|
|
5695
5942
|
* # Conditions for permissioned dispatch:
|
|
5696
|
-
* * The caller
|
|
5697
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
5698
|
-
* account.
|
|
5943
|
+
* * The caller is the pool's nominator or root.
|
|
5699
5944
|
*
|
|
5700
5945
|
* @param {number} poolId
|
|
5701
5946
|
**/
|
|
@@ -5867,9 +6112,20 @@ export interface ChainTx<
|
|
|
5867
6112
|
/**
|
|
5868
6113
|
* Claim pending commission.
|
|
5869
6114
|
*
|
|
5870
|
-
* The
|
|
5871
|
-
*
|
|
5872
|
-
*
|
|
6115
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
6116
|
+
*
|
|
6117
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
6118
|
+
* trigger the process of claiming the pool's commission.
|
|
6119
|
+
*
|
|
6120
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
6121
|
+
* accounts
|
|
6122
|
+
* * `acc`, and
|
|
6123
|
+
* * the pool's root account
|
|
6124
|
+
*
|
|
6125
|
+
* may call this extrinsic on behalf of the pool.
|
|
6126
|
+
*
|
|
6127
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
6128
|
+
* The total pending commission is reset to zero.
|
|
5873
6129
|
*
|
|
5874
6130
|
* @param {number} poolId
|
|
5875
6131
|
**/
|
|
@@ -6132,21 +6388,20 @@ export interface ChainTx<
|
|
|
6132
6388
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
6133
6389
|
};
|
|
6134
6390
|
/**
|
|
6135
|
-
* Pallet `
|
|
6391
|
+
* Pallet `StakingAhClient`'s transaction calls
|
|
6136
6392
|
**/
|
|
6137
|
-
|
|
6393
|
+
stakingAhClient: {
|
|
6138
6394
|
/**
|
|
6139
|
-
* Set the validation upgrade cooldown.
|
|
6140
6395
|
*
|
|
6141
|
-
* @param {
|
|
6396
|
+
* @param {PalletStakingAsyncRcClientValidatorSetReport} report
|
|
6142
6397
|
**/
|
|
6143
|
-
|
|
6144
|
-
(
|
|
6398
|
+
validatorSet: GenericTxCall<
|
|
6399
|
+
(report: PalletStakingAsyncRcClientValidatorSetReport) => ChainSubmittableExtrinsic<
|
|
6145
6400
|
{
|
|
6146
|
-
pallet: '
|
|
6401
|
+
pallet: 'StakingAhClient';
|
|
6147
6402
|
palletCall: {
|
|
6148
|
-
name: '
|
|
6149
|
-
params: {
|
|
6403
|
+
name: 'ValidatorSet';
|
|
6404
|
+
params: { report: PalletStakingAsyncRcClientValidatorSetReport };
|
|
6150
6405
|
};
|
|
6151
6406
|
},
|
|
6152
6407
|
ChainKnownTypes
|
|
@@ -6154,17 +6409,17 @@ export interface ChainTx<
|
|
|
6154
6409
|
>;
|
|
6155
6410
|
|
|
6156
6411
|
/**
|
|
6157
|
-
*
|
|
6412
|
+
* Allows governance to force set the operating mode of the pallet.
|
|
6158
6413
|
*
|
|
6159
|
-
* @param {
|
|
6414
|
+
* @param {PalletStakingAsyncAhClientOperatingMode} mode
|
|
6160
6415
|
**/
|
|
6161
|
-
|
|
6162
|
-
(
|
|
6416
|
+
setMode: GenericTxCall<
|
|
6417
|
+
(mode: PalletStakingAsyncAhClientOperatingMode) => ChainSubmittableExtrinsic<
|
|
6163
6418
|
{
|
|
6164
|
-
pallet: '
|
|
6419
|
+
pallet: 'StakingAhClient';
|
|
6165
6420
|
palletCall: {
|
|
6166
|
-
name: '
|
|
6167
|
-
params: {
|
|
6421
|
+
name: 'SetMode';
|
|
6422
|
+
params: { mode: PalletStakingAsyncAhClientOperatingMode };
|
|
6168
6423
|
};
|
|
6169
6424
|
},
|
|
6170
6425
|
ChainKnownTypes
|
|
@@ -6172,17 +6427,15 @@ export interface ChainTx<
|
|
|
6172
6427
|
>;
|
|
6173
6428
|
|
|
6174
6429
|
/**
|
|
6175
|
-
*
|
|
6430
|
+
* manually do what this pallet was meant to do at the end of the migration.
|
|
6176
6431
|
*
|
|
6177
|
-
* @param {number} new_
|
|
6178
6432
|
**/
|
|
6179
|
-
|
|
6180
|
-
(
|
|
6433
|
+
forceOnMigrationEnd: GenericTxCall<
|
|
6434
|
+
() => ChainSubmittableExtrinsic<
|
|
6181
6435
|
{
|
|
6182
|
-
pallet: '
|
|
6436
|
+
pallet: 'StakingAhClient';
|
|
6183
6437
|
palletCall: {
|
|
6184
|
-
name: '
|
|
6185
|
-
params: { new: number };
|
|
6438
|
+
name: 'ForceOnMigrationEnd';
|
|
6186
6439
|
};
|
|
6187
6440
|
},
|
|
6188
6441
|
ChainKnownTypes
|
|
@@ -6190,16 +6443,25 @@ export interface ChainTx<
|
|
|
6190
6443
|
>;
|
|
6191
6444
|
|
|
6192
6445
|
/**
|
|
6193
|
-
*
|
|
6446
|
+
* Generic pallet tx call
|
|
6447
|
+
**/
|
|
6448
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
6449
|
+
};
|
|
6450
|
+
/**
|
|
6451
|
+
* Pallet `Configuration`'s transaction calls
|
|
6452
|
+
**/
|
|
6453
|
+
configuration: {
|
|
6454
|
+
/**
|
|
6455
|
+
* Set the validation upgrade cooldown.
|
|
6194
6456
|
*
|
|
6195
6457
|
* @param {number} new_
|
|
6196
6458
|
**/
|
|
6197
|
-
|
|
6459
|
+
setValidationUpgradeCooldown: GenericTxCall<
|
|
6198
6460
|
(new_: number) => ChainSubmittableExtrinsic<
|
|
6199
6461
|
{
|
|
6200
6462
|
pallet: 'Configuration';
|
|
6201
6463
|
palletCall: {
|
|
6202
|
-
name: '
|
|
6464
|
+
name: 'SetValidationUpgradeCooldown';
|
|
6203
6465
|
params: { new: number };
|
|
6204
6466
|
};
|
|
6205
6467
|
},
|
|
@@ -6208,16 +6470,16 @@ export interface ChainTx<
|
|
|
6208
6470
|
>;
|
|
6209
6471
|
|
|
6210
6472
|
/**
|
|
6211
|
-
* Set the
|
|
6473
|
+
* Set the validation upgrade delay.
|
|
6212
6474
|
*
|
|
6213
6475
|
* @param {number} new_
|
|
6214
6476
|
**/
|
|
6215
|
-
|
|
6477
|
+
setValidationUpgradeDelay: GenericTxCall<
|
|
6216
6478
|
(new_: number) => ChainSubmittableExtrinsic<
|
|
6217
6479
|
{
|
|
6218
6480
|
pallet: 'Configuration';
|
|
6219
6481
|
palletCall: {
|
|
6220
|
-
name: '
|
|
6482
|
+
name: 'SetValidationUpgradeDelay';
|
|
6221
6483
|
params: { new: number };
|
|
6222
6484
|
};
|
|
6223
6485
|
},
|
|
@@ -6226,16 +6488,16 @@ export interface ChainTx<
|
|
|
6226
6488
|
>;
|
|
6227
6489
|
|
|
6228
6490
|
/**
|
|
6229
|
-
* Set the
|
|
6491
|
+
* Set the acceptance period for an included candidate.
|
|
6230
6492
|
*
|
|
6231
6493
|
* @param {number} new_
|
|
6232
6494
|
**/
|
|
6233
|
-
|
|
6495
|
+
setCodeRetentionPeriod: GenericTxCall<
|
|
6234
6496
|
(new_: number) => ChainSubmittableExtrinsic<
|
|
6235
6497
|
{
|
|
6236
6498
|
pallet: 'Configuration';
|
|
6237
6499
|
palletCall: {
|
|
6238
|
-
name: '
|
|
6500
|
+
name: 'SetCodeRetentionPeriod';
|
|
6239
6501
|
params: { new: number };
|
|
6240
6502
|
};
|
|
6241
6503
|
},
|
|
@@ -6244,19 +6506,34 @@ export interface ChainTx<
|
|
|
6244
6506
|
>;
|
|
6245
6507
|
|
|
6246
6508
|
/**
|
|
6247
|
-
* Set the
|
|
6509
|
+
* Set the max validation code size for incoming upgrades.
|
|
6248
6510
|
*
|
|
6249
|
-
*
|
|
6250
|
-
|
|
6511
|
+
* @param {number} new_
|
|
6512
|
+
**/
|
|
6513
|
+
setMaxCodeSize: GenericTxCall<
|
|
6514
|
+
(new_: number) => ChainSubmittableExtrinsic<
|
|
6515
|
+
{
|
|
6516
|
+
pallet: 'Configuration';
|
|
6517
|
+
palletCall: {
|
|
6518
|
+
name: 'SetMaxCodeSize';
|
|
6519
|
+
params: { new: number };
|
|
6520
|
+
};
|
|
6521
|
+
},
|
|
6522
|
+
ChainKnownTypes
|
|
6523
|
+
>
|
|
6524
|
+
>;
|
|
6525
|
+
|
|
6526
|
+
/**
|
|
6527
|
+
* Set the max POV block size for incoming upgrades.
|
|
6251
6528
|
*
|
|
6252
6529
|
* @param {number} new_
|
|
6253
6530
|
**/
|
|
6254
|
-
|
|
6531
|
+
setMaxPovSize: GenericTxCall<
|
|
6255
6532
|
(new_: number) => ChainSubmittableExtrinsic<
|
|
6256
6533
|
{
|
|
6257
6534
|
pallet: 'Configuration';
|
|
6258
6535
|
palletCall: {
|
|
6259
|
-
name: '
|
|
6536
|
+
name: 'SetMaxPovSize';
|
|
6260
6537
|
params: { new: number };
|
|
6261
6538
|
};
|
|
6262
6539
|
},
|
|
@@ -6265,16 +6542,37 @@ export interface ChainTx<
|
|
|
6265
6542
|
>;
|
|
6266
6543
|
|
|
6267
6544
|
/**
|
|
6268
|
-
* Set the max
|
|
6545
|
+
* Set the max head data size for paras.
|
|
6269
6546
|
*
|
|
6270
6547
|
* @param {number} new_
|
|
6271
6548
|
**/
|
|
6272
|
-
|
|
6549
|
+
setMaxHeadDataSize: GenericTxCall<
|
|
6273
6550
|
(new_: number) => ChainSubmittableExtrinsic<
|
|
6274
6551
|
{
|
|
6275
6552
|
pallet: 'Configuration';
|
|
6276
6553
|
palletCall: {
|
|
6277
|
-
name: '
|
|
6554
|
+
name: 'SetMaxHeadDataSize';
|
|
6555
|
+
params: { new: number };
|
|
6556
|
+
};
|
|
6557
|
+
},
|
|
6558
|
+
ChainKnownTypes
|
|
6559
|
+
>
|
|
6560
|
+
>;
|
|
6561
|
+
|
|
6562
|
+
/**
|
|
6563
|
+
* Set the number of coretime execution cores.
|
|
6564
|
+
*
|
|
6565
|
+
* NOTE: that this configuration is managed by the coretime chain. Only manually change
|
|
6566
|
+
* this, if you really know what you are doing!
|
|
6567
|
+
*
|
|
6568
|
+
* @param {number} new_
|
|
6569
|
+
**/
|
|
6570
|
+
setCoretimeCores: GenericTxCall<
|
|
6571
|
+
(new_: number) => ChainSubmittableExtrinsic<
|
|
6572
|
+
{
|
|
6573
|
+
pallet: 'Configuration';
|
|
6574
|
+
palletCall: {
|
|
6575
|
+
name: 'SetCoretimeCores';
|
|
6278
6576
|
params: { new: number };
|
|
6279
6577
|
};
|
|
6280
6578
|
},
|
|
@@ -6919,24 +7217,6 @@ export interface ChainTx<
|
|
|
6919
7217
|
>
|
|
6920
7218
|
>;
|
|
6921
7219
|
|
|
6922
|
-
/**
|
|
6923
|
-
* Set the on demand (parathreads) ttl in the claimqueue.
|
|
6924
|
-
*
|
|
6925
|
-
* @param {number} new_
|
|
6926
|
-
**/
|
|
6927
|
-
setOnDemandTtl: GenericTxCall<
|
|
6928
|
-
(new_: number) => ChainSubmittableExtrinsic<
|
|
6929
|
-
{
|
|
6930
|
-
pallet: 'Configuration';
|
|
6931
|
-
palletCall: {
|
|
6932
|
-
name: 'SetOnDemandTtl';
|
|
6933
|
-
params: { new: number };
|
|
6934
|
-
};
|
|
6935
|
-
},
|
|
6936
|
-
ChainKnownTypes
|
|
6937
|
-
>
|
|
6938
|
-
>;
|
|
6939
|
-
|
|
6940
7220
|
/**
|
|
6941
7221
|
* Set the minimum backing votes threshold.
|
|
6942
7222
|
*
|
|
@@ -7043,15 +7323,15 @@ export interface ChainTx<
|
|
|
7043
7323
|
/**
|
|
7044
7324
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
7045
7325
|
*
|
|
7046
|
-
* @param {
|
|
7326
|
+
* @param {PolkadotPrimitivesVstagingInherentData} data
|
|
7047
7327
|
**/
|
|
7048
7328
|
enter: GenericTxCall<
|
|
7049
|
-
(data:
|
|
7329
|
+
(data: PolkadotPrimitivesVstagingInherentData) => ChainSubmittableExtrinsic<
|
|
7050
7330
|
{
|
|
7051
7331
|
pallet: 'ParaInherent';
|
|
7052
7332
|
palletCall: {
|
|
7053
7333
|
name: 'Enter';
|
|
7054
|
-
params: { data:
|
|
7334
|
+
params: { data: PolkadotPrimitivesVstagingInherentData };
|
|
7055
7335
|
};
|
|
7056
7336
|
},
|
|
7057
7337
|
ChainKnownTypes
|
|
@@ -7291,6 +7571,91 @@ export interface ChainTx<
|
|
|
7291
7571
|
>
|
|
7292
7572
|
>;
|
|
7293
7573
|
|
|
7574
|
+
/**
|
|
7575
|
+
* Remove an upgrade cooldown for a parachain.
|
|
7576
|
+
*
|
|
7577
|
+
* The cost for removing the cooldown earlier depends on the time left for the cooldown
|
|
7578
|
+
* multiplied by [`Config::CooldownRemovalMultiplier`]. The paid tokens are burned.
|
|
7579
|
+
*
|
|
7580
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
7581
|
+
**/
|
|
7582
|
+
removeUpgradeCooldown: GenericTxCall<
|
|
7583
|
+
(para: PolkadotParachainPrimitivesPrimitivesId) => ChainSubmittableExtrinsic<
|
|
7584
|
+
{
|
|
7585
|
+
pallet: 'Paras';
|
|
7586
|
+
palletCall: {
|
|
7587
|
+
name: 'RemoveUpgradeCooldown';
|
|
7588
|
+
params: { para: PolkadotParachainPrimitivesPrimitivesId };
|
|
7589
|
+
};
|
|
7590
|
+
},
|
|
7591
|
+
ChainKnownTypes
|
|
7592
|
+
>
|
|
7593
|
+
>;
|
|
7594
|
+
|
|
7595
|
+
/**
|
|
7596
|
+
* Sets the storage for the authorized current code hash of the parachain.
|
|
7597
|
+
* If not applied, it will be removed at the `System::block_number() + valid_period` block.
|
|
7598
|
+
*
|
|
7599
|
+
* This can be useful, when triggering `Paras::force_set_current_code(para, code)`
|
|
7600
|
+
* from a different chain than the one where the `Paras` pallet is deployed.
|
|
7601
|
+
*
|
|
7602
|
+
* The main purpose is to avoid transferring the entire `code` Wasm blob between chains.
|
|
7603
|
+
* Instead, we authorize `code_hash` with `root`, which can later be applied by
|
|
7604
|
+
* `Paras::apply_authorized_force_set_current_code(para, code)` by anyone.
|
|
7605
|
+
*
|
|
7606
|
+
* Authorizations are stored in an **overwriting manner**.
|
|
7607
|
+
*
|
|
7608
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
7609
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} newCodeHash
|
|
7610
|
+
* @param {number} validPeriod
|
|
7611
|
+
**/
|
|
7612
|
+
authorizeForceSetCurrentCodeHash: GenericTxCall<
|
|
7613
|
+
(
|
|
7614
|
+
para: PolkadotParachainPrimitivesPrimitivesId,
|
|
7615
|
+
newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
7616
|
+
validPeriod: number,
|
|
7617
|
+
) => ChainSubmittableExtrinsic<
|
|
7618
|
+
{
|
|
7619
|
+
pallet: 'Paras';
|
|
7620
|
+
palletCall: {
|
|
7621
|
+
name: 'AuthorizeForceSetCurrentCodeHash';
|
|
7622
|
+
params: {
|
|
7623
|
+
para: PolkadotParachainPrimitivesPrimitivesId;
|
|
7624
|
+
newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
|
|
7625
|
+
validPeriod: number;
|
|
7626
|
+
};
|
|
7627
|
+
};
|
|
7628
|
+
},
|
|
7629
|
+
ChainKnownTypes
|
|
7630
|
+
>
|
|
7631
|
+
>;
|
|
7632
|
+
|
|
7633
|
+
/**
|
|
7634
|
+
* Applies the already authorized current code for the parachain,
|
|
7635
|
+
* triggering the same functionality as `force_set_current_code`.
|
|
7636
|
+
*
|
|
7637
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para
|
|
7638
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCode} newCode
|
|
7639
|
+
**/
|
|
7640
|
+
applyAuthorizedForceSetCurrentCode: GenericTxCall<
|
|
7641
|
+
(
|
|
7642
|
+
para: PolkadotParachainPrimitivesPrimitivesId,
|
|
7643
|
+
newCode: PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
7644
|
+
) => ChainSubmittableExtrinsic<
|
|
7645
|
+
{
|
|
7646
|
+
pallet: 'Paras';
|
|
7647
|
+
palletCall: {
|
|
7648
|
+
name: 'ApplyAuthorizedForceSetCurrentCode';
|
|
7649
|
+
params: {
|
|
7650
|
+
para: PolkadotParachainPrimitivesPrimitivesId;
|
|
7651
|
+
newCode: PolkadotParachainPrimitivesPrimitivesValidationCode;
|
|
7652
|
+
};
|
|
7653
|
+
};
|
|
7654
|
+
},
|
|
7655
|
+
ChainKnownTypes
|
|
7656
|
+
>
|
|
7657
|
+
>;
|
|
7658
|
+
|
|
7294
7659
|
/**
|
|
7295
7660
|
* Generic pallet tx call
|
|
7296
7661
|
**/
|
|
@@ -7680,19 +8045,19 @@ export interface ChainTx<
|
|
|
7680
8045
|
parasSlashing: {
|
|
7681
8046
|
/**
|
|
7682
8047
|
*
|
|
7683
|
-
* @param {
|
|
8048
|
+
* @param {PolkadotPrimitivesVstagingDisputeProof} disputeProof
|
|
7684
8049
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
7685
8050
|
**/
|
|
7686
8051
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
7687
8052
|
(
|
|
7688
|
-
disputeProof:
|
|
8053
|
+
disputeProof: PolkadotPrimitivesVstagingDisputeProof,
|
|
7689
8054
|
keyOwnerProof: SpSessionMembershipProof,
|
|
7690
8055
|
) => ChainSubmittableExtrinsic<
|
|
7691
8056
|
{
|
|
7692
8057
|
pallet: 'ParasSlashing';
|
|
7693
8058
|
palletCall: {
|
|
7694
8059
|
name: 'ReportDisputeLostUnsigned';
|
|
7695
|
-
params: { disputeProof:
|
|
8060
|
+
params: { disputeProof: PolkadotPrimitivesVstagingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
7696
8061
|
};
|
|
7697
8062
|
},
|
|
7698
8063
|
ChainKnownTypes
|
|
@@ -7727,6 +8092,8 @@ export interface ChainTx<
|
|
|
7727
8092
|
*
|
|
7728
8093
|
* @param {bigint} maxAmount
|
|
7729
8094
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8095
|
+
*
|
|
8096
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
7730
8097
|
**/
|
|
7731
8098
|
placeOrderAllowDeath: GenericTxCall<
|
|
7732
8099
|
(
|
|
@@ -7763,6 +8130,8 @@ export interface ChainTx<
|
|
|
7763
8130
|
*
|
|
7764
8131
|
* @param {bigint} maxAmount
|
|
7765
8132
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8133
|
+
*
|
|
8134
|
+
* @deprecated This will be removed in favor of using `place_order_with_credits`
|
|
7766
8135
|
**/
|
|
7767
8136
|
placeOrderKeepAlive: GenericTxCall<
|
|
7768
8137
|
(
|
|
@@ -7780,6 +8149,44 @@ export interface ChainTx<
|
|
|
7780
8149
|
>
|
|
7781
8150
|
>;
|
|
7782
8151
|
|
|
8152
|
+
/**
|
|
8153
|
+
* Create a single on demand core order with credits.
|
|
8154
|
+
* Will charge the owner's on-demand credit account the spot price for the current block.
|
|
8155
|
+
*
|
|
8156
|
+
* Parameters:
|
|
8157
|
+
* - `origin`: The sender of the call, on-demand credits will be withdrawn from this
|
|
8158
|
+
* account.
|
|
8159
|
+
* - `max_amount`: The maximum number of credits to spend from the origin to place an
|
|
8160
|
+
* order.
|
|
8161
|
+
* - `para_id`: A `ParaId` the origin wants to provide blockspace for.
|
|
8162
|
+
*
|
|
8163
|
+
* Errors:
|
|
8164
|
+
* - `InsufficientCredits`
|
|
8165
|
+
* - `QueueFull`
|
|
8166
|
+
* - `SpotPriceHigherThanMaxAmount`
|
|
8167
|
+
*
|
|
8168
|
+
* Events:
|
|
8169
|
+
* - `OnDemandOrderPlaced`
|
|
8170
|
+
*
|
|
8171
|
+
* @param {bigint} maxAmount
|
|
8172
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8173
|
+
**/
|
|
8174
|
+
placeOrderWithCredits: GenericTxCall<
|
|
8175
|
+
(
|
|
8176
|
+
maxAmount: bigint,
|
|
8177
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
8178
|
+
) => ChainSubmittableExtrinsic<
|
|
8179
|
+
{
|
|
8180
|
+
pallet: 'OnDemand';
|
|
8181
|
+
palletCall: {
|
|
8182
|
+
name: 'PlaceOrderWithCredits';
|
|
8183
|
+
params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId };
|
|
8184
|
+
};
|
|
8185
|
+
},
|
|
8186
|
+
ChainKnownTypes
|
|
8187
|
+
>
|
|
8188
|
+
>;
|
|
8189
|
+
|
|
7783
8190
|
/**
|
|
7784
8191
|
* Generic pallet tx call
|
|
7785
8192
|
**/
|
|
@@ -8576,6 +8983,27 @@ export interface ChainTx<
|
|
|
8576
8983
|
>
|
|
8577
8984
|
>;
|
|
8578
8985
|
|
|
8986
|
+
/**
|
|
8987
|
+
*
|
|
8988
|
+
* @param {AccountId32Like} who
|
|
8989
|
+
* @param {bigint} amount
|
|
8990
|
+
**/
|
|
8991
|
+
creditAccount: GenericTxCall<
|
|
8992
|
+
(
|
|
8993
|
+
who: AccountId32Like,
|
|
8994
|
+
amount: bigint,
|
|
8995
|
+
) => ChainSubmittableExtrinsic<
|
|
8996
|
+
{
|
|
8997
|
+
pallet: 'Coretime';
|
|
8998
|
+
palletCall: {
|
|
8999
|
+
name: 'CreditAccount';
|
|
9000
|
+
params: { who: AccountId32Like; amount: bigint };
|
|
9001
|
+
};
|
|
9002
|
+
},
|
|
9003
|
+
ChainKnownTypes
|
|
9004
|
+
>
|
|
9005
|
+
>;
|
|
9006
|
+
|
|
8579
9007
|
/**
|
|
8580
9008
|
* Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
|
|
8581
9009
|
* to be used.
|
|
@@ -8852,6 +9280,8 @@ export interface ChainTx<
|
|
|
8852
9280
|
* @param {XcmVersionedLocation} beneficiary
|
|
8853
9281
|
* @param {XcmVersionedAssets} assets
|
|
8854
9282
|
* @param {number} feeAssetItem
|
|
9283
|
+
*
|
|
9284
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
8855
9285
|
**/
|
|
8856
9286
|
teleportAssets: GenericTxCall<
|
|
8857
9287
|
(
|
|
@@ -8912,6 +9342,8 @@ export interface ChainTx<
|
|
|
8912
9342
|
* @param {XcmVersionedLocation} beneficiary
|
|
8913
9343
|
* @param {XcmVersionedAssets} assets
|
|
8914
9344
|
* @param {number} feeAssetItem
|
|
9345
|
+
*
|
|
9346
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
8915
9347
|
**/
|
|
8916
9348
|
reserveTransferAssets: GenericTxCall<
|
|
8917
9349
|
(
|
|
@@ -8973,19 +9405,19 @@ export interface ChainTx<
|
|
|
8973
9405
|
* - `location`: The destination that is being described.
|
|
8974
9406
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
8975
9407
|
*
|
|
8976
|
-
* @param {
|
|
9408
|
+
* @param {StagingXcmV5Location} location
|
|
8977
9409
|
* @param {number} version
|
|
8978
9410
|
**/
|
|
8979
9411
|
forceXcmVersion: GenericTxCall<
|
|
8980
9412
|
(
|
|
8981
|
-
location:
|
|
9413
|
+
location: StagingXcmV5Location,
|
|
8982
9414
|
version: number,
|
|
8983
9415
|
) => ChainSubmittableExtrinsic<
|
|
8984
9416
|
{
|
|
8985
9417
|
pallet: 'XcmPallet';
|
|
8986
9418
|
palletCall: {
|
|
8987
9419
|
name: 'ForceXcmVersion';
|
|
8988
|
-
params: { location:
|
|
9420
|
+
params: { location: StagingXcmV5Location; version: number };
|
|
8989
9421
|
};
|
|
8990
9422
|
},
|
|
8991
9423
|
ChainKnownTypes
|
|
@@ -9373,6 +9805,74 @@ export interface ChainTx<
|
|
|
9373
9805
|
>
|
|
9374
9806
|
>;
|
|
9375
9807
|
|
|
9808
|
+
/**
|
|
9809
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
9810
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
9811
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
9812
|
+
* `expiry` block number.
|
|
9813
|
+
*
|
|
9814
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
9815
|
+
* also under your control (like your account on another chain).
|
|
9816
|
+
*
|
|
9817
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
9818
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
9819
|
+
* `origin` in XCM programs executed on the local chain.
|
|
9820
|
+
*
|
|
9821
|
+
* @param {XcmVersionedLocation} aliaser
|
|
9822
|
+
* @param {bigint | undefined} expires
|
|
9823
|
+
**/
|
|
9824
|
+
addAuthorizedAlias: GenericTxCall<
|
|
9825
|
+
(
|
|
9826
|
+
aliaser: XcmVersionedLocation,
|
|
9827
|
+
expires: bigint | undefined,
|
|
9828
|
+
) => ChainSubmittableExtrinsic<
|
|
9829
|
+
{
|
|
9830
|
+
pallet: 'XcmPallet';
|
|
9831
|
+
palletCall: {
|
|
9832
|
+
name: 'AddAuthorizedAlias';
|
|
9833
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
9834
|
+
};
|
|
9835
|
+
},
|
|
9836
|
+
ChainKnownTypes
|
|
9837
|
+
>
|
|
9838
|
+
>;
|
|
9839
|
+
|
|
9840
|
+
/**
|
|
9841
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
9842
|
+
* the local `origin` making this call.
|
|
9843
|
+
*
|
|
9844
|
+
* @param {XcmVersionedLocation} aliaser
|
|
9845
|
+
**/
|
|
9846
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
9847
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
9848
|
+
{
|
|
9849
|
+
pallet: 'XcmPallet';
|
|
9850
|
+
palletCall: {
|
|
9851
|
+
name: 'RemoveAuthorizedAlias';
|
|
9852
|
+
params: { aliaser: XcmVersionedLocation };
|
|
9853
|
+
};
|
|
9854
|
+
},
|
|
9855
|
+
ChainKnownTypes
|
|
9856
|
+
>
|
|
9857
|
+
>;
|
|
9858
|
+
|
|
9859
|
+
/**
|
|
9860
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
9861
|
+
* making this call.
|
|
9862
|
+
*
|
|
9863
|
+
**/
|
|
9864
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
9865
|
+
() => ChainSubmittableExtrinsic<
|
|
9866
|
+
{
|
|
9867
|
+
pallet: 'XcmPallet';
|
|
9868
|
+
palletCall: {
|
|
9869
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
9870
|
+
};
|
|
9871
|
+
},
|
|
9872
|
+
ChainKnownTypes
|
|
9873
|
+
>
|
|
9874
|
+
>;
|
|
9875
|
+
|
|
9376
9876
|
/**
|
|
9377
9877
|
* Generic pallet tx call
|
|
9378
9878
|
**/
|
|
@@ -9990,6 +10490,353 @@ export interface ChainTx<
|
|
|
9990
10490
|
>
|
|
9991
10491
|
>;
|
|
9992
10492
|
|
|
10493
|
+
/**
|
|
10494
|
+
* Generic pallet tx call
|
|
10495
|
+
**/
|
|
10496
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
10497
|
+
};
|
|
10498
|
+
/**
|
|
10499
|
+
* Pallet `RcMigrator`'s transaction calls
|
|
10500
|
+
**/
|
|
10501
|
+
rcMigrator: {
|
|
10502
|
+
/**
|
|
10503
|
+
* Set the migration stage.
|
|
10504
|
+
*
|
|
10505
|
+
* This call is intended for emergency use only and is guarded by the
|
|
10506
|
+
* [`Config::AdminOrigin`].
|
|
10507
|
+
*
|
|
10508
|
+
* @param {PalletRcMigratorMigrationStage} stage
|
|
10509
|
+
**/
|
|
10510
|
+
forceSetStage: GenericTxCall<
|
|
10511
|
+
(stage: PalletRcMigratorMigrationStage) => ChainSubmittableExtrinsic<
|
|
10512
|
+
{
|
|
10513
|
+
pallet: 'RcMigrator';
|
|
10514
|
+
palletCall: {
|
|
10515
|
+
name: 'ForceSetStage';
|
|
10516
|
+
params: { stage: PalletRcMigratorMigrationStage };
|
|
10517
|
+
};
|
|
10518
|
+
},
|
|
10519
|
+
ChainKnownTypes
|
|
10520
|
+
>
|
|
10521
|
+
>;
|
|
10522
|
+
|
|
10523
|
+
/**
|
|
10524
|
+
* Schedule the migration to start at a given moment.
|
|
10525
|
+
*
|
|
10526
|
+
* ### Parameters:
|
|
10527
|
+
* - `start`: The block number at which the migration will start. `DispatchTime` calculated
|
|
10528
|
+
* at the moment of the extrinsic execution.
|
|
10529
|
+
* - `warm_up`: Duration or timepoint that will be used to prepare for the migration. Calls
|
|
10530
|
+
* are filtered during this period. It is intended to give enough time for UMP and DMP
|
|
10531
|
+
* queues to empty. `DispatchTime` calculated at the moment of the transition to the
|
|
10532
|
+
* warm-up stage.
|
|
10533
|
+
* - `cool_off`: The block number at which the post migration cool-off period will end. The
|
|
10534
|
+
* `DispatchTime` calculated at the moment of the transition to the cool-off stage.
|
|
10535
|
+
* - `unsafe_ignore_staking_lock_check`: ONLY FOR TESTING. Ignore the check whether the
|
|
10536
|
+
* scheduled time point is far enough in the future.
|
|
10537
|
+
*
|
|
10538
|
+
* Note: If the staking election for next era is already complete, and the next
|
|
10539
|
+
* validator set is queued in `pallet-session`, we want to avoid starting the data
|
|
10540
|
+
* migration at this point as it can lead to some missed validator rewards. To address
|
|
10541
|
+
* this, we stop staking election at the start of migration and must wait atleast 1
|
|
10542
|
+
* session (set via warm_up) before starting the data migration.
|
|
10543
|
+
*
|
|
10544
|
+
* Read [`MigrationStage::Scheduled`] documentation for more details.
|
|
10545
|
+
*
|
|
10546
|
+
* @param {FrameSupportScheduleDispatchTime} start
|
|
10547
|
+
* @param {FrameSupportScheduleDispatchTime} warmUp
|
|
10548
|
+
* @param {FrameSupportScheduleDispatchTime} coolOff
|
|
10549
|
+
* @param {boolean} unsafeIgnoreStakingLockCheck
|
|
10550
|
+
**/
|
|
10551
|
+
scheduleMigration: GenericTxCall<
|
|
10552
|
+
(
|
|
10553
|
+
start: FrameSupportScheduleDispatchTime,
|
|
10554
|
+
warmUp: FrameSupportScheduleDispatchTime,
|
|
10555
|
+
coolOff: FrameSupportScheduleDispatchTime,
|
|
10556
|
+
unsafeIgnoreStakingLockCheck: boolean,
|
|
10557
|
+
) => ChainSubmittableExtrinsic<
|
|
10558
|
+
{
|
|
10559
|
+
pallet: 'RcMigrator';
|
|
10560
|
+
palletCall: {
|
|
10561
|
+
name: 'ScheduleMigration';
|
|
10562
|
+
params: {
|
|
10563
|
+
start: FrameSupportScheduleDispatchTime;
|
|
10564
|
+
warmUp: FrameSupportScheduleDispatchTime;
|
|
10565
|
+
coolOff: FrameSupportScheduleDispatchTime;
|
|
10566
|
+
unsafeIgnoreStakingLockCheck: boolean;
|
|
10567
|
+
};
|
|
10568
|
+
};
|
|
10569
|
+
},
|
|
10570
|
+
ChainKnownTypes
|
|
10571
|
+
>
|
|
10572
|
+
>;
|
|
10573
|
+
|
|
10574
|
+
/**
|
|
10575
|
+
* Start the data migration.
|
|
10576
|
+
*
|
|
10577
|
+
* This is typically called by the Asset Hub to indicate it's readiness to receive the
|
|
10578
|
+
* migration data.
|
|
10579
|
+
*
|
|
10580
|
+
**/
|
|
10581
|
+
startDataMigration: GenericTxCall<
|
|
10582
|
+
() => ChainSubmittableExtrinsic<
|
|
10583
|
+
{
|
|
10584
|
+
pallet: 'RcMigrator';
|
|
10585
|
+
palletCall: {
|
|
10586
|
+
name: 'StartDataMigration';
|
|
10587
|
+
};
|
|
10588
|
+
},
|
|
10589
|
+
ChainKnownTypes
|
|
10590
|
+
>
|
|
10591
|
+
>;
|
|
10592
|
+
|
|
10593
|
+
/**
|
|
10594
|
+
* Receive a query response from the Asset Hub for a previously sent xcm message.
|
|
10595
|
+
*
|
|
10596
|
+
* @param {bigint} queryId
|
|
10597
|
+
* @param {StagingXcmV5Response} response
|
|
10598
|
+
**/
|
|
10599
|
+
receiveQueryResponse: GenericTxCall<
|
|
10600
|
+
(
|
|
10601
|
+
queryId: bigint,
|
|
10602
|
+
response: StagingXcmV5Response,
|
|
10603
|
+
) => ChainSubmittableExtrinsic<
|
|
10604
|
+
{
|
|
10605
|
+
pallet: 'RcMigrator';
|
|
10606
|
+
palletCall: {
|
|
10607
|
+
name: 'ReceiveQueryResponse';
|
|
10608
|
+
params: { queryId: bigint; response: StagingXcmV5Response };
|
|
10609
|
+
};
|
|
10610
|
+
},
|
|
10611
|
+
ChainKnownTypes
|
|
10612
|
+
>
|
|
10613
|
+
>;
|
|
10614
|
+
|
|
10615
|
+
/**
|
|
10616
|
+
* Resend a previously sent and unconfirmed XCM message.
|
|
10617
|
+
*
|
|
10618
|
+
* @param {bigint} queryId
|
|
10619
|
+
**/
|
|
10620
|
+
resendXcm: GenericTxCall<
|
|
10621
|
+
(queryId: bigint) => ChainSubmittableExtrinsic<
|
|
10622
|
+
{
|
|
10623
|
+
pallet: 'RcMigrator';
|
|
10624
|
+
palletCall: {
|
|
10625
|
+
name: 'ResendXcm';
|
|
10626
|
+
params: { queryId: bigint };
|
|
10627
|
+
};
|
|
10628
|
+
},
|
|
10629
|
+
ChainKnownTypes
|
|
10630
|
+
>
|
|
10631
|
+
>;
|
|
10632
|
+
|
|
10633
|
+
/**
|
|
10634
|
+
* Set the unprocessed message buffer size.
|
|
10635
|
+
*
|
|
10636
|
+
* `None` means to use the configuration value.
|
|
10637
|
+
*
|
|
10638
|
+
* @param {number | undefined} new_
|
|
10639
|
+
**/
|
|
10640
|
+
setUnprocessedMsgBuffer: GenericTxCall<
|
|
10641
|
+
(new_: number | undefined) => ChainSubmittableExtrinsic<
|
|
10642
|
+
{
|
|
10643
|
+
pallet: 'RcMigrator';
|
|
10644
|
+
palletCall: {
|
|
10645
|
+
name: 'SetUnprocessedMsgBuffer';
|
|
10646
|
+
params: { new: number | undefined };
|
|
10647
|
+
};
|
|
10648
|
+
},
|
|
10649
|
+
ChainKnownTypes
|
|
10650
|
+
>
|
|
10651
|
+
>;
|
|
10652
|
+
|
|
10653
|
+
/**
|
|
10654
|
+
* Set the AH UMP queue priority configuration.
|
|
10655
|
+
*
|
|
10656
|
+
* Can only be called by the `AdminOrigin`.
|
|
10657
|
+
*
|
|
10658
|
+
* @param {PalletRcMigratorQueuePriority} new_
|
|
10659
|
+
**/
|
|
10660
|
+
setAhUmpQueuePriority: GenericTxCall<
|
|
10661
|
+
(new_: PalletRcMigratorQueuePriority) => ChainSubmittableExtrinsic<
|
|
10662
|
+
{
|
|
10663
|
+
pallet: 'RcMigrator';
|
|
10664
|
+
palletCall: {
|
|
10665
|
+
name: 'SetAhUmpQueuePriority';
|
|
10666
|
+
params: { new: PalletRcMigratorQueuePriority };
|
|
10667
|
+
};
|
|
10668
|
+
},
|
|
10669
|
+
ChainKnownTypes
|
|
10670
|
+
>
|
|
10671
|
+
>;
|
|
10672
|
+
|
|
10673
|
+
/**
|
|
10674
|
+
* Set the manager account id.
|
|
10675
|
+
*
|
|
10676
|
+
* The manager has the similar to [`Config::AdminOrigin`] privileges except that it
|
|
10677
|
+
* can not set the manager account id via `set_manager` call.
|
|
10678
|
+
*
|
|
10679
|
+
* @param {AccountId32Like | undefined} new_
|
|
10680
|
+
**/
|
|
10681
|
+
setManager: GenericTxCall<
|
|
10682
|
+
(new_: AccountId32Like | undefined) => ChainSubmittableExtrinsic<
|
|
10683
|
+
{
|
|
10684
|
+
pallet: 'RcMigrator';
|
|
10685
|
+
palletCall: {
|
|
10686
|
+
name: 'SetManager';
|
|
10687
|
+
params: { new: AccountId32Like | undefined };
|
|
10688
|
+
};
|
|
10689
|
+
},
|
|
10690
|
+
ChainKnownTypes
|
|
10691
|
+
>
|
|
10692
|
+
>;
|
|
10693
|
+
|
|
10694
|
+
/**
|
|
10695
|
+
* XCM send call identical to the [`pallet_xcm::Pallet::send`] call but with the
|
|
10696
|
+
* [Config::SendXcm] router which will be able to send messages to the Asset Hub during
|
|
10697
|
+
* the migration.
|
|
10698
|
+
*
|
|
10699
|
+
* @param {XcmVersionedLocation} dest
|
|
10700
|
+
* @param {XcmVersionedXcm} message
|
|
10701
|
+
**/
|
|
10702
|
+
sendXcmMessage: GenericTxCall<
|
|
10703
|
+
(
|
|
10704
|
+
dest: XcmVersionedLocation,
|
|
10705
|
+
message: XcmVersionedXcm,
|
|
10706
|
+
) => ChainSubmittableExtrinsic<
|
|
10707
|
+
{
|
|
10708
|
+
pallet: 'RcMigrator';
|
|
10709
|
+
palletCall: {
|
|
10710
|
+
name: 'SendXcmMessage';
|
|
10711
|
+
params: { dest: XcmVersionedLocation; message: XcmVersionedXcm };
|
|
10712
|
+
};
|
|
10713
|
+
},
|
|
10714
|
+
ChainKnownTypes
|
|
10715
|
+
>
|
|
10716
|
+
>;
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* Set the accounts to be preserved on Relay Chain during the migration.
|
|
10720
|
+
*
|
|
10721
|
+
* The accounts must have no consumers references.
|
|
10722
|
+
*
|
|
10723
|
+
* @param {Array<AccountId32Like>} accounts
|
|
10724
|
+
**/
|
|
10725
|
+
preserveAccounts: GenericTxCall<
|
|
10726
|
+
(accounts: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
|
|
10727
|
+
{
|
|
10728
|
+
pallet: 'RcMigrator';
|
|
10729
|
+
palletCall: {
|
|
10730
|
+
name: 'PreserveAccounts';
|
|
10731
|
+
params: { accounts: Array<AccountId32Like> };
|
|
10732
|
+
};
|
|
10733
|
+
},
|
|
10734
|
+
ChainKnownTypes
|
|
10735
|
+
>
|
|
10736
|
+
>;
|
|
10737
|
+
|
|
10738
|
+
/**
|
|
10739
|
+
* Set the canceller account id.
|
|
10740
|
+
*
|
|
10741
|
+
* The canceller can only stop scheduled migration.
|
|
10742
|
+
*
|
|
10743
|
+
* @param {AccountId32Like | undefined} new_
|
|
10744
|
+
**/
|
|
10745
|
+
setCanceller: GenericTxCall<
|
|
10746
|
+
(new_: AccountId32Like | undefined) => ChainSubmittableExtrinsic<
|
|
10747
|
+
{
|
|
10748
|
+
pallet: 'RcMigrator';
|
|
10749
|
+
palletCall: {
|
|
10750
|
+
name: 'SetCanceller';
|
|
10751
|
+
params: { new: AccountId32Like | undefined };
|
|
10752
|
+
};
|
|
10753
|
+
},
|
|
10754
|
+
ChainKnownTypes
|
|
10755
|
+
>
|
|
10756
|
+
>;
|
|
10757
|
+
|
|
10758
|
+
/**
|
|
10759
|
+
* Pause the migration.
|
|
10760
|
+
*
|
|
10761
|
+
**/
|
|
10762
|
+
pauseMigration: GenericTxCall<
|
|
10763
|
+
() => ChainSubmittableExtrinsic<
|
|
10764
|
+
{
|
|
10765
|
+
pallet: 'RcMigrator';
|
|
10766
|
+
palletCall: {
|
|
10767
|
+
name: 'PauseMigration';
|
|
10768
|
+
};
|
|
10769
|
+
},
|
|
10770
|
+
ChainKnownTypes
|
|
10771
|
+
>
|
|
10772
|
+
>;
|
|
10773
|
+
|
|
10774
|
+
/**
|
|
10775
|
+
* Cancel the migration.
|
|
10776
|
+
*
|
|
10777
|
+
* Migration can only be cancelled if it is in the [`MigrationStage::Scheduled`] state.
|
|
10778
|
+
*
|
|
10779
|
+
**/
|
|
10780
|
+
cancelMigration: GenericTxCall<
|
|
10781
|
+
() => ChainSubmittableExtrinsic<
|
|
10782
|
+
{
|
|
10783
|
+
pallet: 'RcMigrator';
|
|
10784
|
+
palletCall: {
|
|
10785
|
+
name: 'CancelMigration';
|
|
10786
|
+
};
|
|
10787
|
+
},
|
|
10788
|
+
ChainKnownTypes
|
|
10789
|
+
>
|
|
10790
|
+
>;
|
|
10791
|
+
|
|
10792
|
+
/**
|
|
10793
|
+
* Vote on behalf of any of the members in `MultisigMembers`.
|
|
10794
|
+
*
|
|
10795
|
+
* Unsigned extrinsic, requiring the `payload` to be signed.
|
|
10796
|
+
*
|
|
10797
|
+
* Upon each call, a new entry is created in `ManagerMultisigs` map the `payload.call` to
|
|
10798
|
+
* be dispatched. Once `MultisigThreshold` is reached, the entire map is deleted, and we
|
|
10799
|
+
* move on to the next round.
|
|
10800
|
+
*
|
|
10801
|
+
* The round system ensures that signatures from older round cannot be reused.
|
|
10802
|
+
*
|
|
10803
|
+
* @param {PalletRcMigratorManagerMultisigVote} payload
|
|
10804
|
+
* @param {SpRuntimeMultiSignature} sig
|
|
10805
|
+
**/
|
|
10806
|
+
voteManagerMultisig: GenericTxCall<
|
|
10807
|
+
(
|
|
10808
|
+
payload: PalletRcMigratorManagerMultisigVote,
|
|
10809
|
+
sig: SpRuntimeMultiSignature,
|
|
10810
|
+
) => ChainSubmittableExtrinsic<
|
|
10811
|
+
{
|
|
10812
|
+
pallet: 'RcMigrator';
|
|
10813
|
+
palletCall: {
|
|
10814
|
+
name: 'VoteManagerMultisig';
|
|
10815
|
+
params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
|
|
10816
|
+
};
|
|
10817
|
+
},
|
|
10818
|
+
ChainKnownTypes
|
|
10819
|
+
>
|
|
10820
|
+
>;
|
|
10821
|
+
|
|
10822
|
+
/**
|
|
10823
|
+
* Set the migration settings. Can only be done by admin or manager.
|
|
10824
|
+
*
|
|
10825
|
+
* @param {PalletRcMigratorMigrationSettings | undefined} settings
|
|
10826
|
+
**/
|
|
10827
|
+
setSettings: GenericTxCall<
|
|
10828
|
+
(settings: PalletRcMigratorMigrationSettings | undefined) => ChainSubmittableExtrinsic<
|
|
10829
|
+
{
|
|
10830
|
+
pallet: 'RcMigrator';
|
|
10831
|
+
palletCall: {
|
|
10832
|
+
name: 'SetSettings';
|
|
10833
|
+
params: { settings: PalletRcMigratorMigrationSettings | undefined };
|
|
10834
|
+
};
|
|
10835
|
+
},
|
|
10836
|
+
ChainKnownTypes
|
|
10837
|
+
>
|
|
10838
|
+
>;
|
|
10839
|
+
|
|
9993
10840
|
/**
|
|
9994
10841
|
* Generic pallet tx call
|
|
9995
10842
|
**/
|