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 basic form #1106

Merged
merged 2 commits into from
Sep 18, 2024
Merged

IBC basic form #1106

merged 2 commits into from
Sep 18, 2024

Conversation

emccorson
Copy link
Collaborator

@emccorson emccorson commented Sep 13, 2024

This PR adds a very basic form for IBC transfers into Namada. It is a rough first draft intended to be used as a base for building further IBC features and is definitely not production-quality code. It only works for transfers from the main Cosmos testnet (theta-testnet-001).

I've not used our existing Keplr class from the integrations package for this because I wanted to see how we need to use Keplr for IBC before building any abstractions. I was thinking I might end up refactoring the integrations in the end anyway because the existing integrations abstraction was written with the old interface in mind, which had a very different design.

To test you will need gaiad and hermes set up locally. I can help anyone reviewing this PR set up what is needed.


Added

  • Add basic form for IBC transfers to Namada

Fixed

  • Make sidebar menu items match latest designs
  • Bump IBC packages to get transfers working again

@emccorson emccorson force-pushed the ibc-basic-form branch 2 times, most recently from 5a0ca67 to 56a9cec Compare September 17, 2024 10:11
@emccorson emccorson marked this pull request as ready for review September 17, 2024 10:44
Copy link
Contributor

@pedrorezende pedrorezende left a comment

Choose a reason for hiding this comment

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

Really nice! This will help me a lot to integrate with the transfer module!

const [channelId, setChannelId] = useState("");

const withErrorReporting =
(fn: () => Promise<void>): (() => Promise<void>) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make this signature more readable, or simplify this function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've changed the function to use await instead of then.

@emccorson emccorson force-pushed the ibc-basic-form branch 2 times, most recently from b59b798 to 1509c8a Compare September 18, 2024 09:25
emccorson added a commit that referenced this pull request Sep 18, 2024
This is a very rough first draft intended to be used as a starting point
for building more IBC features.
This is a very rough first draft intended to be used as a starting point
for building more IBC features.
@emccorson emccorson merged commit a47e2f7 into main Sep 18, 2024
10 checks passed
@emccorson emccorson deleted the ibc-basic-form branch September 18, 2024 17:27
@github-actions github-actions bot temporarily deployed to production September 18, 2024 17:38 Inactive
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