Closed
Description
Crate
ibc
Summary
Since we started working on ICS04 handlers(#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:
ibc-rs/modules/src/application/ics20_fungible_token_transfer/error.rs
Lines 19 to 20 in d625001
or as parameters to structures:
or as parameters to methods:
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:
pub struct PortChannel(PortId, ChannelId);
pub struct BoundChannel(PortId, ChannelId);
pub struct AuthorizedChannel(PortId, ChannelId);
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate milestone (priority) applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Activity