Skip to content

Conversation

@randy-cro
Copy link
Contributor

@randy-cro randy-cro commented Aug 15, 2025

Description

Changes in ethermint: crypto-org-chain/ethermint#692

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • Documentation

    • Added an UNRELEASED changelog entry documenting an upcoming breaking change in state machine behavior.
  • Chores

    • Updated several third-party dependencies to newer versions for compatibility and maintenance.
    • Synchronized module metadata/hashes to reflect the updated dependency snapshots.

@randy-cro randy-cro requested a review from a team as a code owner August 15, 2025 09:16
@randy-cro randy-cro requested review from calvinaco and songgaoye and removed request for a team August 15, 2025 09:16
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 15, 2025

Walkthrough

Adds an UNRELEASED changelog entry documenting PR #1846 about enforcing app creator return type; updates dependency versions and hashes for several modules (notably github.com/evmos/ethermint) in go.mod and gomod2nix.toml. No code or public API changes.

Changes

Cohort / File(s) Summary
Documentation
CHANGELOG.md
Add UNRELEASED entry under State Machine Breaking referencing PR #1846: “Enforce app creator returning application implement AppWithPendingTxStream during compilation phase.” Documentation-only.
Go module file
go.mod
Bump dependencies (notable changes: cosmossdk.io/log v1.5.1→v1.6.1, github.com/bytedance/sonic v1.13.2→v1.14.0, github.com/bytedance/sonic/loader v0.2.4→v0.3.0, golang.org/x/arch v0.15.0→v0.17.0) and update replace directive for github.com/evmos/ethermint to v0.6.1-0.20250818034006-1a6e81479555.
Nix metadata
gomod2nix.toml
Update versions and sha256 hashes to match go.mod bumps (including cosmossdk.io/log, github.com/bytedance/sonic, github.com/bytedance/sonic/loader, golang.org/x/arch, and github.com/evmos/ethermint -> v0.6.1-0.20250818034006-1a6e81479555, updated sha256). No code changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • calvinaco
  • thomas-nguy

Poem

I nibble hashes, hop through a line,
A changelog note — a gentle sign.
No code disturbed, just versions aligned,
Carrot in paw, dependencies refined. 🥕

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/pending-tx-stream-on-build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • 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.
  • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@randy-cro randy-cro force-pushed the feat/pending-tx-stream-on-build branch from a0a9481 to e67be90 Compare August 15, 2025 09:17
@randy-cro randy-cro changed the title Feat: Enforce app creator returning application implement AppWithPendingTxStream during compilation phase feat: Enforce app creator returning application implement AppWithPendingTxStream during compilation phase Aug 15, 2025
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

🧹 Nitpick comments (1)
CHANGELOG.md (1)

9-9: Grammar fix for clarity.

Minor wording nit; “application implement” reads awkwardly.

Apply this diff to improve readability:

-* [#1846](https://github.com/crypto-org-chain/cronos/pull/1846) Enforce app creator returning application implement AppWithPendingTxStream during compilation phase 
+* [#1846](https://github.com/crypto-org-chain/cronos/pull/1846) Enforce app creator to return an application implementing AppWithPendingTxStream at compile time
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ff9422f and e67be90.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (3)
  • CHANGELOG.md (1 hunks)
  • go.mod (1 hunks)
  • gomod2nix.toml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: build (macos-14)
  • GitHub Check: gomod2nix
  • GitHub Check: integration_tests (gov)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (macos-latest)
  • GitHub Check: Run golangci-lint
  • GitHub Check: integration_tests (ibc_timeout)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: unittest
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: integration_tests (ibc)
🔇 Additional comments (2)
go.mod (1)

308-308: Bump to Ethermint commit looks correct — gomod2nix aligned; please run CI/build

Checked alignment between go.mod and gomod2nix.toml — versions match and a hash is present.

  • go.mod (line ~308): github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.6.1-0.20250815090753-0c0f827db994
  • gomod2nix.toml (mod."github.com/evmos/ethermint"): version = "v0.6.1-0.20250815090753-0c0f827db994", hash = "sha256-kdRYx+HUVgI2rqEz5ulI0Jj/VQ2sjwoXkjq2TsjmXWY=", replaced = "github.com/crypto-org-chain/ethermint"

Result: no go.mod/gomod2nix drift found. Recommend running the project's CI/full build to confirm there are no compile-time breaks (e.g., AppWithPendingTxStream enforcement).

gomod2nix.toml (1)

317-319: gomod2nix pin and hash updated in sync with go.mod.

The Ethermint version and sha256 were updated and the replaced field remains the Cronos fork. This looks aligned with the go.mod replace bump.

@socket-security
Copy link

socket-security bot commented Aug 15, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgolang/​github.com/​crypto-org-chain/​ethermint@​v0.6.1-0.20250815070734-9e6b13895396 ⏵ v0.6.1-0.20250818034006-1a6e8147955575 +110010010070
Updatedgolang/​cosmossdk.io/​log@​v1.5.1 ⏵ v1.6.1100100100100100

View full report

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

🧹 Nitpick comments (3)
go.mod (2)

84-85: Sonic and loader upgrades: validate cross-arch builds

Upgrading github.com/bytedance/sonic to v1.14.0 and loader to v0.3.0 is fine, but sonic uses SIMD/assembly paths. Thanks for also bumping golang.org/x/arch. Please ensure CI covers linux/amd64, linux/arm64, darwin/amd64, and darwin/arm64 to catch any arch-specific build issues.


308-315: ethermint replace bumped to a commit with pending-tx stream enforcement: sync check

Pointing github.com/evmos/ethermint to github.com/crypto-org-chain/ethermint v0.6.1-0.20250818034006-1a6e81479555 aligns with the PR goal. Two asks:

  • Verify this exact commit contains the compile-time enforcement for AppWithPendingTxStream.
  • Once upstream tags a release, consider switching from a pseudo-version to a tag for stability and reproducibility.

Optional: add an explicit compile-time assertion in Cronos app code to make the requirement obvious locally (in the app package):

// Ensure our app implements the required interface from Ethermint server.
var _ server.AppWithPendingTxStream = (*App)(nil)
gomod2nix.toml (1)

151-156: Sonic and loader nix pins updated; ensure generated via gomod2nix

Versions and hashes reflect the upgrades. If not already, regenerate via gomod2nix to avoid drift.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between da7d28c and e4c107b.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • go.mod (4 hunks)
  • gomod2nix.toml (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: gomod2nix
  • GitHub Check: build (macos-14)
  • GitHub Check: contracts
  • GitHub Check: unittest
  • GitHub Check: Run golangci-lint
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (gov)
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (ibc)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (ibc_timeout)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (5)
go.mod (2)

10-10: Minor bump to cosmossdk.io/log looks safe

v1.6.1 is a minor update; no breaking API expected. Good to keep logging stack current.


264-264: golang.org/x/arch to v0.17.0 aligns with sonic update

Matches the SIMD/assembly ecosystem versions. No concerns.

gomod2nix.toml (3)

47-48: cosmossdk.io/log nix pin updated with matching hash

Version and sha256 updated together; looks consistent with go.mod.


317-319: ethermint nix pin aligns with replace; good

The module is still replaced to github.com/crypto-org-chain/ethermint and the pseudo-version/hash is updated. This keeps Nix build reproducible with the enforced interface upstream.


752-753: golang.org/x/arch nix pin bumped with matching hash

In sync with go.mod; no issues.

@randy-cro randy-cro enabled auto-merge August 18, 2025 04:25
@randy-cro randy-cro added this pull request to the merge queue Aug 18, 2025
Merged via the queue into main with commit c52880f Aug 18, 2025
45 of 53 checks passed
@randy-cro randy-cro deleted the feat/pending-tx-stream-on-build branch August 18, 2025 07:36
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.

3 participants