-
Notifications
You must be signed in to change notification settings - Fork 34
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!: initial deposit requirement for proposals #296
Conversation
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.
The only thing I don't feel entirely comfortable with is the migration logic (not because it looks wrong, just because I am not that familiar with it). Everything else looks good to me though! 👍
Thanks for the quick review. Migration logic sets the new gov parameter since it was non-existent before. Once we upgrade our SDK in Osmosis, the upgrade e2e tests should cover this. As long as e2e upgrade passes, this should be fine |
All comments are now addressed |
Planning on merging this once CI passes to unblock backport + manual testing |
* feat!: initial deposit for proposals * fix TestValidateInitialDeposit * fix migration tests * integrate new param into simulator * increase consensus version and migration tests * fix app state determinism tests * fix gov cli * fix grpc query tests * more fixes * restore build tags * fix genesis and proposal handler tests * Adam's comment * revert some test changes * fix TestSimulateMsgSubmitProposal * more fixes * err check * uncomment test * fixTestProposalHandler * convert uint32 to dec * revert NewDepositParams API, use decorator instead * fix proto comment * fix more tests * go mod * remove copied proto field * typo * fix tests * fix x/gov/client/testutil tests * add json tags (cherry picked from commit 8417fe8)
* feat!: initial deposit requirement for proposals (backport #296) * Update x/gov/legacy/v3/store_test.go Co-authored-by: Adam Tucker <adam@osmosis.team> * Update x/gov/simulation/genesis.go Co-authored-by: Adam Tucker <adam@osmosis.team> Co-authored-by: Adam Tucker <adam@osmosis.team>
Closes: #XXX
What is the purpose of the change
This change introduces a minimum initial deposit requirement for submitting proposals.
It introduces a new deposit parameter and validates the initial deposit attached to the message against the parameter.
Brief Changelog
validateInitialDeposit
defined on the gov keepervalidateInitialDeposit
fromSubmitProposal
in the gov message serverTesting and Verifying
This change added tests and can be verified as follows:
TestValidateInitialDeposit
TestSubmitProposal_InitialDeposit
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no