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(evm): remove ExtensionOptionsWeb3Tx and ExtensionOptionDynamicFeeTx #1983

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

k-yang
Copy link
Member

@k-yang k-yang commented Aug 1, 2024

Purpose / Abstract

Removes ExtensionOptionsWeb3Tx and ExtensionOptionDynamicFeeTx. These are legacy tx extension options from Ethermint that are not valid for Nibiru Chain.

Summary by CodeRabbit

  • Chores

    • Improved formatting and clarity of the CHANGELOG.md file, including the addition of a new entry for recent changes.
    • Removed unused constants and imports in the codebase to enhance maintainability.
  • Tests

    • Simplified the test suite by removing a specific test case related to a previously used protocol, streamlining the testing process.

Copy link
Contributor

coderabbitai bot commented Aug 1, 2024

Walkthrough

The recent changes involve updates to the CHANGELOG.md, including formatting enhancements and the addition of a new entry. Additionally, the eth/codec.go file underwent a cleanup by removing unused constants and imports, while the eth/codec_test.go file simplified the test suite by eliminating an obsolete test case. These updates improve maintainability and clarity, ensuring the codebase remains organized without altering any functionality.

Changes

File Change Summary
CHANGELOG.md Corrected formatting for PR #1979 and added entry for PR #1983 regarding cleanup tasks.
eth/codec.go Removed unused sdktx import and TYPE_URL_WEB3_TX constant to reduce clutter.
eth/codec_test.go Removed an obsolete test case from TestRegisterInterfaces to simplify the test suite.

Poem

In the code where rabbits roam,
Changes made to call it home.
Clarity shines, like the moon's soft light,
Unused bits gone, all feels just right.
Hopping through lines with a cheerful cheer,
Clean and clear, we bring good cheer! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

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 an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@k-yang k-yang marked this pull request as ready for review August 1, 2024 20:47
@k-yang k-yang requested a review from a team as a code owner August 1, 2024 20:47
@k-yang k-yang enabled auto-merge (squash) August 1, 2024 20:47
@k-yang k-yang disabled auto-merge August 1, 2024 20:47
@k-yang k-yang self-assigned this Aug 1, 2024
@k-yang k-yang added the x: evm Relates to Nibiru EVM or the EVM Module label Aug 1, 2024
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.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
eth/codec_test.go (1)

Inconsistency Found: The reference to TxExtensionOptionI in x/evm/codec.go contradicts the removal of the test case related to cosmos.tx.v1beta1.TxExtensionOptionI. To maintain consistency, this reference should also be removed.

  • File: x/evm/codec.go
  • Line: Reference to (*tx.TxExtensionOptionI)(nil)

Please remove this reference to ensure the complete deprecation of TxExtensionOptionI.

Analysis chain

Line range hint 36-63:
Verify removal of the test case.

The removal of the test case related to cosmos.tx.v1beta1.TxExtensionOptionI seems to align with the PR objective of removing legacy transaction extension options. Ensure that this change does not affect other parts of the test suite or the functionality of the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removal of the test case does not affect other parts of the test suite or the functionality of the codebase.

# Test: Search for any remaining references to `cosmos.tx.v1beta1.TxExtensionOptionI`. Expect: No occurrences.
rg --type go 'cosmos.tx.v1beta1.TxExtensionOptionI'

Length of output: 51


Script:

#!/bin/bash
# Description: Verify that the removal of the test case does not affect other parts of the test suite or the functionality of the codebase.

# Search for any remaining references to `TxExtensionOptionI` to ensure no related dependencies are missed.
rg --type go 'TxExtensionOptionI'

# Search for any remaining references to `cosmos.tx.v1beta1` to ensure no related dependencies are missed.
rg --type go 'cosmos.tx.v1beta1'

Length of output: 114


Script:

#!/bin/bash
# Description: Review the context around the reference to `TxExtensionOptionI` in `x/evm/codec.go`.

# Display the lines around the reference to `TxExtensionOptionI` in `x/evm/codec.go`.
rg --type go 'TxExtensionOptionI' -A 5 -B 5

Length of output: 525

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3c73f03 and 021a814.

Files ignored due to path filters (2)
  • eth/dynamic_fee.pb.go is excluded by !**/*.pb.go
  • eth/web3.pb.go is excluded by !**/*.pb.go
Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • eth/codec.go (3 hunks)
  • eth/codec_test.go (1 hunks)
Files skipped from review due to trivial changes (2)
  • CHANGELOG.md
  • eth/codec.go

@Unique-Divine Unique-Divine enabled auto-merge (squash) August 6, 2024 10:18
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.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 021a814 and 0f295a3.

Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • CHANGELOG.md

@Unique-Divine Unique-Divine merged commit d2601f1 into main Aug 6, 2024
14 of 15 checks passed
@Unique-Divine Unique-Divine deleted the refactor/evm/remove-extensions branch August 6, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x: evm Relates to Nibiru EVM or the EVM Module
Projects
Status: ✅ Completed
Development

Successfully merging this pull request may close these issues.

3 participants