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

IBC Packet Forward Middleware #4082

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

batconjurer
Copy link
Member

@batconjurer batconjurer commented Nov 22, 2024

Describe your changes

Integrate with the Packet Forward Middleware code. Requires an ibc-rs fork, in order to support asynchronous IBC packet acknowledgements.

NOTE: The code in the links above should also be reviewed.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 58.56481% with 179 lines in your changes missing coverage. Please review.

Project coverage is 74.51%. Comparing base (cc531ec) to head (7b6135d).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
crates/ibc/src/context/pfm_mod.rs 56.53% 173 Missing ⚠️
crates/ibc/src/context/nft_transfer_mod.rs 33.33% 2 Missing ⚠️
crates/ibc/src/context/transfer_mod.rs 33.33% 2 Missing ⚠️
crates/ibc/src/context/token_transfer.rs 0.00% 1 Missing ⚠️
crates/ibc/src/lib.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4082      +/-   ##
==========================================
- Coverage   74.58%   74.51%   -0.08%     
==========================================
  Files         341      342       +1     
  Lines      107484   107894     +410     
==========================================
+ Hits        80167    80396     +229     
- Misses      27317    27498     +181     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

sug0 and others added 3 commits November 29, 2024 14:30
Co-authored-by: Jacob Turner <[email protected]>
Co-authored-by: Jacob Turner <[email protected]>
@sug0
Copy link
Contributor

sug0 commented Nov 29, 2024

(before rebase/history cleanup: dc3950c)

sug0 added a commit that referenced this pull request Nov 29, 2024
sug0 and others added 4 commits November 29, 2024 14:37
Copy link
Member

@yito88 yito88 left a comment

Choose a reason for hiding this comment

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

Looks good! Left trivial comments.

@@ -118,9 +119,10 @@ fs_extra = "1.2.0"
futures = "0.3"
git2 = { version = "0.18.1", default-features = false }
# branch yuji/derive-arbitrary
Copy link
Member

Choose a reason for hiding this comment

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

Updating the branch name would be helpful

@@ -534,7 +529,7 @@ pub fn make_hermes_config(test_a: &Test, test_b: &Test) -> Result<()> {
Ok(())
}

fn make_hermes_chain_config(test: &Test) -> Value {
fn make_hermes_chain_config(_hermes_dir: &TestDir, test: &Test) -> Value {
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove hermes_dir?

&test_gaia_2,
)?;

// Check the samoleans have been sent from the first cosmos chain
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong comment here I think

self.transfer_module.ctx.inner.clone(),
self.transfer_module.ctx.verifiers.clone(),
);
self.transfer_module.ctx.insert_verifier(&MULTITOKEN);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this also for send_transfer_execute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants