cosmos / ibc-rs

Rust implementation of the Inter-Blockchain Communication (IBC) protocol.
Apache License 2.0
181 stars 73 forks source link

Update cosmwasm dependencies to v2 #1242

Closed srdtrk closed 3 weeks ago

srdtrk commented 1 month ago

Feature Summary

CosmWasm v2 was released. Currently, it is not possible to use the cosmwasm crates of ibc-rs on projects using CosmWasm v2.

Proposal

CosmWasm v2 has full backwards compatibility with v1.5. So, it should be as simple as bumping the dependencies.

rnbguy commented 1 month ago

Thanks for flagging this.

CosmWasm v2 has full backwards compatibility with v1.5.

We had misinformation about the compatibility. Is this something new in the latest versions?

Nonetheless, nothing is blocking at our side. We can totally bump the versions.

srdtrk commented 1 month ago

I will verify the compatibility information and get back

rnbguy commented 1 month ago

We can probably upgrade 1.5 to 2.0. (cosmwasm/MIGRATING.md). I will confirm this with CW team next week.

srdtrk commented 1 month ago

Sure. I've talked to CW team in AwesomWasm, they said that there is backwards compatibility unless you use the cosmwasm 2 features. So all should be good

webmaster128 commented 4 weeks ago

You can run CosmWasm 2 contracts on 1.5 chains and vice-versa. It has been designed like that from the beginning, see e.g. https://medium.com/cosmwasm/cosmwasm-2-0-bbb94126ce6f. There was just a bug in cosmwasm-std 2.0.0-2.0.3 which prevented that from working for submessage replies but this is now fixed.

rnbguy commented 4 weeks ago

Awesome ! Thanks @webmaster128 for confirming. We can also upgrade the cw-storage-plus in that case. :slightly_smiling_face:

webmaster128 commented 4 weeks ago

We can also upgrade the cw-storage-plus in that case. 🙂

Yeah there is a version compatible with cosmwasm-std ^2 for sure