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!: add expedited propsals support #3149

Merged
merged 22 commits into from
Jun 21, 2024
Merged

Conversation

MSalopek
Copy link
Contributor

@MSalopek MSalopek commented Jun 17, 2024

@MSalopek
Copy link
Contributor Author

Also requires changes to ICS to support the new changes in gov.

@MSalopek MSalopek changed the title [wip] feat!: add expedited propsals support feat!: add expedited propsals support Jun 17, 2024
app/upgrades/v18/upgrades.go Fixed Show fixed Hide fixed
app/upgrades/v18/upgrades.go Fixed Show fixed Hide fixed
app/upgrades/v18/upgrades.go Fixed Show fixed Hide fixed
@MSalopek
Copy link
Contributor Author

Also requires forking wasmd and supporting the correct gov interface.

@MSalopek MSalopek marked this pull request as ready for review June 20, 2024 15:17
Copy link
Contributor

@mpoke mpoke left a comment

Choose a reason for hiding this comment

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

The general logic LGTM. The params are not initialized with the values from the proposal.

go.mod Outdated
@@ -231,14 +231,14 @@ replace (
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0

// Use special SDK v0.47.x release with support for both ICS and LSM
github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.47.15-ics-lsm
github.com/cosmos/cosmos-sdk => github.com/informalsystems/cosmos-sdk v0.46.0-alpha2.0.20240614081903-f1b9aac8d413
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we using a spacial 0.46 branch of SDK?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this under API breaking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adds a new API method.

govParams := keepers.GovKeeper.GetParams(ctx)
govParams.ExpeditedVotingPeriod = &expeditedPeriod
govParams.ExpeditedThreshold = govv1.DefaultExpeditedThreshold.String() // 66.7%
govParams.ExpeditedMinDeposit = govParams.MinDeposit // full deposit amount is required
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be 500 ATOMs. The min deposit is 250 ATOMs. See https://www.mintscan.io/cosmos/proposals/926

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved in 364db84

@MSalopek MSalopek merged commit edd0f2f into main Jun 21, 2024
17 checks passed
@MSalopek MSalopek deleted the masa/integrate-expedidited-props branch June 21, 2024 13:46
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.

None yet

3 participants