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: migrate calls from alias file to appropriate store/types #14455

Merged
merged 24 commits into from
Jan 10, 2023
Merged

refactor: migrate calls from alias file to appropriate store/types #14455

merged 24 commits into from
Jan 10, 2023

Conversation

noelukwa
Copy link
Contributor

Description

Closes: #14406


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@noelukwa
Copy link
Contributor Author

@tac0turtle please take a look, thanks.

baseapp/options.go Outdated Show resolved Hide resolved
baseapp/recovery.go Outdated Show resolved Hide resolved
@noelukwa noelukwa requested review from samricotta and removed request for samricotta January 3, 2023 06:25
store/types/store.go Show resolved Hide resolved
@@ -57,19 +56,19 @@ func (s *storeTestSuite) TestCommitID() {
}

func (s *storeTestSuite) TestNewTransientStoreKeys() {
Copy link
Member

@julienrbrt julienrbrt Jan 3, 2023

Choose a reason for hiding this comment

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

+1, could you check? Otherwise we should move those tests in the store package.

@@ -10,28 +10,27 @@ import (
pruningtypes "github.com/cosmos/cosmos-sdk/store/pruning/types"
snapshottypes "github.com/cosmos/cosmos-sdk/store/snapshots/types"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
Copy link
Member

@julienrbrt julienrbrt Jan 3, 2023

Choose a reason for hiding this comment

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

Maybe we could delete that package and replace it by gomocks (does not have to be here)?

simapp/app.go Outdated Show resolved Hide resolved
Copy link
Contributor

@likhita-809 likhita-809 left a comment

Choose a reason for hiding this comment

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

minor suggestions

baseapp/options.go Outdated Show resolved Hide resolved
simapp/export.go Outdated Show resolved Hide resolved
simapp/export.go Outdated Show resolved Hide resolved
store/types/store.go Outdated Show resolved Hide resolved
testutil/sims/simulation_helpers.go Outdated Show resolved Hide resolved
x/bank/migrations/v3/store_test.go Show resolved Hide resolved
x/bank/migrations/v3/store_test.go Show resolved Hide resolved
x/group/keeper/grpc_query_test.go Outdated Show resolved Hide resolved
x/staking/keeper/keeper.go Show resolved Hide resolved
x/staking/keeper/keeper_test.go Show resolved Hide resolved
@tac0turtle
Copy link
Member

@julienrbrt @likhita-809 are you fine with merging this and then I follow up in a separate pr with your suggestions?

@julienrbrt
Copy link
Member

@julienrbrt @likhita-809 are you fine with merging this and then I follow up in a separate pr with your suggestions?

That works for me! Thanks!

@tac0turtle
Copy link
Member

actually fixed in this pr.

@@ -189,6 +189,7 @@ replace (
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
// Simapp always use the latest version of the cosmos-sdk
github.com/cosmos/cosmos-sdk => ../.
github.com/cosmos/cosmos-sdk/x/nft => .././x/nft
Copy link
Member

Choose a reason for hiding this comment

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

will remove after this pr is merged

@@ -187,4 +187,5 @@ replace (
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.8.1
github.com/cosmos/cosmos-sdk/x/nft => .././x/nft // todo remove after pr merged
Copy link
Member

Choose a reason for hiding this comment

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

will remove after this pr is merged

@julienrbrt
Copy link
Member

julienrbrt commented Jan 10, 2023

lgtm!

Could your follow-up @tac0turtle fix the golangci-lint issues too?

@tac0turtle tac0turtle enabled auto-merge (squash) January 10, 2023 15:11
@tac0turtle tac0turtle merged commit c822836 into cosmos:main Jan 10, 2023
0xmuralik pushed a commit to 0xmuralik/cosmos-sdk that referenced this pull request Jan 12, 2023
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 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.

migrate usage of types/store.go to store/types/..
6 participants