cosmos / ibc-rs

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

feat: implement CosmWasm context for light clients + contract for Tendermint clients #1167

Closed Farhad-Shabani closed 2 months ago

Farhad-Shabani commented 2 months ago

Comes after: #1163

Closes: #1164 Closes: #1165

Subsequent PR on sovereign-ibc: https://github.com/informalsystems/sovereign-ibc/pull/142

Description

This PR adds the following crates:

Plus, wrote unit tests for Tendermint CosmWasm client creation / update / recovery.

TODO in follow-up PRs


PR author checklist:

Reviewer checklist:

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 61.76024% with 252 lines in your changes are missing coverage. Please review.

Project coverage is 64.39%. Comparing base (45d3250) to head (702272b). Report is 1 commits behind head on main.

Files Patch % Lines
ibc-clients/cw-context/src/handlers.rs 46.15% 63 Missing :warning:
ibc-clients/cw-context/src/context/client_ctx.rs 57.97% 58 Missing :warning:
ibc-clients/cw-context/src/types/msgs.rs 23.18% 53 Missing :warning:
ibc-clients/cw-context/src/context/mod.rs 76.47% 40 Missing :warning:
ibc-clients/cw-context/src/context/custom_ctx.rs 81.25% 9 Missing :warning:
ibc-clients/cw-context/src/types/response.rs 74.28% 9 Missing :warning:
ibc-clients/cw-context/src/types/error.rs 0.00% 7 Missing :warning:
...nts/ics07-tendermint/cw-contract/src/entrypoint.rs 75.00% 5 Missing :warning:
...ts/ics07-tendermint/cw-contract/src/client_type.rs 82.60% 4 Missing :warning:
ibc-clients/cw-context/src/utils/mod.rs 72.72% 3 Missing :warning:
... and 1 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1167 +/- ## ========================================== + Coverage 63.73% 64.39% +0.66% ========================================== Files 219 230 +11 Lines 21399 22053 +654 ========================================== + Hits 13638 14201 +563 - Misses 7761 7852 +91 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.