Skip to content
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

Governance custom proposals #1056

Merged
merged 49 commits into from
Apr 13, 2023
Merged

Conversation

grarco
Copy link
Contributor

@grarco grarco commented Jan 19, 2023

Closes #467

Implements custom governance proposals and votes.
It does not implement the logic to apply in finalize_block in case of a successful proposal (given the absence of the required elements): at the moment, we only perform refunding.

  • Adds ProposalType
  • Adds VoteType
  • Refactors tally
  • Updates cli to support custom votes
  • Improves e2e tests

grarco added a commit that referenced this pull request Jan 20, 2023
@grarco
Copy link
Contributor Author

grarco commented Jan 25, 2023

pls update wasm

grarco added a commit that referenced this pull request Jan 26, 2023
@grarco grarco force-pushed the fraccaman+grarco/governance-custom-proposals branch from 8a82a96 to 66a38ee Compare January 26, 2023 10:14
@grarco
Copy link
Contributor Author

grarco commented Jan 26, 2023

pls update wasm

@grarco grarco mentioned this pull request Jan 26, 2023
8 tasks
@grarco
Copy link
Contributor Author

grarco commented Jan 31, 2023

pls update wasm

@grarco grarco marked this pull request as ready for review February 1, 2023 13:48
apps/src/lib/cli.rs Outdated Show resolved Hide resolved
grarco added a commit that referenced this pull request Feb 11, 2023
@grarco grarco force-pushed the fraccaman+grarco/governance-custom-proposals branch from be60cac to bba2f0c Compare February 11, 2023 13:07
@grarco
Copy link
Contributor Author

grarco commented Feb 11, 2023

pls update wasm

grarco added a commit that referenced this pull request Feb 11, 2023
@grarco grarco force-pushed the fraccaman+grarco/governance-custom-proposals branch from 06ef8b2 to b4f3801 Compare February 11, 2023 13:40
grarco added a commit that referenced this pull request Feb 17, 2023
@grarco grarco force-pushed the fraccaman+grarco/governance-custom-proposals branch from d32c4e4 to fabbd25 Compare February 17, 2023 18:42
@grarco grarco force-pushed the fraccaman+grarco/governance-custom-proposals branch from fabbd25 to b5c3c5b Compare February 17, 2023 18:58
@grarco grarco requested a review from tzemanovic March 1, 2023 18:38
grarco added a commit that referenced this pull request Mar 15, 2023
tzemanovic added a commit that referenced this pull request Apr 6, 2023
* fraccaman+grarco/governance-custom-proposals:
  changelog: add #1056
  Refactors proposal execution
  Updates governance user guide
  [ci] wasm checksums update
  Fmt
  Removes unwrap from `compute_tally`
  Replaces `TallyResult::Failed` with `Error`
  Continues governance tally if wrong vote type
  Misc fixes
  Fixes vote memo in governance docs
  Clippy + fmt
  Removes comment
  Fixes nam value in governance eth test
  Fixes length of hex message in e2e tests
  Generates keypair for eth proposal e2e test
  Fixes typos in e2e tests
  Fixes pgf e2e test and governance vp
  Adds e2e test for eth proposal
  Refactors pgf council vote to HashSet
  Refactors custom proposal vote in client
  Updates cli proposal vote help
  Manages eth proposals in `finalize_block`
  Updates tally with eth proposals
  Updates governance vp for eth votes
  Adds ETH bridge cutom proposal
  Updates eth bridge vote in gov specs
  Clippy + fmt
  Fixes pgf e2e error
  Refunds for pgf proposal
  Finalizes pgf e2e test
  Improves governance VP vote check
  Improves pgf e2e test
  Fixes `ProposalType` serialization
  Clippy + fmt
  Adds pgf e2e test to github workflow
  Pgf proposal e2e test
  Fixes governance VP
  Improves governance vote command help
  Refactors cli governance vote. Improves custom proposal vote validation
  Clippy + fmt
  Refactors governance `Votes`
  Refactors `compute_tally` and removes duplicate
  Updates tally result
  Fixes governance specs
  Updates proposal tally for proposal types
  Updates governance specs with regard to PGF
  Updates init proposal tx and governance VP
  Renames `proposal_type`
  Adds `ProposalType` and `VoteType`
@tzemanovic tzemanovic mentioned this pull request Apr 6, 2023
grarco added a commit that referenced this pull request Apr 6, 2023
@juped juped merged commit f229f5c into main Apr 13, 2023
@juped juped deleted the fraccaman+grarco/governance-custom-proposals branch April 13, 2023 06:07
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Governance fixes
3 participants