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

feat!: expedited proposal min deposit param #254

Merged
merged 56 commits into from
Jun 20, 2022

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Jun 7, 2022

Closes: #1687

What is the purpose of the change

#240 has introduced an expedited proposals feature, allowing the proposals with a shorter voting period to be submitted in case of emergencies.

Based on the feedback from Commonwealth, we would like to also increase the minimum deposit amount for such emergency proposals.

This change introduces the ability to have an expedited minimum deposit amount be managed via parameter.

Brief Changelog

  • Introduce the new min_expedited_deposit field in deposit_params
  • add unit tests
  • fix integration / sim tests

Testing and Verifying

This change added tests and can be verified as follows:

  • go test -timeout 30s -run ^TestDeposits$ github.com/cosmos/cosmos-sdk/x/gov/keeper
  • go test -timeout 30s -run ^TestProposalGetMinDepositFromParams$ github.com/cosmos/cosmos-sdk/x/gov/types
  • go test -timeout 30s -run ^TestHandlerTestSuite$ -testify.m ^(TestProposalHandler)$ github.com/cosmos/cosmos-sdk/x/params

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? yes
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? no
  • How is the feature or change documented? not applicable

@p0mvn p0mvn changed the title feat: expedited proposal min deposit param feat!: expedited proposal min deposit param Jun 7, 2022
@github-actions github-actions bot added the C:CLI label Jun 7, 2022
@p0mvn p0mvn mentioned this pull request Jun 16, 2022
Base automatically changed from roman/emergency-voting to osmosis-main June 16, 2022 21:29
x/gov/types/proposal.go Outdated Show resolved Hide resolved
@p0mvn p0mvn marked this pull request as ready for review June 17, 2022 18:29
@p0mvn p0mvn requested a review from a team June 17, 2022 18:29
Copy link
Collaborator

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

x/gov/abci_test.go Outdated Show resolved Hide resolved
x/gov/types/params.go Show resolved Hide resolved
x/gov/simulation/genesis_test.go Show resolved Hide resolved
Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
@mattverse mattverse self-requested a review June 20, 2022 03:06
@p0mvn p0mvn merged commit 8b021d2 into osmosis-main Jun 20, 2022
@p0mvn p0mvn deleted the roman/expedited-deposit branch June 20, 2022 15:14
johnletey added a commit to kyve-org/cosmos-sdk-old that referenced this pull request Jun 21, 2022
johnletey added a commit to kyve-org/cosmos-sdk-old that referenced this pull request Jun 21, 2022
johnletey added a commit to kyve-org/cosmos-sdk-old that referenced this pull request Jun 27, 2022
* feat: custom proposal-based voting periods (#1)

h/t osmosis-labs#239

* feat: expedited proposals (#2)

* feat: expedited proposals

h/t osmosis-labs#240

* fix: correctly generate random threshold params

* fix: update randomised genesis state tests

* feat: allow protocol stakers and delegators to vote (#3)

* feat: expedited deposits (#4)

h/t osmosis-labs#254

* fix: still include custom voting periods

* fix: fallback to custom voting periods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Create a PR for deposit parameter for exedited proposal
3 participants