@dedot/chaintypes 0.142.0 → 0.143.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-asset-hub/consts.d.ts +681 -2
- package/paseo-asset-hub/errors.d.ts +1309 -30
- package/paseo-asset-hub/events.d.ts +1966 -59
- package/paseo-asset-hub/index.d.ts +1 -1
- package/paseo-asset-hub/query.d.ts +1782 -36
- package/paseo-asset-hub/runtime.d.ts +1 -1
- package/paseo-asset-hub/tx.d.ts +5715 -151
- package/paseo-asset-hub/types.d.ts +9421 -1521
- package/polkadot-people/consts.d.ts +38 -1
- package/polkadot-people/errors.d.ts +18 -12
- package/polkadot-people/events.d.ts +110 -2
- package/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/query.d.ts +36 -6
- package/polkadot-people/runtime.d.ts +1 -1
- package/polkadot-people/tx.d.ts +204 -0
- package/polkadot-people/types.d.ts +315 -24
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type { RuntimeVersion, Permill } from 'dedot/codecs';
|
|
4
|
+
import type { RuntimeVersion, Bytes, AccountId32, Permill, Perbill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
10
|
SpWeightsWeightV2Weight,
|
|
11
|
+
FrameSupportPalletId,
|
|
11
12
|
PalletNftsBitFlagsPalletFeature,
|
|
12
13
|
StagingXcmV4Location,
|
|
13
|
-
|
|
14
|
+
PalletReferendaTrackDetails,
|
|
14
15
|
} from './types.js';
|
|
15
16
|
|
|
16
17
|
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
@@ -99,6 +100,38 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
99
100
|
**/
|
|
100
101
|
[name: string]: any;
|
|
101
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Pallet `Preimage`'s constants
|
|
105
|
+
**/
|
|
106
|
+
preimage: {
|
|
107
|
+
/**
|
|
108
|
+
* Generic pallet constant
|
|
109
|
+
**/
|
|
110
|
+
[name: string]: any;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Pallet `Scheduler`'s constants
|
|
114
|
+
**/
|
|
115
|
+
scheduler: {
|
|
116
|
+
/**
|
|
117
|
+
* The maximum weight that may be scheduled per block for any dispatchables.
|
|
118
|
+
**/
|
|
119
|
+
maximumWeight: SpWeightsWeightV2Weight;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The maximum number of scheduled calls in the queue for a single block.
|
|
123
|
+
*
|
|
124
|
+
* NOTE:
|
|
125
|
+
* + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
|
|
126
|
+
* higher limit under `runtime-benchmarks` feature.
|
|
127
|
+
**/
|
|
128
|
+
maxScheduledPerBlock: number;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Generic pallet constant
|
|
132
|
+
**/
|
|
133
|
+
[name: string]: any;
|
|
134
|
+
};
|
|
102
135
|
/**
|
|
103
136
|
* Pallet `Balances`'s constants
|
|
104
137
|
**/
|
|
@@ -198,6 +231,17 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
198
231
|
**/
|
|
199
232
|
[name: string]: any;
|
|
200
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* Pallet `Claims`'s constants
|
|
236
|
+
**/
|
|
237
|
+
claims: {
|
|
238
|
+
prefix: Bytes;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Generic pallet constant
|
|
242
|
+
**/
|
|
243
|
+
[name: string]: any;
|
|
244
|
+
};
|
|
201
245
|
/**
|
|
202
246
|
* Pallet `Authorship`'s constants
|
|
203
247
|
**/
|
|
@@ -211,6 +255,36 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
211
255
|
* Pallet `CollatorSelection`'s constants
|
|
212
256
|
**/
|
|
213
257
|
collatorSelection: {
|
|
258
|
+
/**
|
|
259
|
+
* Account Identifier from which the internal Pot is generated.
|
|
260
|
+
**/
|
|
261
|
+
potId: FrameSupportPalletId;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Maximum number of candidates that we should have.
|
|
265
|
+
*
|
|
266
|
+
* This does not take into account the invulnerables.
|
|
267
|
+
**/
|
|
268
|
+
maxCandidates: number;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Minimum number eligible collators. Should always be greater than zero. This includes
|
|
272
|
+
* Invulnerable collators. This ensures that there will always be one collator who can
|
|
273
|
+
* produce a block.
|
|
274
|
+
**/
|
|
275
|
+
minEligibleCollators: number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Maximum number of invulnerables.
|
|
279
|
+
**/
|
|
280
|
+
maxInvulnerables: number;
|
|
281
|
+
kickThreshold: number;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Gets this pallet's derived pot account.
|
|
285
|
+
**/
|
|
286
|
+
potAccount: AccountId32;
|
|
287
|
+
|
|
214
288
|
/**
|
|
215
289
|
* Generic pallet constant
|
|
216
290
|
**/
|
|
@@ -220,6 +294,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
220
294
|
* Pallet `Session`'s constants
|
|
221
295
|
**/
|
|
222
296
|
session: {
|
|
297
|
+
/**
|
|
298
|
+
* The amount to be held when setting keys.
|
|
299
|
+
**/
|
|
300
|
+
keyDeposit: bigint;
|
|
301
|
+
|
|
223
302
|
/**
|
|
224
303
|
* Generic pallet constant
|
|
225
304
|
**/
|
|
@@ -294,6 +373,12 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
294
373
|
* Pallet `PolkadotXcm`'s constants
|
|
295
374
|
**/
|
|
296
375
|
polkadotXcm: {
|
|
376
|
+
/**
|
|
377
|
+
* The latest supported version that we advertise. Generally just set it to
|
|
378
|
+
* `pallet_xcm::CurrentXcmVersion`.
|
|
379
|
+
**/
|
|
380
|
+
advertisedXcmVersion: number;
|
|
381
|
+
|
|
297
382
|
/**
|
|
298
383
|
* Generic pallet constant
|
|
299
384
|
**/
|
|
@@ -458,6 +543,20 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
458
543
|
**/
|
|
459
544
|
[name: string]: any;
|
|
460
545
|
};
|
|
546
|
+
/**
|
|
547
|
+
* Pallet `Indices`'s constants
|
|
548
|
+
**/
|
|
549
|
+
indices: {
|
|
550
|
+
/**
|
|
551
|
+
* The deposit needed for reserving an index.
|
|
552
|
+
**/
|
|
553
|
+
deposit: bigint;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Generic pallet constant
|
|
557
|
+
**/
|
|
558
|
+
[name: string]: any;
|
|
559
|
+
};
|
|
461
560
|
/**
|
|
462
561
|
* Pallet `Assets`'s constants
|
|
463
562
|
**/
|
|
@@ -776,6 +875,224 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
776
875
|
**/
|
|
777
876
|
[name: string]: any;
|
|
778
877
|
};
|
|
878
|
+
/**
|
|
879
|
+
* Pallet `Treasury`'s constants
|
|
880
|
+
**/
|
|
881
|
+
treasury: {
|
|
882
|
+
/**
|
|
883
|
+
* Period between successive spends.
|
|
884
|
+
**/
|
|
885
|
+
spendPeriod: number;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Percentage of spare funds (if any) that are burnt per spend period.
|
|
889
|
+
**/
|
|
890
|
+
burn: Permill;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* The treasury's pallet id, used for deriving its sovereign account ID.
|
|
894
|
+
**/
|
|
895
|
+
palletId: FrameSupportPalletId;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
899
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
900
|
+
*
|
|
901
|
+
* The maximum number of approvals that can wait in the spending queue.
|
|
902
|
+
*
|
|
903
|
+
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|
|
904
|
+
**/
|
|
905
|
+
maxApprovals: number;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* The period during which an approved treasury spend has to be claimed.
|
|
909
|
+
**/
|
|
910
|
+
payoutPeriod: number;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Gets this pallet's derived pot account.
|
|
914
|
+
**/
|
|
915
|
+
potAccount: AccountId32;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Generic pallet constant
|
|
919
|
+
**/
|
|
920
|
+
[name: string]: any;
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* Pallet `ConvictionVoting`'s constants
|
|
924
|
+
**/
|
|
925
|
+
convictionVoting: {
|
|
926
|
+
/**
|
|
927
|
+
* The maximum number of concurrent votes an account may have.
|
|
928
|
+
*
|
|
929
|
+
* Also used to compute weight, an overly large value can lead to extrinsics with large
|
|
930
|
+
* weight estimation: see `delegate` for instance.
|
|
931
|
+
**/
|
|
932
|
+
maxVotes: number;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* The minimum period of vote locking.
|
|
936
|
+
*
|
|
937
|
+
* It should be no shorter than enactment period to ensure that in the case of an approval,
|
|
938
|
+
* those successful voters are locked into the consequences that their votes entail.
|
|
939
|
+
**/
|
|
940
|
+
voteLockingPeriod: number;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Generic pallet constant
|
|
944
|
+
**/
|
|
945
|
+
[name: string]: any;
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* Pallet `Referenda`'s constants
|
|
949
|
+
**/
|
|
950
|
+
referenda: {
|
|
951
|
+
/**
|
|
952
|
+
* The minimum amount to be used as a deposit for a public referendum proposal.
|
|
953
|
+
**/
|
|
954
|
+
submissionDeposit: bigint;
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Maximum size of the referendum queue for a single track.
|
|
958
|
+
**/
|
|
959
|
+
maxQueued: number;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* The number of blocks after submission that a referendum must begin being decided by.
|
|
963
|
+
* Once this passes, then anyone may cancel the referendum.
|
|
964
|
+
**/
|
|
965
|
+
undecidingTimeout: number;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Quantization level for the referendum wakeup scheduler. A higher number will result in
|
|
969
|
+
* fewer storage reads/writes needed for smaller voters, but also result in delays to the
|
|
970
|
+
* automatic referendum status changes. Explicit servicing instructions are unaffected.
|
|
971
|
+
**/
|
|
972
|
+
alarmInterval: number;
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* A list of tracks.
|
|
976
|
+
*
|
|
977
|
+
* Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
|
|
978
|
+
**/
|
|
979
|
+
tracks: Array<[number, PalletReferendaTrackDetails]>;
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* Generic pallet constant
|
|
983
|
+
**/
|
|
984
|
+
[name: string]: any;
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
* Pallet `Origins`'s constants
|
|
988
|
+
**/
|
|
989
|
+
origins: {
|
|
990
|
+
/**
|
|
991
|
+
* Generic pallet constant
|
|
992
|
+
**/
|
|
993
|
+
[name: string]: any;
|
|
994
|
+
};
|
|
995
|
+
/**
|
|
996
|
+
* Pallet `Whitelist`'s constants
|
|
997
|
+
**/
|
|
998
|
+
whitelist: {
|
|
999
|
+
/**
|
|
1000
|
+
* Generic pallet constant
|
|
1001
|
+
**/
|
|
1002
|
+
[name: string]: any;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Pallet `Bounties`'s constants
|
|
1006
|
+
**/
|
|
1007
|
+
bounties: {
|
|
1008
|
+
/**
|
|
1009
|
+
* The amount held on deposit for placing a bounty proposal.
|
|
1010
|
+
**/
|
|
1011
|
+
bountyDepositBase: bigint;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* The delay period for which a bounty beneficiary need to wait before claim the payout.
|
|
1015
|
+
**/
|
|
1016
|
+
bountyDepositPayoutDelay: number;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* The time limit for a curator to act before a bounty expires.
|
|
1020
|
+
*
|
|
1021
|
+
* The period that starts when a curator is approved, during which they must execute or
|
|
1022
|
+
* update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
|
|
1023
|
+
* curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
|
|
1024
|
+
* removing the need for `extend_bounty_expiry`.
|
|
1025
|
+
**/
|
|
1026
|
+
bountyUpdatePeriod: number;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* The curator deposit is calculated as a percentage of the curator fee.
|
|
1030
|
+
*
|
|
1031
|
+
* This deposit has optional upper and lower bounds with `CuratorDepositMax` and
|
|
1032
|
+
* `CuratorDepositMin`.
|
|
1033
|
+
**/
|
|
1034
|
+
curatorDepositMultiplier: Permill;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Maximum amount of funds that should be placed in a deposit for making a proposal.
|
|
1038
|
+
**/
|
|
1039
|
+
curatorDepositMax: bigint | undefined;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Minimum amount of funds that should be placed in a deposit for making a proposal.
|
|
1043
|
+
**/
|
|
1044
|
+
curatorDepositMin: bigint | undefined;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Minimum value for a bounty.
|
|
1048
|
+
**/
|
|
1049
|
+
bountyValueMinimum: bigint;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* The amount held on deposit per byte within the tip report reason or bounty description.
|
|
1053
|
+
**/
|
|
1054
|
+
dataDepositPerByte: bigint;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Maximum acceptable reason length.
|
|
1058
|
+
*
|
|
1059
|
+
* Benchmarks depend on this value, be sure to update weights file when changing this value
|
|
1060
|
+
**/
|
|
1061
|
+
maximumReasonLength: number;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Generic pallet constant
|
|
1065
|
+
**/
|
|
1066
|
+
[name: string]: any;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* Pallet `ChildBounties`'s constants
|
|
1070
|
+
**/
|
|
1071
|
+
childBounties: {
|
|
1072
|
+
/**
|
|
1073
|
+
* Maximum number of child bounties that can be added to a parent bounty.
|
|
1074
|
+
**/
|
|
1075
|
+
maxActiveChildBountyCount: number;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Minimum value for a child-bounty.
|
|
1079
|
+
**/
|
|
1080
|
+
childBountyValueMinimum: bigint;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Generic pallet constant
|
|
1084
|
+
**/
|
|
1085
|
+
[name: string]: any;
|
|
1086
|
+
};
|
|
1087
|
+
/**
|
|
1088
|
+
* Pallet `AssetRate`'s constants
|
|
1089
|
+
**/
|
|
1090
|
+
assetRate: {
|
|
1091
|
+
/**
|
|
1092
|
+
* Generic pallet constant
|
|
1093
|
+
**/
|
|
1094
|
+
[name: string]: any;
|
|
1095
|
+
};
|
|
779
1096
|
/**
|
|
780
1097
|
* Pallet `StateTrieMigration`'s constants
|
|
781
1098
|
**/
|
|
@@ -810,6 +1127,350 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
810
1127
|
**/
|
|
811
1128
|
[name: string]: any;
|
|
812
1129
|
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Pallet `Staking`'s constants
|
|
1132
|
+
**/
|
|
1133
|
+
staking: {
|
|
1134
|
+
/**
|
|
1135
|
+
* Number of eras to keep in history.
|
|
1136
|
+
*
|
|
1137
|
+
* Following information is kept for eras in `[current_era -
|
|
1138
|
+
* HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
|
|
1139
|
+
* `ErasRewardPoints`, `ErasTotalStake`, `ClaimedRewards`,
|
|
1140
|
+
* `ErasStakersPaged`, `ErasStakersOverview`.
|
|
1141
|
+
*
|
|
1142
|
+
* Must be more than the number of eras delayed by session.
|
|
1143
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
1144
|
+
* current_era - history_depth` must be guaranteed.
|
|
1145
|
+
*
|
|
1146
|
+
* If migrating an existing pallet from storage value to config value,
|
|
1147
|
+
* this should be set to same value or greater as in storage.
|
|
1148
|
+
**/
|
|
1149
|
+
historyDepth: number;
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Number of sessions per era, as per the preferences of the **relay chain**.
|
|
1153
|
+
**/
|
|
1154
|
+
sessionsPerEra: number;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* Number of sessions before the end of an era when the election for the next era will
|
|
1158
|
+
* start.
|
|
1159
|
+
*
|
|
1160
|
+
* - This determines how many sessions **before** the last session of the era the staking
|
|
1161
|
+
* election process should begin.
|
|
1162
|
+
* - The value is bounded between **1** (election starts at the beginning of the last
|
|
1163
|
+
* session) and `SessionsPerEra` (election starts at the beginning of the first session
|
|
1164
|
+
* of the era).
|
|
1165
|
+
*
|
|
1166
|
+
* ### Example:
|
|
1167
|
+
* - If `SessionsPerEra = 6` and `PlanningEraOffset = 1`, the election starts at the
|
|
1168
|
+
* beginning of session `6 - 1 = 5`.
|
|
1169
|
+
* - If `PlanningEraOffset = 6`, the election starts at the beginning of session `6 - 6 =
|
|
1170
|
+
* 0`, meaning it starts at the very beginning of the era.
|
|
1171
|
+
**/
|
|
1172
|
+
planningEraOffset: number;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Number of eras that staked funds must remain bonded for.
|
|
1176
|
+
**/
|
|
1177
|
+
bondingDuration: number;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Number of eras that slashes are deferred by, after computation.
|
|
1181
|
+
*
|
|
1182
|
+
* This should be less than the bonding duration. Set to 0 if slashes
|
|
1183
|
+
* should be applied immediately, without opportunity for intervention.
|
|
1184
|
+
**/
|
|
1185
|
+
slashDeferDuration: number;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* The maximum size of each `T::ExposurePage`.
|
|
1189
|
+
*
|
|
1190
|
+
* An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
|
|
1191
|
+
* nominators.
|
|
1192
|
+
*
|
|
1193
|
+
* For older non-paged exposure, a reward payout was restricted to the top
|
|
1194
|
+
* `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
|
|
1195
|
+
* nominator payout.
|
|
1196
|
+
*
|
|
1197
|
+
* Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to
|
|
1198
|
+
* reduce without handling it in a migration.
|
|
1199
|
+
**/
|
|
1200
|
+
maxExposurePageSize: number;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* The absolute maximum of winner validators this pallet should return.
|
|
1204
|
+
*
|
|
1205
|
+
* As this pallet supports multi-block election, the set of winner validators *per
|
|
1206
|
+
* election* is bounded by this type.
|
|
1207
|
+
**/
|
|
1208
|
+
maxValidatorSet: number;
|
|
1209
|
+
|
|
1210
|
+
/**
|
|
1211
|
+
* The maximum number of `unlocking` chunks a [`StakingLedger`] can
|
|
1212
|
+
* have. Effectively determines how many unique eras a staker may be
|
|
1213
|
+
* unbonding in.
|
|
1214
|
+
*
|
|
1215
|
+
* Note: `MaxUnlockingChunks` is used as the upper bound for the
|
|
1216
|
+
* `BoundedVec` item `StakingLedger.unlocking`. Setting this value
|
|
1217
|
+
* lower than the existing value can lead to inconsistencies in the
|
|
1218
|
+
* `StakingLedger` and will need to be handled properly in a runtime
|
|
1219
|
+
* migration. The test `reducing_max_unlocking_chunks_abrupt` shows
|
|
1220
|
+
* this effect.
|
|
1221
|
+
**/
|
|
1222
|
+
maxUnlockingChunks: number;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Maximum number of invulnerable validators.
|
|
1226
|
+
**/
|
|
1227
|
+
maxInvulnerables: number;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Maximum allowed era duration in milliseconds.
|
|
1231
|
+
*
|
|
1232
|
+
* This provides a defensive upper bound to cap the effective era duration, preventing
|
|
1233
|
+
* excessively long eras from causing runaway inflation (e.g., due to bugs). If the actual
|
|
1234
|
+
* era duration exceeds this value, it will be clamped to this maximum.
|
|
1235
|
+
*
|
|
1236
|
+
* Example: For an ideal era duration of 24 hours (86,400,000 ms),
|
|
1237
|
+
* this can be set to 604,800,000 ms (7 days).
|
|
1238
|
+
**/
|
|
1239
|
+
maxEraDuration: bigint;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* Generic pallet constant
|
|
1243
|
+
**/
|
|
1244
|
+
[name: string]: any;
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Pallet `NominationPools`'s constants
|
|
1248
|
+
**/
|
|
1249
|
+
nominationPools: {
|
|
1250
|
+
/**
|
|
1251
|
+
* The nomination pool's pallet id.
|
|
1252
|
+
**/
|
|
1253
|
+
palletId: FrameSupportPalletId;
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* The maximum pool points-to-balance ratio that an `open` pool can have.
|
|
1257
|
+
*
|
|
1258
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
1259
|
+
* ratio becomes disproportional.
|
|
1260
|
+
*
|
|
1261
|
+
* Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
|
|
1262
|
+
* are a function of number of points, and by setting this value to e.g. 10, you ensure
|
|
1263
|
+
* that the total number of points in the system are at most 10 times the total_issuance of
|
|
1264
|
+
* the chain, in the absolute worse case.
|
|
1265
|
+
*
|
|
1266
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
1267
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
1268
|
+
**/
|
|
1269
|
+
maxPointsToBalance: number;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* The maximum number of simultaneous unbonding chunks that can exist per member.
|
|
1273
|
+
**/
|
|
1274
|
+
maxUnbonding: number;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Generic pallet constant
|
|
1278
|
+
**/
|
|
1279
|
+
[name: string]: any;
|
|
1280
|
+
};
|
|
1281
|
+
/**
|
|
1282
|
+
* Pallet `VoterList`'s constants
|
|
1283
|
+
**/
|
|
1284
|
+
voterList: {
|
|
1285
|
+
/**
|
|
1286
|
+
* The list of thresholds separating the various bags.
|
|
1287
|
+
*
|
|
1288
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
1289
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
1290
|
+
* is less than or equal to its upper threshold.
|
|
1291
|
+
*
|
|
1292
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
1293
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
1294
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
1295
|
+
*
|
|
1296
|
+
* # Expressing the constant
|
|
1297
|
+
*
|
|
1298
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
1299
|
+
* permitted.
|
|
1300
|
+
*
|
|
1301
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
1302
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
1303
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
1304
|
+
* lists will behave identically.
|
|
1305
|
+
*
|
|
1306
|
+
* # Calculation
|
|
1307
|
+
*
|
|
1308
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
1309
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
1310
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
1311
|
+
*
|
|
1312
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
1313
|
+
*
|
|
1314
|
+
* # Examples
|
|
1315
|
+
*
|
|
1316
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
1317
|
+
* iteration is strictly in insertion order.
|
|
1318
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
1319
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
1320
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
1321
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
1322
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
1323
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
1324
|
+
*
|
|
1325
|
+
* # Migration
|
|
1326
|
+
*
|
|
1327
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
1328
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
1329
|
+
**/
|
|
1330
|
+
bagThresholds: Array<bigint>;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Maximum number of accounts that may be re-bagged automatically in `on_idle`.
|
|
1334
|
+
*
|
|
1335
|
+
* A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
|
|
1336
|
+
* the feature.
|
|
1337
|
+
**/
|
|
1338
|
+
maxAutoRebagPerBlock: number;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Generic pallet constant
|
|
1342
|
+
**/
|
|
1343
|
+
[name: string]: any;
|
|
1344
|
+
};
|
|
1345
|
+
/**
|
|
1346
|
+
* Pallet `DelegatedStaking`'s constants
|
|
1347
|
+
**/
|
|
1348
|
+
delegatedStaking: {
|
|
1349
|
+
/**
|
|
1350
|
+
* Injected identifier for the pallet.
|
|
1351
|
+
**/
|
|
1352
|
+
palletId: FrameSupportPalletId;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Fraction of the slash that is rewarded to the caller of pending slash to the agent.
|
|
1356
|
+
**/
|
|
1357
|
+
slashRewardFraction: Perbill;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Generic pallet constant
|
|
1361
|
+
**/
|
|
1362
|
+
[name: string]: any;
|
|
1363
|
+
};
|
|
1364
|
+
/**
|
|
1365
|
+
* Pallet `StakingRcClient`'s constants
|
|
1366
|
+
**/
|
|
1367
|
+
stakingRcClient: {
|
|
1368
|
+
/**
|
|
1369
|
+
* Generic pallet constant
|
|
1370
|
+
**/
|
|
1371
|
+
[name: string]: any;
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Pallet `MultiBlockElection`'s constants
|
|
1375
|
+
**/
|
|
1376
|
+
multiBlockElection: {
|
|
1377
|
+
/**
|
|
1378
|
+
* Duration of the unsigned phase.
|
|
1379
|
+
**/
|
|
1380
|
+
unsignedPhase: number;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Duration of the signed phase.
|
|
1384
|
+
**/
|
|
1385
|
+
signedPhase: number;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Duration of the singed validation phase.
|
|
1389
|
+
*
|
|
1390
|
+
* The duration of this should not be less than `T::Pages`, and there is no point in it
|
|
1391
|
+
* being more than `SignedPhase::MaxSubmission::get() * T::Pages`. TODO: integrity test for
|
|
1392
|
+
* it.
|
|
1393
|
+
**/
|
|
1394
|
+
signedValidationPhase: number;
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* The number of snapshot voters to fetch per block.
|
|
1398
|
+
**/
|
|
1399
|
+
voterSnapshotPerBlock: number;
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* The number of snapshot targets to fetch per block.
|
|
1403
|
+
**/
|
|
1404
|
+
targetSnapshotPerBlock: number;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* The number of pages.
|
|
1408
|
+
*
|
|
1409
|
+
* The snapshot is created with this many keys in the storage map.
|
|
1410
|
+
*
|
|
1411
|
+
* The solutions may contain at MOST this many pages, but less pages are acceptable as
|
|
1412
|
+
* well.
|
|
1413
|
+
**/
|
|
1414
|
+
pages: number;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Generic pallet constant
|
|
1418
|
+
**/
|
|
1419
|
+
[name: string]: any;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Pallet `MultiBlockElectionVerifier`'s constants
|
|
1423
|
+
**/
|
|
1424
|
+
multiBlockElectionVerifier: {
|
|
1425
|
+
/**
|
|
1426
|
+
* The minimum amount of improvement to the solution score that defines a solution as
|
|
1427
|
+
* "better".
|
|
1428
|
+
**/
|
|
1429
|
+
solutionImprovementThreshold: Perbill;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Maximum number of backers, per winner, among all pages of an election.
|
|
1433
|
+
*
|
|
1434
|
+
* This can only be checked at the very final step of verification.
|
|
1435
|
+
*
|
|
1436
|
+
* NOTE: at the moment, we don't check this, and it is in place for future compatibility.
|
|
1437
|
+
**/
|
|
1438
|
+
maxBackersPerWinnerFinal: number;
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Maximum number of backers, per winner, per page.
|
|
1442
|
+
**/
|
|
1443
|
+
maxBackersPerWinner: number;
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Maximum number of supports (aka. winners/validators/targets) that can be represented in
|
|
1447
|
+
* a page of results.
|
|
1448
|
+
**/
|
|
1449
|
+
maxWinnersPerPage: number;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* Generic pallet constant
|
|
1453
|
+
**/
|
|
1454
|
+
[name: string]: any;
|
|
1455
|
+
};
|
|
1456
|
+
/**
|
|
1457
|
+
* Pallet `MultiBlockElectionUnsigned`'s constants
|
|
1458
|
+
**/
|
|
1459
|
+
multiBlockElectionUnsigned: {
|
|
1460
|
+
/**
|
|
1461
|
+
* Generic pallet constant
|
|
1462
|
+
**/
|
|
1463
|
+
[name: string]: any;
|
|
1464
|
+
};
|
|
1465
|
+
/**
|
|
1466
|
+
* Pallet `MultiBlockElectionSigned`'s constants
|
|
1467
|
+
**/
|
|
1468
|
+
multiBlockElectionSigned: {
|
|
1469
|
+
/**
|
|
1470
|
+
* Generic pallet constant
|
|
1471
|
+
**/
|
|
1472
|
+
[name: string]: any;
|
|
1473
|
+
};
|
|
813
1474
|
/**
|
|
814
1475
|
* Pallet `Sudo`'s constants
|
|
815
1476
|
**/
|
|
@@ -819,4 +1480,22 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
819
1480
|
**/
|
|
820
1481
|
[name: string]: any;
|
|
821
1482
|
};
|
|
1483
|
+
/**
|
|
1484
|
+
* Pallet `AhOps`'s constants
|
|
1485
|
+
**/
|
|
1486
|
+
ahOps: {
|
|
1487
|
+
/**
|
|
1488
|
+
* Generic pallet constant
|
|
1489
|
+
**/
|
|
1490
|
+
[name: string]: any;
|
|
1491
|
+
};
|
|
1492
|
+
/**
|
|
1493
|
+
* Pallet `AhMigrator`'s constants
|
|
1494
|
+
**/
|
|
1495
|
+
ahMigrator: {
|
|
1496
|
+
/**
|
|
1497
|
+
* Generic pallet constant
|
|
1498
|
+
**/
|
|
1499
|
+
[name: string]: any;
|
|
1500
|
+
};
|
|
822
1501
|
}
|