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

Removed consumer param store updates #892

Merged
merged 3 commits into from
Aug 10, 2023
Merged

Conversation

sampocs
Copy link
Collaborator

@sampocs sampocs commented Aug 10, 2023

Closes: #XXX

Context and purpose of the change

The CCV paramstore runs a bech32 address verification on the provider fee pool address; however, it tries to verify the address using the consumer chain's address prefix, causing the validation to fail (i.e. it tries to verify a cosmos address by checking if it has a stride prefix. This should be resolved in ICS before the consumer keeper can safely set params. As a result, this PR removes all occurrences of ConsumerKeeper.SetParams`.

Brief Changelog

  • Removed calls to RegisterStTokenDenomsToWhitelist in upgrade handler and host zone registration (RegisterStTokenDenomsToWhitelist calls ConsumerKeeper.SetParams)

Upgrades Tests

integration_tests.bats
 ✓ [INTEGRATION-BASIC-GAIA] host zones successfully registered
 ✓ [INTEGRATION-BASIC-GAIA] ibc transfer updates all balances
 ✓ [INTEGRATION-BASIC-GAIA] liquid stake mint and transfer
 ✓ [INTEGRATION-BASIC-GAIA] packet forwarding automatically liquid stakes
 ✓ [INTEGRATION-BASIC-GAIA] tokens on GAIA were staked
 ✓ [INTEGRATION-BASIC-GAIA] redemption works
 ✓ [INTEGRATION-BASIC-GAIA] claimed tokens are properly distributed
 ✓ [INTEGRATION-BASIC-GAIA] rewards are being reinvested, exchange rate updating
 ✓ [INTEGRATION-BASIC-GAIA] rewards are being distributed to stakers

// upgrade passed

integration_tests.bats
 ✓ [INTEGRATION-BASIC-EVMOS] host zones successfully registered
 ✓ [INTEGRATION-BASIC-EVMOS] ibc transfer updates all balances
 ✓ [INTEGRATION-BASIC-EVMOS] liquid stake mint and transfer
 - [INTEGRATION-BASIC-EVMOS] packet forwarding automatically liquid stakes (skipped: Packet forward liquid stake test is only run on GAIA and HOST)
 ✓ [INTEGRATION-BASIC-EVMOS] tokens on EVMOS were staked
 ✓ [INTEGRATION-BASIC-EVMOS] redemption works
 ✓ [INTEGRATION-BASIC-EVMOS] claimed tokens are properly distributed
 ✓ [INTEGRATION-BASIC-EVMOS] rewards are being reinvested, exchange rate updating
 ✓ [INTEGRATION-BASIC-EVMOS] rewards are being distributed to stakers

integration_tests.bats
 ✓ [INTEGRATION-BASIC-HOST] host zones successfully registered
 ✓ [INTEGRATION-BASIC-HOST] ibc transfer updates all balances
 ✓ [INTEGRATION-BASIC-HOST] liquid stake mint and transfer
 ✓ [INTEGRATION-BASIC-HOST] packet forwarding automatically liquid stakes
 ✓ [INTEGRATION-BASIC-HOST] tokens on HOST were staked
 ✓ [INTEGRATION-BASIC-HOST] redemption works
 ✓ [INTEGRATION-BASIC-HOST] claimed tokens are properly distributed
 ✓ [INTEGRATION-BASIC-HOST] rewards are being reinvested, exchange rate updating
 ✓ [INTEGRATION-BASIC-HOST] rewards are being distributed to stakers

@sampocs sampocs changed the title removed stToken registration to avoid setting consumer params Removed stToken denoms from consumer params Aug 10, 2023
@sampocs sampocs changed the title Removed stToken denoms from consumer params Removed consumer keeper param store updates Aug 10, 2023
@sampocs sampocs changed the title Removed consumer keeper param store updates Removed consumer param store updates Aug 10, 2023
Copy link
Contributor

@shellvish shellvish left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for doing this!

@sampocs sampocs merged commit 4b1c633 into main Aug 10, 2023
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.

2 participants