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(distribution): spin out go.mod #18199

Merged
merged 18 commits into from
Oct 24, 2023
Merged

refactor(distribution): spin out go.mod #18199

merged 18 commits into from
Oct 24, 2023

Conversation

tac0turtle
Copy link
Member

@tac0turtle tac0turtle commented Oct 21, 2023

Description

this pr spins out the distribution module from the cosmos sdk dependency tree

ref #11899


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
  • run make lint and make test
  • 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)

Summary by CodeRabbit

  • New Feature: Added a new job to the GitHub workflow to enhance the automation process.
  • Refactor: Modules have been moved to their own go.mod files, improving the organization and management of dependencies.
  • New Feature: Introduced a new package/module in the codebase, expanding the functionality of the software.
  • Refactor: Import paths in protocol buffer files have been modified, improving the structure and readability of the code.
  • Refactor: Import paths in various files have been updated, enhancing the code's maintainability.
  • Refactor: Function signatures have been updated, improving the clarity and readability of the code.
  • Chore: Updated the Dockerfile, enhancing the build process and deployment of the application.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 21, 2023

Warning

Rate Limit Exceeded

@tac0turtle has exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 0 minutes and 57 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, convert this PR to a draft and then mark it as ready for review again to re-trigger the review. Alternatively, you can push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per repository.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between cf49501 and 6cbfe3b.

Walkthrough

This pull request primarily involves the migration of modules to their own go.mod files and the update of import paths across various files. It also includes the addition of a new job in the GitHub workflow, a new package in the codebase, and modifications in protocol buffer files. Changes in function signatures and updates to the Dockerfile are also part of this PR.

Changes

Changeset Files Summary
1 .github/workflows/test.yml Addition of a new job in the GitHub workflow
2 CHANGELOG.md, UPGRADING.md Movement of modules to their own go.mod files and updates in function parameters
3 go.work.example Addition of a new package/module in the codebase
4 proto/cosmos/distribution/... Modification of import paths in protocol buffer files
5 simapp/..., tests/..., x/distribution/... Update of import paths in various files
6 store/storage/rocksdb/comparator.go Update of function signatures
7 contrib/images/simd-env/Dockerfile Changes related to the Dockerfile

🐇

"In the land of code, where logic intertwines,

Changes emerge, as bright as sunshine.

Paths are updated, modules find a new home,

In the vast codebase, where developers roam.

Celebrate the changes, for they bring delight,

To the world of software, shining bright." 🌟


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.json

@tac0turtle tac0turtle marked this pull request as ready for review October 23, 2023 14:45
@tac0turtle tac0turtle requested a review from a team as a code owner October 23, 2023 14:45
@github-actions github-actions bot removed the C:x/gov label Oct 23, 2023
@github-prbot github-prbot requested a review from a team October 23, 2023 14:46
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 1
Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 388ff4f and 3407b8a.
Files ignored due to filter (18)
  • client/v2/go.mod
  • github.com/cosmos/cosmos-sdk/types/tx/amino/amino.pb.go
  • github.com/cosmos/cosmos-sdk/x/auth/types/auth.pb.go
  • go.mod
  • simapp/go.mod
  • tests/go.mod
  • tests/starship/tests/go.mod
  • x/circuit/go.mod
  • x/distribution/go.mod
  • x/distribution/types/distribution.pb.go
  • x/distribution/types/genesis.pb.go
  • x/distribution/types/query.pb.go
  • x/distribution/types/tx.pb.go
  • x/evidence/go.mod
  • x/feegrant/go.mod
  • x/group/go.mod
  • x/nft/go.mod
  • x/upgrade/go.mod
Files selected for processing (57)
  • .github/workflows/test.yml (1 hunks)
  • CHANGELOG.md (1 hunks)
  • UPGRADING.md (1 hunks)
  • go.work.example (1 hunks)
  • proto/cosmos/distribution/module/v1/module.proto (1 hunks)
  • proto/cosmos/distribution/v1beta1/distribution.proto (2 hunks)
  • proto/cosmos/distribution/v1beta1/genesis.proto (1 hunks)
  • proto/cosmos/distribution/v1beta1/query.proto (1 hunks)
  • proto/cosmos/distribution/v1beta1/tx.proto (1 hunks)
  • simapp/app.go (2 hunks)
  • simapp/app_config.go (2 hunks)
  • simapp/app_test.go (2 hunks)
  • simapp/app_v2.go (2 hunks)
  • simapp/simd/cmd/testnet_test.go (2 hunks)
  • store/storage/rocksdb/comparator.go (2 hunks)
  • tests/e2e/client/grpc/cmtservice/service_test.go (2 hunks)
  • tests/e2e/distribution/grpc_query_suite.go (1 hunks)
  • tests/e2e/distribution/withdraw_all_suite.go (2 hunks)
  • tests/integration/bank/app_test.go (2 hunks)
  • tests/integration/distribution/keeper/grpc_query_test.go (1 hunks)
  • tests/integration/distribution/keeper/msg_server_test.go (2 hunks)
  • tests/integration/distribution/module_test.go (1 hunks)
  • tests/integration/rapidgen/rapidgen.go (2 hunks)
  • tests/integration/staking/keeper/deterministic_test.go (2 hunks)
  • tests/integration/staking/simulation/operations_test.go (2 hunks)
  • tests/integration/tx/aminojson/aminojson_test.go (2 hunks)
  • tests/integration/tx/decode_test.go (2 hunks)
  • testutil/testnet/genesis.go (2 hunks)
  • types/mempool/mempool_test.go (2 hunks)
  • x/distribution/abci.go (1 hunks)
  • x/distribution/client/cli/tx.go (1 hunks)
  • x/distribution/client/cli/tx_test.go (2 hunks)
  • x/distribution/client/common/common.go (1 hunks)
  • x/distribution/keeper/alias_functions.go (1 hunks)
  • x/distribution/keeper/allocation.go (1 hunks)
  • x/distribution/keeper/allocation_test.go (1 hunks)
  • x/distribution/keeper/common_test.go (1 hunks)
  • x/distribution/keeper/delegation.go (1 hunks)
  • x/distribution/keeper/delegation_test.go (1 hunks)
  • x/distribution/keeper/genesis.go (1 hunks)
  • x/distribution/keeper/grpc_query.go (1 hunks)
  • x/distribution/keeper/grpc_query_test.go (1 hunks)
  • x/distribution/keeper/hooks.go (1 hunks)
  • x/distribution/keeper/invariants.go (1 hunks)
  • x/distribution/keeper/keeper.go (1 hunks)
  • x/distribution/keeper/keeper_test.go (1 hunks)
  • x/distribution/keeper/migrations.go (1 hunks)
  • x/distribution/keeper/msg_server.go (1 hunks)
  • x/distribution/keeper/msg_server_test.go (1 hunks)
  • x/distribution/keeper/store.go (1 hunks)
  • x/distribution/keeper/validator.go (1 hunks)
  • x/distribution/migrations/funds/migrate.go (1 hunks)
  • x/distribution/migrations/funds/migrate_test.go (2 hunks)
  • x/distribution/migrations/v4/migrate_test.go (1 hunks)
  • x/distribution/module.go (1 hunks)
  • x/distribution/simulation/decoder.go (1 hunks)
  • x/distribution/simulation/decoder_test.go (1 hunks)
Files not processed due to max files limit (15)
  • x/distribution/simulation/genesis.go
  • x/distribution/simulation/genesis_test.go
  • x/distribution/simulation/operations.go
  • x/distribution/simulation/operations_test.go
  • x/distribution/simulation/proposals.go
  • x/distribution/simulation/proposals_test.go
  • x/distribution/sonar-project.propoerties
  • x/distribution/testutil/app_config.go
  • x/distribution/testutil/staking_helper.go
  • x/distribution/types/fee_pool_test.go
  • x/distribution/types/params_test.go
  • x/protocolpool/testutil/app_config.go
  • x/slashing/simulation/operations_test.go
  • x/slashing/testutil/app_config.go
  • x/staking/testutil/app_config.go
Files skipped from review due to trivial changes (41)
  • UPGRADING.md
  • proto/cosmos/distribution/module/v1/module.proto
  • proto/cosmos/distribution/v1beta1/distribution.proto
  • proto/cosmos/distribution/v1beta1/query.proto
  • simapp/app_config.go
  • simapp/app_test.go
  • simapp/simd/cmd/testnet_test.go
  • store/storage/rocksdb/comparator.go
  • tests/e2e/client/grpc/cmtservice/service_test.go
  • tests/e2e/distribution/withdraw_all_suite.go
  • tests/integration/distribution/keeper/msg_server_test.go
  • tests/integration/distribution/module_test.go
  • tests/integration/rapidgen/rapidgen.go
  • tests/integration/staking/keeper/deterministic_test.go
  • tests/integration/tx/aminojson/aminojson_test.go
  • testutil/testnet/genesis.go
  • types/mempool/mempool_test.go
  • x/distribution/abci.go
  • x/distribution/client/cli/tx.go
  • x/distribution/client/cli/tx_test.go
  • x/distribution/keeper/alias_functions.go
  • x/distribution/keeper/allocation_test.go
  • x/distribution/keeper/common_test.go
  • x/distribution/keeper/delegation_test.go
  • x/distribution/keeper/genesis.go
  • x/distribution/keeper/grpc_query.go
  • x/distribution/keeper/grpc_query_test.go
  • x/distribution/keeper/hooks.go
  • x/distribution/keeper/invariants.go
  • x/distribution/keeper/keeper.go
  • x/distribution/keeper/keeper_test.go
  • x/distribution/keeper/migrations.go
  • x/distribution/keeper/msg_server_test.go
  • x/distribution/keeper/store.go
  • x/distribution/keeper/validator.go
  • x/distribution/migrations/funds/migrate.go
  • x/distribution/migrations/funds/migrate_test.go
  • x/distribution/migrations/v4/migrate_test.go
  • x/distribution/module.go
  • x/distribution/simulation/decoder.go
  • x/distribution/simulation/decoder_test.go
Additional comments (Suppressed): 21
CHANGELOG.md (1)
  • 178-178: The change log correctly reflects the changes made in the distribution module. It's important to keep the change log updated for the users to understand the changes made in each version.
go.work.example (1)
  • 25-25: The new hunk adds the ./x/distribution path to the go.work.example file. This change aligns with the PR summary, which mentions that the distribution module has been separated into its own go.mod file. Ensure that the path ./x/distribution is correct and that the distribution module is properly isolated with its own go.mod file.
x/distribution/client/common/common.go (1)
  • 6-6: The import path for the distribution types has been updated from "github.com/cosmos/cosmos-sdk/x/distribution/types" to "cosmossdk.io/x/distribution/types". Ensure that the new path is correct and the package at this location contains the expected types and functions. This change should not affect the functionality of the code as long as the new package provides the same API as the old one.
tests/e2e/distribution/grpc_query_suite.go (1)
  • 10-10: The import path for the distribution types has been updated to reflect the new location of the distribution module. Ensure that the new path "cosmossdk.io/x/distribution/types" is correct and the package is accessible at this location.
x/distribution/keeper/allocation.go (1)
  • 11-11: The import path for the distribution types has been updated to reflect the new location of the distribution module. Ensure that the new path cosmossdk.io/x/distribution/types is correct and the package is accessible at this location.
proto/cosmos/distribution/v1beta1/genesis.proto (1)
  • 4-4: The go_package option has been updated to reflect the new import path for the distribution module. Ensure that all references to this package in the codebase have been updated to use the new import path. This change should not affect the functionality of the code, but it is important to verify that all dependencies are correctly resolved.
- option go_package            = "github.com/cosmos/cosmos-sdk/x/distribution/types";
+ option go_package            = "cosmossdk.io/x/distribution/types";
tests/integration/tx/decode_test.go (2)
  • 14-14: The import path for the distribution module has been updated from "github.com/cosmos/cosmos-sdk/x/distribution" to "cosmossdk.io/x/distribution". Ensure that the new path is correct and the module at the new path has the same interface as the old one. This change should not affect the functionality of the code if the new module is identical to the old one.

  • 34-39: The import path for the distribution module has been removed from this section. This change is consistent with the update in the new hunk at line 14 where the distribution module is now imported from "cosmossdk.io/x/distribution". Ensure that all references to the distribution module in the code have been updated to use the new import path.

x/distribution/keeper/msg_server.go (1)
  • 9-11: The import path for the types package has been updated from "github.com/cosmos/cosmos-sdk/x/distribution/types" to "cosmossdk.io/x/distribution/types". This change aligns with the PR's goal of spinning out the distribution module from the dependency tree. Ensure that all references to the types package in the code have been updated to use the new import path.
.github/workflows/test.yml (1)
  • 796-826: The new job test-x-distribution is added to the GitHub Actions workflow. This job is designed to run tests and perform code coverage analysis for the distribution package. It uses the actions/checkout@v4 and actions/setup-go@v4 actions to set up the environment, and the technote-space/get-diff-action@v6.1.2 action to get the diff of the changes. The job then runs tests on the distribution package and performs SonarCloud analysis if the pull request is not a draft and the SONAR_TOKEN is not null. The job is well-structured and follows the pattern of the other jobs in the workflow. However, please ensure that the SONAR_TOKEN secret is set in the repository settings.
simapp/app.go (2)
  • 45-47: The import paths for the distribution module have been updated to reflect the new location of the module. Ensure that the new paths are correct and that the module is accessible at the new location. Also, verify that all references to the distribution module in the code have been updated to use the new import paths.

  • 94-96: The import paths for the distribution module have been removed from this section of the imports. This change is consistent with the refactoring of the distribution module to its own go.mod file. Ensure that this does not affect any functionality in the code that depends on the distribution module.

x/distribution/keeper/delegation.go (1)
  • 11-11: The import path for the distribution types has been updated to reflect the new location of the distribution module. Ensure that the new path cosmossdk.io/x/distribution/types is correct and the package is accessible at this location.
tests/integration/bank/app_test.go (2)
  • 14-15: The import paths for the distribution module have been updated to reflect the new location of the module. Ensure that the new paths are correct and that the distribution module is correctly imported in the test suite.
- _ "github.com/cosmos/cosmos-sdk/x/distribution"
- distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
+ _ "cosmossdk.io/x/distribution"
+ distrkeeper "cosmossdk.io/x/distribution/keeper"
  • 32-36: The import statement for the distribution module has been removed from this section. This change is consistent with the refactoring of the distribution module. Ensure that the removal of this import statement does not affect the functionality of the test suite.
- _ "github.com/cosmos/cosmos-sdk/x/distribution"
- distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
proto/cosmos/distribution/v1beta1/tx.proto (1)
  • 4-4: The go_package option has been updated to reflect the new import path for the distribution module. Ensure that the new path cosmossdk.io/x/distribution/types is correctly set up and accessible. This change should not affect the functionality of the code but it's important to verify that all dependencies are correctly resolved with the new path.
simapp/app_v2.go (2)
  • 16-16: The import path for the distribution keeper has been updated to reflect the new location of the distribution module. Ensure that the new path cosmossdk.io/x/distribution/keeper is correct and the module is accessible at this location.

  • 42-47: The import path for the distribution keeper has been removed from this section. This change is consistent with the refactoring of the distribution module into its own go.mod file.

tests/integration/staking/simulation/operations_test.go (2)
  • 20-21: The import paths for the distribution module and related packages have been updated to reflect the new location of the module. Ensure that the new paths are correct and that the module and packages are accessible at these locations.

  • 33-38: The import paths for the distribution module and related packages have been removed from this section. This change is consistent with the goal of the PR to separate the distribution module from the dependency tree. Ensure that this does not affect the functionality of the code.

tests/integration/distribution/keeper/grpc_query_test.go (1)
  • 11-11: The import path for the distribution types has been updated to reflect the new location of the distribution module. Ensure that the new path is correct and accessible. Also, verify that all references to the distribution types in the code have been updated to use the new import path.

@@ -4,14 +4,14 @@ import (
"context"
"fmt"

"github.com/hashicorp/go-metrics"
metrics "github.com/hashicorp/go-metrics"
Copy link
Contributor

Choose a reason for hiding this comment

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

The import path for the go-metrics package has been changed from "github.com/hashicorp/go-metrics" to "metrics "github.com/hashicorp/go-metrics". This change introduces an alias for the package, which is not used elsewhere in the code. If the alias is not needed, consider reverting this change to maintain consistency with the rest of the codebase.

- metrics "github.com/hashicorp/go-metrics"
+ "github.com/hashicorp/go-metrics"

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0
Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 3407b8a and d4f034e.
Files ignored due to filter (13)
  • go.mod
  • simapp/go.mod
  • tests/go.mod
  • tests/starship/tests/go.mod
  • x/distribution/go.mod
  • x/distribution/go.sum
  • x/evidence/go.mod
  • x/feegrant/go.mod
  • x/gov/go.mod
  • x/group/go.mod
  • x/params/go.mod
  • x/protocolpool/go.mod
  • x/upgrade/go.mod
Files selected for processing (1)
  • contrib/images/simd-env/Dockerfile (1 hunks)
Additional comments (Suppressed): 1
contrib/images/simd-env/Dockerfile (1)
  • 18-18: The new hunk adds the go.mod and go.sum files of the x/distribution module to the Docker build context. This is in line with the PR's goal of spinning out the distribution module into its own go.mod file. Ensure that the x/distribution/go.mod and x/distribution/go.sum files exist and are correctly populated.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d4f034e and 13b3865.
Files selected for processing (39)
  • x/distribution/abci.go (1 hunks)
  • x/distribution/client/cli/tx.go (1 hunks)
  • x/distribution/client/cli/tx_test.go (2 hunks)
  • x/distribution/client/common/common.go (1 hunks)
  • x/distribution/keeper/alias_functions.go (1 hunks)
  • x/distribution/keeper/allocation.go (1 hunks)
  • x/distribution/keeper/allocation_test.go (1 hunks)
  • x/distribution/keeper/common_test.go (1 hunks)
  • x/distribution/keeper/delegation.go (1 hunks)
  • x/distribution/keeper/delegation_test.go (1 hunks)
  • x/distribution/keeper/genesis.go (1 hunks)
  • x/distribution/keeper/grpc_query.go (1 hunks)
  • x/distribution/keeper/grpc_query_test.go (1 hunks)
  • x/distribution/keeper/hooks.go (1 hunks)
  • x/distribution/keeper/invariants.go (1 hunks)
  • x/distribution/keeper/keeper.go (1 hunks)
  • x/distribution/keeper/keeper_test.go (2 hunks)
  • x/distribution/keeper/migrations.go (1 hunks)
  • x/distribution/keeper/msg_server.go (1 hunks)
  • x/distribution/keeper/msg_server_test.go (1 hunks)
  • x/distribution/keeper/store.go (1 hunks)
  • x/distribution/keeper/validator.go (1 hunks)
  • x/distribution/migrations/funds/migrate.go (1 hunks)
  • x/distribution/migrations/funds/migrate_test.go (2 hunks)
  • x/distribution/migrations/v4/migrate_test.go (1 hunks)
  • x/distribution/module.go (2 hunks)
  • x/distribution/simulation/decoder.go (1 hunks)
  • x/distribution/simulation/decoder_test.go (1 hunks)
  • x/distribution/simulation/genesis.go (1 hunks)
  • x/distribution/simulation/genesis_test.go (1 hunks)
  • x/distribution/simulation/operations.go (1 hunks)
  • x/distribution/simulation/operations_test.go (2 hunks)
  • x/distribution/simulation/proposals.go (1 hunks)
  • x/distribution/simulation/proposals_test.go (1 hunks)
  • x/distribution/testutil/app_config.go (1 hunks)
  • x/distribution/testutil/staking_helper.go (1 hunks)
  • x/distribution/types/fee_pool_test.go (1 hunks)
  • x/distribution/types/params_test.go (1 hunks)
  • x/protocolpool/testutil/app_config.go (2 hunks)
Files skipped from review due to trivial changes (30)
  • x/distribution/abci.go
  • x/distribution/client/cli/tx.go
  • x/distribution/client/cli/tx_test.go
  • x/distribution/client/common/common.go
  • x/distribution/keeper/allocation.go
  • x/distribution/keeper/allocation_test.go
  • x/distribution/keeper/common_test.go
  • x/distribution/keeper/delegation.go
  • x/distribution/keeper/delegation_test.go
  • x/distribution/keeper/genesis.go
  • x/distribution/keeper/grpc_query_test.go
  • x/distribution/keeper/hooks.go
  • x/distribution/keeper/keeper.go
  • x/distribution/keeper/keeper_test.go
  • x/distribution/keeper/migrations.go
  • x/distribution/keeper/msg_server.go
  • x/distribution/keeper/msg_server_test.go
  • x/distribution/keeper/store.go
  • x/distribution/keeper/validator.go
  • x/distribution/migrations/funds/migrate_test.go
  • x/distribution/module.go
  • x/distribution/simulation/decoder.go
  • x/distribution/simulation/decoder_test.go
  • x/distribution/simulation/genesis.go
  • x/distribution/simulation/genesis_test.go
  • x/distribution/simulation/operations.go
  • x/distribution/simulation/operations_test.go
  • x/distribution/simulation/proposals.go
  • x/distribution/simulation/proposals_test.go
  • x/distribution/testutil/app_config.go
Additional comments: 9
x/distribution/keeper/alias_functions.go (1)
  • 8-8: The import path for the types package has been updated to reflect the new module structure. Ensure that the new path is correct and the package is accessible at this location.
- "github.com/cosmos/cosmos-sdk/x/distribution/types"
+ "cosmossdk.io/x/distribution/types"
x/distribution/migrations/funds/migrate.go (1)
  • 6-6: The import path for the types package has been changed from "github.com/cosmos/cosmos-sdk/x/distribution/types" to "cosmossdk.io/x/distribution/types". Ensure that the new path is correct and accessible, and that all references to types from this package in the codebase have been updated to reflect this change.
x/distribution/types/fee_pool_test.go (1)
  • 9-9: The import path for the types package has been updated to reflect the new module structure. Ensure that the new path is correct and the module is properly initialized at this location.
- "github.com/cosmos/cosmos-sdk/x/distribution/types"
+ "cosmossdk.io/x/distribution/types"
x/distribution/testutil/staking_helper.go (1)
  • 7-7: The import path for the keeper package has been updated to reflect the new module structure. Ensure that the new path is correct and that the module at this path exports the expected functions and types.
x/distribution/types/params_test.go (1)
  • 9-9: The import path for the types package has been updated from "github.com/cosmos/cosmos-sdk/x/distribution/types" to "cosmossdk.io/x/distribution/types". Ensure that the new import path is correct and the package is accessible at this location. Also, verify that all references to this package in the codebase have been updated to reflect this change.
x/distribution/keeper/invariants.go (1)
  • 7-7: The import path for the distribution types has been updated from "github.com/cosmos/cosmos-sdk/x/distribution/types" to "cosmossdk.io/x/distribution/types". Ensure that the new path is correct and the package is accessible at this location. This change is likely due to the refactoring of the distribution module mentioned in the PR summary.
x/distribution/migrations/v4/migrate_test.go (1)
  • 11-12: The import paths for the distribution module and its v4 migrations package have been updated to reflect the new module structure. Ensure that the new paths are correct and that the module is properly isolated from the main dependency tree.
-	"github.com/cosmos/cosmos-sdk/x/distribution"
-	v4 "github.com/cosmos/cosmos-sdk/x/distribution/migrations/v4"
+	"cosmossdk.io/x/distribution"
+	v4 "cosmossdk.io/x/distribution/migrations/v4"
x/protocolpool/testutil/app_config.go (1)
  • 4-4: The import path for the distribution module has been changed from github.com/cosmos/cosmos-sdk/x/distribution to cosmossdk.io/x/distribution. Ensure that the new path is correct and accessible, and that all references to the distribution module in the codebase have been updated to use the new path.
x/distribution/keeper/grpc_query.go (1)
  • 11-11: The import path for the types package from the distribution module has been updated to reflect the new module structure. Ensure that the new path is correct and accessible.
- "github.com/cosmos/cosmos-sdk/x/distribution/types"
+ "cosmossdk.io/x/distribution/types"

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 13b3865 and 05f6820.
Files ignored due to filter (1)
  • client/v2/go.mod
Files selected for processing (2)
  • UPGRADING.md (1 hunks)
  • simapp/app.go (2 hunks)
Files skipped from review due to trivial changes (2)
  • UPGRADING.md
  • simapp/app.go

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm!

@@ -0,0 +1,14 @@
sonar.projectKey=cosmos-sdk-distribution
Copy link
Member

Choose a reason for hiding this comment

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

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.

lgtm

@tac0turtle tac0turtle enabled auto-merge October 24, 2023 14:09
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 05f6820 and 897ebef.
Files selected for processing (2)
  • simapp/app.go (2 hunks)
  • tests/e2e/client/grpc/cmtservice/service_test.go (1 hunks)
Files skipped from review due to trivial changes (2)
  • simapp/app.go
  • tests/e2e/client/grpc/cmtservice/service_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 897ebef and bd4f18f.
Files selected for processing (1)
  • store/storage/rocksdb/db_test.go (1 hunks)
Files skipped from review due to trivial changes (1)
  • store/storage/rocksdb/db_test.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between bd4f18f and d072f55.
Files selected for processing (1)
  • store/storage/rocksdb/iterator.go (1 hunks)
Files skipped from review due to trivial changes (1)
  • store/storage/rocksdb/iterator.go

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between d072f55 and cf49501.
Files selected for processing (1)
  • store/storage/rocksdb/db.go (1 hunks)
Files skipped from review due to trivial changes (1)
  • store/storage/rocksdb/db.go

@tac0turtle tac0turtle added this pull request to the merge queue Oct 24, 2023
Merged via the queue into main with commit 4352ab1 Oct 24, 2023
66 of 68 checks passed
@tac0turtle tac0turtle deleted the marko/spinout_dist branch October 24, 2023 15:16
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.

4 participants