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

chore: cosmos-sdk bump to v0.50 #573

Merged
merged 66 commits into from
Jun 21, 2024
Merged

chore: cosmos-sdk bump to v0.50 #573

merged 66 commits into from
Jun 21, 2024

Conversation

spoo-bar
Copy link
Contributor

@spoo-bar spoo-bar commented May 22, 2024

This PR upgrades the following on Archway

  1. archway-wasmd v0.45.0-archway => v0.50.0-archway
  2. ibc-go v7.4.0 => v8.2.1
  3. cosmos-sdk v0.47.11 => v0.50.6

Additionally, at the protocol level it does the following

  1. Migrating sdk and wasmd module from using storekey to using storeservice
  2. Integrate the new logger
  3. Lots of places where err is returned from the sdk, handling those errors
  4. Implement interface registry
  5. Add autocli configuration
  6. Use default baseapp options instead of building it by hand
  7. Adding cwfees interchaintest
  8. Added mock keepers for all our custom modules
  9. Update all proto Msg to include option (cosmos.msg.v1.service) = true;
  10. Updating Swagger UI
  11. Commenting out e2e tests to migrate to interchaintest
  12. Removing chain v4.0.2 interchaintests as its not needed anymore
  13. Commenting out wasmbinding tests to migrate to interchaintest
  14. Upgrading some existing tests to use mocks
  15. Upgrading some existing test to use the e2e framework accurately (with keeper manipulation)
  16. Updating the modules to implement module.HasABCIEndBlock and module.HasGenesis
  17. Removing panics from endblockers as the sdk deals with this now
  18. Adding a wrapper gov keeper which will perform the GetVote from collections
  19. Removing the x/rewards module migration as the paramstoare is not used anymore

Misc changes

  1. Use heighliner v1.5.5 as the latest is not currently stable.

@spoo-bar spoo-bar marked this pull request as ready for review June 13, 2024 13:16
@spoo-bar spoo-bar requested review from a team as code owners June 13, 2024 13:16
@spoo-bar spoo-bar requested review from philabsbot, fdymylja, aelesbao and zanicar and removed request for a team June 13, 2024 13:16
valSet: validatorSet,
valSigners: valSigners,
accPrivKeys: genAccPrivKeys,
}
chain.BeginBlock()
Copy link
Contributor

Choose a reason for hiding this comment

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

What is happening between lines 263-281;
Copypasta?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will need to be handled when the tests are further fixed. Didnt want to lose the original code by removing it.

Copy link
Contributor

@zanicar zanicar left a comment

Choose a reason for hiding this comment

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

LGTM.

Just one comment on a file with a number of lines commented out and inserted exactly as in the commented section. Then followed by a slight variation. Reads unclear.

@spoo-bar spoo-bar merged commit bb559de into main Jun 21, 2024
9 checks passed
@spoo-bar spoo-bar deleted the spoorthi/sdk-bump-to-v50 branch June 21, 2024 10:56
Comment on lines +1 to +28
package gov

import (
"cosmossdk.io/collections"
sdk "github.com/cosmos/cosmos-sdk/types"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
)

type Keeper struct {
govKeeper govkeeper.Keeper
}

// NewKeeper creates a new Keeper instance.
func NewKeeper(govkeeper govkeeper.Keeper) Keeper {
return Keeper{
govKeeper: govkeeper,
}
}

// GetVote returns the vote of a voter on a proposal.
func (k Keeper) GetVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress) (govtypes.Vote, bool) {
vote, err := k.govKeeper.Votes.Get(ctx, collections.Join(proposalID, voterAddr))
if err != nil {
return govtypes.Vote{}, false
}
return vote, true
}
Copy link
Member

Choose a reason for hiding this comment

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

I imagine this had to be kept just because of our custom WASM Binding?

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.

4 participants