@dedot/chaintypes 0.122.0 → 0.131.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/astar/consts.d.ts +0 -9
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +0 -15
- package/hydration/consts.d.ts +29 -0
- package/hydration/errors.d.ts +172 -10
- package/hydration/events.d.ts +105 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/json-rpc.d.ts +1 -0
- package/hydration/query.d.ts +50 -0
- package/hydration/tx.d.ts +408 -0
- package/hydration/types.d.ts +695 -12
- package/kusama/consts.d.ts +27 -7
- package/kusama/errors.d.ts +51 -4
- package/kusama/events.d.ts +212 -4
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +44 -19
- package/kusama/runtime.d.ts +22 -0
- package/kusama/tx.d.ts +377 -25
- package/kusama/types.d.ts +638 -80
- package/kusama-asset-hub/consts.d.ts +98 -2
- package/kusama-asset-hub/errors.d.ts +314 -12
- package/kusama-asset-hub/events.d.ts +157 -3
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +113 -6
- package/kusama-asset-hub/runtime.d.ts +217 -1
- package/kusama-asset-hub/tx.d.ts +581 -1
- package/kusama-asset-hub/types.d.ts +1086 -26
- package/moonbeam/index.d.ts +1 -1
- package/package.json +2 -2
- package/polkadot/consts.d.ts +23 -5
- package/polkadot/errors.d.ts +51 -4
- package/polkadot/events.d.ts +207 -4
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +44 -19
- package/polkadot/runtime.d.ts +22 -0
- package/polkadot/tx.d.ts +376 -24
- package/polkadot/types.d.ts +630 -78
- package/westend/consts.d.ts +28 -9
- package/westend/errors.d.ts +21 -37
- package/westend/events.d.ts +25 -49
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +40 -70
- package/westend/runtime.d.ts +7 -0
- package/westend/tx.d.ts +77 -124
- package/westend/types.d.ts +228 -328
- package/westend-asset-hub/consts.d.ts +41 -14
- package/westend-asset-hub/errors.d.ts +12 -96
- package/westend-asset-hub/events.d.ts +29 -81
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +61 -125
- package/westend-asset-hub/runtime.d.ts +47 -1
- package/westend-asset-hub/tx.d.ts +97 -549
- package/westend-asset-hub/types.d.ts +489 -958
package/polkadot/runtime.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ import type {
|
|
|
53
53
|
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
54
54
|
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
55
55
|
PolkadotPrimitivesV8CoreIndex,
|
|
56
|
+
PolkadotPrimitivesVstagingAsyncBackingConstraints,
|
|
56
57
|
SpConsensusBeefyValidatorSet,
|
|
57
58
|
SpConsensusBeefyDoubleVotingProof,
|
|
58
59
|
SpRuntimeOpaqueValue,
|
|
@@ -803,6 +804,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
803
804
|
**/
|
|
804
805
|
validationCodeBombLimit: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
805
806
|
|
|
807
|
+
/**
|
|
808
|
+
* Returns the constraints on the actions that can be taken by a new parachain
|
|
809
|
+
* block.
|
|
810
|
+
*
|
|
811
|
+
* @callname: ParachainHost_backing_constraints
|
|
812
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
813
|
+
**/
|
|
814
|
+
backingConstraints: GenericRuntimeApiMethod<
|
|
815
|
+
Rv,
|
|
816
|
+
(
|
|
817
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
818
|
+
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
819
|
+
>;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Retrieve the scheduling lookahead
|
|
823
|
+
*
|
|
824
|
+
* @callname: ParachainHost_scheduling_lookahead
|
|
825
|
+
**/
|
|
826
|
+
schedulingLookahead: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
827
|
+
|
|
806
828
|
/**
|
|
807
829
|
* Generic runtime api call
|
|
808
830
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ import type {
|
|
|
77
77
|
PolkadotPrimitivesV8PvfCheckStatement,
|
|
78
78
|
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
79
79
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
80
|
-
|
|
80
|
+
PolkadotPrimitivesVstagingDisputeProof,
|
|
81
81
|
SpRuntimeMultiSigner,
|
|
82
82
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
83
83
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
@@ -744,7 +744,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
744
744
|
>;
|
|
745
745
|
|
|
746
746
|
/**
|
|
747
|
-
* Ensure that the
|
|
747
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
748
748
|
*
|
|
749
749
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
750
750
|
*
|
|
@@ -1067,6 +1067,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1067
1067
|
>
|
|
1068
1068
|
>;
|
|
1069
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* Poke the deposit reserved for an index.
|
|
1072
|
+
*
|
|
1073
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
1074
|
+
* non-frozen account `index`.
|
|
1075
|
+
*
|
|
1076
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
1077
|
+
*
|
|
1078
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
1079
|
+
*
|
|
1080
|
+
* Emits `DepositPoked` if successful.
|
|
1081
|
+
*
|
|
1082
|
+
* @param {number} index
|
|
1083
|
+
**/
|
|
1084
|
+
pokeDeposit: GenericTxCall<
|
|
1085
|
+
Rv,
|
|
1086
|
+
(index: number) => ChainSubmittableExtrinsic<
|
|
1087
|
+
Rv,
|
|
1088
|
+
{
|
|
1089
|
+
pallet: 'Indices';
|
|
1090
|
+
palletCall: {
|
|
1091
|
+
name: 'PokeDeposit';
|
|
1092
|
+
params: { index: number };
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
>
|
|
1096
|
+
>;
|
|
1097
|
+
|
|
1070
1098
|
/**
|
|
1071
1099
|
* Generic pallet tx call
|
|
1072
1100
|
**/
|
|
@@ -2264,29 +2292,75 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2264
2292
|
>;
|
|
2265
2293
|
|
|
2266
2294
|
/**
|
|
2267
|
-
*
|
|
2295
|
+
* Removes the legacy Staking locks if they exist.
|
|
2296
|
+
*
|
|
2297
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
2298
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
2299
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
2268
2300
|
*
|
|
2269
|
-
*
|
|
2270
|
-
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
2271
|
-
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
2272
|
-
* and the actual stake.
|
|
2301
|
+
* The fee is waived if the migration is successful.
|
|
2273
2302
|
*
|
|
2274
2303
|
* @param {AccountId32Like} stash
|
|
2275
2304
|
**/
|
|
2276
|
-
|
|
2305
|
+
migrateCurrency: GenericTxCall<
|
|
2277
2306
|
Rv,
|
|
2278
2307
|
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
2279
2308
|
Rv,
|
|
2280
2309
|
{
|
|
2281
2310
|
pallet: 'Staking';
|
|
2282
2311
|
palletCall: {
|
|
2283
|
-
name: '
|
|
2312
|
+
name: 'MigrateCurrency';
|
|
2284
2313
|
params: { stash: AccountId32Like };
|
|
2285
2314
|
};
|
|
2286
2315
|
}
|
|
2287
2316
|
>
|
|
2288
2317
|
>;
|
|
2289
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* This function allows governance to manually slash a validator and is a
|
|
2321
|
+
* **fallback mechanism**.
|
|
2322
|
+
*
|
|
2323
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
2324
|
+
*
|
|
2325
|
+
* ## Parameters
|
|
2326
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
2327
|
+
* - `era` - The era in which the validator was in the active set.
|
|
2328
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
2329
|
+
*
|
|
2330
|
+
* ## Behavior
|
|
2331
|
+
*
|
|
2332
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
2333
|
+
* configured `SlashDeferDuration`.
|
|
2334
|
+
*
|
|
2335
|
+
* This means:
|
|
2336
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
2337
|
+
* slash will have no additional effect.
|
|
2338
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
2339
|
+
* will be applied.
|
|
2340
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
2341
|
+
*
|
|
2342
|
+
* @param {AccountId32Like} validatorStash
|
|
2343
|
+
* @param {number} era
|
|
2344
|
+
* @param {Perbill} slashFraction
|
|
2345
|
+
**/
|
|
2346
|
+
manualSlash: GenericTxCall<
|
|
2347
|
+
Rv,
|
|
2348
|
+
(
|
|
2349
|
+
validatorStash: AccountId32Like,
|
|
2350
|
+
era: number,
|
|
2351
|
+
slashFraction: Perbill,
|
|
2352
|
+
) => ChainSubmittableExtrinsic<
|
|
2353
|
+
Rv,
|
|
2354
|
+
{
|
|
2355
|
+
pallet: 'Staking';
|
|
2356
|
+
palletCall: {
|
|
2357
|
+
name: 'ManualSlash';
|
|
2358
|
+
params: { validatorStash: AccountId32Like; era: number; slashFraction: Perbill };
|
|
2359
|
+
};
|
|
2360
|
+
}
|
|
2361
|
+
>
|
|
2362
|
+
>;
|
|
2363
|
+
|
|
2290
2364
|
/**
|
|
2291
2365
|
* Generic pallet tx call
|
|
2292
2366
|
**/
|
|
@@ -3912,6 +3986,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3912
3986
|
>
|
|
3913
3987
|
>;
|
|
3914
3988
|
|
|
3989
|
+
/**
|
|
3990
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
3991
|
+
* May be called from any origin except `None`.
|
|
3992
|
+
*
|
|
3993
|
+
* This function first attempts to dispatch the `main` call.
|
|
3994
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
3995
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
3996
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
3997
|
+
*
|
|
3998
|
+
* In the event of a fallback failure the whole call fails
|
|
3999
|
+
* with the weights returned.
|
|
4000
|
+
*
|
|
4001
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
4002
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
4003
|
+
*
|
|
4004
|
+
* ## Dispatch Logic
|
|
4005
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
4006
|
+
* applying any origin filters.
|
|
4007
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
4008
|
+
* `fallback` calls.
|
|
4009
|
+
*
|
|
4010
|
+
* ## Use Case
|
|
4011
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
4012
|
+
* or both.
|
|
4013
|
+
*
|
|
4014
|
+
* @param {PolkadotRuntimeRuntimeCallLike} main
|
|
4015
|
+
* @param {PolkadotRuntimeRuntimeCallLike} fallback
|
|
4016
|
+
**/
|
|
4017
|
+
ifElse: GenericTxCall<
|
|
4018
|
+
Rv,
|
|
4019
|
+
(
|
|
4020
|
+
main: PolkadotRuntimeRuntimeCallLike,
|
|
4021
|
+
fallback: PolkadotRuntimeRuntimeCallLike,
|
|
4022
|
+
) => ChainSubmittableExtrinsic<
|
|
4023
|
+
Rv,
|
|
4024
|
+
{
|
|
4025
|
+
pallet: 'Utility';
|
|
4026
|
+
palletCall: {
|
|
4027
|
+
name: 'IfElse';
|
|
4028
|
+
params: { main: PolkadotRuntimeRuntimeCallLike; fallback: PolkadotRuntimeRuntimeCallLike };
|
|
4029
|
+
};
|
|
4030
|
+
}
|
|
4031
|
+
>
|
|
4032
|
+
>;
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* Dispatches a function call with a provided origin.
|
|
4036
|
+
*
|
|
4037
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
4038
|
+
*
|
|
4039
|
+
* The dispatch origin for this call must be _Root_.
|
|
4040
|
+
*
|
|
4041
|
+
* @param {PolkadotRuntimeOriginCaller} asOrigin
|
|
4042
|
+
* @param {PolkadotRuntimeRuntimeCallLike} call
|
|
4043
|
+
**/
|
|
4044
|
+
dispatchAsFallible: GenericTxCall<
|
|
4045
|
+
Rv,
|
|
4046
|
+
(
|
|
4047
|
+
asOrigin: PolkadotRuntimeOriginCaller,
|
|
4048
|
+
call: PolkadotRuntimeRuntimeCallLike,
|
|
4049
|
+
) => ChainSubmittableExtrinsic<
|
|
4050
|
+
Rv,
|
|
4051
|
+
{
|
|
4052
|
+
pallet: 'Utility';
|
|
4053
|
+
palletCall: {
|
|
4054
|
+
name: 'DispatchAsFallible';
|
|
4055
|
+
params: { asOrigin: PolkadotRuntimeOriginCaller; call: PolkadotRuntimeRuntimeCallLike };
|
|
4056
|
+
};
|
|
4057
|
+
}
|
|
4058
|
+
>
|
|
4059
|
+
>;
|
|
4060
|
+
|
|
3915
4061
|
/**
|
|
3916
4062
|
* Generic pallet tx call
|
|
3917
4063
|
**/
|
|
@@ -4279,6 +4425,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4279
4425
|
>
|
|
4280
4426
|
>;
|
|
4281
4427
|
|
|
4428
|
+
/**
|
|
4429
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
4430
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
4431
|
+
*
|
|
4432
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4433
|
+
*
|
|
4434
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4435
|
+
*
|
|
4436
|
+
* Emits `DepositPoked` if successful.
|
|
4437
|
+
*
|
|
4438
|
+
**/
|
|
4439
|
+
pokeDeposit: GenericTxCall<
|
|
4440
|
+
Rv,
|
|
4441
|
+
() => ChainSubmittableExtrinsic<
|
|
4442
|
+
Rv,
|
|
4443
|
+
{
|
|
4444
|
+
pallet: 'Proxy';
|
|
4445
|
+
palletCall: {
|
|
4446
|
+
name: 'PokeDeposit';
|
|
4447
|
+
};
|
|
4448
|
+
}
|
|
4449
|
+
>
|
|
4450
|
+
>;
|
|
4451
|
+
|
|
4282
4452
|
/**
|
|
4283
4453
|
* Generic pallet tx call
|
|
4284
4454
|
**/
|
|
@@ -4511,6 +4681,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4511
4681
|
>
|
|
4512
4682
|
>;
|
|
4513
4683
|
|
|
4684
|
+
/**
|
|
4685
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4686
|
+
*
|
|
4687
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4688
|
+
* the multisig operation.
|
|
4689
|
+
*
|
|
4690
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4691
|
+
*
|
|
4692
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4693
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4694
|
+
* multisig.
|
|
4695
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4696
|
+
*
|
|
4697
|
+
* Emits `DepositPoked` if successful.
|
|
4698
|
+
*
|
|
4699
|
+
* @param {number} threshold
|
|
4700
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
4701
|
+
* @param {FixedBytes<32>} callHash
|
|
4702
|
+
**/
|
|
4703
|
+
pokeDeposit: GenericTxCall<
|
|
4704
|
+
Rv,
|
|
4705
|
+
(
|
|
4706
|
+
threshold: number,
|
|
4707
|
+
otherSignatories: Array<AccountId32Like>,
|
|
4708
|
+
callHash: FixedBytes<32>,
|
|
4709
|
+
) => ChainSubmittableExtrinsic<
|
|
4710
|
+
Rv,
|
|
4711
|
+
{
|
|
4712
|
+
pallet: 'Multisig';
|
|
4713
|
+
palletCall: {
|
|
4714
|
+
name: 'PokeDeposit';
|
|
4715
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
4716
|
+
};
|
|
4717
|
+
}
|
|
4718
|
+
>
|
|
4719
|
+
>;
|
|
4720
|
+
|
|
4514
4721
|
/**
|
|
4515
4722
|
* Generic pallet tx call
|
|
4516
4723
|
**/
|
|
@@ -5383,8 +5590,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5383
5590
|
**/
|
|
5384
5591
|
nominationPools: {
|
|
5385
5592
|
/**
|
|
5386
|
-
* Stake funds with a pool. The amount to bond is
|
|
5387
|
-
*
|
|
5593
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
5594
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
5595
|
+
* increases the pool's bond.
|
|
5388
5596
|
*
|
|
5389
5597
|
* The method of transferring the amount to the pool account is determined by
|
|
5390
5598
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -5682,13 +5890,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5682
5890
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
5683
5891
|
* root role.
|
|
5684
5892
|
*
|
|
5685
|
-
* This directly
|
|
5686
|
-
*
|
|
5893
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
5894
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
5687
5895
|
*
|
|
5688
5896
|
* # Note
|
|
5689
5897
|
*
|
|
5690
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
5691
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
5898
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
5899
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
5692
5900
|
*
|
|
5693
5901
|
* @param {number} poolId
|
|
5694
5902
|
* @param {Array<AccountId32Like>} validators
|
|
@@ -5860,6 +6068,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5860
6068
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
5861
6069
|
* root role, same as [`Pallet::nominate`].
|
|
5862
6070
|
*
|
|
6071
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
6072
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
6073
|
+
*
|
|
5863
6074
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
5864
6075
|
* account).
|
|
5865
6076
|
*
|
|
@@ -5868,9 +6079,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5868
6079
|
* are unable to unbond.
|
|
5869
6080
|
*
|
|
5870
6081
|
* # Conditions for permissioned dispatch:
|
|
5871
|
-
* * The caller
|
|
5872
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
5873
|
-
* account.
|
|
6082
|
+
* * The caller is the pool's nominator or root.
|
|
5874
6083
|
*
|
|
5875
6084
|
* @param {number} poolId
|
|
5876
6085
|
**/
|
|
@@ -6049,9 +6258,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6049
6258
|
/**
|
|
6050
6259
|
* Claim pending commission.
|
|
6051
6260
|
*
|
|
6052
|
-
* The
|
|
6053
|
-
*
|
|
6054
|
-
*
|
|
6261
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
6262
|
+
*
|
|
6263
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
6264
|
+
* trigger the process of claiming the pool's commission.
|
|
6265
|
+
*
|
|
6266
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
6267
|
+
* accounts
|
|
6268
|
+
* * `acc`, and
|
|
6269
|
+
* * the pool's root account
|
|
6270
|
+
*
|
|
6271
|
+
* may call this extrinsic on behalf of the pool.
|
|
6272
|
+
*
|
|
6273
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
6274
|
+
* The total pending commission is reset to zero.
|
|
6055
6275
|
*
|
|
6056
6276
|
* @param {number} poolId
|
|
6057
6277
|
**/
|
|
@@ -7904,13 +8124,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7904
8124
|
parasSlashing: {
|
|
7905
8125
|
/**
|
|
7906
8126
|
*
|
|
7907
|
-
* @param {
|
|
8127
|
+
* @param {PolkadotPrimitivesVstagingDisputeProof} disputeProof
|
|
7908
8128
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
7909
8129
|
**/
|
|
7910
8130
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
7911
8131
|
Rv,
|
|
7912
8132
|
(
|
|
7913
|
-
disputeProof:
|
|
8133
|
+
disputeProof: PolkadotPrimitivesVstagingDisputeProof,
|
|
7914
8134
|
keyOwnerProof: SpSessionMembershipProof,
|
|
7915
8135
|
) => ChainSubmittableExtrinsic<
|
|
7916
8136
|
Rv,
|
|
@@ -7918,7 +8138,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7918
8138
|
pallet: 'ParasSlashing';
|
|
7919
8139
|
palletCall: {
|
|
7920
8140
|
name: 'ReportDisputeLostUnsigned';
|
|
7921
|
-
params: { disputeProof:
|
|
8141
|
+
params: { disputeProof: PolkadotPrimitivesVstagingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
7922
8142
|
};
|
|
7923
8143
|
}
|
|
7924
8144
|
>
|
|
@@ -8007,6 +8227,45 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8007
8227
|
>
|
|
8008
8228
|
>;
|
|
8009
8229
|
|
|
8230
|
+
/**
|
|
8231
|
+
* Create a single on demand core order with credits.
|
|
8232
|
+
* Will charge the owner's on-demand credit account the spot price for the current block.
|
|
8233
|
+
*
|
|
8234
|
+
* Parameters:
|
|
8235
|
+
* - `origin`: The sender of the call, on-demand credits will be withdrawn from this
|
|
8236
|
+
* account.
|
|
8237
|
+
* - `max_amount`: The maximum number of credits to spend from the origin to place an
|
|
8238
|
+
* order.
|
|
8239
|
+
* - `para_id`: A `ParaId` the origin wants to provide blockspace for.
|
|
8240
|
+
*
|
|
8241
|
+
* Errors:
|
|
8242
|
+
* - `InsufficientCredits`
|
|
8243
|
+
* - `QueueFull`
|
|
8244
|
+
* - `SpotPriceHigherThanMaxAmount`
|
|
8245
|
+
*
|
|
8246
|
+
* Events:
|
|
8247
|
+
* - `OnDemandOrderPlaced`
|
|
8248
|
+
*
|
|
8249
|
+
* @param {bigint} maxAmount
|
|
8250
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
8251
|
+
**/
|
|
8252
|
+
placeOrderWithCredits: GenericTxCall<
|
|
8253
|
+
Rv,
|
|
8254
|
+
(
|
|
8255
|
+
maxAmount: bigint,
|
|
8256
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
8257
|
+
) => ChainSubmittableExtrinsic<
|
|
8258
|
+
Rv,
|
|
8259
|
+
{
|
|
8260
|
+
pallet: 'OnDemand';
|
|
8261
|
+
palletCall: {
|
|
8262
|
+
name: 'PlaceOrderWithCredits';
|
|
8263
|
+
params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId };
|
|
8264
|
+
};
|
|
8265
|
+
}
|
|
8266
|
+
>
|
|
8267
|
+
>;
|
|
8268
|
+
|
|
8010
8269
|
/**
|
|
8011
8270
|
* Generic pallet tx call
|
|
8012
8271
|
**/
|
|
@@ -8829,6 +9088,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8829
9088
|
>
|
|
8830
9089
|
>;
|
|
8831
9090
|
|
|
9091
|
+
/**
|
|
9092
|
+
*
|
|
9093
|
+
* @param {AccountId32Like} who
|
|
9094
|
+
* @param {bigint} amount
|
|
9095
|
+
**/
|
|
9096
|
+
creditAccount: GenericTxCall<
|
|
9097
|
+
Rv,
|
|
9098
|
+
(
|
|
9099
|
+
who: AccountId32Like,
|
|
9100
|
+
amount: bigint,
|
|
9101
|
+
) => ChainSubmittableExtrinsic<
|
|
9102
|
+
Rv,
|
|
9103
|
+
{
|
|
9104
|
+
pallet: 'Coretime';
|
|
9105
|
+
palletCall: {
|
|
9106
|
+
name: 'CreditAccount';
|
|
9107
|
+
params: { who: AccountId32Like; amount: bigint };
|
|
9108
|
+
};
|
|
9109
|
+
}
|
|
9110
|
+
>
|
|
9111
|
+
>;
|
|
9112
|
+
|
|
8832
9113
|
/**
|
|
8833
9114
|
* Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
|
|
8834
9115
|
* to be used.
|
|
@@ -9647,6 +9928,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9647
9928
|
>
|
|
9648
9929
|
>;
|
|
9649
9930
|
|
|
9931
|
+
/**
|
|
9932
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
9933
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
9934
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
9935
|
+
* `expiry` block number.
|
|
9936
|
+
*
|
|
9937
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
9938
|
+
* also under your control (like your account on another chain).
|
|
9939
|
+
*
|
|
9940
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
9941
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
9942
|
+
* `origin` in XCM programs executed on the local chain.
|
|
9943
|
+
*
|
|
9944
|
+
* @param {XcmVersionedLocation} aliaser
|
|
9945
|
+
* @param {bigint | undefined} expires
|
|
9946
|
+
**/
|
|
9947
|
+
addAuthorizedAlias: GenericTxCall<
|
|
9948
|
+
Rv,
|
|
9949
|
+
(
|
|
9950
|
+
aliaser: XcmVersionedLocation,
|
|
9951
|
+
expires: bigint | undefined,
|
|
9952
|
+
) => ChainSubmittableExtrinsic<
|
|
9953
|
+
Rv,
|
|
9954
|
+
{
|
|
9955
|
+
pallet: 'XcmPallet';
|
|
9956
|
+
palletCall: {
|
|
9957
|
+
name: 'AddAuthorizedAlias';
|
|
9958
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
9959
|
+
};
|
|
9960
|
+
}
|
|
9961
|
+
>
|
|
9962
|
+
>;
|
|
9963
|
+
|
|
9964
|
+
/**
|
|
9965
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
9966
|
+
* the local `origin` making this call.
|
|
9967
|
+
*
|
|
9968
|
+
* @param {XcmVersionedLocation} aliaser
|
|
9969
|
+
**/
|
|
9970
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
9971
|
+
Rv,
|
|
9972
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
9973
|
+
Rv,
|
|
9974
|
+
{
|
|
9975
|
+
pallet: 'XcmPallet';
|
|
9976
|
+
palletCall: {
|
|
9977
|
+
name: 'RemoveAuthorizedAlias';
|
|
9978
|
+
params: { aliaser: XcmVersionedLocation };
|
|
9979
|
+
};
|
|
9980
|
+
}
|
|
9981
|
+
>
|
|
9982
|
+
>;
|
|
9983
|
+
|
|
9984
|
+
/**
|
|
9985
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
9986
|
+
* making this call.
|
|
9987
|
+
*
|
|
9988
|
+
**/
|
|
9989
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
9990
|
+
Rv,
|
|
9991
|
+
() => ChainSubmittableExtrinsic<
|
|
9992
|
+
Rv,
|
|
9993
|
+
{
|
|
9994
|
+
pallet: 'XcmPallet';
|
|
9995
|
+
palletCall: {
|
|
9996
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
9997
|
+
};
|
|
9998
|
+
}
|
|
9999
|
+
>
|
|
10000
|
+
>;
|
|
10001
|
+
|
|
9650
10002
|
/**
|
|
9651
10003
|
* Generic pallet tx call
|
|
9652
10004
|
**/
|