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/bump wasm 0.52.0 #702

Merged
merged 7 commits into from
Jul 24, 2024
Merged

Feat/bump wasm 0.52.0 #702

merged 7 commits into from
Jul 24, 2024

Conversation

amimart
Copy link
Member

@amimart amimart commented Jul 22, 2024

Upgrade the wasm module to its latest version v0.52.0 shipping the latest wasmvm v2.1.0 bringing new IBC entrypoints.

Note: This change is consensus breaking

Misc

The new safe query mechanism (i.e. automatically register queries that are safe to use through IBC) enters in conflicts with protos brought by the hyperledger library (i.e. google.crypto.tink). As we don't rely on them I've decided to remove them from the proto global registry when creating the root cmd.

Summary by CodeRabbit

  • New Features

    • Enhanced the Inter-Blockchain Communication (IBC) module for improved fee management and callback handling, enabling more dynamic interchain interactions.
    • Introduced a function to clean up unused protobuf definitions during command initialization, enhancing application integrity.
  • Bug Fixes

    • Updated various library dependencies to fix potential issues and improve performance.
  • Chores

    • Upgraded the version of critical libraries to ensure stability and security across the application.

@amimart amimart self-assigned this Jul 22, 2024
Copy link
Contributor

coderabbitai bot commented Jul 22, 2024

Walkthrough

This update enhances the application by upgrading dependencies, refining the IBC module for better fee management, and introducing a new function to clean the protobuf registry. The Dockerfile reflects updates to library versions, ensuring the latest features and fixes are included. Overall, these changes improve stability, performance, and maintainability, while promoting a more event-driven architecture within the application.

Changes

File Change Summary
Dockerfile Updated libwasmvm_muslc version from 2.0.0 to 2.1.0 and updated SHA256 checksums.
app/app.go Enhanced IBC module with new fee keeper, modified stacks for Wasm IBC and callbacks, and streamlined proto handling.
cmd/axoned/cmd/root.go Added sanitizeProtoRegistry function to clean up unused proto definitions during command initialization.
go.mod Upgraded multiple dependencies for improved stability and performance.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Command
    participant ProtoRegistry
    participant IBCModule
    participant FeeModule

    User->>Command: Initialize Command
    Command->>ProtoRegistry: Sanitize Registry
    ProtoRegistry-->>Command: Cleaned Registry
    Command->>IBCModule: Setup IBC Module
    IBCModule->>FeeModule: Initialize Fee Management
    FeeModule-->>IBCModule: Ready for Operations
Loading

🐰 In the garden of code, with hops and delight,
New versions spring forth, making everything right.
Libraries dance, protocols sing,
A rabbit's cheer for the joy changes bring!
With fees managed smartly and imports so neat,
Our app's now a wonder, oh what a treat! 🥕✨


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.

Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #702   +/-   ##
=======================================
  Coverage   54.23%   54.23%           
=======================================
  Files          74       74           
  Lines        2906     2906           
=======================================
  Hits         1576     1576           
  Misses       1234     1234           
  Partials       96       96           

@amimart amimart force-pushed the feat/bump-wasm-0.52.0 branch 2 times, most recently from d2d4bc0 to b962828 Compare July 23, 2024 15:09
@amimart amimart marked this pull request as ready for review July 23, 2024 15:41
@amimart amimart requested review from bdeneux and ccamel July 23, 2024 15:41
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: 1

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between eb3ea9e and d82e0c4.

Files ignored due to path filters (2)
  • docs/command/axoned_tx_interchain-accounts_controller_register.md is excluded by !docs/command/**/*.md
  • go.sum is excluded by !**/*.sum
Files selected for processing (4)
  • Dockerfile (1 hunks)
  • app/app.go (9 hunks)
  • cmd/axoned/cmd/root.go (3 hunks)
  • go.mod (11 hunks)
Additional comments not posted (22)
Dockerfile (2)

13-14: Ensure SHA256 checksums are correct.

The SHA256 checksums must match the expected values for the downloaded files. Verification is required.


7-8: Verify the updated URLs and checksums.

Ensure that the URLs for the libwasmvm_muslc libraries and their corresponding SHA256 checksums are correct and match the expected values for version 2.1.0.

cmd/axoned/cmd/root.go (2)

15-16: New imports for protobuf registry.

The new imports for protoreflect and protoregistry are necessary for the sanitizeProtoRegistry function.


55-56: Invoke sanitizeProtoRegistry early in NewRootCmd.

The sanitizeProtoRegistry function is invoked at the beginning of NewRootCmd to ensure the protobuf registry is cleaned up before any other operations.

go.mod (9)

20-20: Update cosmossdk.io/x/upgrade to v0.1.3.

The update from v0.1.2 to v0.1.3 likely includes minor bug fixes or enhancements. Ensure compatibility with the rest of the codebase.


22-22: Update github.com/CosmWasm/wasmd to v0.52.0.

The update from v0.51.0 to v0.52.0 introduces new features and improvements. Ensure compatibility with the rest of the codebase.


31-31: Update github.com/cosmos/ibc-go/v8 to v8.3.2.

The update from v8.2.1 to v8.3.2 likely includes important changes. Ensure compatibility with the rest of the codebase.


46-46: Update github.com/piprate/json-gold to v0.5.1-0.20230111113000-6ddbe6e6f19f.

The update from v0.5.0 to v0.5.1-0.20230111113000-6ddbe6e6f19f likely includes bug fixes or improvements. Ensure compatibility with the rest of the codebase.


59-59: Update google.golang.org/genproto/googleapis/api to v0.0.0-20240311132316-a219d84964c2.

The update reflects a change in the versioning scheme. Ensure compatibility with the rest of the codebase.


81-81: Update cloud.google.com/go to v0.112.1.

The update from v0.112.0 to v0.112.1 likely includes minor bug fixes or improvements. Ensure compatibility with the rest of the codebase.


148-148: Update github.com/go-jose/go-jose/v3 to v3.0.1.

The update from v3.0.1-0.20221117193127-916db76e8214 to v3.0.1 likely includes bug fixes or improvements. Ensure compatibility with the rest of the codebase.


252-252: Update github.com/rs/zerolog to v1.33.0.

The update from v1.32.0 to v1.33.0 likely includes bug fixes or improvements. Ensure compatibility with the rest of the codebase.


283-285: Update go.opentelemetry.io/otel to v1.24.0.

The update from v1.22.0 to v1.24.0 likely includes new features, bug fixes, or improvements. Ensure compatibility with the rest of the codebase.

app/app.go (9)

111-111: Import of ibccallbacks package approved.

The addition of the ibccallbacks package is noted and aligns with the introduction of callback mechanisms in the IBC logic.


494-495: Creation of IBC Keeper approved.

The initialization of the IBC Keeper is crucial for handling IBC operations and aligns with the changes introduced.


506-514: Introduction of IBC Fee Module keeper approved.

The initialization of the IBC Fee Module keeper is essential for managing transaction fees associated with IBC operations.


542-543: Setting gRPC router for ICA Host approved.

The setting of the gRPC router for the ICA Host is necessary for handling interchain account operations.


610-612: Initialization of Wasm Keeper with built-in capabilities approved.

The initialization of the Wasm Keeper with built-in capabilities is crucial for managing Wasm modules.


615-618: Creation of fee-enabled Wasm IBC stack approved.

The creation of the fee-enabled Wasm IBC stack is essential for handling IBC operations with fee management.


624-636: Creation of Interchain Accounts Stack with middleware approved.

The creation of the Interchain Accounts Stack with middleware enhances the modularity and control flow of interchain account operations.


640-641: Passing ICS4Wrapper to ICA Controller Keeper approved.

Passing the ICS4Wrapper to the ICA Controller Keeper is necessary for handling interchain account operations.


649-656: Creation of Transfer Stack with middleware approved.

The creation of the Transfer Stack with middleware enhances the modularity and control flow of transfer operations.

cmd/axoned/cmd/root.go Show resolved Hide resolved
Copy link
Contributor

@bdeneux bdeneux left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@ccamel ccamel left a comment

Choose a reason for hiding this comment

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

👏

@amimart amimart merged commit e354a2d into main Jul 24, 2024
20 checks passed
@amimart amimart deleted the feat/bump-wasm-0.52.0 branch July 24, 2024 09:43
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