Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakehartnell/cw-ibc-queries
Implementation of generic IBC queries in CosmWasm.
https://github.com/jakehartnell/cw-ibc-queries
Last synced: 10 days ago
JSON representation
Implementation of generic IBC queries in CosmWasm.
- Host: GitHub
- URL: https://github.com/jakehartnell/cw-ibc-queries
- Owner: JakeHartnell
- License: apache-2.0
- Created: 2022-08-05T08:23:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T19:03:23.000Z (about 2 years ago)
- Last Synced: 2024-10-11T06:11:47.708Z (26 days ago)
- Language: Rust
- Homepage:
- Size: 1.58 MB
- Stars: 21
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CosmWasm IBC Queries
Implements generic IBC queries in CosmWasm. This implementation requires the same contract to be deployed on both chains wishing to query each other.This contract is inspired by Confio's [cw-ibc-demo](https://github.com/confio/cw-ibc-demo), and from work done during HackAtom 2022.
## Unit Tests
All unit tests are in Rust and assume a mocked out environment.
They don't actually send packets between contracts in any way,
but return a fully mocked response. This can run through many
code paths and get a reasonable level of confidence in the basic
logic. However, you will need to run through full-stack
integration tests to actually have any confidence it will work
as expected in production.To ensure they are proper, run the following in the repo root:
```shell
cargo test
```## Integration Tests
See the `tests` directory.