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

feat: Updated cosmos-sdk to v0.50 #58

Merged
merged 9 commits into from
Nov 24, 2023
Merged

feat: Updated cosmos-sdk to v0.50 #58

merged 9 commits into from
Nov 24, 2023

Conversation

bizk
Copy link
Contributor

@bizk bizk commented Nov 21, 2023

Summary by CodeRabbit

  • Refactor

    • Temporarily disabled certain tests in preparation for system upgrades.
    • Adjusted network configuration for the Rosetta service.
  • Chores

    • Updated service port configuration in workflow files.
  • Documentation

    • Updated CHANGELOG to reflect the removal of tip handling and migration of the Rosetta service.
  • Bug Fixes

    • Removed obsolete tip parsing functionality to align with the latest system capabilities.

Copy link

coderabbitai bot commented Nov 21, 2023

## Walkthrough
The changes reflect a significant update to a Go project, primarily involving the removal of transaction tip handling functionality and associated tests. Additionally, there's an update to the network configuration for the Rosetta service, and the project's changelog indicates an upgrade to the cosmos-sdk version and the migration of the Rosetta implementation to a standalone repository.

## Changes

| File Path | Change Summary |
|-----------|----------------|
| `converter_test.go` | Commented out test functions related to Rosetta operations and signers. |
| `utils.go` | Added "authsigning" import, removed transaction tip parsing code, and disabled linting checks for specific blocks. |
| `.github/workflows/rosetta-cli-test.yaml` | Changed Rosetta service port from 8081 to 8080. |
| `CHANGELOG.md` | Documented cosmos-sdk version upgrade, removal of tip handling, and Rosetta migration to standalone repository. |

## Poem

> As autumn leaves fall, we prune the code tree, 🍂  
> Tips are gone, ports shift, in the Rosetta sea. 🌊  
> A rabbit hops along, through the GitHub mist,  
> Celebrating changes, with a twist of the wrist. 🐰✨

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 resolve resolve all the CodeRabbit review comments.
  • @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.v2.json

This comment has been minimized.

Copy link

@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: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between b673f72 and 6d98718.
Files ignored due to filter (2)
  • go.mod
  • go.sum
Files selected for processing (2)
  • converter_test.go (2 hunks)
  • utils.go (3 hunks)
Additional comments: 2
utils.go (2)
  • 3-9: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [3-17]

The import of the "authsigning" package at line 6 indicates new functionality related to authentication signing is being used in this file. Ensure that the new functionality is properly integrated and tested, and that any previous functionality it replaces is fully deprecated and removed if no longer needed.

  • 63-74: The code for parsing transaction tips has been commented out. If this functionality is no longer needed due to changes in the cosmos-sdk v0.50, ensure that any related code and tests are also updated or removed to reflect this change. If this functionality has been moved to a different part of the codebase, verify that it has been correctly implemented there and that any references to the old implementation have been updated.

converter_test.go Outdated Show resolved Hide resolved
converter_test.go Outdated Show resolved Hide resolved
Signed-off-by: bizk <santiago.yanzon1999@gmail.com>
@bizk bizk self-assigned this Nov 21, 2023
@bizk bizk enabled auto-merge (squash) November 21, 2023 18:42
Copy link

@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: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 6d98718 and 66c56df.
Files ignored due to filter (1)
  • tests/rosetta-cli/rosetta-cli.json
Files selected for processing (2)
  • converter_test.go (2 hunks)
  • utils.go (2 hunks)
Additional comments: 2
utils.go (2)
  • 6-18: The import of the authsigning package from the Cosmos SDK has been added, which is likely necessary for the new functionality introduced in the updated code. However, it's important to ensure that the new import does not introduce any conflicts with existing imports and that it is used within the file. Unused imports should be removed to keep the code clean and maintainable.

  • 63-80: The function parseTxTip has been modified to comment out the logic that parses the tip amount and tipper from the transaction. This could be due to a change in how tips are handled in the updated version of the Cosmos SDK. It's important to ensure that this change is intentional and that any functionality depending on the parsing of tips is also updated accordingly. Additionally, the nolint directives should be revisited once the final implementation is complete to ensure that they are still necessary and that the code adheres to linting standards.

converter_test.go Show resolved Hide resolved
converter_test.go Show resolved Hide resolved
Copy link

@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 66c56df and 612baaf.
Files selected for processing (1)
  • .github/workflows/rosetta-cli-test.yaml (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/rosetta-cli-test.yaml

converter_test.go Show resolved Hide resolved
s.Require().Equal(len(ops), len(sdkTx.GetMsgs())*len(signerAddrs), "operation number mismatch")

s.Require().Equal(len(signers), len(signerAddrs), "signers number mismatch")
// s.Require().Equal(len(ops), len(sdkTx.GetMsgs())*len(signerAddrs), "operation number mismatch")
Copy link
Member

Choose a reason for hiding this comment

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

Ditto

Copy link

@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 612baaf and 992af6c.
Files ignored due to filter (1)
  • tests/rosetta-cli/rosetta-cli.json
Files selected for processing (1)
  • .github/workflows/rosetta-cli-test.yaml (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/rosetta-cli-test.yaml

@bizk bizk requested a review from julienrbrt November 21, 2023 22:12
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.

Can we get a chanegelog?

utils.go Outdated Show resolved Hide resolved
Copy link

@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 992af6c and b0ba826.
Files ignored due to filter (1)
  • tests/rosetta-cli/rosetta-cli.json
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link

@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 b0ba826 and 68661b3.
Files selected for processing (1)
  • utils.go (4 hunks)
Additional comments: 3
utils.go (3)
  • 6-18:
    Verify that the newly added import "github.com/cosmos/cosmos-sdk/x/auth/signing" is being used in the file and there are no unused imports.

  • 60-61:
    Ensure that the conversion of signerData.AccountNumber to a string is intentional and compatible with the rest of the system that consumes this data.

  • 100-105: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [100-116]

Confirm that the removal of the Tip field from the txv1beta1.AuthInfo struct aligns with the changes in the cosmos-sdk version 0.50 and that no other parts of the codebase rely on this field.

@bizk bizk requested a review from julienrbrt November 23, 2023 21:44
Copy link

@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 68661b3 and 211f64b.
Files ignored due to filter (1)
  • tests/rosetta-cli/rosetta-cli.json
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
Additional comments: 3
CHANGELOG.md (3)
  • 41-41:
    The changelog entry is clear and follows the established format.

  • 45-45:
    The changelog entry is clear and follows the established format.

  • 49-49:
    The changelog entry is clear and follows the established format.

@bizk bizk merged commit 004c5ce into main Nov 24, 2023
12 checks passed
@bizk bizk deleted the upgrade/cosmos-sdk branch November 24, 2023 18:41
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.

None yet

3 participants