@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/kusama/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,
|
|
@@ -661,6 +662,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
661
662
|
**/
|
|
662
663
|
validationCodeBombLimit: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
663
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Returns the constraints on the actions that can be taken by a new parachain
|
|
667
|
+
* block.
|
|
668
|
+
*
|
|
669
|
+
* @callname: ParachainHost_backing_constraints
|
|
670
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
671
|
+
**/
|
|
672
|
+
backingConstraints: GenericRuntimeApiMethod<
|
|
673
|
+
Rv,
|
|
674
|
+
(
|
|
675
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
676
|
+
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
677
|
+
>;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Retrieve the scheduling lookahead
|
|
681
|
+
*
|
|
682
|
+
* @callname: ParachainHost_scheduling_lookahead
|
|
683
|
+
**/
|
|
684
|
+
schedulingLookahead: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
685
|
+
|
|
664
686
|
/**
|
|
665
687
|
* Generic runtime api call
|
|
666
688
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ import type {
|
|
|
79
79
|
PolkadotPrimitivesV8PvfCheckStatement,
|
|
80
80
|
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
81
81
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
82
|
-
|
|
82
|
+
PolkadotPrimitivesVstagingDisputeProof,
|
|
83
83
|
SpRuntimeMultiSigner,
|
|
84
84
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
85
85
|
PolkadotRuntimeParachainsAssignerCoretimePartsOf57600,
|
|
@@ -652,6 +652,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
652
652
|
>
|
|
653
653
|
>;
|
|
654
654
|
|
|
655
|
+
/**
|
|
656
|
+
* Poke the deposit reserved for an index.
|
|
657
|
+
*
|
|
658
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
659
|
+
* non-frozen account `index`.
|
|
660
|
+
*
|
|
661
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
662
|
+
*
|
|
663
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
664
|
+
*
|
|
665
|
+
* Emits `DepositPoked` if successful.
|
|
666
|
+
*
|
|
667
|
+
* @param {number} index
|
|
668
|
+
**/
|
|
669
|
+
pokeDeposit: GenericTxCall<
|
|
670
|
+
Rv,
|
|
671
|
+
(index: number) => ChainSubmittableExtrinsic<
|
|
672
|
+
Rv,
|
|
673
|
+
{
|
|
674
|
+
pallet: 'Indices';
|
|
675
|
+
palletCall: {
|
|
676
|
+
name: 'PokeDeposit';
|
|
677
|
+
params: { index: number };
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
>
|
|
681
|
+
>;
|
|
682
|
+
|
|
655
683
|
/**
|
|
656
684
|
* Generic pallet tx call
|
|
657
685
|
**/
|
|
@@ -1849,29 +1877,75 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1849
1877
|
>;
|
|
1850
1878
|
|
|
1851
1879
|
/**
|
|
1852
|
-
*
|
|
1880
|
+
* Removes the legacy Staking locks if they exist.
|
|
1881
|
+
*
|
|
1882
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
1883
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
1884
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
1853
1885
|
*
|
|
1854
|
-
*
|
|
1855
|
-
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
1856
|
-
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
1857
|
-
* and the actual stake.
|
|
1886
|
+
* The fee is waived if the migration is successful.
|
|
1858
1887
|
*
|
|
1859
1888
|
* @param {AccountId32Like} stash
|
|
1860
1889
|
**/
|
|
1861
|
-
|
|
1890
|
+
migrateCurrency: GenericTxCall<
|
|
1862
1891
|
Rv,
|
|
1863
1892
|
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
1864
1893
|
Rv,
|
|
1865
1894
|
{
|
|
1866
1895
|
pallet: 'Staking';
|
|
1867
1896
|
palletCall: {
|
|
1868
|
-
name: '
|
|
1897
|
+
name: 'MigrateCurrency';
|
|
1869
1898
|
params: { stash: AccountId32Like };
|
|
1870
1899
|
};
|
|
1871
1900
|
}
|
|
1872
1901
|
>
|
|
1873
1902
|
>;
|
|
1874
1903
|
|
|
1904
|
+
/**
|
|
1905
|
+
* This function allows governance to manually slash a validator and is a
|
|
1906
|
+
* **fallback mechanism**.
|
|
1907
|
+
*
|
|
1908
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
1909
|
+
*
|
|
1910
|
+
* ## Parameters
|
|
1911
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
1912
|
+
* - `era` - The era in which the validator was in the active set.
|
|
1913
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
1914
|
+
*
|
|
1915
|
+
* ## Behavior
|
|
1916
|
+
*
|
|
1917
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
1918
|
+
* configured `SlashDeferDuration`.
|
|
1919
|
+
*
|
|
1920
|
+
* This means:
|
|
1921
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
1922
|
+
* slash will have no additional effect.
|
|
1923
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
1924
|
+
* will be applied.
|
|
1925
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
1926
|
+
*
|
|
1927
|
+
* @param {AccountId32Like} validatorStash
|
|
1928
|
+
* @param {number} era
|
|
1929
|
+
* @param {Perbill} slashFraction
|
|
1930
|
+
**/
|
|
1931
|
+
manualSlash: GenericTxCall<
|
|
1932
|
+
Rv,
|
|
1933
|
+
(
|
|
1934
|
+
validatorStash: AccountId32Like,
|
|
1935
|
+
era: number,
|
|
1936
|
+
slashFraction: Perbill,
|
|
1937
|
+
) => ChainSubmittableExtrinsic<
|
|
1938
|
+
Rv,
|
|
1939
|
+
{
|
|
1940
|
+
pallet: 'Staking';
|
|
1941
|
+
palletCall: {
|
|
1942
|
+
name: 'ManualSlash';
|
|
1943
|
+
params: { validatorStash: AccountId32Like; era: number; slashFraction: Perbill };
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
>
|
|
1947
|
+
>;
|
|
1948
|
+
|
|
1875
1949
|
/**
|
|
1876
1950
|
* Generic pallet tx call
|
|
1877
1951
|
**/
|
|
@@ -3772,6 +3846,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
3772
3846
|
>
|
|
3773
3847
|
>;
|
|
3774
3848
|
|
|
3849
|
+
/**
|
|
3850
|
+
* Dispatch a fallback call in the event the main call fails to execute.
|
|
3851
|
+
* May be called from any origin except `None`.
|
|
3852
|
+
*
|
|
3853
|
+
* This function first attempts to dispatch the `main` call.
|
|
3854
|
+
* If the `main` call fails, the `fallback` is attemted.
|
|
3855
|
+
* if the fallback is successfully dispatched, the weights of both calls
|
|
3856
|
+
* are accumulated and an event containing the main call error is deposited.
|
|
3857
|
+
*
|
|
3858
|
+
* In the event of a fallback failure the whole call fails
|
|
3859
|
+
* with the weights returned.
|
|
3860
|
+
*
|
|
3861
|
+
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
|
3862
|
+
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
|
3863
|
+
*
|
|
3864
|
+
* ## Dispatch Logic
|
|
3865
|
+
* - If the origin is `root`, both the main and fallback calls are executed without
|
|
3866
|
+
* applying any origin filters.
|
|
3867
|
+
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
|
3868
|
+
* `fallback` calls.
|
|
3869
|
+
*
|
|
3870
|
+
* ## Use Case
|
|
3871
|
+
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
|
3872
|
+
* or both.
|
|
3873
|
+
*
|
|
3874
|
+
* @param {StagingKusamaRuntimeRuntimeCallLike} main
|
|
3875
|
+
* @param {StagingKusamaRuntimeRuntimeCallLike} fallback
|
|
3876
|
+
**/
|
|
3877
|
+
ifElse: GenericTxCall<
|
|
3878
|
+
Rv,
|
|
3879
|
+
(
|
|
3880
|
+
main: StagingKusamaRuntimeRuntimeCallLike,
|
|
3881
|
+
fallback: StagingKusamaRuntimeRuntimeCallLike,
|
|
3882
|
+
) => ChainSubmittableExtrinsic<
|
|
3883
|
+
Rv,
|
|
3884
|
+
{
|
|
3885
|
+
pallet: 'Utility';
|
|
3886
|
+
palletCall: {
|
|
3887
|
+
name: 'IfElse';
|
|
3888
|
+
params: { main: StagingKusamaRuntimeRuntimeCallLike; fallback: StagingKusamaRuntimeRuntimeCallLike };
|
|
3889
|
+
};
|
|
3890
|
+
}
|
|
3891
|
+
>
|
|
3892
|
+
>;
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* Dispatches a function call with a provided origin.
|
|
3896
|
+
*
|
|
3897
|
+
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
|
3898
|
+
*
|
|
3899
|
+
* The dispatch origin for this call must be _Root_.
|
|
3900
|
+
*
|
|
3901
|
+
* @param {StagingKusamaRuntimeOriginCaller} asOrigin
|
|
3902
|
+
* @param {StagingKusamaRuntimeRuntimeCallLike} call
|
|
3903
|
+
**/
|
|
3904
|
+
dispatchAsFallible: GenericTxCall<
|
|
3905
|
+
Rv,
|
|
3906
|
+
(
|
|
3907
|
+
asOrigin: StagingKusamaRuntimeOriginCaller,
|
|
3908
|
+
call: StagingKusamaRuntimeRuntimeCallLike,
|
|
3909
|
+
) => ChainSubmittableExtrinsic<
|
|
3910
|
+
Rv,
|
|
3911
|
+
{
|
|
3912
|
+
pallet: 'Utility';
|
|
3913
|
+
palletCall: {
|
|
3914
|
+
name: 'DispatchAsFallible';
|
|
3915
|
+
params: { asOrigin: StagingKusamaRuntimeOriginCaller; call: StagingKusamaRuntimeRuntimeCallLike };
|
|
3916
|
+
};
|
|
3917
|
+
}
|
|
3918
|
+
>
|
|
3919
|
+
>;
|
|
3920
|
+
|
|
3775
3921
|
/**
|
|
3776
3922
|
* Generic pallet tx call
|
|
3777
3923
|
**/
|
|
@@ -4357,7 +4503,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4357
4503
|
>;
|
|
4358
4504
|
|
|
4359
4505
|
/**
|
|
4360
|
-
* Allow ROOT to bypass the recovery process and set
|
|
4506
|
+
* Allow ROOT to bypass the recovery process and set a rescuer account
|
|
4361
4507
|
* for a lost account directly.
|
|
4362
4508
|
*
|
|
4363
4509
|
* The dispatch origin for this call must be _ROOT_.
|
|
@@ -5466,6 +5612,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5466
5612
|
>
|
|
5467
5613
|
>;
|
|
5468
5614
|
|
|
5615
|
+
/**
|
|
5616
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
5617
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
5618
|
+
*
|
|
5619
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5620
|
+
*
|
|
5621
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5622
|
+
*
|
|
5623
|
+
* Emits `DepositPoked` if successful.
|
|
5624
|
+
*
|
|
5625
|
+
**/
|
|
5626
|
+
pokeDeposit: GenericTxCall<
|
|
5627
|
+
Rv,
|
|
5628
|
+
() => ChainSubmittableExtrinsic<
|
|
5629
|
+
Rv,
|
|
5630
|
+
{
|
|
5631
|
+
pallet: 'Proxy';
|
|
5632
|
+
palletCall: {
|
|
5633
|
+
name: 'PokeDeposit';
|
|
5634
|
+
};
|
|
5635
|
+
}
|
|
5636
|
+
>
|
|
5637
|
+
>;
|
|
5638
|
+
|
|
5469
5639
|
/**
|
|
5470
5640
|
* Generic pallet tx call
|
|
5471
5641
|
**/
|
|
@@ -5698,6 +5868,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5698
5868
|
>
|
|
5699
5869
|
>;
|
|
5700
5870
|
|
|
5871
|
+
/**
|
|
5872
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
5873
|
+
*
|
|
5874
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
5875
|
+
* the multisig operation.
|
|
5876
|
+
*
|
|
5877
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
5878
|
+
*
|
|
5879
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
5880
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
5881
|
+
* multisig.
|
|
5882
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
5883
|
+
*
|
|
5884
|
+
* Emits `DepositPoked` if successful.
|
|
5885
|
+
*
|
|
5886
|
+
* @param {number} threshold
|
|
5887
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
5888
|
+
* @param {FixedBytes<32>} callHash
|
|
5889
|
+
**/
|
|
5890
|
+
pokeDeposit: GenericTxCall<
|
|
5891
|
+
Rv,
|
|
5892
|
+
(
|
|
5893
|
+
threshold: number,
|
|
5894
|
+
otherSignatories: Array<AccountId32Like>,
|
|
5895
|
+
callHash: FixedBytes<32>,
|
|
5896
|
+
) => ChainSubmittableExtrinsic<
|
|
5897
|
+
Rv,
|
|
5898
|
+
{
|
|
5899
|
+
pallet: 'Multisig';
|
|
5900
|
+
palletCall: {
|
|
5901
|
+
name: 'PokeDeposit';
|
|
5902
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
5903
|
+
};
|
|
5904
|
+
}
|
|
5905
|
+
>
|
|
5906
|
+
>;
|
|
5907
|
+
|
|
5701
5908
|
/**
|
|
5702
5909
|
* Generic pallet tx call
|
|
5703
5910
|
**/
|
|
@@ -5797,7 +6004,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5797
6004
|
>;
|
|
5798
6005
|
|
|
5799
6006
|
/**
|
|
5800
|
-
* Ensure that the
|
|
6007
|
+
* Ensure that the bulk of pre-images is upgraded.
|
|
5801
6008
|
*
|
|
5802
6009
|
* The caller pays no fee if at least 90% of pre-images were successfully updated.
|
|
5803
6010
|
*
|
|
@@ -7132,8 +7339,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7132
7339
|
**/
|
|
7133
7340
|
nominationPools: {
|
|
7134
7341
|
/**
|
|
7135
|
-
* Stake funds with a pool. The amount to bond is
|
|
7136
|
-
*
|
|
7342
|
+
* Stake funds with a pool. The amount to bond is delegated (or transferred based on
|
|
7343
|
+
* [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
|
|
7344
|
+
* increases the pool's bond.
|
|
7137
7345
|
*
|
|
7138
7346
|
* The method of transferring the amount to the pool account is determined by
|
|
7139
7347
|
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
|
@@ -7431,13 +7639,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7431
7639
|
* The dispatch origin of this call must be signed by the pool nominator or the pool
|
|
7432
7640
|
* root role.
|
|
7433
7641
|
*
|
|
7434
|
-
* This directly
|
|
7435
|
-
*
|
|
7642
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
7643
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
7436
7644
|
*
|
|
7437
7645
|
* # Note
|
|
7438
7646
|
*
|
|
7439
|
-
* In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to
|
|
7440
|
-
* at least `depositor_min_bond` in the pool to start nominating.
|
|
7647
|
+
* In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
|
|
7648
|
+
* have at least `depositor_min_bond` in the pool to start nominating.
|
|
7441
7649
|
*
|
|
7442
7650
|
* @param {number} poolId
|
|
7443
7651
|
* @param {Array<AccountId32Like>} validators
|
|
@@ -7609,6 +7817,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7609
7817
|
* The dispatch origin of this call can be signed by the pool nominator or the pool
|
|
7610
7818
|
* root role, same as [`Pallet::nominate`].
|
|
7611
7819
|
*
|
|
7820
|
+
* This directly forwards the call to an implementation of `StakingInterface` (e.g.,
|
|
7821
|
+
* `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
|
|
7822
|
+
*
|
|
7612
7823
|
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
7613
7824
|
* account).
|
|
7614
7825
|
*
|
|
@@ -7617,9 +7828,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7617
7828
|
* are unable to unbond.
|
|
7618
7829
|
*
|
|
7619
7830
|
* # Conditions for permissioned dispatch:
|
|
7620
|
-
* * The caller
|
|
7621
|
-
* This directly forward the call to the staking pallet, on behalf of the pool bonded
|
|
7622
|
-
* account.
|
|
7831
|
+
* * The caller is the pool's nominator or root.
|
|
7623
7832
|
*
|
|
7624
7833
|
* @param {number} poolId
|
|
7625
7834
|
**/
|
|
@@ -7798,9 +8007,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7798
8007
|
/**
|
|
7799
8008
|
* Claim pending commission.
|
|
7800
8009
|
*
|
|
7801
|
-
* The
|
|
7802
|
-
*
|
|
7803
|
-
*
|
|
8010
|
+
* The `root` role of the pool is _always_ allowed to claim the pool's commission.
|
|
8011
|
+
*
|
|
8012
|
+
* If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
|
|
8013
|
+
* trigger the process of claiming the pool's commission.
|
|
8014
|
+
*
|
|
8015
|
+
* If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
|
|
8016
|
+
* accounts
|
|
8017
|
+
* * `acc`, and
|
|
8018
|
+
* * the pool's root account
|
|
8019
|
+
*
|
|
8020
|
+
* may call this extrinsic on behalf of the pool.
|
|
8021
|
+
*
|
|
8022
|
+
* Pending commissions are paid out and added to the total claimed commission.
|
|
8023
|
+
* The total pending commission is reset to zero.
|
|
7804
8024
|
*
|
|
7805
8025
|
* @param {number} poolId
|
|
7806
8026
|
**/
|
|
@@ -9653,13 +9873,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9653
9873
|
parasSlashing: {
|
|
9654
9874
|
/**
|
|
9655
9875
|
*
|
|
9656
|
-
* @param {
|
|
9876
|
+
* @param {PolkadotPrimitivesVstagingDisputeProof} disputeProof
|
|
9657
9877
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
9658
9878
|
**/
|
|
9659
9879
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
9660
9880
|
Rv,
|
|
9661
9881
|
(
|
|
9662
|
-
disputeProof:
|
|
9882
|
+
disputeProof: PolkadotPrimitivesVstagingDisputeProof,
|
|
9663
9883
|
keyOwnerProof: SpSessionMembershipProof,
|
|
9664
9884
|
) => ChainSubmittableExtrinsic<
|
|
9665
9885
|
Rv,
|
|
@@ -9667,7 +9887,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9667
9887
|
pallet: 'ParasSlashing';
|
|
9668
9888
|
palletCall: {
|
|
9669
9889
|
name: 'ReportDisputeLostUnsigned';
|
|
9670
|
-
params: { disputeProof:
|
|
9890
|
+
params: { disputeProof: PolkadotPrimitivesVstagingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
9671
9891
|
};
|
|
9672
9892
|
}
|
|
9673
9893
|
>
|
|
@@ -9756,6 +9976,45 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9756
9976
|
>
|
|
9757
9977
|
>;
|
|
9758
9978
|
|
|
9979
|
+
/**
|
|
9980
|
+
* Create a single on demand core order with credits.
|
|
9981
|
+
* Will charge the owner's on-demand credit account the spot price for the current block.
|
|
9982
|
+
*
|
|
9983
|
+
* Parameters:
|
|
9984
|
+
* - `origin`: The sender of the call, on-demand credits will be withdrawn from this
|
|
9985
|
+
* account.
|
|
9986
|
+
* - `max_amount`: The maximum number of credits to spend from the origin to place an
|
|
9987
|
+
* order.
|
|
9988
|
+
* - `para_id`: A `ParaId` the origin wants to provide blockspace for.
|
|
9989
|
+
*
|
|
9990
|
+
* Errors:
|
|
9991
|
+
* - `InsufficientCredits`
|
|
9992
|
+
* - `QueueFull`
|
|
9993
|
+
* - `SpotPriceHigherThanMaxAmount`
|
|
9994
|
+
*
|
|
9995
|
+
* Events:
|
|
9996
|
+
* - `OnDemandOrderPlaced`
|
|
9997
|
+
*
|
|
9998
|
+
* @param {bigint} maxAmount
|
|
9999
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
10000
|
+
**/
|
|
10001
|
+
placeOrderWithCredits: GenericTxCall<
|
|
10002
|
+
Rv,
|
|
10003
|
+
(
|
|
10004
|
+
maxAmount: bigint,
|
|
10005
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
10006
|
+
) => ChainSubmittableExtrinsic<
|
|
10007
|
+
Rv,
|
|
10008
|
+
{
|
|
10009
|
+
pallet: 'OnDemandAssignmentProvider';
|
|
10010
|
+
palletCall: {
|
|
10011
|
+
name: 'PlaceOrderWithCredits';
|
|
10012
|
+
params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId };
|
|
10013
|
+
};
|
|
10014
|
+
}
|
|
10015
|
+
>
|
|
10016
|
+
>;
|
|
10017
|
+
|
|
9759
10018
|
/**
|
|
9760
10019
|
* Generic pallet tx call
|
|
9761
10020
|
**/
|
|
@@ -10578,6 +10837,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10578
10837
|
>
|
|
10579
10838
|
>;
|
|
10580
10839
|
|
|
10840
|
+
/**
|
|
10841
|
+
*
|
|
10842
|
+
* @param {AccountId32Like} who
|
|
10843
|
+
* @param {bigint} amount
|
|
10844
|
+
**/
|
|
10845
|
+
creditAccount: GenericTxCall<
|
|
10846
|
+
Rv,
|
|
10847
|
+
(
|
|
10848
|
+
who: AccountId32Like,
|
|
10849
|
+
amount: bigint,
|
|
10850
|
+
) => ChainSubmittableExtrinsic<
|
|
10851
|
+
Rv,
|
|
10852
|
+
{
|
|
10853
|
+
pallet: 'Coretime';
|
|
10854
|
+
palletCall: {
|
|
10855
|
+
name: 'CreditAccount';
|
|
10856
|
+
params: { who: AccountId32Like; amount: bigint };
|
|
10857
|
+
};
|
|
10858
|
+
}
|
|
10859
|
+
>
|
|
10860
|
+
>;
|
|
10861
|
+
|
|
10581
10862
|
/**
|
|
10582
10863
|
* Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
|
|
10583
10864
|
* to be used.
|
|
@@ -11211,6 +11492,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
11211
11492
|
>
|
|
11212
11493
|
>;
|
|
11213
11494
|
|
|
11495
|
+
/**
|
|
11496
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
11497
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
11498
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
11499
|
+
* `expiry` block number.
|
|
11500
|
+
*
|
|
11501
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
11502
|
+
* also under your control (like your account on another chain).
|
|
11503
|
+
*
|
|
11504
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
11505
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
11506
|
+
* `origin` in XCM programs executed on the local chain.
|
|
11507
|
+
*
|
|
11508
|
+
* @param {XcmVersionedLocation} aliaser
|
|
11509
|
+
* @param {bigint | undefined} expires
|
|
11510
|
+
**/
|
|
11511
|
+
addAuthorizedAlias: GenericTxCall<
|
|
11512
|
+
Rv,
|
|
11513
|
+
(
|
|
11514
|
+
aliaser: XcmVersionedLocation,
|
|
11515
|
+
expires: bigint | undefined,
|
|
11516
|
+
) => ChainSubmittableExtrinsic<
|
|
11517
|
+
Rv,
|
|
11518
|
+
{
|
|
11519
|
+
pallet: 'XcmPallet';
|
|
11520
|
+
palletCall: {
|
|
11521
|
+
name: 'AddAuthorizedAlias';
|
|
11522
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
11523
|
+
};
|
|
11524
|
+
}
|
|
11525
|
+
>
|
|
11526
|
+
>;
|
|
11527
|
+
|
|
11528
|
+
/**
|
|
11529
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
11530
|
+
* the local `origin` making this call.
|
|
11531
|
+
*
|
|
11532
|
+
* @param {XcmVersionedLocation} aliaser
|
|
11533
|
+
**/
|
|
11534
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
11535
|
+
Rv,
|
|
11536
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
11537
|
+
Rv,
|
|
11538
|
+
{
|
|
11539
|
+
pallet: 'XcmPallet';
|
|
11540
|
+
palletCall: {
|
|
11541
|
+
name: 'RemoveAuthorizedAlias';
|
|
11542
|
+
params: { aliaser: XcmVersionedLocation };
|
|
11543
|
+
};
|
|
11544
|
+
}
|
|
11545
|
+
>
|
|
11546
|
+
>;
|
|
11547
|
+
|
|
11548
|
+
/**
|
|
11549
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
11550
|
+
* making this call.
|
|
11551
|
+
*
|
|
11552
|
+
**/
|
|
11553
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
11554
|
+
Rv,
|
|
11555
|
+
() => ChainSubmittableExtrinsic<
|
|
11556
|
+
Rv,
|
|
11557
|
+
{
|
|
11558
|
+
pallet: 'XcmPallet';
|
|
11559
|
+
palletCall: {
|
|
11560
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
11561
|
+
};
|
|
11562
|
+
}
|
|
11563
|
+
>
|
|
11564
|
+
>;
|
|
11565
|
+
|
|
11214
11566
|
/**
|
|
11215
11567
|
* Generic pallet tx call
|
|
11216
11568
|
**/
|