|
327 | 327 | ] |
328 | 328 | }, |
329 | 329 | { |
330 | | - "name": "EpochStartSlot", |
| 330 | + "name": "GenesisSlot", |
331 | 331 | "modifier": 1, |
332 | 332 | "type": { |
333 | 333 | "Type": "u64" |
334 | 334 | }, |
335 | 335 | "fallback": "0x0000000000000000", |
336 | 336 | "documentation": [ |
337 | | - " Slot at which the current epoch started. It is possible that no", |
338 | | - " block was authored at the given slot and the epoch change was", |
339 | | - " signalled later than this." |
| 337 | + " The slot at which the first epoch actually started. This is 0", |
| 338 | + " until the first block of the chain." |
340 | 339 | ] |
341 | 340 | }, |
342 | 341 | { |
|
350 | 349 | " Current slot number." |
351 | 350 | ] |
352 | 351 | }, |
353 | | - { |
354 | | - "name": "SecondarySlots", |
355 | | - "modifier": 1, |
356 | | - "type": { |
357 | | - "Type": "(bool,bool)" |
358 | | - }, |
359 | | - "fallback": "0x0101", |
360 | | - "documentation": [ |
361 | | - " Whether secondary slots are enabled in case the VRF-based slot is", |
362 | | - " empty for the current epoch and the next epoch, respectively." |
363 | | - ] |
364 | | - }, |
365 | | - { |
366 | | - "name": "PendingSecondarySlotsChange", |
367 | | - "modifier": 0, |
368 | | - "type": { |
369 | | - "Type": "bool" |
370 | | - }, |
371 | | - "fallback": "0x00", |
372 | | - "documentation": [ |
373 | | - " Pending change to enable/disable secondary slots which will be", |
374 | | - " triggered at `current_epoch + 2`." |
375 | | - ] |
376 | | - }, |
377 | 352 | { |
378 | 353 | "name": "Randomness", |
379 | 354 | "modifier": 1, |
|
442 | 417 | "name": "Initialized", |
443 | 418 | "modifier": 0, |
444 | 419 | "type": { |
445 | | - "Type": "bool" |
| 420 | + "Type": "MaybeVrf" |
446 | 421 | }, |
447 | 422 | "fallback": "0x00", |
448 | 423 | "documentation": [ |
449 | | - " Temporary value (cleared at block finalization) which is true", |
| 424 | + " Temporary value (cleared at block finalization) which is `Some`", |
450 | 425 | " if per-block initialization has already been called for current block." |
451 | 426 | ] |
452 | 427 | } |
453 | 428 | ] |
454 | 429 | }, |
455 | | - "calls": [ |
456 | | - { |
457 | | - "name": "set_pending_secondary_slots_change", |
458 | | - "args": [ |
459 | | - { |
460 | | - "name": "change", |
461 | | - "type": "Option<bool>" |
462 | | - } |
463 | | - ], |
464 | | - "documentation": [ |
465 | | - " Sets a pending change to enable / disable secondary slot assignment.", |
466 | | - " The pending change will be set at the end of the current epoch and", |
467 | | - " will be enacted at `current_epoch + 2`." |
468 | | - ] |
469 | | - } |
470 | | - ], |
| 430 | + "calls": [], |
471 | 431 | "events": null, |
472 | 432 | "constants": [ |
473 | 433 | { |
|
1123 | 1083 | ] |
1124 | 1084 | }, |
1125 | 1085 | { |
1126 | | - "name": "CurrentEraRewards", |
| 1086 | + "name": "CurrentEraPointsEarned", |
1127 | 1087 | "modifier": 1, |
1128 | 1088 | "type": { |
1129 | | - "Type": "EraRewards" |
| 1089 | + "Type": "EraPoints" |
1130 | 1090 | }, |
1131 | 1091 | "fallback": "0x0000000000", |
1132 | 1092 | "documentation": [ |
|
1646 | 1606 | " will be used to determine the validator's session keys." |
1647 | 1607 | ] |
1648 | 1608 | }, |
| 1609 | + { |
| 1610 | + "name": "DisabledValidators", |
| 1611 | + "modifier": 1, |
| 1612 | + "type": { |
| 1613 | + "Type": "Vec<u32>" |
| 1614 | + }, |
| 1615 | + "fallback": "0x00", |
| 1616 | + "documentation": [ |
| 1617 | + " Indices of disabled validators.", |
| 1618 | + "", |
| 1619 | + " The set is cleared when `on_session_ending` returns a new set of identities." |
| 1620 | + ] |
| 1621 | + }, |
1649 | 1622 | { |
1650 | 1623 | "name": "NextKeys", |
1651 | 1624 | "modifier": 0, |
|
1984 | 1957 | ], |
1985 | 1958 | "constants": [] |
1986 | 1959 | }, |
| 1960 | + { |
| 1961 | + "name": "AuthorityDiscovery", |
| 1962 | + "storage": null, |
| 1963 | + "calls": [], |
| 1964 | + "events": null, |
| 1965 | + "constants": [] |
| 1966 | + }, |
1987 | 1967 | { |
1988 | 1968 | "name": "Democracy", |
1989 | 1969 | "storage": { |
|
3111 | 3091 | }, |
3112 | 3092 | "fallback": "0x00", |
3113 | 3093 | "documentation": [ |
3114 | | - " The current membership. When there's a vote going on, this should still be used for executive", |
3115 | | - " matters. The block number (second element in the tuple) is the block that their position is", |
3116 | | - " active until (calculated by the sum of the block number when the member was elected", |
3117 | | - " and their term duration)." |
| 3094 | + " The current membership. When there's a vote going on, this should still be used for", |
| 3095 | + " executive matters. The block number (second element in the tuple) is the block that", |
| 3096 | + " their position is active until (calculated by the sum of the block number when the", |
| 3097 | + " member was elected and their term duration)." |
3118 | 3098 | ] |
3119 | 3099 | }, |
3120 | 3100 | { |
|
3140 | 3120 | } |
3141 | 3121 | }, |
3142 | 3122 | "fallback": "0x00", |
3143 | | - "documentation": [ |
3144 | | - " A list of votes for each voter. The votes are stored as numeric values and parsed in a bit-wise manner.", |
3145 | | - "", |
3146 | | - " In order to get a human-readable representation (`Vec<bool>`), use [`all_approvals_of`].", |
3147 | | - "", |
3148 | | - " Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`." |
3149 | | - ] |
| 3123 | + "documentation": [] |
3150 | 3124 | }, |
3151 | 3125 | { |
3152 | 3126 | "name": "RegisterInfoOf", |
|
3161 | 3135 | }, |
3162 | 3136 | "fallback": "0x00", |
3163 | 3137 | "documentation": [ |
3164 | | - " The vote index and list slot that the candidate `who` was registered or `None` if they are not", |
3165 | | - " currently registered." |
| 3138 | + " The vote index and list slot that the candidate `who` was registered or `None` if they", |
| 3139 | + " are not currently registered." |
3166 | 3140 | ] |
3167 | 3141 | }, |
3168 | 3142 | { |
|
3260 | 3234 | }, |
3261 | 3235 | "fallback": "0x00", |
3262 | 3236 | "documentation": [ |
3263 | | - " Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry;", |
3264 | | - " It may be the direct summed approval stakes, or a weighted version of it." |
| 3237 | + " Get the leaderboard if we're in the presentation phase. The first element is the weight", |
| 3238 | + " of each entry; It may be the direct summed approval stakes, or a weighted version of it.", |
| 3239 | + " Sorted from low to high." |
3265 | 3240 | ] |
3266 | 3241 | }, |
3267 | 3242 | { |
|
3298 | 3273 | { |
3299 | 3274 | "name": "hint", |
3300 | 3275 | "type": "SetIndex" |
| 3276 | + }, |
| 3277 | + { |
| 3278 | + "name": "value", |
| 3279 | + "type": "BalanceOf" |
3301 | 3280 | } |
3302 | 3281 | ], |
3303 | 3282 | "documentation": [ |
3304 | 3283 | " Set candidate approvals. Approval slots stay valid as long as candidates in those slots", |
3305 | 3284 | " are registered.", |
3306 | 3285 | "", |
3307 | | - " Locks the total balance of caller indefinitely.", |
3308 | | - " Only [`retract_voter`] or [`reap_inactive_voter`] can unlock the balance.", |
| 3286 | + " Locks `value` from the balance of `origin` indefinitely. Only [`retract_voter`] or", |
| 3287 | + " [`reap_inactive_voter`] can unlock the balance.", |
3309 | 3288 | "", |
3310 | 3289 | " `hint` argument is interpreted differently based on:", |
3311 | | - " - if `origin` is setting approvals for the first time: The index will be checked", |
3312 | | - " for being a valid _hole_ in the voter list.", |
| 3290 | + " - if `origin` is setting approvals for the first time: The index will be checked for", |
| 3291 | + " being a valid _hole_ in the voter list.", |
3313 | 3292 | " - if the hint is correctly pointing to a hole, no fee is deducted from `origin`.", |
3314 | | - " - Otherwise, the call will succeed but the index is ignored and simply a push to the last chunk", |
3315 | | - " with free space happens. If the new push causes a new chunk to be created, a fee indicated by", |
3316 | | - " [`VotingFee`] is deducted.", |
| 3293 | + " - Otherwise, the call will succeed but the index is ignored and simply a push to the", |
| 3294 | + " last chunk with free space happens. If the new push causes a new chunk to be", |
| 3295 | + " created, a fee indicated by [`VotingFee`] is deducted.", |
3317 | 3296 | " - if `origin` is already a voter: the index __must__ be valid and point to the correct", |
3318 | | - " position of the `origin` in the current voters list.", |
| 3297 | + " position of the `origin` in the current voters list.", |
3319 | 3298 | "", |
3320 | | - " Note that any trailing `false` votes in `votes` is ignored; In approval voting, not voting for a candidate", |
3321 | | - " and voting false, are equal.", |
| 3299 | + " Note that any trailing `false` votes in `votes` is ignored; In approval voting, not", |
| 3300 | + " voting for a candidate and voting false, are equal.", |
3322 | 3301 | "", |
3323 | 3302 | " # <weight>", |
3324 | 3303 | " - O(1).", |
|
3341 | 3320 | { |
3342 | 3321 | "name": "hint", |
3343 | 3322 | "type": "SetIndex" |
| 3323 | + }, |
| 3324 | + { |
| 3325 | + "name": "value", |
| 3326 | + "type": "BalanceOf" |
3344 | 3327 | } |
3345 | 3328 | ], |
3346 | 3329 | "documentation": [ |
3347 | | - " Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots", |
3348 | | - " are registered.", |
| 3330 | + " Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in", |
| 3331 | + " those slots are registered.", |
3349 | 3332 | "", |
3350 | 3333 | " # <weight>", |
3351 | 3334 | " - Same as `set_approvals` with one additional storage read.", |
|
3374 | 3357 | ], |
3375 | 3358 | "documentation": [ |
3376 | 3359 | " Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices", |
3377 | | - " must now be either unregistered or registered to a candidate that registered the slot after", |
3378 | | - " the voter gave their last approval set.", |
| 3360 | + " must now be either unregistered or registered to a candidate that registered the slot", |
| 3361 | + " after the voter gave their last approval set.", |
3379 | 3362 | "", |
3380 | 3363 | " Both indices must be provided as explained in [`voter_at`] function.", |
3381 | 3364 | "", |
|
3449 | 3432 | } |
3450 | 3433 | ], |
3451 | 3434 | "documentation": [ |
3452 | | - " Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates.", |
3453 | | - " Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()`", |
3454 | | - " `signed` should have at least", |
| 3435 | + " Claim that `candidate` is one of the top `carry_count + desired_seats` candidates. Only", |
| 3436 | + " works iff the presentation period is active. `candidate` should have at least collected", |
| 3437 | + " some non-zero `total` votes and `origin` must have enough funds to pay for a potential", |
| 3438 | + " slash.", |
3455 | 3439 | "", |
3456 | 3440 | " # <weight>", |
3457 | 3441 | " - O(voters) compute.", |
|
3619 | 3603 | " is 1000." |
3620 | 3604 | ] |
3621 | 3605 | }, |
| 3606 | + { |
| 3607 | + "name": "MinimumVotingLock", |
| 3608 | + "type": "BalanceOf", |
| 3609 | + "value": "0x00e40b54020000000000000000000000", |
| 3610 | + "documentation": [ |
| 3611 | + " Minimum about that can be used as the locked value for voting." |
| 3612 | + ] |
| 3613 | + }, |
3622 | 3614 | { |
3623 | 3615 | "name": "DecayRatio", |
3624 | 3616 | "type": "u32", |
|
4760 | 4752 | " # <weight>", |
4761 | 4753 | " - O(1).", |
4762 | 4754 | " - Limited storage reads.", |
4763 | | - " - No DB writes.", |
| 4755 | + " - One DB write (event).", |
| 4756 | + " - Unknown weight of derivative `proposal` execution.", |
4764 | 4757 | " # </weight>" |
4765 | 4758 | ] |
4766 | 4759 | }, |
|
4783 | 4776 | " - One DB change.", |
4784 | 4777 | " # </weight>" |
4785 | 4778 | ] |
| 4779 | + }, |
| 4780 | + { |
| 4781 | + "name": "sudo_as", |
| 4782 | + "args": [ |
| 4783 | + { |
| 4784 | + "name": "who", |
| 4785 | + "type": "Address" |
| 4786 | + }, |
| 4787 | + { |
| 4788 | + "name": "proposal", |
| 4789 | + "type": "Proposal" |
| 4790 | + } |
| 4791 | + ], |
| 4792 | + "documentation": [ |
| 4793 | + " Authenticates the sudo key and dispatches a function call with `Signed` origin from", |
| 4794 | + " a given account.", |
| 4795 | + "", |
| 4796 | + " The dispatch origin for this call must be _Signed_.", |
| 4797 | + "", |
| 4798 | + " # <weight>", |
| 4799 | + " - O(1).", |
| 4800 | + " - Limited storage reads.", |
| 4801 | + " - One DB write (event).", |
| 4802 | + " - Unknown weight of derivative `proposal` execution.", |
| 4803 | + " # </weight>" |
| 4804 | + ] |
4786 | 4805 | } |
4787 | 4806 | ], |
4788 | 4807 | "events": [ |
|
4803 | 4822 | "documentation": [ |
4804 | 4823 | " The sudoer just switched identity; the old key is supplied." |
4805 | 4824 | ] |
| 4825 | + }, |
| 4826 | + { |
| 4827 | + "name": "SudoAsDone", |
| 4828 | + "args": [ |
| 4829 | + "bool" |
| 4830 | + ], |
| 4831 | + "documentation": [ |
| 4832 | + " A sudo just took place." |
| 4833 | + ] |
4806 | 4834 | } |
4807 | 4835 | ], |
4808 | 4836 | "constants": [] |
|
0 commit comments