@dedot/chaintypes 0.78.0 → 0.80.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/paseo-people/json-rpc.d.ts +11 -10
- package/westend/consts.d.ts +38 -32
- package/westend/errors.d.ts +64 -9
- package/westend/events.d.ts +143 -52
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +63 -98
- package/westend/runtime.d.ts +7 -7
- package/westend/tx.d.ts +235 -64
- package/westend/types.d.ts +441 -174
package/westend/query.d.ts
CHANGED
|
@@ -39,15 +39,14 @@ import type {
|
|
|
39
39
|
PalletStakingValidatorPrefs,
|
|
40
40
|
PalletStakingNominations,
|
|
41
41
|
PalletStakingActiveEraInfo,
|
|
42
|
+
SpStakingExposure,
|
|
42
43
|
SpStakingPagedExposureMetadata,
|
|
43
44
|
SpStakingExposurePage,
|
|
44
45
|
PalletStakingEraRewardPoints,
|
|
45
46
|
PalletStakingForcing,
|
|
46
|
-
PalletStakingSlashingOffenceRecord,
|
|
47
47
|
PalletStakingUnappliedSlash,
|
|
48
48
|
PalletStakingSlashingSlashingSpans,
|
|
49
49
|
PalletStakingSlashingSpanRecord,
|
|
50
|
-
PalletStakingSnapshotStatus,
|
|
51
50
|
SpStakingOffenceOffenceDetails,
|
|
52
51
|
WestendRuntimeRuntimeParametersValue,
|
|
53
52
|
WestendRuntimeRuntimeParametersKey,
|
|
@@ -139,6 +138,7 @@ import type {
|
|
|
139
138
|
PalletXcmRemoteLockedFungibleRecord,
|
|
140
139
|
XcmVersionedAssetId,
|
|
141
140
|
StagingXcmV5Xcm,
|
|
141
|
+
PalletXcmAuthorizedAliasesEntry,
|
|
142
142
|
PalletMessageQueueBookState,
|
|
143
143
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
144
144
|
PalletMessageQueuePage,
|
|
@@ -866,6 +866,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
866
866
|
**/
|
|
867
867
|
erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
|
|
868
868
|
|
|
869
|
+
/**
|
|
870
|
+
* Exposure of validator at era.
|
|
871
|
+
*
|
|
872
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
873
|
+
*
|
|
874
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
875
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
876
|
+
*
|
|
877
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
878
|
+
*
|
|
879
|
+
* @param {[number, AccountId32Like]} arg
|
|
880
|
+
* @param {Callback<SpStakingExposure> =} callback
|
|
881
|
+
**/
|
|
882
|
+
erasStakers: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>;
|
|
883
|
+
|
|
869
884
|
/**
|
|
870
885
|
* Summary of validator exposure at a given era.
|
|
871
886
|
*
|
|
@@ -889,6 +904,33 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
889
904
|
[number, AccountId32]
|
|
890
905
|
>;
|
|
891
906
|
|
|
907
|
+
/**
|
|
908
|
+
* Clipped Exposure of validator at era.
|
|
909
|
+
*
|
|
910
|
+
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
|
911
|
+
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
|
912
|
+
*
|
|
913
|
+
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
914
|
+
* `T::MaxExposurePageSize` biggest stakers.
|
|
915
|
+
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
916
|
+
* This is used to limit the i/o cost for the nominator payout.
|
|
917
|
+
*
|
|
918
|
+
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
919
|
+
*
|
|
920
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
921
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
922
|
+
*
|
|
923
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
924
|
+
*
|
|
925
|
+
* @param {[number, AccountId32Like]} arg
|
|
926
|
+
* @param {Callback<SpStakingExposure> =} callback
|
|
927
|
+
**/
|
|
928
|
+
erasStakersClipped: GenericStorageQuery<
|
|
929
|
+
Rv,
|
|
930
|
+
(arg: [number, AccountId32Like]) => SpStakingExposure,
|
|
931
|
+
[number, AccountId32]
|
|
932
|
+
>;
|
|
933
|
+
|
|
892
934
|
/**
|
|
893
935
|
* Paginated exposure of a validator at given era.
|
|
894
936
|
*
|
|
@@ -920,7 +962,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
920
962
|
claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
|
|
921
963
|
|
|
922
964
|
/**
|
|
923
|
-
*
|
|
965
|
+
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
924
966
|
*
|
|
925
967
|
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
926
968
|
*
|
|
@@ -996,76 +1038,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
996
1038
|
**/
|
|
997
1039
|
canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
|
|
998
1040
|
|
|
999
|
-
/**
|
|
1000
|
-
* Stores reported offences in a queue until they are processed in subsequent blocks.
|
|
1001
|
-
*
|
|
1002
|
-
* Each offence is recorded under the corresponding era index and the offending validator's
|
|
1003
|
-
* account. If an offence spans multiple pages, only one page is processed at a time. Offences
|
|
1004
|
-
* are handled sequentially, with their associated slashes computed and stored in
|
|
1005
|
-
* `UnappliedSlashes`. These slashes are then applied in a future era as determined by
|
|
1006
|
-
* `SlashDeferDuration`.
|
|
1007
|
-
*
|
|
1008
|
-
* Any offences tied to an era older than `BondingDuration` are automatically dropped.
|
|
1009
|
-
* Processing always prioritizes the oldest era first.
|
|
1010
|
-
*
|
|
1011
|
-
* @param {[number, AccountId32Like]} arg
|
|
1012
|
-
* @param {Callback<PalletStakingSlashingOffenceRecord | undefined> =} callback
|
|
1013
|
-
**/
|
|
1014
|
-
offenceQueue: GenericStorageQuery<
|
|
1015
|
-
Rv,
|
|
1016
|
-
(arg: [number, AccountId32Like]) => PalletStakingSlashingOffenceRecord | undefined,
|
|
1017
|
-
[number, AccountId32]
|
|
1018
|
-
>;
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* Tracks the eras that contain offences in `OffenceQueue`, sorted from **earliest to latest**.
|
|
1022
|
-
*
|
|
1023
|
-
* - This ensures efficient retrieval of the oldest offence without iterating through
|
|
1024
|
-
* `OffenceQueue`.
|
|
1025
|
-
* - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
|
|
1026
|
-
* if not already present.
|
|
1027
|
-
* - When all offences for an era are processed, it is **removed** from this list.
|
|
1028
|
-
* - The maximum length of this vector is bounded by `BondingDuration`.
|
|
1029
|
-
*
|
|
1030
|
-
* This eliminates the need for expensive iteration and sorting when fetching the next offence
|
|
1031
|
-
* to process.
|
|
1032
|
-
*
|
|
1033
|
-
* @param {Callback<Array<number> | undefined> =} callback
|
|
1034
|
-
**/
|
|
1035
|
-
offenceQueueEras: GenericStorageQuery<Rv, () => Array<number> | undefined>;
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Tracks the currently processed offence record from the `OffenceQueue`.
|
|
1039
|
-
*
|
|
1040
|
-
* - When processing offences, an offence record is **popped** from the oldest era in
|
|
1041
|
-
* `OffenceQueue` and stored here.
|
|
1042
|
-
* - The function `process_offence` reads from this storage, processing one page of exposure at
|
|
1043
|
-
* a time.
|
|
1044
|
-
* - After processing a page, the `exposure_page` count is **decremented** until it reaches
|
|
1045
|
-
* zero.
|
|
1046
|
-
* - Once fully processed, the offence record is removed from this storage.
|
|
1047
|
-
*
|
|
1048
|
-
* This ensures that offences are processed incrementally, preventing excessive computation
|
|
1049
|
-
* in a single block while maintaining correct slashing behavior.
|
|
1050
|
-
*
|
|
1051
|
-
* @param {Callback<[number, AccountId32, PalletStakingSlashingOffenceRecord] | undefined> =} callback
|
|
1052
|
-
**/
|
|
1053
|
-
processingOffence: GenericStorageQuery<
|
|
1054
|
-
Rv,
|
|
1055
|
-
() => [number, AccountId32, PalletStakingSlashingOffenceRecord] | undefined
|
|
1056
|
-
>;
|
|
1057
|
-
|
|
1058
1041
|
/**
|
|
1059
1042
|
* All unapplied slashes that are queued for later.
|
|
1060
1043
|
*
|
|
1061
|
-
* @param {
|
|
1062
|
-
* @param {Callback<PalletStakingUnappliedSlash
|
|
1044
|
+
* @param {number} arg
|
|
1045
|
+
* @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
|
|
1063
1046
|
**/
|
|
1064
|
-
unappliedSlashes: GenericStorageQuery<
|
|
1065
|
-
Rv,
|
|
1066
|
-
(arg: [number, [AccountId32Like, Perbill, number]]) => PalletStakingUnappliedSlash | undefined,
|
|
1067
|
-
[number, [AccountId32, Perbill, number]]
|
|
1068
|
-
>;
|
|
1047
|
+
unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
|
|
1069
1048
|
|
|
1070
1049
|
/**
|
|
1071
1050
|
* A mapping from still-bonded eras to the first session index of that era.
|
|
@@ -1145,35 +1124,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1145
1124
|
**/
|
|
1146
1125
|
chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
|
|
1147
1126
|
|
|
1148
|
-
/**
|
|
1149
|
-
* Voter snapshot progress status.
|
|
1150
|
-
*
|
|
1151
|
-
* If the status is `Ongoing`, it keeps a cursor of the last voter retrieved to proceed when
|
|
1152
|
-
* creating the next snapshot page.
|
|
1153
|
-
*
|
|
1154
|
-
* @param {Callback<PalletStakingSnapshotStatus> =} callback
|
|
1155
|
-
**/
|
|
1156
|
-
voterSnapshotStatus: GenericStorageQuery<Rv, () => PalletStakingSnapshotStatus>;
|
|
1157
|
-
|
|
1158
|
-
/**
|
|
1159
|
-
* Keeps track of an ongoing multi-page election solution request.
|
|
1160
|
-
*
|
|
1161
|
-
* If `Some(_)``, it is the next page that we intend to elect. If `None`, we are not in the
|
|
1162
|
-
* election process.
|
|
1163
|
-
*
|
|
1164
|
-
* This is only set in multi-block elections. Should always be `None` otherwise.
|
|
1165
|
-
*
|
|
1166
|
-
* @param {Callback<number | undefined> =} callback
|
|
1167
|
-
**/
|
|
1168
|
-
nextElectionPage: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* A bounded list of the "electable" stashes that resulted from a successful election.
|
|
1172
|
-
*
|
|
1173
|
-
* @param {Callback<Array<AccountId32>> =} callback
|
|
1174
|
-
**/
|
|
1175
|
-
electableStashes: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
1176
|
-
|
|
1177
1127
|
/**
|
|
1178
1128
|
* Generic pallet storage query
|
|
1179
1129
|
**/
|
|
@@ -1604,6 +1554,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1604
1554
|
**/
|
|
1605
1555
|
scheduler: {
|
|
1606
1556
|
/**
|
|
1557
|
+
* Block number at which the agenda began incomplete execution.
|
|
1607
1558
|
*
|
|
1608
1559
|
* @param {Callback<number | undefined> =} callback
|
|
1609
1560
|
**/
|
|
@@ -3802,6 +3753,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3802
3753
|
**/
|
|
3803
3754
|
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
3804
3755
|
|
|
3756
|
+
/**
|
|
3757
|
+
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
|
3758
|
+
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
|
3759
|
+
* block number.
|
|
3760
|
+
*
|
|
3761
|
+
* @param {XcmVersionedLocation} arg
|
|
3762
|
+
* @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
|
|
3763
|
+
**/
|
|
3764
|
+
authorizedAliases: GenericStorageQuery<
|
|
3765
|
+
Rv,
|
|
3766
|
+
(arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
|
|
3767
|
+
XcmVersionedLocation
|
|
3768
|
+
>;
|
|
3769
|
+
|
|
3805
3770
|
/**
|
|
3806
3771
|
* Generic pallet storage query
|
|
3807
3772
|
**/
|
package/westend/runtime.d.ts
CHANGED
|
@@ -663,6 +663,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
663
663
|
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
664
664
|
>;
|
|
665
665
|
|
|
666
|
+
/**
|
|
667
|
+
* Retrieve the maximum uncompressed code size.
|
|
668
|
+
*
|
|
669
|
+
* @callname: ParachainHost_validation_code_bomb_limit
|
|
670
|
+
**/
|
|
671
|
+
validationCodeBombLimit: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
672
|
+
|
|
666
673
|
/**
|
|
667
674
|
* Returns the constraints on the actions that can be taken by a new parachain
|
|
668
675
|
* block.
|
|
@@ -684,13 +691,6 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
684
691
|
**/
|
|
685
692
|
schedulingLookahead: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
686
693
|
|
|
687
|
-
/**
|
|
688
|
-
* Retrieve the maximum uncompressed code size.
|
|
689
|
-
*
|
|
690
|
-
* @callname: ParachainHost_validation_code_bomb_limit
|
|
691
|
-
**/
|
|
692
|
-
validationCodeBombLimit: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
|
|
693
|
-
|
|
694
694
|
/**
|
|
695
695
|
* Generic runtime api call
|
|
696
696
|
**/
|
package/westend/tx.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ import type {
|
|
|
93
93
|
StagingXcmExecutorAssetTransferTransferType,
|
|
94
94
|
XcmVersionedAssetId,
|
|
95
95
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
96
|
+
PalletMetaTxMetaTx,
|
|
96
97
|
SpConsensusBeefyDoubleVotingProof,
|
|
97
98
|
SpConsensusBeefyForkVotingProof,
|
|
98
99
|
SpConsensusBeefyFutureBlockVotingProof,
|
|
@@ -655,6 +656,34 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
655
656
|
>
|
|
656
657
|
>;
|
|
657
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Poke the deposit reserved for an index.
|
|
661
|
+
*
|
|
662
|
+
* The dispatch origin for this call must be _Signed_ and the signing account must have a
|
|
663
|
+
* non-frozen account `index`.
|
|
664
|
+
*
|
|
665
|
+
* The transaction fees is waived if the deposit is changed after poking/reconsideration.
|
|
666
|
+
*
|
|
667
|
+
* - `index`: the index whose deposit is to be poked/reconsidered.
|
|
668
|
+
*
|
|
669
|
+
* Emits `DepositPoked` if successful.
|
|
670
|
+
*
|
|
671
|
+
* @param {number} index
|
|
672
|
+
**/
|
|
673
|
+
pokeDeposit: GenericTxCall<
|
|
674
|
+
Rv,
|
|
675
|
+
(index: number) => ChainSubmittableExtrinsic<
|
|
676
|
+
Rv,
|
|
677
|
+
{
|
|
678
|
+
pallet: 'Indices';
|
|
679
|
+
palletCall: {
|
|
680
|
+
name: 'PokeDeposit';
|
|
681
|
+
params: { index: number };
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
>
|
|
685
|
+
>;
|
|
686
|
+
|
|
658
687
|
/**
|
|
659
688
|
* Generic pallet tx call
|
|
660
689
|
**/
|
|
@@ -1236,7 +1265,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1236
1265
|
|
|
1237
1266
|
/**
|
|
1238
1267
|
* Increments the ideal number of validators up to maximum of
|
|
1239
|
-
* `
|
|
1268
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
1240
1269
|
*
|
|
1241
1270
|
* The dispatch origin must be Root.
|
|
1242
1271
|
*
|
|
@@ -1261,7 +1290,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1261
1290
|
|
|
1262
1291
|
/**
|
|
1263
1292
|
* Scale up the ideal number of validators by a factor up to maximum of
|
|
1264
|
-
* `
|
|
1293
|
+
* `ElectionProviderBase::MaxWinners`.
|
|
1265
1294
|
*
|
|
1266
1295
|
* The dispatch origin must be Root.
|
|
1267
1296
|
*
|
|
@@ -1420,31 +1449,27 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1420
1449
|
>;
|
|
1421
1450
|
|
|
1422
1451
|
/**
|
|
1423
|
-
*
|
|
1452
|
+
* Cancel enactment of a deferred slash.
|
|
1424
1453
|
*
|
|
1425
|
-
*
|
|
1426
|
-
* the `UnappliedSlashes` storage, preventing their enactment.
|
|
1454
|
+
* Can be called by the `T::AdminOrigin`.
|
|
1427
1455
|
*
|
|
1428
|
-
*
|
|
1429
|
-
* - `era`: The staking era for which slashes were deferred.
|
|
1430
|
-
* - `slash_keys`: A list of slash keys identifying the slashes to remove. This is a tuple
|
|
1431
|
-
* of `(stash, slash_fraction, page_index)`.
|
|
1456
|
+
* Parameters: era and indices of the slashes for that era to kill.
|
|
1432
1457
|
*
|
|
1433
1458
|
* @param {number} era
|
|
1434
|
-
* @param {Array<
|
|
1459
|
+
* @param {Array<number>} slashIndices
|
|
1435
1460
|
**/
|
|
1436
1461
|
cancelDeferredSlash: GenericTxCall<
|
|
1437
1462
|
Rv,
|
|
1438
1463
|
(
|
|
1439
1464
|
era: number,
|
|
1440
|
-
|
|
1465
|
+
slashIndices: Array<number>,
|
|
1441
1466
|
) => ChainSubmittableExtrinsic<
|
|
1442
1467
|
Rv,
|
|
1443
1468
|
{
|
|
1444
1469
|
pallet: 'Staking';
|
|
1445
1470
|
palletCall: {
|
|
1446
1471
|
name: 'CancelDeferredSlash';
|
|
1447
|
-
params: { era: number;
|
|
1472
|
+
params: { era: number; slashIndices: Array<number> };
|
|
1448
1473
|
};
|
|
1449
1474
|
}
|
|
1450
1475
|
>
|
|
@@ -1856,11 +1881,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1856
1881
|
>;
|
|
1857
1882
|
|
|
1858
1883
|
/**
|
|
1859
|
-
*
|
|
1884
|
+
* Removes the legacy Staking locks if they exist.
|
|
1860
1885
|
*
|
|
1861
|
-
* This removes the
|
|
1862
|
-
* stake cannot be held, the best effort is made to hold as
|
|
1863
|
-
* stake is
|
|
1886
|
+
* This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
|
|
1887
|
+
* hold on it if needed. If all stake cannot be held, the best effort is made to hold as
|
|
1888
|
+
* much as possible. The remaining stake is forced withdrawn from the ledger.
|
|
1864
1889
|
*
|
|
1865
1890
|
* The fee is waived if the migration is successful.
|
|
1866
1891
|
*
|
|
@@ -1881,68 +1906,45 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1881
1906
|
>;
|
|
1882
1907
|
|
|
1883
1908
|
/**
|
|
1884
|
-
*
|
|
1909
|
+
* This function allows governance to manually slash a validator and is a
|
|
1910
|
+
* **fallback mechanism**.
|
|
1885
1911
|
*
|
|
1886
|
-
*
|
|
1887
|
-
* This function exists as a **fallback mechanism** in case slashes were not applied due to
|
|
1888
|
-
* unexpected reasons. It allows anyone to manually apply an unapplied slash.
|
|
1912
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
1889
1913
|
*
|
|
1890
1914
|
* ## Parameters
|
|
1891
|
-
* - `
|
|
1892
|
-
* - `
|
|
1893
|
-
* - `
|
|
1894
|
-
* - `slash_fraction`: The fraction of the stake that was slashed.
|
|
1895
|
-
* - `page_index`: The index of the exposure page being processed.
|
|
1915
|
+
* - `validator_stash` - The stash account of the validator to slash.
|
|
1916
|
+
* - `era` - The era in which the validator was in the active set.
|
|
1917
|
+
* - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
|
|
1896
1918
|
*
|
|
1897
1919
|
* ## Behavior
|
|
1898
|
-
* - The function is **permissionless**—anyone can call it.
|
|
1899
|
-
* - The `slash_era` **must be the current era or a past era**. If it is in the future, the
|
|
1900
|
-
* call fails with `EraNotStarted`.
|
|
1901
|
-
* - The fee is waived if the slash is successfully applied.
|
|
1902
1920
|
*
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1905
|
-
*
|
|
1921
|
+
* The slash will be applied using the standard slashing mechanics, respecting the
|
|
1922
|
+
* configured `SlashDeferDuration`.
|
|
1923
|
+
*
|
|
1924
|
+
* This means:
|
|
1925
|
+
* - If the validator was already slashed by a higher percentage for the same era, this
|
|
1926
|
+
* slash will have no additional effect.
|
|
1927
|
+
* - If the validator was previously slashed by a lower percentage, only the difference
|
|
1928
|
+
* will be applied.
|
|
1929
|
+
* - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
|
|
1906
1930
|
*
|
|
1907
|
-
* @param {
|
|
1908
|
-
* @param {
|
|
1931
|
+
* @param {AccountId32Like} validatorStash
|
|
1932
|
+
* @param {number} era
|
|
1933
|
+
* @param {Perbill} slashFraction
|
|
1909
1934
|
**/
|
|
1910
|
-
|
|
1935
|
+
manualSlash: GenericTxCall<
|
|
1911
1936
|
Rv,
|
|
1912
1937
|
(
|
|
1913
|
-
|
|
1914
|
-
|
|
1938
|
+
validatorStash: AccountId32Like,
|
|
1939
|
+
era: number,
|
|
1940
|
+
slashFraction: Perbill,
|
|
1915
1941
|
) => ChainSubmittableExtrinsic<
|
|
1916
1942
|
Rv,
|
|
1917
1943
|
{
|
|
1918
1944
|
pallet: 'Staking';
|
|
1919
1945
|
palletCall: {
|
|
1920
|
-
name: '
|
|
1921
|
-
params: {
|
|
1922
|
-
};
|
|
1923
|
-
}
|
|
1924
|
-
>
|
|
1925
|
-
>;
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* Adjusts the staking ledger by withdrawing any excess staked amount.
|
|
1929
|
-
*
|
|
1930
|
-
* This function corrects cases where a user's recorded stake in the ledger
|
|
1931
|
-
* exceeds their actual staked funds. This situation can arise due to cases such as
|
|
1932
|
-
* external slashing by another pallet, leading to an inconsistency between the ledger
|
|
1933
|
-
* and the actual stake.
|
|
1934
|
-
*
|
|
1935
|
-
* @param {AccountId32Like} stash
|
|
1936
|
-
**/
|
|
1937
|
-
withdrawOverstake: GenericTxCall<
|
|
1938
|
-
Rv,
|
|
1939
|
-
(stash: AccountId32Like) => ChainSubmittableExtrinsic<
|
|
1940
|
-
Rv,
|
|
1941
|
-
{
|
|
1942
|
-
pallet: 'Staking';
|
|
1943
|
-
palletCall: {
|
|
1944
|
-
name: 'WithdrawOverstake';
|
|
1945
|
-
params: { stash: AccountId32Like };
|
|
1946
|
+
name: 'ManualSlash';
|
|
1947
|
+
params: { validatorStash: AccountId32Like; era: number; slashFraction: Perbill };
|
|
1946
1948
|
};
|
|
1947
1949
|
}
|
|
1948
1950
|
>
|
|
@@ -4465,6 +4467,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4465
4467
|
>
|
|
4466
4468
|
>;
|
|
4467
4469
|
|
|
4470
|
+
/**
|
|
4471
|
+
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
|
4472
|
+
* This can be used by accounts to possibly lower their locked amount.
|
|
4473
|
+
*
|
|
4474
|
+
* The dispatch origin for this call must be _Signed_.
|
|
4475
|
+
*
|
|
4476
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4477
|
+
*
|
|
4478
|
+
* Emits `DepositPoked` if successful.
|
|
4479
|
+
*
|
|
4480
|
+
**/
|
|
4481
|
+
pokeDeposit: GenericTxCall<
|
|
4482
|
+
Rv,
|
|
4483
|
+
() => ChainSubmittableExtrinsic<
|
|
4484
|
+
Rv,
|
|
4485
|
+
{
|
|
4486
|
+
pallet: 'Proxy';
|
|
4487
|
+
palletCall: {
|
|
4488
|
+
name: 'PokeDeposit';
|
|
4489
|
+
};
|
|
4490
|
+
}
|
|
4491
|
+
>
|
|
4492
|
+
>;
|
|
4493
|
+
|
|
4468
4494
|
/**
|
|
4469
4495
|
* Generic pallet tx call
|
|
4470
4496
|
**/
|
|
@@ -4697,6 +4723,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4697
4723
|
>
|
|
4698
4724
|
>;
|
|
4699
4725
|
|
|
4726
|
+
/**
|
|
4727
|
+
* Poke the deposit reserved for an existing multisig operation.
|
|
4728
|
+
*
|
|
4729
|
+
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
|
4730
|
+
* the multisig operation.
|
|
4731
|
+
*
|
|
4732
|
+
* The transaction fee is waived if the deposit amount has changed.
|
|
4733
|
+
*
|
|
4734
|
+
* - `threshold`: The total number of approvals needed for this multisig.
|
|
4735
|
+
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
|
4736
|
+
* multisig.
|
|
4737
|
+
* - `call_hash`: The hash of the call this deposit is reserved for.
|
|
4738
|
+
*
|
|
4739
|
+
* Emits `DepositPoked` if successful.
|
|
4740
|
+
*
|
|
4741
|
+
* @param {number} threshold
|
|
4742
|
+
* @param {Array<AccountId32Like>} otherSignatories
|
|
4743
|
+
* @param {FixedBytes<32>} callHash
|
|
4744
|
+
**/
|
|
4745
|
+
pokeDeposit: GenericTxCall<
|
|
4746
|
+
Rv,
|
|
4747
|
+
(
|
|
4748
|
+
threshold: number,
|
|
4749
|
+
otherSignatories: Array<AccountId32Like>,
|
|
4750
|
+
callHash: FixedBytes<32>,
|
|
4751
|
+
) => ChainSubmittableExtrinsic<
|
|
4752
|
+
Rv,
|
|
4753
|
+
{
|
|
4754
|
+
pallet: 'Multisig';
|
|
4755
|
+
palletCall: {
|
|
4756
|
+
name: 'PokeDeposit';
|
|
4757
|
+
params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
|
|
4758
|
+
};
|
|
4759
|
+
}
|
|
4760
|
+
>
|
|
4761
|
+
>;
|
|
4762
|
+
|
|
4700
4763
|
/**
|
|
4701
4764
|
* Generic pallet tx call
|
|
4702
4765
|
**/
|
|
@@ -4827,15 +4890,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
4827
4890
|
* This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
|
|
4828
4891
|
* calling [`Call::set_emergency_election_result`].
|
|
4829
4892
|
*
|
|
4893
|
+
* @param {number | undefined} maybeMaxVoters
|
|
4894
|
+
* @param {number | undefined} maybeMaxTargets
|
|
4830
4895
|
**/
|
|
4831
4896
|
governanceFallback: GenericTxCall<
|
|
4832
4897
|
Rv,
|
|
4833
|
-
(
|
|
4898
|
+
(
|
|
4899
|
+
maybeMaxVoters: number | undefined,
|
|
4900
|
+
maybeMaxTargets: number | undefined,
|
|
4901
|
+
) => ChainSubmittableExtrinsic<
|
|
4834
4902
|
Rv,
|
|
4835
4903
|
{
|
|
4836
4904
|
pallet: 'ElectionProviderMultiPhase';
|
|
4837
4905
|
palletCall: {
|
|
4838
4906
|
name: 'GovernanceFallback';
|
|
4907
|
+
params: { maybeMaxVoters: number | undefined; maybeMaxTargets: number | undefined };
|
|
4839
4908
|
};
|
|
4840
4909
|
}
|
|
4841
4910
|
>
|
|
@@ -10304,6 +10373,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10304
10373
|
>
|
|
10305
10374
|
>;
|
|
10306
10375
|
|
|
10376
|
+
/**
|
|
10377
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
10378
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
10379
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
10380
|
+
* `expiry` block number.
|
|
10381
|
+
*
|
|
10382
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
10383
|
+
* also under your control (like your account on another chain).
|
|
10384
|
+
*
|
|
10385
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
10386
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
10387
|
+
* `origin` in XCM programs executed on the local chain.
|
|
10388
|
+
*
|
|
10389
|
+
* @param {XcmVersionedLocation} aliaser
|
|
10390
|
+
* @param {bigint | undefined} expires
|
|
10391
|
+
**/
|
|
10392
|
+
addAuthorizedAlias: GenericTxCall<
|
|
10393
|
+
Rv,
|
|
10394
|
+
(
|
|
10395
|
+
aliaser: XcmVersionedLocation,
|
|
10396
|
+
expires: bigint | undefined,
|
|
10397
|
+
) => ChainSubmittableExtrinsic<
|
|
10398
|
+
Rv,
|
|
10399
|
+
{
|
|
10400
|
+
pallet: 'XcmPallet';
|
|
10401
|
+
palletCall: {
|
|
10402
|
+
name: 'AddAuthorizedAlias';
|
|
10403
|
+
params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
|
|
10404
|
+
};
|
|
10405
|
+
}
|
|
10406
|
+
>
|
|
10407
|
+
>;
|
|
10408
|
+
|
|
10409
|
+
/**
|
|
10410
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
10411
|
+
* the local `origin` making this call.
|
|
10412
|
+
*
|
|
10413
|
+
* @param {XcmVersionedLocation} aliaser
|
|
10414
|
+
**/
|
|
10415
|
+
removeAuthorizedAlias: GenericTxCall<
|
|
10416
|
+
Rv,
|
|
10417
|
+
(aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
|
|
10418
|
+
Rv,
|
|
10419
|
+
{
|
|
10420
|
+
pallet: 'XcmPallet';
|
|
10421
|
+
palletCall: {
|
|
10422
|
+
name: 'RemoveAuthorizedAlias';
|
|
10423
|
+
params: { aliaser: XcmVersionedLocation };
|
|
10424
|
+
};
|
|
10425
|
+
}
|
|
10426
|
+
>
|
|
10427
|
+
>;
|
|
10428
|
+
|
|
10429
|
+
/**
|
|
10430
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
10431
|
+
* making this call.
|
|
10432
|
+
*
|
|
10433
|
+
**/
|
|
10434
|
+
removeAllAuthorizedAliases: GenericTxCall<
|
|
10435
|
+
Rv,
|
|
10436
|
+
() => ChainSubmittableExtrinsic<
|
|
10437
|
+
Rv,
|
|
10438
|
+
{
|
|
10439
|
+
pallet: 'XcmPallet';
|
|
10440
|
+
palletCall: {
|
|
10441
|
+
name: 'RemoveAllAuthorizedAliases';
|
|
10442
|
+
};
|
|
10443
|
+
}
|
|
10444
|
+
>
|
|
10445
|
+
>;
|
|
10446
|
+
|
|
10307
10447
|
/**
|
|
10308
10448
|
* Generic pallet tx call
|
|
10309
10449
|
**/
|
|
@@ -10512,6 +10652,37 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10512
10652
|
**/
|
|
10513
10653
|
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
10514
10654
|
};
|
|
10655
|
+
/**
|
|
10656
|
+
* Pallet `MetaTx`'s transaction calls
|
|
10657
|
+
**/
|
|
10658
|
+
metaTx: {
|
|
10659
|
+
/**
|
|
10660
|
+
* Dispatch a given meta transaction.
|
|
10661
|
+
*
|
|
10662
|
+
* - `_origin`: Can be any kind of origin.
|
|
10663
|
+
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
|
10664
|
+
*
|
|
10665
|
+
* @param {PalletMetaTxMetaTx} metaTx
|
|
10666
|
+
**/
|
|
10667
|
+
dispatch: GenericTxCall<
|
|
10668
|
+
Rv,
|
|
10669
|
+
(metaTx: PalletMetaTxMetaTx) => ChainSubmittableExtrinsic<
|
|
10670
|
+
Rv,
|
|
10671
|
+
{
|
|
10672
|
+
pallet: 'MetaTx';
|
|
10673
|
+
palletCall: {
|
|
10674
|
+
name: 'Dispatch';
|
|
10675
|
+
params: { metaTx: PalletMetaTxMetaTx };
|
|
10676
|
+
};
|
|
10677
|
+
}
|
|
10678
|
+
>
|
|
10679
|
+
>;
|
|
10680
|
+
|
|
10681
|
+
/**
|
|
10682
|
+
* Generic pallet tx call
|
|
10683
|
+
**/
|
|
10684
|
+
[callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
|
|
10685
|
+
};
|
|
10515
10686
|
/**
|
|
10516
10687
|
* Pallet `Beefy`'s transaction calls
|
|
10517
10688
|
**/
|