Bump metadata (#3343)
This commit is contained in:
@@ -949,11 +949,9 @@
|
||||
"type": "u64",
|
||||
"value": "0x1400000000000000",
|
||||
"documentation": [
|
||||
" The number of **slots** that an epoch takes. We couple sessions to",
|
||||
" epochs, i.e. we start a new session once the new epoch begins.",
|
||||
" NOTE: Currently it is not possible to change the epoch duration",
|
||||
" after the chain has started. Attempting to do so will brick block",
|
||||
" production."
|
||||
" The amount of time, in slots, that each epoch should last.",
|
||||
" NOTE: Currently it is not possible to change the epoch duration after",
|
||||
" the chain has started. Attempting to do so will brick block production."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -969,7 +967,26 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"errors": [],
|
||||
"errors": [
|
||||
{
|
||||
"name": "InvalidEquivocationProof",
|
||||
"documentation": [
|
||||
" An equivocation proof provided as part of an equivocation report is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "InvalidKeyOwnershipProof",
|
||||
"documentation": [
|
||||
" A key ownership proof provided as part of an equivocation report is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "DuplicateOffenceReport",
|
||||
"documentation": [
|
||||
" A given equivocation report is valid but already previously reported."
|
||||
]
|
||||
}
|
||||
],
|
||||
"index": 2
|
||||
},
|
||||
{
|
||||
@@ -1970,7 +1987,7 @@
|
||||
{
|
||||
"name": "SolutionImprovementThreshold",
|
||||
"type": "Perbill",
|
||||
"value": "0x20a10700",
|
||||
"value": "0xa0860100",
|
||||
"documentation": [
|
||||
" The minimum amount of improvement to the solution score that defines a solution as",
|
||||
" \"better\" (in any phase)."
|
||||
@@ -2463,102 +2480,18 @@
|
||||
" This is basically in sync with the call to [`SessionManager::new_session`]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotValidators",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "Vec<AccountId>"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of validators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotNominators",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "Vec<AccountId>"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Snapshot of nominators at the beginning of the current election window. This should only",
|
||||
" have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedElected",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "ElectionResult"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The next validator set. At the end of an era, if this is available (potentially from the",
|
||||
" result of an offchain worker), it is immediately used. Otherwise, the on-chain election",
|
||||
" is executed.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "QueuedScore",
|
||||
"modifier": "Optional",
|
||||
"type": {
|
||||
"plain": "ElectionScore"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" The score of the current [`QueuedElected`].",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "EraElectionStatus",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "ElectionStatus"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" Flag to control the execution of the offchain election. When `Open(_)`, we accept",
|
||||
" solutions to be submitted.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IsCurrentSessionFinal",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "bool"
|
||||
},
|
||||
"fallback": "0x00",
|
||||
"documentation": [
|
||||
" True if the current **planned** session is final. Note that this does not take era",
|
||||
" forcing into account.",
|
||||
"",
|
||||
" TWO_PHASE_NOTE: should be removed once we switch to multi-phase."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "StorageVersion",
|
||||
"modifier": "Default",
|
||||
"type": {
|
||||
"plain": "Releases"
|
||||
},
|
||||
"fallback": "0x04",
|
||||
"fallback": "0x05",
|
||||
"documentation": [
|
||||
" True if network has been upgraded to this version.",
|
||||
" Storage version of the pallet.",
|
||||
"",
|
||||
" This is set to v5.0.0 for new networks."
|
||||
" This is set to v6.0.0 for new networks."
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -3163,118 +3096,6 @@
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "submit_election_solution",
|
||||
"args": [
|
||||
{
|
||||
"name": "winners",
|
||||
"type": "Vec<ValidatorIndex>"
|
||||
},
|
||||
{
|
||||
"name": "compact",
|
||||
"type": "CompactAssignments"
|
||||
},
|
||||
{
|
||||
"name": "score",
|
||||
"type": "ElectionScore"
|
||||
},
|
||||
{
|
||||
"name": "era",
|
||||
"type": "EraIndex"
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"type": "ElectionSize"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Submit an election result to the chain. If the solution:",
|
||||
"",
|
||||
" 1. is valid.",
|
||||
" 2. has a better score than a potentially existing solution on chain.",
|
||||
"",
|
||||
" then, it will be _put_ on chain.",
|
||||
"",
|
||||
" A solution consists of two pieces of data:",
|
||||
"",
|
||||
" 1. `winners`: a flat vector of all the winners of the round.",
|
||||
" 2. `assignments`: the compact version of an assignment vector that encodes the edge",
|
||||
" weights.",
|
||||
"",
|
||||
" Both of which may be computed using _phragmen_, or any other algorithm.",
|
||||
"",
|
||||
" Additionally, the submitter must provide:",
|
||||
"",
|
||||
" - The `score` that they claim their solution has.",
|
||||
"",
|
||||
" Both validators and nominators will be represented by indices in the solution. The",
|
||||
" indices should respect the corresponding types ([`ValidatorIndex`] and",
|
||||
" [`NominatorIndex`]). Moreover, they should be valid when used to index into",
|
||||
" [`SnapshotValidators`] and [`SnapshotNominators`]. Any invalid index will cause the",
|
||||
" solution to be rejected. These two storage items are set during the election window and",
|
||||
" may be used to determine the indices.",
|
||||
"",
|
||||
" A solution is valid if:",
|
||||
"",
|
||||
" 0. It is submitted when [`EraElectionStatus`] is `Open`.",
|
||||
" 1. Its claimed score is equal to the score computed on-chain.",
|
||||
" 2. Presents the correct number of winners.",
|
||||
" 3. All indexes must be value according to the snapshot vectors. All edge values must",
|
||||
" also be correct and should not overflow the granularity of the ratio type (i.e. 256",
|
||||
" or billion).",
|
||||
" 4. For each edge, all targets are actually nominated by the voter.",
|
||||
" 5. Has correct self-votes.",
|
||||
"",
|
||||
" A solutions score is consisted of 3 parameters:",
|
||||
"",
|
||||
" 1. `min { support.total }` for each support of a winner. This value should be maximized.",
|
||||
" 2. `sum { support.total }` for each support of a winner. This value should be minimized.",
|
||||
" 3. `sum { support.total^2 }` for each support of a winner. This value should be",
|
||||
" minimized (to ensure less variance)",
|
||||
"",
|
||||
" # <weight>",
|
||||
" The transaction is assumed to be the longest path, a better solution.",
|
||||
" - Initial solution is almost the same.",
|
||||
" - Worse solution is retraced in pre-dispatch-checks which sets its own weight.",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "submit_election_solution_unsigned",
|
||||
"args": [
|
||||
{
|
||||
"name": "winners",
|
||||
"type": "Vec<ValidatorIndex>"
|
||||
},
|
||||
{
|
||||
"name": "compact",
|
||||
"type": "CompactAssignments"
|
||||
},
|
||||
{
|
||||
"name": "score",
|
||||
"type": "ElectionScore"
|
||||
},
|
||||
{
|
||||
"name": "era",
|
||||
"type": "EraIndex"
|
||||
},
|
||||
{
|
||||
"name": "size",
|
||||
"type": "ElectionSize"
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Unsigned version of `submit_election_solution`.",
|
||||
"",
|
||||
" Note that this must pass the [`ValidateUnsigned`] check which only allows transactions",
|
||||
" from the local node to be included. In other words, only the block author can include a",
|
||||
" transaction in the block.",
|
||||
"",
|
||||
" # <weight>",
|
||||
" See [`submit_election_solution`].",
|
||||
" # </weight>"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "kick",
|
||||
"args": [
|
||||
@@ -3347,20 +3168,9 @@
|
||||
},
|
||||
{
|
||||
"name": "StakingElection",
|
||||
"args": [
|
||||
"ElectionCompute"
|
||||
],
|
||||
"args": [],
|
||||
"documentation": [
|
||||
" A new set of stakers was elected with the given \\[compute\\]."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SolutionStored",
|
||||
"args": [
|
||||
"ElectionCompute"
|
||||
],
|
||||
"documentation": [
|
||||
" A new solution for the upcoming election has been stored. \\[compute\\]"
|
||||
" A new set of stakers was elected."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -3437,38 +3247,6 @@
|
||||
" intervention."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ElectionLookahead",
|
||||
"type": "BlockNumber",
|
||||
"value": "0x05000000",
|
||||
"documentation": [
|
||||
" The number of blocks before the end of the era from which election submissions are allowed.",
|
||||
"",
|
||||
" Setting this to zero will disable the offchain compute and only on-chain seq-phragmen will",
|
||||
" be used.",
|
||||
"",
|
||||
" This is bounded by being within the last session. Hence, setting it to a value more than the",
|
||||
" length of a session will be pointless."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxIterations",
|
||||
"type": "u32",
|
||||
"value": "0x0a000000",
|
||||
"documentation": [
|
||||
" Maximum number of balancing iterations to run in the offchain submission.",
|
||||
"",
|
||||
" If set to 0, balance_solution will not be executed at all."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MinSolutionScoreBump",
|
||||
"type": "Perbill",
|
||||
"value": "0x20a10700",
|
||||
"documentation": [
|
||||
" The threshold of improvement that should be provided for a new solution to be accepted."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "MaxNominatorRewardedPerValidator",
|
||||
"type": "u32",
|
||||
@@ -3572,93 +3350,6 @@
|
||||
" Rewards for this era have already been claimed for this validator."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionEarlySubmission",
|
||||
"documentation": [
|
||||
" The submitted result is received out of the open window."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionWeakSubmission",
|
||||
"documentation": [
|
||||
" The submitted result is not as good as the one stored on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SnapshotUnavailable",
|
||||
"documentation": [
|
||||
" The snapshot data of the current window is missing."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusWinnerCount",
|
||||
"documentation": [
|
||||
" Incorrect number of winners were presented."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusWinner",
|
||||
"documentation": [
|
||||
" One of the submitted winners is not an active candidate on chain (index is out of range",
|
||||
" in snapshot)."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusCompact",
|
||||
"documentation": [
|
||||
" Error while building the assignment type from the compact. This can happen if an index",
|
||||
" is invalid, or if the weights _overflow_."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusNominator",
|
||||
"documentation": [
|
||||
" One of the submitted nominators is not an active nominator on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusNomination",
|
||||
"documentation": [
|
||||
" One of the submitted nominators has an edge to which they have not voted on chain."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionSlashedNomination",
|
||||
"documentation": [
|
||||
" One of the submitted nominators has an edge which is submitted before the last non-zero",
|
||||
" slash of the target."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusSelfVote",
|
||||
"documentation": [
|
||||
" A self vote must only be originated from a validator to ONLY themselves."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusEdge",
|
||||
"documentation": [
|
||||
" The submitted result has unknown edges that are not among the presented winners."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusScore",
|
||||
"documentation": [
|
||||
" The claimed score does not match with the one computed from the data."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "OffchainElectionBogusElectionSize",
|
||||
"documentation": [
|
||||
" The election size is invalid."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "CallNotAllowed",
|
||||
"documentation": [
|
||||
" The call is not allowed at the given time due to restrictions of election period."
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "IncorrectHistoryDepth",
|
||||
"documentation": [
|
||||
@@ -11397,7 +11088,7 @@
|
||||
}
|
||||
],
|
||||
"documentation": [
|
||||
" Dispatch the given `call` from an account that the sender is authorised for through",
|
||||
" Dispatch the given `call` from an account that the sender is authorized for through",
|
||||
" `add_proxy`.",
|
||||
"",
|
||||
" Removes any corresponding announcement(s).",
|
||||
@@ -11458,7 +11149,10 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00f09e544c3900000000000000000000",
|
||||
"documentation": [
|
||||
" The base amount of currency needed to reserve for creating a proxy."
|
||||
" The base amount of currency needed to reserve for creating a proxy.",
|
||||
"",
|
||||
" This is held for an additional storage item whose value size is",
|
||||
" `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11466,7 +11160,11 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x0060aa7714b400000000000000000000",
|
||||
"documentation": [
|
||||
" The amount of currency needed per proxy added."
|
||||
" The amount of currency needed per proxy added.",
|
||||
"",
|
||||
" This is held for adding 32 bytes plus an instance of `ProxyType` more into a pre-existing",
|
||||
" storage value. Thus, when configuring `ProxyDepositFactor` one should take into account",
|
||||
" `32 + proxy_type.encode().len()` bytes of data."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11482,7 +11180,7 @@
|
||||
"type": "u32",
|
||||
"value": "0x20000000",
|
||||
"documentation": [
|
||||
" `MaxPending` metadata shadow."
|
||||
" The maximum amount of time-delayed announcements that are allowed to be pending."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11490,7 +11188,9 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00f09e544c3900000000000000000000",
|
||||
"documentation": [
|
||||
" `AnnouncementDepositBase` metadata shadow."
|
||||
" The base amount of currency needed to reserve for creating an announcement.",
|
||||
"",
|
||||
" This is held when a new storage item holding a `Balance` is created (typically 16 bytes)."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -11498,7 +11198,10 @@
|
||||
"type": "BalanceOf",
|
||||
"value": "0x00c054ef286801000000000000000000",
|
||||
"documentation": [
|
||||
" `AnnouncementDepositFactor` metadata shadow."
|
||||
" The amount of currency needed per announcement made.",
|
||||
"",
|
||||
" This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)",
|
||||
" into a pre-existing storage value."
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user