-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(x/gov): add governors #73
Open
giunatale
wants to merge
65
commits into
atomone-hub:main
Choose a base branch
from
giunatale:governors-no-aggregate-vp
base: main
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.
Open
Changes from 57 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
b301574
tally prototype with governors
giunatale 8cb99c2
add protos
giunatale 41b042f
governor object started (copy from Validator)
giunatale d4a8c03
wip
giunatale 96abd4c
wip
giunatale f9ad9d8
...
giunatale 700703d
...
giunatale f6c3392
missing governor election
giunatale 6951d84
not right, cannot iterate on all governors
giunatale 1a8495c
remove percentage and try sorting governors by VP
giunatale a769118
add msgs
giunatale ca19aaf
update test mock keepers
giunatale be1db00
...
giunatale e1a2bbb
compiles
giunatale 851c005
add query and cli
giunatale 372bca2
allow governor status updates only once a month
giunatale 4ea0dad
genesis
giunatale fedba97
fix e2e
giunatale 68645f2
add governors vp invariant
giunatale 201b112
iterate over correct values
giunatale e5c1284
format pass
giunatale 6f37870
fix missing return
giunatale c0cdec9
cleanup protos
giunatale 80f44c7
Merge branch 'main' into governors
giunatale afa8d07
fix merge mistake
giunatale 58d6a83
fix merge mistakes
giunatale 44d71e6
approx VP computation for quorum with governors
giunatale 5767cca
fix error in keeper.GetGovernor
giunatale 25d017a
protogen
giunatale 671755c
add min bonding requirements for governors
giunatale 86031e6
governance delegations invariant
giunatale 3a9f71f
fmt pass
giunatale b8eac36
use math
giunatale 9bcbd0f
remove iteration over map
giunatale 8daaffb
more efficient
giunatale 26ff811
fix
giunatale ec48fe5
remove ambiguity
giunatale 180e1c1
...
giunatale e147827
various fixes
giunatale e0d3865
Merge remote-tracking branch 'origin/main' into governors
giunatale 48f45be
fix error codes
giunatale 0659b9d
add alternative for tallying governors VP
giunatale 8418fed
remove aggregate VP for governors
giunatale 7bd0a30
don't use nil
giunatale abe5fc2
remove maxGovernors param
giunatale 8b79c43
tally results updated only once only per voter
giunatale 1f8e5a9
...
giunatale 9560c40
Merge branch 'governors' into governors-no-aggregate-vp
giunatale 374c315
Merge remote-tracking branch 'origin/main' into governors
giunatale de5f46a
Merge branch 'governors' into governors-no-aggregate-vp
giunatale 90f540c
Merge branch 'main' into governors
giunatale c5e5ce4
fmt
giunatale a0b0650
Merge branch 'governors' into governors-no-aggregate-vp
giunatale 7a792a8
fix/refac: tally with governors (#2)
tbruyelle 8f1448d
test: keeper governor funcs (#3)
tbruyelle 3d4fc3f
Merge branch 'main' into governors-no-aggregate-vp
giunatale 2713498
fix merge conflicts
giunatale 8dee330
test(x/gov): add e2e tests for governors (#4)
tbruyelle f25a8a4
fix(x/gov): REST query governor URL
tbruyelle 539ee0e
docs(x/gov): add governors ADR (#5)
giunatale 1b03975
docs(x/gov): add governors documentation (#6)
giunatale e48e30b
fix: gov init genesis order (#7)
tbruyelle e3a22b3
perf(x/gov): bunch of tally improvements (#8)
tbruyelle b39ff26
Merge branch 'main' into governors-no-aggregate-vp
giunatale fabb95d
Update go.mod
giunatale 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
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
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
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.
I would rather see singular
delegation
here, as it will always return a single.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.
This is for consistency, the plural is used in other places too (e.g. proposals)
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.
Understandable, then the first one
/atomone/gov/v1/governor/{governor_address}
should be/atomone/gov/v1/governors/{governor_address}
?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.
but also e.g. validator info for a single validator in x/staking is "validators/{validator-address}"
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.
yes