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

fix(ica): add controller stack #1864

Merged
merged 4 commits into from
May 7, 2024
Merged

fix(ica): add controller stack #1864

merged 4 commits into from
May 7, 2024

Conversation

k-yang
Copy link
Member

@k-yang k-yang commented May 6, 2024

Purpose / Abstract

Add ICA controller stack to Nibiru Chain. See https://github.com/CosmWasm/wasmd/blob/main/app/app.go#L655-L669 for a reference implementation.

Relates to #1820.

Copy link
Contributor

coderabbitai bot commented May 6, 2024

Warning

Rate Limit Exceeded

@k-yang has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 19 minutes and 29 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, 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 organization.
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 4d3205a and 9c05c45.

Walkthrough

The recent updates to the NibiruChain/nibiru repository enhance interchain functionalities and improve Ethereum compatibility. Key enhancements include the addition of interchain accounts, fixes to the ICA controller stack, and updates to the Ethereum RPC backend, tracer, KV indexer, and RPC APIs.

Changes

File Path Change Summary
CHANGELOG.md Added interchain accounts, fixed ICA controller stack, updated Ethereum RPC components.
app/keepers.go Integrated new IBC middleware and modules for interchain accounts.

Poem

🐇💻
In the land of code, where the nibiru lays,
New changes bloom, like the sun's first rays.
Interchain accounts, now join the fray,
Fixing, mixing in the blockchain ballet.
Hopping through code, with a carrot daydream,
A rabbit’s work, stitching the digital seam.
🌟🚀🌟


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.

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 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.

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

CodeRabbit Configration 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 May 6, 2024 23:57
@k-yang k-yang requested a review from a team as a code owner May 6, 2024 23:57
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: 2

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 83da4ad and 4f94db8.
Files selected for processing (2)
  • CHANGELOG.md (2 hunks)
  • app/keepers.go (2 hunks)
Additional Context Used
GitHub Check Runs (1)
lint failure (2)

app/keepers.go: [failure] 544-544:
S1021: should merge variable declaration with assignment on next line (gosimple)

Additional comments not posted (1)
app/keepers.go (1)

545-545: ICA Host Stack setup looks good.

CHANGELOG.md Outdated Show resolved Hide resolved
Comment on lines +539 to +540
var noAuthzModule porttypes.IBCModule
icaControllerStack = icacontroller.NewIBCMiddleware(noAuthzModule, app.icaControllerKeeper)
Copy link
Contributor

Choose a reason for hiding this comment

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

Merge variable declaration with assignment.

- var noAuthzModule porttypes.IBCModule
- icaControllerStack = icacontroller.NewIBCMiddleware(noAuthzModule, app.icaControllerKeeper)
+ icaControllerStack = icacontroller.NewIBCMiddleware(porttypes.IBCModule{}, app.icaControllerKeeper)

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
var noAuthzModule porttypes.IBCModule
icaControllerStack = icacontroller.NewIBCMiddleware(noAuthzModule, app.icaControllerKeeper)
icaControllerStack = icacontroller.NewIBCMiddleware(porttypes.IBCModule{}, app.icaControllerKeeper)

k-yang and others added 2 commits May 6, 2024 20:04
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@k-yang k-yang enabled auto-merge (squash) May 7, 2024 00:05
Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.85%. Comparing base (83da4ad) to head (9c05c45).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1864      +/-   ##
==========================================
+ Coverage   67.84%   67.85%   +0.01%     
==========================================
  Files         203      203              
  Lines       13064    13070       +6     
==========================================
+ Hits         8863     8869       +6     
  Misses       3561     3561              
  Partials      640      640              
Files Coverage Δ
app/keepers.go 99.13% <100.00%> (+0.01%) ⬆️

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 4f94db8 and 4d3205a.
Files selected for processing (1)
  • app/keepers.go (3 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/keepers.go

@k-yang k-yang merged commit a20ca03 into main May 7, 2024
14 checks passed
@k-yang k-yang deleted the fix/ica/add-controller-stack branch May 7, 2024 00:19
k-yang added a commit that referenced this pull request May 7, 2024
* fix(ica): add controller stack

* chore: update changelog

* fix: linter issues

* Update CHANGELOG.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
k-yang added a commit that referenced this pull request May 7, 2024
* fix(ica): add controller stack

* chore: update changelog

* fix: linter issues

* Update CHANGELOG.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.

2 participants