Bump metadata (#2305)

* Bump metadata

* Rewrite yarn.lock
This commit is contained in:
Jaco Greeff
2020-05-25 08:20:45 +02:00
committed by GitHub
parent 4b2d33693c
commit 4156eb44ab
16 changed files with 160 additions and 200 deletions
@@ -3015,7 +3015,7 @@
"type": "Vec<ValidatorIndex>"
},
{
"name": "compact_assignments",
"name": "compact",
"type": "CompactAssignments"
},
{
@@ -3025,6 +3025,10 @@
{
"name": "era",
"type": "EraIndex"
},
{
"name": "size",
"type": "ElectionSize"
}
],
"documentation": [
@@ -3073,34 +3077,7 @@
" minimized (to ensure less variance)",
"",
" # <weight>",
" E: number of edges. m: size of winner committee. n: number of nominators. d: edge degree",
" (16 for now) v: number of on-chain validator candidates.",
"",
" NOTE: given a solution which is reduced, we can enable a new check the ensure `|E| < n +",
" m`. We don't do this _yet_, but our offchain worker code executes it nonetheless.",
"",
" major steps (all done in `check_and_replace_solution`):",
"",
" - Storage: O(1) read `ElectionStatus`.",
" - Storage: O(1) read `PhragmenScore`.",
" - Storage: O(1) read `ValidatorCount`.",
" - Storage: O(1) length read from `SnapshotValidators`.",
"",
" - Storage: O(v) reads of `AccountId` to fetch `snapshot_validators`.",
" - Memory: O(m) iterations to map winner index to validator id.",
" - Storage: O(n) reads `AccountId` to fetch `snapshot_nominators`.",
" - Memory: O(n + m) reads to map index to `AccountId` for un-compact.",
"",
" - Storage: O(e) accountid reads from `Nomination` to read correct nominations.",
" - Storage: O(e) calls into `slashable_balance_of_vote_weight` to convert ratio to staked.",
"",
" - Memory: build_support_map. O(e).",
" - Memory: evaluate_support: O(E).",
"",
" - Storage: O(e) writes to `QueuedElected`.",
" - Storage: O(1) write to `QueuedScore`",
"",
" The weight of this call is 1/10th of the blocks total weight.",
" See `crate::weight` module.",
" # </weight>"
]
},
@@ -3112,7 +3089,7 @@
"type": "Vec<ValidatorIndex>"
},
{
"name": "compact_assignments",
"name": "compact",
"type": "CompactAssignments"
},
{
@@ -3122,6 +3099,10 @@
{
"name": "era",
"type": "EraIndex"
},
{
"name": "size",
"type": "ElectionSize"
}
],
"documentation": [
@@ -3129,7 +3110,11 @@
"",
" 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."
" transaction in the block.",
"",
" # <weight>",
" See `crate::weight` module.",
" # </weight>"
]
}
],
@@ -3404,6 +3389,12 @@
" The claimed score does not match with the one computed from the data."
]
},
{
"name": "PhragmenBogusElectionSize",
"documentation": [
" The election size is invalid."
]
},
{
"name": "CallNotAllowed",
"documentation": [