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

[draft] Implement Osmosis shielded swaps #4133

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

Conversation

sug0
Copy link
Collaborator

@sug0 sug0 commented Dec 2, 2024

Describe your changes

Based on #4134

  • Implement SDK/CLI code to perform shielded swaps.
  • Integrate with the overflow receive middleware, to support directly shielding the minimum output amount of a trade on Osmosis, and sending the diff to a transient account.

Diff: https://github.com/anoma/namada/compare/bat+tiago/feat/ibc-pfm-with-invalid-addrs..tiago/osmosis-swap-cli-over-v44

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 Dec 2, 2024

Codecov Report

Attention: Patch coverage is 22.00000% with 585 lines in your changes missing coverage. Please review.

Project coverage is 74.10%. Comparing base (2ae305c) to head (037d931).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
crates/sdk/src/args.rs 0.00% 173 Missing ⚠️
crates/ibc/src/context/middlewares/pfm_mod.rs 16.90% 172 Missing ⚠️
crates/sdk/src/rpc.rs 0.00% 90 Missing ⚠️
...rates/ibc/src/context/middlewares/shielded_recv.rs 23.14% 83 Missing ⚠️
crates/ibc/src/msg.rs 21.56% 40 Missing ⚠️
crates/ibc/src/context/token_transfer.rs 63.63% 8 Missing ⚠️
crates/core/src/address.rs 40.00% 6 Missing ⚠️
crates/core/src/token.rs 0.00% 6 Missing ⚠️
crates/ibc/src/context/nft_transfer_mod.rs 33.33% 2 Missing ⚠️
crates/ibc/src/context/transfer_mod.rs 33.33% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4133      +/-   ##
==========================================
- Coverage   74.46%   74.10%   -0.37%     
==========================================
  Files         342      345       +3     
  Lines      107773   108493     +720     
==========================================
+ Hits        80257    80394     +137     
- Misses      27516    28099     +583     

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

@sug0 sug0 changed the title Susmosis... Implement Osmosis shielded swaps Dec 2, 2024
@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch from 64e7e47 to 6fa153d Compare December 2, 2024 16:19
@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch from 6fa153d to 59b6d2b Compare December 2, 2024 16:32
sug0 added a commit that referenced this pull request Dec 2, 2024
@sug0 sug0 marked this pull request as draft December 2, 2024 16:34
@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch from 7c4a50d to 8ba3663 Compare December 6, 2024 11:17
@sug0 sug0 marked this pull request as ready for review December 10, 2024 13:58
@sug0 sug0 changed the title Implement Osmosis shielded swaps [draft] Implement Osmosis shielded swaps Dec 10, 2024
@sug0
Copy link
Collaborator Author

sug0 commented Dec 11, 2024

TODO add new e2e tests to CI

@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch 2 times, most recently from ac598c3 to 370ce50 Compare December 18, 2024 15:11
@sug0
Copy link
Collaborator Author

sug0 commented Dec 18, 2024

TODO: add a changelog.

this check is passing in CI, but only because we are checking the entries from the base PRs

@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch from f822061 to 19bce63 Compare December 18, 2024 17:34
@sug0 sug0 force-pushed the tiago/osmosis-swap-cli-over-v44 branch from 19bce63 to 037d931 Compare December 19, 2024 13:22
@sug0 sug0 mentioned this pull request Dec 19, 2024
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.

2 participants