-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds multi-block election types and refactors current pallets to support new interfaces and types #6034
Open
gpestana
wants to merge
86
commits into
master
Choose a base branch
from
gpestana/epm-mb
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+5,609
−2,844
Open
Adds multi-block election types and refactors current pallets to support new interfaces and types #6034
Changes from 78 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
3f6bf3f
init: adds EPM-MB, multipaged types and primitives
gpestana 8a682b8
refactors staking pallet with new paginated types
gpestana 94ff073
refactors election-multiphase pallet with new paginated types
gpestana 1527bd6
nits for dependent pallets and runtimes
gpestana 5cb1de1
adds ElectionProvider::ongoing to trait and impls
gpestana 50d9698
Merge branch 'master' into gpestana/epm-mb
Ank4n 43eec4b
clean up sp-staking
gpestana 11dd785
clean up and rustdoc for epm-support
gpestana d446ed0
Merge branch 'gpestana/epm-mb' of github.com:paritytech/polkadot-sdk …
gpestana 5c17573
nits onchain election provider
gpestana ee7bdd4
EPM nits and rustdoc improvements
gpestana f30b548
clean up and rustdocs for EPM core and sub pallets
gpestana e7bf7dc
rustdocs and nits
gpestana f810692
Merge branch 'master' into gpestana/epm-mb
gpestana bf67a3e
adds prdoc
gpestana 345840d
fixes prdoc
gpestana 52dcee9
removes from all pallets
gpestana 6d506e2
Adds new tests for verifier pallet
gpestana 430532a
implements hold logic in signed pallet; finishes implementing bail call
gpestana 068e0fd
finishes signed pallet
gpestana 5ca0bab
Merge branch 'master' into gpestana/epm-mb-merge
gpestana 385500d
updates inherent call in unsigned phase to new interfaces
gpestana b4019bb
licence header nit
gpestana 9f30e2d
Merge branch 'master' into gpestana/epm-mb
gpestana 82abba1
removes epm-mb
gpestana 1034653
nit fix in bags list remote tests
gpestana 7248960
nit fix prdoc
gpestana 18813c9
Merge branch 'master' into gpestana/epm-mb
gpestana a92d44a
Addresses PR reviews (removes all paged types/configs from epm and nits)
gpestana 3d1a330
improve memory efficiency of try into bounded supports; tests
gpestana 1757c91
a few nits in the staking pallet; handles exposures better (do not le…
gpestana 7022467
updates electable stashes to allow for multiple adds across pages
gpestana b49684e
Adds staking pallet rustdocs; nits
gpestana 7851c6e
Refactors the snapshot cursors of staking pallet and adds more tests
gpestana 3ff9914
Adds e2e tests to staking pallet
gpestana bc7b200
adds exposure collection checks to multi page election tests
gpestana 2e71ab2
EPM-MB: Supports only single page target snapshot (#6414)
gpestana e9854fc
Adds try-state checks for election prep metadata and tests
gpestana 9f4b6a3
more tests
gpestana 612886f
Merge branch 'master' into gpestana/epm-mb
gpestana fb31d1b
".git/.scripts/commands/fmt/fmt.sh"
01e09c6
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana b4c900c
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana 628ae67
Update prdoc/pr_6034.prdoc
gpestana d05a002
Update substrate/frame/staking/src/lib.rs
gpestana 07796d9
Update substrate/frame/staking/src/lib.rs
gpestana 23b9c21
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana 2570c23
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana 808e2ba
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana 2092d2c
Update substrate/frame/election-provider-multi-phase/src/unsigned.rs
gpestana f2fe960
Update substrate/frame/election-provider-support/src/onchain.rs
gpestana bca81c2
Update substrate/frame/election-provider-support/src/lib.rs
gpestana df729a0
addresses PR review comments
gpestana 0774cc4
Merge branch 'master' into gpestana/epm-mb
gpestana 51329d7
ensures only collected electable stashes have exposures collectede
gpestana 64d3ab3
comment nits
gpestana 2082723
adds type alias to ensure bounds are in order
gpestana d720e5a
integrity test
gpestana a88361a
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana ea5aa9e
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana d140b1f
removes the lockable election provider and other nits
gpestana d64068b
Merge branch 'gpestana/epm-mb' of github.com:paritytech/polkadot-sdk …
gpestana 1a2ddfc
removes unecessary last_page_empty_slots
gpestana 2117056
docs and tests for exposures.split_others
gpestana e568248
Merge branch 'master' into gpestana/epm-mb
gpestana 83c7288
nits and removes sp-std dependency from staking primitives
gpestana 6705e0f
Update substrate/frame/election-provider-multi-phase/src/lib.rs
gpestana 4e13e4f
Update prdoc/pr_6034.prdoc
gpestana 825984b
fixes epm test case
gpestana 93d6bda
removes TryIntoBoundedSupports trait and impl coversion directly in S…
gpestana 69b38e5
Adds max backers per winner bounds check in the phragmen implementati…
gpestana f6be182
Merge branch 'master' into gpestana/epm-mb
gpestana 442a64e
Merge branch 'master' into gpestana/epm-mb
gpestana e43e885
addresses PR comments
gpestana 676db53
Revert "Adds max backers per winner bounds check in the phragmen impl…
gpestana fe8b9ae
adds max backers per winner trimming test
gpestana 84eea26
Ensures max backers per winner bounds are met in Staking miner (#6771)
gpestana 4788579
fixes overflowing tests
gpestana b792a6d
adds benchs and nits
gpestana 61ef83e
Merge branch 'master' into gpestana/epm-mb
gpestana 5ce51ea
pr review refactors and improvements
gpestana 39e5c3d
improves add_electables and tests
gpestana 65cf87f
improves add_electables
gpestana 7d33c5c
remove unecessary cloning
gpestana d7817e0
migrations
gpestana 0edb158
Merge branch 'master' into gpestana/epm-mb
gpestana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
title: Adds multi-block election types and refactors current single logic to support it | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
This PR adds election types and structs required to run a multi-block election. In addition, | ||
it modifies EPM, staking pallet and all dependent pallets and logic to use the multi-block types. | ||
|
||
crates: | ||
- name: frame-election-provider-support | ||
bump: major | ||
- name: pallet-election-provider-multi-phase | ||
bump: major | ||
- name: pallet-staking | ||
bump: major | ||
- name: pallet-fast-unstake | ||
bump: minor | ||
- name: pallet-delegated-staking | ||
bump: minor | ||
- name: sp-npos-elections | ||
bump: major | ||
- name: sp-staking | ||
bump: major | ||
- name: pallet-bags-list-remote-tests | ||
bump: minor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can introduce a function
unbounded
toDataProviderBounds
to make code more readable.