@dedot/chaintypes 0.158.0 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/polkadot-people/consts.d.ts +21 -0
- package/polkadot-people/errors.d.ts +8 -0
- package/polkadot-people/events.d.ts +27 -0
- package/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/query.d.ts +25 -2
- package/polkadot-people/runtime.d.ts +121 -0
- package/polkadot-people/tx.d.ts +24 -12
- package/polkadot-people/types.d.ts +1072 -954
- package/polkadot-people/view-functions.d.ts +34 -1
- package/westend/consts.d.ts +9 -0
- package/westend/errors.d.ts +14 -0
- package/westend/events.d.ts +19 -0
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +23 -12
- package/westend/tx.d.ts +69 -0
- package/westend/types.d.ts +107 -6
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +14 -0
- package/westend-asset-hub/runtime.d.ts +0 -21
- package/westend-asset-hub/tx.d.ts +5 -10
- package/westend-asset-hub/types.d.ts +12 -13
- package/westend-people/index.d.ts +1 -1
- package/westend-people/runtime.d.ts +0 -21
- package/westend-people/types.d.ts +0 -4
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { PeoplePolkadotRuntimeRuntimeCallLike, PeoplePolkadotRuntimeProxyType } from './types.js';
|
|
4
5
|
|
|
5
|
-
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
6
|
+
export interface ChainViewFunctions<Rv extends RpcVersion> extends GenericChainViewFunctions<Rv> {
|
|
7
|
+
/**
|
|
8
|
+
* Pallet `Proxy`'s view functions
|
|
9
|
+
**/
|
|
10
|
+
proxy: {
|
|
11
|
+
/**
|
|
12
|
+
* Check if a `RuntimeCall` is allowed for a given `ProxyType`.
|
|
13
|
+
*
|
|
14
|
+
* @param {PeoplePolkadotRuntimeRuntimeCallLike} call
|
|
15
|
+
* @param {PeoplePolkadotRuntimeProxyType} proxyType
|
|
16
|
+
**/
|
|
17
|
+
checkPermissions: GenericViewFunction<
|
|
18
|
+
Rv,
|
|
19
|
+
(call: PeoplePolkadotRuntimeRuntimeCallLike, proxyType: PeoplePolkadotRuntimeProxyType) => Promise<boolean>
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Check if one `ProxyType` is a subset of another `ProxyType`.
|
|
24
|
+
*
|
|
25
|
+
* @param {PeoplePolkadotRuntimeProxyType} toCheck
|
|
26
|
+
* @param {PeoplePolkadotRuntimeProxyType} against
|
|
27
|
+
**/
|
|
28
|
+
isSuperset: GenericViewFunction<
|
|
29
|
+
Rv,
|
|
30
|
+
(toCheck: PeoplePolkadotRuntimeProxyType, against: PeoplePolkadotRuntimeProxyType) => Promise<boolean>
|
|
31
|
+
>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generic pallet view function
|
|
35
|
+
**/
|
|
36
|
+
[name: string]: GenericViewFunction<Rv>;
|
|
37
|
+
};
|
|
38
|
+
}
|
package/westend/consts.d.ts
CHANGED
|
@@ -1418,6 +1418,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1418
1418
|
**/
|
|
1419
1419
|
[name: string]: any;
|
|
1420
1420
|
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Pallet `RootOffences`'s constants
|
|
1423
|
+
**/
|
|
1424
|
+
rootOffences: {
|
|
1425
|
+
/**
|
|
1426
|
+
* Generic pallet constant
|
|
1427
|
+
**/
|
|
1428
|
+
[name: string]: any;
|
|
1429
|
+
};
|
|
1421
1430
|
/**
|
|
1422
1431
|
* Pallet `Beefy`'s constants
|
|
1423
1432
|
**/
|
package/westend/errors.d.ts
CHANGED
|
@@ -2838,6 +2838,20 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2838
2838
|
**/
|
|
2839
2839
|
[error: string]: GenericPalletError<Rv>;
|
|
2840
2840
|
};
|
|
2841
|
+
/**
|
|
2842
|
+
* Pallet `RootOffences`'s errors
|
|
2843
|
+
**/
|
|
2844
|
+
rootOffences: {
|
|
2845
|
+
/**
|
|
2846
|
+
* Failed to get the active era from the staking pallet.
|
|
2847
|
+
**/
|
|
2848
|
+
FailedToGetActiveEra: GenericPalletError<Rv>;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Generic pallet error
|
|
2852
|
+
**/
|
|
2853
|
+
[error: string]: GenericPalletError<Rv>;
|
|
2854
|
+
};
|
|
2841
2855
|
/**
|
|
2842
2856
|
* Pallet `Beefy`'s errors
|
|
2843
2857
|
**/
|
package/westend/events.d.ts
CHANGED
|
@@ -3550,6 +3550,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
3550
3550
|
**/
|
|
3551
3551
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
3552
3552
|
};
|
|
3553
|
+
/**
|
|
3554
|
+
* Pallet `RootOffences`'s events
|
|
3555
|
+
**/
|
|
3556
|
+
rootOffences: {
|
|
3557
|
+
/**
|
|
3558
|
+
* An offence was created by root.
|
|
3559
|
+
**/
|
|
3560
|
+
OffenceCreated: GenericPalletEvent<
|
|
3561
|
+
Rv,
|
|
3562
|
+
'RootOffences',
|
|
3563
|
+
'OffenceCreated',
|
|
3564
|
+
{ offenders: Array<[AccountId32, Perbill]> }
|
|
3565
|
+
>;
|
|
3566
|
+
|
|
3567
|
+
/**
|
|
3568
|
+
* Generic pallet event
|
|
3569
|
+
**/
|
|
3570
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
3571
|
+
};
|
|
3553
3572
|
/**
|
|
3554
3573
|
* Pallet `IdentityMigrator`'s events
|
|
3555
3574
|
**/
|
package/westend/index.d.ts
CHANGED
package/westend/query.d.ts
CHANGED
|
@@ -134,7 +134,8 @@ import type {
|
|
|
134
134
|
PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
|
|
135
135
|
PalletStakingAsyncRcClientValidatorSetReport,
|
|
136
136
|
PalletStakingAsyncAhClientOperatingMode,
|
|
137
|
-
|
|
137
|
+
PalletStakingAsyncRcClientSessionReport,
|
|
138
|
+
PalletStakingAsyncRcClientOffence,
|
|
138
139
|
PalletMigrationsMigrationCursor,
|
|
139
140
|
PalletXcmQueryStatus,
|
|
140
141
|
XcmVersionedLocation,
|
|
@@ -3684,24 +3685,34 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3684
3685
|
validatorSetAppliedAt: GenericStorageQuery<Rv, () => number | undefined>;
|
|
3685
3686
|
|
|
3686
3687
|
/**
|
|
3687
|
-
*
|
|
3688
|
+
* A session report that is outgoing, and should be sent.
|
|
3688
3689
|
*
|
|
3689
|
-
*
|
|
3690
|
-
*
|
|
3690
|
+
* This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
|
|
3691
|
+
* or the second value reaches zero, at which point we drop it.
|
|
3691
3692
|
*
|
|
3692
|
-
*
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3693
|
+
* @param {Callback<[PalletStakingAsyncRcClientSessionReport, number] | undefined> =} callback
|
|
3694
|
+
**/
|
|
3695
|
+
outgoingSessionReport: GenericStorageQuery<Rv, () => [PalletStakingAsyncRcClientSessionReport, number] | undefined>;
|
|
3696
|
+
|
|
3697
|
+
/**
|
|
3698
|
+
* Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
|
|
3697
3699
|
*
|
|
3698
|
-
* @param {
|
|
3700
|
+
* @param {number} arg
|
|
3701
|
+
* @param {Callback<Array<[number, PalletStakingAsyncRcClientOffence]>> =} callback
|
|
3699
3702
|
**/
|
|
3700
|
-
|
|
3703
|
+
offenceSendQueueOffences: GenericStorageQuery<
|
|
3701
3704
|
Rv,
|
|
3702
|
-
() => Array<[number,
|
|
3705
|
+
(arg: number) => Array<[number, PalletStakingAsyncRcClientOffence]>,
|
|
3706
|
+
number
|
|
3703
3707
|
>;
|
|
3704
3708
|
|
|
3709
|
+
/**
|
|
3710
|
+
* Internal storage item of [`OffenceSendQueue`]. Should not be used manually.
|
|
3711
|
+
*
|
|
3712
|
+
* @param {Callback<number> =} callback
|
|
3713
|
+
**/
|
|
3714
|
+
offenceSendQueueCursor: GenericStorageQuery<Rv, () => number>;
|
|
3715
|
+
|
|
3705
3716
|
/**
|
|
3706
3717
|
* Generic pallet storage query
|
|
3707
3718
|
**/
|
package/westend/tx.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ import type {
|
|
|
96
96
|
XcmVersionedAssetId,
|
|
97
97
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
98
98
|
PalletMetaTxMetaTx,
|
|
99
|
+
SpStakingExposure,
|
|
99
100
|
SpConsensusBeefyDoubleVotingProof,
|
|
100
101
|
SpConsensusBeefyForkVotingProof,
|
|
101
102
|
SpConsensusBeefyFutureBlockVotingProof,
|
|
@@ -10886,6 +10887,74 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10886
10887
|
**/
|
|
10887
10888
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
10888
10889
|
};
|
|
10890
|
+
/**
|
|
10891
|
+
* Pallet `RootOffences`'s transaction calls
|
|
10892
|
+
**/
|
|
10893
|
+
rootOffences: {
|
|
10894
|
+
/**
|
|
10895
|
+
* Allows the `root`, for example sudo to create an offence.
|
|
10896
|
+
*
|
|
10897
|
+
* If `identifications` is `Some`, then the given identification is used for offence. Else,
|
|
10898
|
+
* it is fetched live from `session::Historical`.
|
|
10899
|
+
*
|
|
10900
|
+
* @param {Array<[AccountId32Like, Perbill]>} offenders
|
|
10901
|
+
* @param {Array<SpStakingExposure> | undefined} maybeIdentifications
|
|
10902
|
+
* @param {number | undefined} maybeSessionIndex
|
|
10903
|
+
**/
|
|
10904
|
+
createOffence: GenericTxCall<
|
|
10905
|
+
Rv,
|
|
10906
|
+
(
|
|
10907
|
+
offenders: Array<[AccountId32Like, Perbill]>,
|
|
10908
|
+
maybeIdentifications: Array<SpStakingExposure> | undefined,
|
|
10909
|
+
maybeSessionIndex: number | undefined,
|
|
10910
|
+
) => ChainSubmittableExtrinsic<
|
|
10911
|
+
Rv,
|
|
10912
|
+
{
|
|
10913
|
+
pallet: 'RootOffences';
|
|
10914
|
+
palletCall: {
|
|
10915
|
+
name: 'CreateOffence';
|
|
10916
|
+
params: {
|
|
10917
|
+
offenders: Array<[AccountId32Like, Perbill]>;
|
|
10918
|
+
maybeIdentifications: Array<SpStakingExposure> | undefined;
|
|
10919
|
+
maybeSessionIndex: number | undefined;
|
|
10920
|
+
};
|
|
10921
|
+
};
|
|
10922
|
+
}
|
|
10923
|
+
>
|
|
10924
|
+
>;
|
|
10925
|
+
|
|
10926
|
+
/**
|
|
10927
|
+
* Same as [`Pallet::create_offence`], but it reports the offence directly to a
|
|
10928
|
+
* [`Config::ReportOffence`], aka pallet-offences first.
|
|
10929
|
+
*
|
|
10930
|
+
* This is useful for more accurate testing of the e2e offence processing pipeline, as it
|
|
10931
|
+
* won't skip the `pallet-offences` step.
|
|
10932
|
+
*
|
|
10933
|
+
* It generates an offence of type [`TestSpamOffence`], with cas a fixed `ID`, but can have
|
|
10934
|
+
* any `time_slot`, `session_index``, and `slash_fraction`. These values are the inputs of
|
|
10935
|
+
* transaction, int the same order, with an `IdentiticationTuple` coming first.
|
|
10936
|
+
*
|
|
10937
|
+
* @param {Array<[[AccountId32Like, SpStakingExposure], number, bigint, number]>} offences
|
|
10938
|
+
**/
|
|
10939
|
+
reportOffence: GenericTxCall<
|
|
10940
|
+
Rv,
|
|
10941
|
+
(offences: Array<[[AccountId32Like, SpStakingExposure], number, bigint, number]>) => ChainSubmittableExtrinsic<
|
|
10942
|
+
Rv,
|
|
10943
|
+
{
|
|
10944
|
+
pallet: 'RootOffences';
|
|
10945
|
+
palletCall: {
|
|
10946
|
+
name: 'ReportOffence';
|
|
10947
|
+
params: { offences: Array<[[AccountId32Like, SpStakingExposure], number, bigint, number]> };
|
|
10948
|
+
};
|
|
10949
|
+
}
|
|
10950
|
+
>
|
|
10951
|
+
>;
|
|
10952
|
+
|
|
10953
|
+
/**
|
|
10954
|
+
* Generic pallet tx call
|
|
10955
|
+
**/
|
|
10956
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
10957
|
+
};
|
|
10889
10958
|
/**
|
|
10890
10959
|
* Pallet `Beefy`'s transaction calls
|
|
10891
10960
|
**/
|
package/westend/types.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export type WestendRuntimeRuntimeEvent =
|
|
|
100
100
|
| { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
|
|
101
101
|
| { pallet: 'RootTesting'; palletEvent: PalletRootTestingEvent }
|
|
102
102
|
| { pallet: 'MetaTx'; palletEvent: PalletMetaTxEvent }
|
|
103
|
+
| { pallet: 'RootOffences'; palletEvent: PalletRootOffencesEvent }
|
|
103
104
|
| { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
|
|
104
105
|
|
|
105
106
|
/**
|
|
@@ -1664,6 +1665,7 @@ export type WestendRuntimeRuntimeCall =
|
|
|
1664
1665
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
|
|
1665
1666
|
| { pallet: 'RootTesting'; palletCall: PalletRootTestingCall }
|
|
1666
1667
|
| { pallet: 'MetaTx'; palletCall: PalletMetaTxCall }
|
|
1668
|
+
| { pallet: 'RootOffences'; palletCall: PalletRootOffencesCall }
|
|
1667
1669
|
| { pallet: 'Beefy'; palletCall: PalletBeefyCall }
|
|
1668
1670
|
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
|
|
1669
1671
|
|
|
@@ -1718,6 +1720,7 @@ export type WestendRuntimeRuntimeCallLike =
|
|
|
1718
1720
|
| { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
|
|
1719
1721
|
| { pallet: 'RootTesting'; palletCall: PalletRootTestingCallLike }
|
|
1720
1722
|
| { pallet: 'MetaTx'; palletCall: PalletMetaTxCallLike }
|
|
1723
|
+
| { pallet: 'RootOffences'; palletCall: PalletRootOffencesCallLike }
|
|
1721
1724
|
| { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
|
|
1722
1725
|
| { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
|
|
1723
1726
|
|
|
@@ -11809,6 +11812,72 @@ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataH
|
|
|
11809
11812
|
|
|
11810
11813
|
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
11811
11814
|
|
|
11815
|
+
/**
|
|
11816
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
11817
|
+
**/
|
|
11818
|
+
export type PalletRootOffencesCall =
|
|
11819
|
+
/**
|
|
11820
|
+
* Allows the `root`, for example sudo to create an offence.
|
|
11821
|
+
*
|
|
11822
|
+
* If `identifications` is `Some`, then the given identification is used for offence. Else,
|
|
11823
|
+
* it is fetched live from `session::Historical`.
|
|
11824
|
+
**/
|
|
11825
|
+
| {
|
|
11826
|
+
name: 'CreateOffence';
|
|
11827
|
+
params: {
|
|
11828
|
+
offenders: Array<[AccountId32, Perbill]>;
|
|
11829
|
+
maybeIdentifications?: Array<SpStakingExposure> | undefined;
|
|
11830
|
+
maybeSessionIndex?: number | undefined;
|
|
11831
|
+
};
|
|
11832
|
+
}
|
|
11833
|
+
/**
|
|
11834
|
+
* Same as [`Pallet::create_offence`], but it reports the offence directly to a
|
|
11835
|
+
* [`Config::ReportOffence`], aka pallet-offences first.
|
|
11836
|
+
*
|
|
11837
|
+
* This is useful for more accurate testing of the e2e offence processing pipeline, as it
|
|
11838
|
+
* won't skip the `pallet-offences` step.
|
|
11839
|
+
*
|
|
11840
|
+
* It generates an offence of type [`TestSpamOffence`], with cas a fixed `ID`, but can have
|
|
11841
|
+
* any `time_slot`, `session_index``, and `slash_fraction`. These values are the inputs of
|
|
11842
|
+
* transaction, int the same order, with an `IdentiticationTuple` coming first.
|
|
11843
|
+
**/
|
|
11844
|
+
| { name: 'ReportOffence'; params: { offences: Array<[[AccountId32, SpStakingExposure], number, bigint, number]> } };
|
|
11845
|
+
|
|
11846
|
+
export type PalletRootOffencesCallLike =
|
|
11847
|
+
/**
|
|
11848
|
+
* Allows the `root`, for example sudo to create an offence.
|
|
11849
|
+
*
|
|
11850
|
+
* If `identifications` is `Some`, then the given identification is used for offence. Else,
|
|
11851
|
+
* it is fetched live from `session::Historical`.
|
|
11852
|
+
**/
|
|
11853
|
+
| {
|
|
11854
|
+
name: 'CreateOffence';
|
|
11855
|
+
params: {
|
|
11856
|
+
offenders: Array<[AccountId32Like, Perbill]>;
|
|
11857
|
+
maybeIdentifications?: Array<SpStakingExposure> | undefined;
|
|
11858
|
+
maybeSessionIndex?: number | undefined;
|
|
11859
|
+
};
|
|
11860
|
+
}
|
|
11861
|
+
/**
|
|
11862
|
+
* Same as [`Pallet::create_offence`], but it reports the offence directly to a
|
|
11863
|
+
* [`Config::ReportOffence`], aka pallet-offences first.
|
|
11864
|
+
*
|
|
11865
|
+
* This is useful for more accurate testing of the e2e offence processing pipeline, as it
|
|
11866
|
+
* won't skip the `pallet-offences` step.
|
|
11867
|
+
*
|
|
11868
|
+
* It generates an offence of type [`TestSpamOffence`], with cas a fixed `ID`, but can have
|
|
11869
|
+
* any `time_slot`, `session_index``, and `slash_fraction`. These values are the inputs of
|
|
11870
|
+
* transaction, int the same order, with an `IdentiticationTuple` coming first.
|
|
11871
|
+
**/
|
|
11872
|
+
| {
|
|
11873
|
+
name: 'ReportOffence';
|
|
11874
|
+
params: { offences: Array<[[AccountId32Like, SpStakingExposure], number, bigint, number]> };
|
|
11875
|
+
};
|
|
11876
|
+
|
|
11877
|
+
export type SpStakingExposure = { total: bigint; own: bigint; others: Array<SpStakingIndividualExposure> };
|
|
11878
|
+
|
|
11879
|
+
export type SpStakingIndividualExposure = { who: AccountId32; value: bigint };
|
|
11880
|
+
|
|
11812
11881
|
/**
|
|
11813
11882
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
11814
11883
|
**/
|
|
@@ -12611,7 +12680,13 @@ export type PalletStakingAsyncAhClientEvent =
|
|
|
12611
12680
|
**/
|
|
12612
12681
|
| { name: 'Unexpected'; data: PalletStakingAsyncAhClientUnexpectedKind };
|
|
12613
12682
|
|
|
12614
|
-
export type PalletStakingAsyncAhClientUnexpectedKind =
|
|
12683
|
+
export type PalletStakingAsyncAhClientUnexpectedKind =
|
|
12684
|
+
| 'ReceivedValidatorSetWhilePassive'
|
|
12685
|
+
| 'UnexpectedModeTransition'
|
|
12686
|
+
| 'SessionReportSendFailed'
|
|
12687
|
+
| 'SessionReportDropped'
|
|
12688
|
+
| 'OffenceSendFailed'
|
|
12689
|
+
| 'ValidatorPointDropped';
|
|
12615
12690
|
|
|
12616
12691
|
/**
|
|
12617
12692
|
* The `Event` enum of this pallet
|
|
@@ -13105,6 +13180,15 @@ export type PalletMetaTxEvent =
|
|
|
13105
13180
|
data: { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> };
|
|
13106
13181
|
};
|
|
13107
13182
|
|
|
13183
|
+
/**
|
|
13184
|
+
* The `Event` enum of this pallet
|
|
13185
|
+
**/
|
|
13186
|
+
export type PalletRootOffencesEvent =
|
|
13187
|
+
/**
|
|
13188
|
+
* An offence was created by root.
|
|
13189
|
+
**/
|
|
13190
|
+
{ name: 'OffenceCreated'; data: { offenders: Array<[AccountId32, Perbill]> } };
|
|
13191
|
+
|
|
13108
13192
|
/**
|
|
13109
13193
|
* The `Event` enum of this pallet
|
|
13110
13194
|
**/
|
|
@@ -13356,10 +13440,6 @@ export type PalletStakingNominations = { targets: Array<AccountId32>; submittedI
|
|
|
13356
13440
|
|
|
13357
13441
|
export type PalletStakingActiveEraInfo = { index: number; start?: bigint | undefined };
|
|
13358
13442
|
|
|
13359
|
-
export type SpStakingExposure = { total: bigint; own: bigint; others: Array<SpStakingIndividualExposure> };
|
|
13360
|
-
|
|
13361
|
-
export type SpStakingIndividualExposure = { who: AccountId32; value: bigint };
|
|
13362
|
-
|
|
13363
13443
|
export type SpStakingPagedExposureMetadata = { total: bigint; own: bigint; nominatorCount: number; pageCount: number };
|
|
13364
13444
|
|
|
13365
13445
|
export type SpStakingExposurePage = { pageTotal: bigint; others: Array<SpStakingIndividualExposure> };
|
|
@@ -15729,7 +15809,18 @@ export type PolkadotRuntimeParachainsCoretimePalletError =
|
|
|
15729
15809
|
**/
|
|
15730
15810
|
| 'AssetTransferFailed';
|
|
15731
15811
|
|
|
15732
|
-
export type
|
|
15812
|
+
export type PalletStakingAsyncRcClientSessionReport = {
|
|
15813
|
+
endIndex: number;
|
|
15814
|
+
validatorPoints: Array<[AccountId32, number]>;
|
|
15815
|
+
activationTimestamp?: [bigint, number] | undefined;
|
|
15816
|
+
leftover: boolean;
|
|
15817
|
+
};
|
|
15818
|
+
|
|
15819
|
+
export type PalletStakingAsyncRcClientOffence = {
|
|
15820
|
+
offender: AccountId32;
|
|
15821
|
+
reporters: Array<AccountId32>;
|
|
15822
|
+
slashFraction: Perbill;
|
|
15823
|
+
};
|
|
15733
15824
|
|
|
15734
15825
|
/**
|
|
15735
15826
|
* The `Error` enum of this pallet.
|
|
@@ -16074,6 +16165,15 @@ export type PalletMetaTxError =
|
|
|
16074
16165
|
**/
|
|
16075
16166
|
| 'Invalid';
|
|
16076
16167
|
|
|
16168
|
+
/**
|
|
16169
|
+
* The `Error` enum of this pallet.
|
|
16170
|
+
**/
|
|
16171
|
+
export type PalletRootOffencesError =
|
|
16172
|
+
/**
|
|
16173
|
+
* Failed to get the active era from the staking pallet.
|
|
16174
|
+
**/
|
|
16175
|
+
'FailedToGetActiveEra';
|
|
16176
|
+
|
|
16077
16177
|
/**
|
|
16078
16178
|
* The `Error` enum of this pallet.
|
|
16079
16179
|
**/
|
|
@@ -16438,4 +16538,5 @@ export type WestendRuntimeRuntimeError =
|
|
|
16438
16538
|
| { pallet: 'MessageQueue'; palletError: PalletMessageQueueError }
|
|
16439
16539
|
| { pallet: 'AssetRate'; palletError: PalletAssetRateError }
|
|
16440
16540
|
| { pallet: 'MetaTx'; palletError: PalletMetaTxError }
|
|
16541
|
+
| { pallet: 'RootOffences'; palletError: PalletRootOffencesError }
|
|
16441
16542
|
| { pallet: 'Beefy'; palletError: PalletBeefyError };
|
|
@@ -61,7 +61,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
63
|
* @name: WestendAssetHubApi
|
|
64
|
-
* @specVersion:
|
|
64
|
+
* @specVersion: 1020001
|
|
65
65
|
**/
|
|
66
66
|
export interface WestendAssetHubApi {
|
|
67
67
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -123,6 +123,7 @@ import type {
|
|
|
123
123
|
PalletDelegatedStakingDelegation,
|
|
124
124
|
PalletDelegatedStakingAgentLedger,
|
|
125
125
|
PalletStakingAsyncRcClientSessionReport,
|
|
126
|
+
PalletStakingAsyncRcClientValidatorSetReport,
|
|
126
127
|
PalletElectionProviderMultiBlockPhase,
|
|
127
128
|
FrameElectionProviderSupportBoundedSupports,
|
|
128
129
|
PalletElectionProviderMultiBlockVerifierImplsValidSolution,
|
|
@@ -3141,6 +3142,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3141
3142
|
**/
|
|
3142
3143
|
lastSessionReportEndingIndex: GenericStorageQuery<Rv, () => number | undefined>;
|
|
3143
3144
|
|
|
3145
|
+
/**
|
|
3146
|
+
* A validator set that is outgoing, and should be sent.
|
|
3147
|
+
*
|
|
3148
|
+
* This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
|
|
3149
|
+
* or the second value reaches zero, at which point we drop it.
|
|
3150
|
+
*
|
|
3151
|
+
* @param {Callback<[PalletStakingAsyncRcClientValidatorSetReport, number] | undefined> =} callback
|
|
3152
|
+
**/
|
|
3153
|
+
outgoingValidatorSet: GenericStorageQuery<
|
|
3154
|
+
Rv,
|
|
3155
|
+
() => [PalletStakingAsyncRcClientValidatorSetReport, number] | undefined
|
|
3156
|
+
>;
|
|
3157
|
+
|
|
3144
3158
|
/**
|
|
3145
3159
|
* Generic pallet storage query
|
|
3146
3160
|
**/
|
|
@@ -52,8 +52,6 @@ import type {
|
|
|
52
52
|
XcmRuntimeApisAuthorizedAliasesError,
|
|
53
53
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
54
54
|
CumulusPrimitivesCoreCollationInfo,
|
|
55
|
-
PolkadotPrimitivesVstagingCoreSelector,
|
|
56
|
-
PolkadotPrimitivesVstagingClaimQueueOffset,
|
|
57
55
|
PalletRevivePrimitivesContractResult,
|
|
58
56
|
PalletRevivePrimitivesContractResultInstantiateReturnValue,
|
|
59
57
|
PalletRevivePrimitivesCode,
|
|
@@ -892,25 +890,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
892
890
|
**/
|
|
893
891
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
894
892
|
};
|
|
895
|
-
/**
|
|
896
|
-
* @runtimeapi: GetCoreSelectorApi - 0x695c80446b8b3d4e
|
|
897
|
-
**/
|
|
898
|
-
getCoreSelectorApi: {
|
|
899
|
-
/**
|
|
900
|
-
* Retrieve core selector and claim queue offset for the next block.
|
|
901
|
-
*
|
|
902
|
-
* @callname: GetCoreSelectorApi_core_selector
|
|
903
|
-
**/
|
|
904
|
-
coreSelector: GenericRuntimeApiMethod<
|
|
905
|
-
Rv,
|
|
906
|
-
() => Promise<[PolkadotPrimitivesVstagingCoreSelector, PolkadotPrimitivesVstagingClaimQueueOffset]>
|
|
907
|
-
>;
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Generic runtime api call
|
|
911
|
-
**/
|
|
912
|
-
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
913
|
-
};
|
|
914
893
|
/**
|
|
915
894
|
* @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
|
|
916
895
|
**/
|
|
@@ -13393,23 +13393,18 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
13393
13393
|
>;
|
|
13394
13394
|
|
|
13395
13395
|
/**
|
|
13396
|
-
* Called to report one or more new offenses on the relay chain.
|
|
13397
13396
|
*
|
|
13398
|
-
* @param {number}
|
|
13399
|
-
* @param {Array<PalletStakingAsyncRcClientOffence>} offences
|
|
13397
|
+
* @param {Array<[number, PalletStakingAsyncRcClientOffence]>} offences
|
|
13400
13398
|
**/
|
|
13401
|
-
|
|
13399
|
+
relayNewOffencePaged: GenericTxCall<
|
|
13402
13400
|
Rv,
|
|
13403
|
-
(
|
|
13404
|
-
slashSession: number,
|
|
13405
|
-
offences: Array<PalletStakingAsyncRcClientOffence>,
|
|
13406
|
-
) => ChainSubmittableExtrinsic<
|
|
13401
|
+
(offences: Array<[number, PalletStakingAsyncRcClientOffence]>) => ChainSubmittableExtrinsic<
|
|
13407
13402
|
Rv,
|
|
13408
13403
|
{
|
|
13409
13404
|
pallet: 'StakingRcClient';
|
|
13410
13405
|
palletCall: {
|
|
13411
|
-
name: '
|
|
13412
|
-
params: {
|
|
13406
|
+
name: 'RelayNewOffencePaged';
|
|
13407
|
+
params: { offences: Array<[number, PalletStakingAsyncRcClientOffence]> };
|
|
13413
13408
|
};
|
|
13414
13409
|
}
|
|
13415
13410
|
>
|
|
@@ -3284,7 +3284,9 @@ export type PalletStakingAsyncRcClientUnexpectedKind =
|
|
|
3284
3284
|
| 'SessionReportIntegrityFailed'
|
|
3285
3285
|
| 'ValidatorSetIntegrityFailed'
|
|
3286
3286
|
| 'SessionSkipped'
|
|
3287
|
-
| 'SessionAlreadyProcessed'
|
|
3287
|
+
| 'SessionAlreadyProcessed'
|
|
3288
|
+
| 'ValidatorSetSendFailed'
|
|
3289
|
+
| 'ValidatorSetDropped';
|
|
3288
3290
|
|
|
3289
3291
|
/**
|
|
3290
3292
|
* The `Event` enum of this pallet
|
|
@@ -16397,20 +16399,14 @@ export type PalletStakingAsyncRcClientCall =
|
|
|
16397
16399
|
* Called to indicate the start of a new session on the relay chain.
|
|
16398
16400
|
**/
|
|
16399
16401
|
| { name: 'RelaySessionReport'; params: { report: PalletStakingAsyncRcClientSessionReport } }
|
|
16400
|
-
|
|
16401
|
-
* Called to report one or more new offenses on the relay chain.
|
|
16402
|
-
**/
|
|
16403
|
-
| { name: 'RelayNewOffence'; params: { slashSession: number; offences: Array<PalletStakingAsyncRcClientOffence> } };
|
|
16402
|
+
| { name: 'RelayNewOffencePaged'; params: { offences: Array<[number, PalletStakingAsyncRcClientOffence]> } };
|
|
16404
16403
|
|
|
16405
16404
|
export type PalletStakingAsyncRcClientCallLike =
|
|
16406
16405
|
/**
|
|
16407
16406
|
* Called to indicate the start of a new session on the relay chain.
|
|
16408
16407
|
**/
|
|
16409
16408
|
| { name: 'RelaySessionReport'; params: { report: PalletStakingAsyncRcClientSessionReport } }
|
|
16410
|
-
|
|
16411
|
-
* Called to report one or more new offenses on the relay chain.
|
|
16412
|
-
**/
|
|
16413
|
-
| { name: 'RelayNewOffence'; params: { slashSession: number; offences: Array<PalletStakingAsyncRcClientOffence> } };
|
|
16409
|
+
| { name: 'RelayNewOffencePaged'; params: { offences: Array<[number, PalletStakingAsyncRcClientOffence]> } };
|
|
16414
16410
|
|
|
16415
16411
|
export type PalletStakingAsyncRcClientSessionReport = {
|
|
16416
16412
|
endIndex: number;
|
|
@@ -20345,6 +20341,13 @@ export type PalletDelegatedStakingError =
|
|
|
20345
20341
|
**/
|
|
20346
20342
|
| 'NotSupported';
|
|
20347
20343
|
|
|
20344
|
+
export type PalletStakingAsyncRcClientValidatorSetReport = {
|
|
20345
|
+
newValidatorSet: Array<AccountId32>;
|
|
20346
|
+
id: number;
|
|
20347
|
+
pruneUpTo?: number | undefined;
|
|
20348
|
+
leftover: boolean;
|
|
20349
|
+
};
|
|
20350
|
+
|
|
20348
20351
|
/**
|
|
20349
20352
|
* Error of the pallet that can be returned in response to dispatches.
|
|
20350
20353
|
**/
|
|
@@ -20913,10 +20916,6 @@ export type CumulusPrimitivesCoreCollationInfo = {
|
|
|
20913
20916
|
|
|
20914
20917
|
export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
|
|
20915
20918
|
|
|
20916
|
-
export type PolkadotPrimitivesVstagingCoreSelector = number;
|
|
20917
|
-
|
|
20918
|
-
export type PolkadotPrimitivesVstagingClaimQueueOffset = number;
|
|
20919
|
-
|
|
20920
20919
|
export type PalletRevivePrimitivesContractResult = {
|
|
20921
20920
|
gasConsumed: SpWeightsWeightV2Weight;
|
|
20922
20921
|
gasRequired: SpWeightsWeightV2Weight;
|
|
@@ -59,7 +59,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* @name: WestendPeopleApi
|
|
62
|
-
* @specVersion:
|
|
62
|
+
* @specVersion: 1020001
|
|
63
63
|
**/
|
|
64
64
|
export interface WestendPeopleApi {
|
|
65
65
|
legacy: VersionedWestendPeopleApi<RpcLegacy>;
|
|
@@ -46,8 +46,6 @@ import type {
|
|
|
46
46
|
XcmRuntimeApisAuthorizedAliasesOriginAliaser,
|
|
47
47
|
XcmRuntimeApisAuthorizedAliasesError,
|
|
48
48
|
CumulusPrimitivesCoreCollationInfo,
|
|
49
|
-
PolkadotPrimitivesVstagingCoreSelector,
|
|
50
|
-
PolkadotPrimitivesVstagingClaimQueueOffset,
|
|
51
49
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
52
50
|
SpStatementStoreRuntimeApiValidStatement,
|
|
53
51
|
SpStatementStoreRuntimeApiInvalidStatement,
|
|
@@ -690,25 +688,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
690
688
|
**/
|
|
691
689
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
692
690
|
};
|
|
693
|
-
/**
|
|
694
|
-
* @runtimeapi: GetCoreSelectorApi - 0x695c80446b8b3d4e
|
|
695
|
-
**/
|
|
696
|
-
getCoreSelectorApi: {
|
|
697
|
-
/**
|
|
698
|
-
* Retrieve core selector and claim queue offset for the next block.
|
|
699
|
-
*
|
|
700
|
-
* @callname: GetCoreSelectorApi_core_selector
|
|
701
|
-
**/
|
|
702
|
-
coreSelector: GenericRuntimeApiMethod<
|
|
703
|
-
Rv,
|
|
704
|
-
() => Promise<[PolkadotPrimitivesVstagingCoreSelector, PolkadotPrimitivesVstagingClaimQueueOffset]>
|
|
705
|
-
>;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* Generic runtime api call
|
|
709
|
-
**/
|
|
710
|
-
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
711
|
-
};
|
|
712
691
|
/**
|
|
713
692
|
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
714
693
|
**/
|
|
@@ -6187,10 +6187,6 @@ export type CumulusPrimitivesCoreCollationInfo = {
|
|
|
6187
6187
|
|
|
6188
6188
|
export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
|
|
6189
6189
|
|
|
6190
|
-
export type PolkadotPrimitivesVstagingCoreSelector = number;
|
|
6191
|
-
|
|
6192
|
-
export type PolkadotPrimitivesVstagingClaimQueueOffset = number;
|
|
6193
|
-
|
|
6194
6190
|
export type SpStatementStoreRuntimeApiStatementSource = 'Chain' | 'Network' | 'Local';
|
|
6195
6191
|
|
|
6196
6192
|
export type SpStatementStoreStatement = {
|