-
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
Rework ibc::ics04_channel::events
module
#86
Comments
The main idea is to go from this: to a bare struct with only the necessary fields made public: #[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq)]
pub struct CloseInit {
pub height: Height,
pub port_id: PortId,
pub channel_id: ChannelId,
pub counterparty_port_id: PortId,
pub counterparty_channel_id: Option<ChannelId>,
} Note that now we statically ensure that |
@romac @adizere I've made a draft implementation here https://github.com/Wizdave97/ibc-rs/blob/david/rework-channel-events/modules/src/core/ics04_channel/events.rs, I want to know if that's on track, especially the use of |
* made Msg trait global * MsgConnectionOpenTry implementation * Connection msgs skeleton * channel msgs skeleton * validation fixes * Added tests for connection and channel msgs * fix clippy error * fix further errors * review suggestions
* made Msg trait global * MsgConnectionOpenTry implementation * Connection msgs skeleton * channel msgs skeleton * validation fixes * Added tests for connection and channel msgs * fix clippy error * fix further errors * review suggestions
Remove Cargo.lock
Crate
ibc
Summary
The various channel events defined in the
ibc::ics04_channel::events
module are all defined as newtypes over the sameAttributes
which has some optional fields which are expected to always be defined for specific events. As such, this forces us tounwrap
these values in some places. We should refactor this module to perform this check when parsing the source event, and perhaps refactor the parsing code a little bit while we're at it.For Admin Use
The text was updated successfully, but these errors were encountered: