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: deprecate x/params #2014

Merged
merged 31 commits into from
Apr 25, 2024
Merged

Conversation

skosito
Copy link
Contributor

@skosito skosito commented Apr 11, 2024

Description

Based on this: https://github.com/cosmos/cosmos-sdk/pull/12363/files

Done for emissions module, observer params are removed and BallotMaturityBlocks param is moved from observer to emissions module. Also, introducing ObserverSlashAmount as param in this PR in migration.
This is still not upgrading cosmos.

I tested this upgrade locally using develop as old version and make start-upgrade-test.

Closes: #848 #1898

Type of change

Refactor

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Checklist:

  • I have added unit tests that prove my fix feature works

@skosito skosito changed the title deprecate x/params [wip] refactor: deprecate x/params [wip] Apr 11, 2024
@lumtis
Copy link
Member

lumtis commented Apr 12, 2024

@skosito I think we can try to merge #2001 that doesn't contains sensitive change and create a sdk47 feature branch for this one

@skosito
Copy link
Contributor Author

skosito commented Apr 12, 2024

@skosito I think we can try to merge #2001 that doesn't contains sensitive change and create a sdk47 feature branch for this one

makes sense, need one more review on that one

@skosito skosito changed the base branch from remove-broadcastmode-block to feat-cosmos-sdk-0.47.10-upgrade April 17, 2024 15:25
@skosito skosito changed the title refactor: deprecate x/params [wip] refactor: deprecate x/params Apr 17, 2024
@skosito skosito marked this pull request as ready for review April 17, 2024 15:25
@skosito skosito requested a review from lumtis April 19, 2024 00:46
x/emissions/abci.go Outdated Show resolved Hide resolved
x/emissions/abci.go Show resolved Hide resolved
x/emissions/abci.go Show resolved Hide resolved
x/emissions/abci.go Outdated Show resolved Hide resolved
x/emissions/genesis.go Outdated Show resolved Hide resolved
x/emissions/keeper/params.go Show resolved Hide resolved
x/emissions/keeper/params_test.go Outdated Show resolved Hide resolved
x/emissions/migrations/v3/migrate.go Outdated Show resolved Hide resolved
x/emissions/types/params.go Show resolved Hide resolved
x/emissions/types/params.go Outdated Show resolved Hide resolved
@skosito skosito requested a review from lumtis April 19, 2024 21:08
Copy link
Member

@lumtis lumtis left a comment

Choose a reason for hiding this comment

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

Looks good to me, just a minor refactoring that would be better I think

x/emissions/abci.go Outdated Show resolved Hide resolved
Copy link
Contributor

@kingpinXD kingpinXD left a comment

Choose a reason for hiding this comment

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

minor changes requested , and one point of discussion
#2014 (comment)

@skosito skosito mentioned this pull request Apr 22, 2024
10 tasks
@skosito skosito requested a review from kingpinXD April 23, 2024 22:58
@lumtis lumtis merged commit 27b9e0e into feat-cosmos-sdk-0.47.10-upgrade Apr 25, 2024
18 checks passed
@lumtis lumtis deleted the params-upgrade branch April 25, 2024 12:38
@skosito skosito mentioned this pull request Apr 30, 2024
10 tasks
lumtis added a commit that referenced this pull request May 3, 2024
* Remove broadcast mode block wip

* Fixes

* Changelog

* PR comments

* Lint fix

* refactor: remove fungible params (#2004)

* Remove unused params from fungible module

* Make generate

* Changelog

* Lint fix

* Lint fix

* Fix changelog

* Revert proto indexes

* Make generate

* refactor: deprecate x/params (#2014)

* Remove unused params from fungible module

* Make generate

* Changelog

* Lint fix

* Lint fix

* Migrate emissions params to store

* Migrate observer params to its own store

* Make generate

* Changelog

* Lint fixes

* Add observer slash amount param to migrate script

* Fix tests

* Lint fixes

* Fixes

* Lint fixes

* Fixes

* Tests

* Small cleanup

* Remove not needed params store mock

* Fixes after merge

* Add found flag to get params method

* Move ballot maturity blocks param to emissions module

* Remove params from observer module

* Fix build

* PR comments

* PR comment

* PR comments

* PR comments

* feat: cosmos v0.47 upgrade (#2039)

* proto fixes after merge

* Fix tx proto emissions

* fixes

* make generate

* remove tendermint usage

* Update changelog

* fix test

* add some logs to proto gen script

* permissions

* add more logs

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* cleanup

* cleanup

* always format proto before generation

* generate explicit format deps

* set docker username to fix permissions in CI

* dummy proto change to test formatting

* set buf cache directory

* Revert "dummy proto change to test formatting"

This reverts commit 7e5c0dc.

* refactor: update go-tss (#2094)

* Remove unused params from fungible module

* Make generate

* Changelog

* Lint fix

* Lint fix

* Migrate emissions params to store

* Migrate observer params to its own store

* Make generate

* Changelog

* Lint fixes

* Add observer slash amount param to migrate script

* Fix tests

* Lint fixes

* Fixes

* Lint fixes

* Fixes

* Tests

* Small cleanup

* Try upgrade with simapp change

* Remove not needed params store mock

* fix compile errors

* proto changes

* Fixes

* Upgrade handler changes

* Fixes

* Fix e2e test

* Fixes after merge

* Add found flag to get params method

* Move ballot maturity blocks param to emissions module

* Remove params from observer module

* Fix build

* Regen proto

* Fixes for e2e tests

* Fix some unit tests

* Fix some lint errors

* Fix more unit tests

* PR comments

* Proto paths fixes

* Linters

* make typescript

* proto format

* make specs

* make docs

* make gen

* lint

* Fix some unit tests

* Fix cli test suites

* Fix lints

* Tmp comment unit test

* lint

* Use latest ethermint change and fix test

* PR comment

* PR comments

* Fix one more import

* Cleanup

* Lint fix

* Bump zetachain ethermint

* Remove cometbft replace

* go mod tidy

* bump ethermint

* Revert replace

* Bump ethermint

* Proto files updates after merge

* Make generate

* Bump ethermint

* Fix PR comments

* Formatting

* Mention observer params removal in breaking changes in changelog

* bump ethermint

* Remove tendermint dep after go-tss upgrade

* go mod tidy

* bump go-tss

* changelog

* changelog

---------

Co-authored-by: Alex Gartner <[email protected]>
Co-authored-by: Lucas Bertrand <[email protected]>
@skosito skosito mentioned this pull request May 7, 2024
10 tasks
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.

3 participants