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

refactor: move governance code to penumbra-governance #3067

Merged
merged 8 commits into from
Sep 22, 2023
Merged

Conversation

redshiftzero
Copy link
Member

@redshiftzero redshiftzero commented Sep 20, 2023

Closes #2950
This addresses the remaining governance items in #2288

Note that there is one non-refactoring change here which is in this commit, which includes UndelegateClaim in the list of actions that have proofs and thus should not be possible in a DaoSpend proposal due to DoS risk. Since claiming undelgate outputs is not possible, Delegate and Undelegate actions are also now disallowed.

This avoids a circular dependency between `penumbra-governance`
and `penumbra-transaction`
The reason for this is that previously the `put_dao_transaction`
and `pending_dao_transactions` methods were defined in the `StateReadExt`
and `StateWriteExt` traits in `penumbra-governance`. However, they
require `Transaction` from `penumbra-transaction` which would result
in a circular dependency.

Instead, we make a tiny extension trait in the app crate with these two
functions.
@redshiftzero redshiftzero temporarily deployed to smoke-test September 21, 2023 21:03 — with GitHub Actions Inactive
@redshiftzero redshiftzero changed the title wip: move governance code to penumbra-governance refactor: move governance code to penumbra-governance Sep 21, 2023
@hdevalence hdevalence marked this pull request as ready for review September 22, 2023 01:13
@hdevalence
Copy link
Member

Merging in order to allow proto refactoring.

@hdevalence hdevalence merged commit 49473c4 into main Sep 22, 2023
8 checks passed
@hdevalence hdevalence deleted the app-governance branch September 22, 2023 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pull governance out of the app crate
2 participants