-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support ICS008 wrapper type for host client and consensus state #1237
Comments
Maybe we can add another generic associated type to type HostClientStateAtCounterparty<V>: Into<V> + TryFrom<Any> where V: TryFrom<Any>; And, later, we use it as:: Ctx::HostClientStateAtCounterparty<Ctx::HostClientState>::try_from(
msg.client_state_of_a_on_b.clone()
)
.map_err(Into::into)?
.into(); This way, we allow the crate users to build their own custom host client wrapper. |
7 tasks
Looks like, the similar is required for host consensus state. In the following, we need to wrap the consensus state in wasm consensus state and then check for proofs. |
7 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Feature Summary
Now that ibc-go comes with wasm-08, client state of an ibc-rs chain maybe stored as wasm wrapped format in wasm-08 enabled chain.
So when
MsgConnectionOpenTry
orMsgConnectionOpenAck
is received at ibc-rs, it should expect two cases:Proposal
We need to introduce an enum:
Then, use
HosClientState<Ctx::HostClientState>
in the following places:https://github.com/cosmos/ibc-rs/blob/2378cd4ba45094b8ed856ff7dba5f1d0882f59ae/ibc-core/ics03-connection/src/handler/conn_open_ack.rs#L52
https://github.com/cosmos/ibc-rs/blob/2378cd4ba45094b8ed856ff7dba5f1d0882f59ae/ibc-core/ics03-connection/src/handler/conn_open_try.rs#L42
The text was updated successfully, but these errors were encountered: