-
Notifications
You must be signed in to change notification settings - Fork 82
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
Introduce (PortId, ChannelId)
domain type
#84
Comments
How about |
I love this name. I would propose the following plan:
We can also consider moving faster and not waiting on the IBC spec team, but that would mean we'd need to do two sets of changes (once for the initial ibc-rs-specific changes, and a second time to adopt the .proto files once modifications flow from upstream into our repo). |
(PortId, ChannelId)
domain type
Blocked on cosmos/ibc#583 |
We can invent the type locally (already have as
This looks too "stateful": there may not be a bound channel for this pair of IDs, as there isn't in your example of an error where this type could be used. |
I kinda like socket but i am afraid it's already too overloaded. I agree that |
I don't like I can't think of another analogy that I feel fits IBC's |
Good points! Let's go with |
Bump prost to 0.10 in /rust
Crate
ibc
Summary
Since we started working on ICS04 handlers(informalsystems/hermes#452) we noticed that there is a recurring need to encapsulate the tuple
(PortId, ChannelId)
as a type. This tuple is needed in error types:https://github.com/informalsystems/ibc-rs/blob/d6250014e8d8fcddde651f9e3ceb6be5c93cbeae/modules/src/application/ics20_fungible_token_transfer/error.rs#L19-L20
or as parameters to structures:
https://github.com/informalsystems/ibc-rs/blob/71d9baa6a2eed5a9286f9fe88f1cfacbd51e19d8/modules/src/mock/context.rs#L86-L86
or as parameters to methods:
https://github.com/informalsystems/ibc-rs/blob/71d9baa6a2eed5a9286f9fe88f1cfacbd51e19d8/modules/src/mock/context.rs#L279-L282
So there's ample reasons to introduce a new type for capturing the two.
Proposal
The new type should probably reside in ICS04. Potential names:
For Admin Use
The text was updated successfully, but these errors were encountered: