|
4 | 4 | import { Codec } from '@polkadot/types/types'; |
5 | 5 | import { Vec } from '@polkadot/types/codec'; |
6 | 6 | import { u16, u32, u64 } from '@polkadot/types/primitive'; |
7 | | -import { Balance, BalanceOf, BlockNumber, LockIdentifier, ModuleId, Moment, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime'; |
| 7 | +import { Balance, BalanceOf, BlockNumber, LockIdentifier, ModuleId, Moment, Perbill, Percent, Permill, RuntimeDbWeight, Weight } from '@polkadot/types/interfaces/runtime'; |
8 | 8 | import { SessionIndex } from '@polkadot/types/interfaces/session'; |
9 | 9 | import { EraIndex } from '@polkadot/types/interfaces/staking'; |
10 | 10 | import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; |
@@ -249,10 +249,45 @@ declare module '@polkadot/metadata/Decorated/consts/types' { |
249 | 249 | * Number of eras that staked funds must remain bonded for. |
250 | 250 | **/ |
251 | 251 | bondingDuration: AugmentedConst<EraIndex>; |
| 252 | + /** |
| 253 | + * The number of blocks before the end of the era from which election submissions are allowed. |
| 254 | + * |
| 255 | + * Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will |
| 256 | + * be used. |
| 257 | + * |
| 258 | + * This is bounded by being within the last session. Hence, setting it to a value more than the |
| 259 | + * length of a session will be pointless. |
| 260 | + **/ |
| 261 | + electionLookahead: AugmentedConst<BlockNumber>; |
| 262 | + /** |
| 263 | + * Maximum number of balancing iterations to run in the offchain submission. |
| 264 | + * |
| 265 | + * If set to 0, balance_solution will not be executed at all. |
| 266 | + **/ |
| 267 | + maxIterations: AugmentedConst<u32>; |
| 268 | + /** |
| 269 | + * The maximum number of nominators rewarded for each validator. |
| 270 | + * |
| 271 | + * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can claim |
| 272 | + * their reward. This used to limit the i/o cost for the nominator payout. |
| 273 | + **/ |
| 274 | + maxNominatorRewardedPerValidator: AugmentedConst<u32>; |
| 275 | + /** |
| 276 | + * The threshold of improvement that should be provided for a new solution to be accepted. |
| 277 | + **/ |
| 278 | + minSolutionScoreBump: AugmentedConst<Perbill>; |
252 | 279 | /** |
253 | 280 | * Number of sessions per era. |
254 | 281 | **/ |
255 | 282 | sessionsPerEra: AugmentedConst<SessionIndex>; |
| 283 | + /** |
| 284 | + * Number of eras that slashes are deferred by, after computation. |
| 285 | + * |
| 286 | + * This should be less than the bonding duration. |
| 287 | + * Set to 0 if slashes should be applied immediately, without opportunity for |
| 288 | + * intervention. |
| 289 | + **/ |
| 290 | + slashDeferDuration: AugmentedConst<EraIndex>; |
256 | 291 | }; |
257 | 292 | system: { |
258 | 293 | [index: string]: AugmentedConst<object & Codec>; |
|
0 commit comments