Bump polkadot meta (#1419)

This commit is contained in:
Jaco Greeff
2019-09-25 13:29:47 +02:00
committed by GitHub
parent 8293f4b585
commit 32c4aa3bfe
2 changed files with 110 additions and 82 deletions
@@ -327,16 +327,15 @@
] ]
}, },
{ {
"name": "EpochStartSlot", "name": "GenesisSlot",
"modifier": 1, "modifier": 1,
"type": { "type": {
"Type": "u64" "Type": "u64"
}, },
"fallback": "0x0000000000000000", "fallback": "0x0000000000000000",
"documentation": [ "documentation": [
" Slot at which the current epoch started. It is possible that no", " The slot at which the first epoch actually started. This is 0",
" block was authored at the given slot and the epoch change was", " until the first block of the chain."
" signalled later than this."
] ]
}, },
{ {
@@ -350,30 +349,6 @@
" Current slot number." " Current slot number."
] ]
}, },
{
"name": "SecondarySlots",
"modifier": 1,
"type": {
"Type": "(bool,bool)"
},
"fallback": "0x0101",
"documentation": [
" Whether secondary slots are enabled in case the VRF-based slot is",
" empty for the current epoch and the next epoch, respectively."
]
},
{
"name": "PendingSecondarySlotsChange",
"modifier": 0,
"type": {
"Type": "bool"
},
"fallback": "0x00",
"documentation": [
" Pending change to enable/disable secondary slots which will be",
" triggered at `current_epoch + 2`."
]
},
{ {
"name": "Randomness", "name": "Randomness",
"modifier": 1, "modifier": 1,
@@ -442,32 +417,17 @@
"name": "Initialized", "name": "Initialized",
"modifier": 0, "modifier": 0,
"type": { "type": {
"Type": "bool" "Type": "MaybeVrf"
}, },
"fallback": "0x00", "fallback": "0x00",
"documentation": [ "documentation": [
" Temporary value (cleared at block finalization) which is true", " Temporary value (cleared at block finalization) which is `Some`",
" if per-block initialization has already been called for current block." " if per-block initialization has already been called for current block."
] ]
} }
] ]
}, },
"calls": [ "calls": [],
{
"name": "set_pending_secondary_slots_change",
"args": [
{
"name": "change",
"type": "Option<bool>"
}
],
"documentation": [
" Sets a pending change to enable / disable secondary slot assignment.",
" The pending change will be set at the end of the current epoch and",
" will be enacted at `current_epoch + 2`."
]
}
],
"events": null, "events": null,
"constants": [ "constants": [
{ {
@@ -1123,10 +1083,10 @@
] ]
}, },
{ {
"name": "CurrentEraRewards", "name": "CurrentEraPointsEarned",
"modifier": 1, "modifier": 1,
"type": { "type": {
"Type": "EraRewards" "Type": "EraPoints"
}, },
"fallback": "0x0000000000", "fallback": "0x0000000000",
"documentation": [ "documentation": [
@@ -1646,6 +1606,19 @@
" will be used to determine the validator's session keys." " will be used to determine the validator's session keys."
] ]
}, },
{
"name": "DisabledValidators",
"modifier": 1,
"type": {
"Type": "Vec<u32>"
},
"fallback": "0x00",
"documentation": [
" Indices of disabled validators.",
"",
" The set is cleared when `on_session_ending` returns a new set of identities."
]
},
{ {
"name": "NextKeys", "name": "NextKeys",
"modifier": 0, "modifier": 0,
@@ -1984,6 +1957,13 @@
], ],
"constants": [] "constants": []
}, },
{
"name": "AuthorityDiscovery",
"storage": null,
"calls": [],
"events": null,
"constants": []
},
{ {
"name": "Democracy", "name": "Democracy",
"storage": { "storage": {
@@ -3111,10 +3091,10 @@
}, },
"fallback": "0x00", "fallback": "0x00",
"documentation": [ "documentation": [
" The current membership. When there's a vote going on, this should still be used for executive", " The current membership. When there's a vote going on, this should still be used for",
" matters. The block number (second element in the tuple) is the block that their position is", " executive matters. The block number (second element in the tuple) is the block that",
" active until (calculated by the sum of the block number when the member was elected", " their position is active until (calculated by the sum of the block number when the",
" and their term duration)." " member was elected and their term duration)."
] ]
}, },
{ {
@@ -3140,13 +3120,7 @@
} }
}, },
"fallback": "0x00", "fallback": "0x00",
"documentation": [ "documentation": []
" A list of votes for each voter. The votes are stored as numeric values and parsed in a bit-wise manner.",
"",
" In order to get a human-readable representation (`Vec<bool>`), use [`all_approvals_of`].",
"",
" Furthermore, each vector of scalars is chunked with the cap of `APPROVAL_SET_SIZE`."
]
}, },
{ {
"name": "RegisterInfoOf", "name": "RegisterInfoOf",
@@ -3161,8 +3135,8 @@
}, },
"fallback": "0x00", "fallback": "0x00",
"documentation": [ "documentation": [
" The vote index and list slot that the candidate `who` was registered or `None` if they are not", " The vote index and list slot that the candidate `who` was registered or `None` if they",
" currently registered." " are not currently registered."
] ]
}, },
{ {
@@ -3260,8 +3234,9 @@
}, },
"fallback": "0x00", "fallback": "0x00",
"documentation": [ "documentation": [
" Get the leaderboard if we're in the presentation phase. The first element is the weight of each entry;", " Get the leaderboard if we're in the presentation phase. The first element is the weight",
" It may be the direct summed approval stakes, or a weighted version of it." " of each entry; It may be the direct summed approval stakes, or a weighted version of it.",
" Sorted from low to high."
] ]
}, },
{ {
@@ -3298,27 +3273,31 @@
{ {
"name": "hint", "name": "hint",
"type": "SetIndex" "type": "SetIndex"
},
{
"name": "value",
"type": "BalanceOf"
} }
], ],
"documentation": [ "documentation": [
" Set candidate approvals. Approval slots stay valid as long as candidates in those slots", " Set candidate approvals. Approval slots stay valid as long as candidates in those slots",
" are registered.", " are registered.",
"", "",
" Locks the total balance of caller indefinitely.", " Locks `value` from the balance of `origin` indefinitely. Only [`retract_voter`] or",
" Only [`retract_voter`] or [`reap_inactive_voter`] can unlock the balance.", " [`reap_inactive_voter`] can unlock the balance.",
"", "",
" `hint` argument is interpreted differently based on:", " `hint` argument is interpreted differently based on:",
" - if `origin` is setting approvals for the first time: The index will be checked", " - if `origin` is setting approvals for the first time: The index will be checked for",
" for being a valid _hole_ in the voter list.", " being a valid _hole_ in the voter list.",
" - if the hint is correctly pointing to a hole, no fee is deducted from `origin`.", " - if the hint is correctly pointing to a hole, no fee is deducted from `origin`.",
" - Otherwise, the call will succeed but the index is ignored and simply a push to the last chunk", " - Otherwise, the call will succeed but the index is ignored and simply a push to the",
" with free space happens. If the new push causes a new chunk to be created, a fee indicated by", " last chunk with free space happens. If the new push causes a new chunk to be",
" [`VotingFee`] is deducted.", " created, a fee indicated by [`VotingFee`] is deducted.",
" - if `origin` is already a voter: the index __must__ be valid and point to the correct", " - if `origin` is already a voter: the index __must__ be valid and point to the correct",
" position of the `origin` in the current voters list.", " position of the `origin` in the current voters list.",
"", "",
" Note that any trailing `false` votes in `votes` is ignored; In approval voting, not voting for a candidate", " Note that any trailing `false` votes in `votes` is ignored; In approval voting, not",
" and voting false, are equal.", " voting for a candidate and voting false, are equal.",
"", "",
" # <weight>", " # <weight>",
" - O(1).", " - O(1).",
@@ -3341,11 +3320,15 @@
{ {
"name": "hint", "name": "hint",
"type": "SetIndex" "type": "SetIndex"
},
{
"name": "value",
"type": "BalanceOf"
} }
], ],
"documentation": [ "documentation": [
" Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in those slots", " Set candidate approvals from a proxy. Approval slots stay valid as long as candidates in",
" are registered.", " those slots are registered.",
"", "",
" # <weight>", " # <weight>",
" - Same as `set_approvals` with one additional storage read.", " - Same as `set_approvals` with one additional storage read.",
@@ -3374,8 +3357,8 @@
], ],
"documentation": [ "documentation": [
" Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices", " Remove a voter. For it not to be a bond-consuming no-op, all approved candidate indices",
" must now be either unregistered or registered to a candidate that registered the slot after", " must now be either unregistered or registered to a candidate that registered the slot",
" the voter gave their last approval set.", " after the voter gave their last approval set.",
"", "",
" Both indices must be provided as explained in [`voter_at`] function.", " Both indices must be provided as explained in [`voter_at`] function.",
"", "",
@@ -3449,9 +3432,10 @@
} }
], ],
"documentation": [ "documentation": [
" Claim that `signed` is one of the top Self::carry_count() + current_vote().1 candidates.", " Claim that `candidate` is one of the top `carry_count + desired_seats` candidates. Only",
" Only works if the `block_number >= current_vote().0` and `< current_vote().0 + presentation_duration()`", " works iff the presentation period is active. `candidate` should have at least collected",
" `signed` should have at least", " some non-zero `total` votes and `origin` must have enough funds to pay for a potential",
" slash.",
"", "",
" # <weight>", " # <weight>",
" - O(voters) compute.", " - O(voters) compute.",
@@ -3619,6 +3603,14 @@
" is 1000." " is 1000."
] ]
}, },
{
"name": "MinimumVotingLock",
"type": "BalanceOf",
"value": "0x00e40b54020000000000000000000000",
"documentation": [
" Minimum about that can be used as the locked value for voting."
]
},
{ {
"name": "DecayRatio", "name": "DecayRatio",
"type": "u32", "type": "u32",
@@ -4760,7 +4752,8 @@
" # <weight>", " # <weight>",
" - O(1).", " - O(1).",
" - Limited storage reads.", " - Limited storage reads.",
" - No DB writes.", " - One DB write (event).",
" - Unknown weight of derivative `proposal` execution.",
" # </weight>" " # </weight>"
] ]
}, },
@@ -4783,6 +4776,32 @@
" - One DB change.", " - One DB change.",
" # </weight>" " # </weight>"
] ]
},
{
"name": "sudo_as",
"args": [
{
"name": "who",
"type": "Address"
},
{
"name": "proposal",
"type": "Proposal"
}
],
"documentation": [
" Authenticates the sudo key and dispatches a function call with `Signed` origin from",
" a given account.",
"",
" The dispatch origin for this call must be _Signed_.",
"",
" # <weight>",
" - O(1).",
" - Limited storage reads.",
" - One DB write (event).",
" - Unknown weight of derivative `proposal` execution.",
" # </weight>"
]
} }
], ],
"events": [ "events": [
@@ -4803,6 +4822,15 @@
"documentation": [ "documentation": [
" The sudoer just switched identity; the old key is supplied." " The sudoer just switched identity; the old key is supplied."
] ]
},
{
"name": "SudoAsDone",
"args": [
"bool"
],
"documentation": [
" A sudo just took place."
]
} }
], ],
"constants": [] "constants": []
File diff suppressed because one or more lines are too long