6 releases (3 breaking)
0.19.0 | Aug 26, 2024 |
---|---|
0.19.0-rc.1 | Aug 16, 2024 |
0.18.1 | Jul 11, 2024 |
0.18.0 | Feb 8, 2024 |
0.16.2 | Jul 20, 2023 |
#4 in #multi-contract
312 downloads per month
Used in 5 crates
(2 directly)
405KB
10K
SLoC
Multi Test: Test helpers for multi-contract interactions
Warning: Alpha Software Designed for internal use only.
This is used for testing cw-plus contracts, we have no API stability currently. We are working on refactoring it and will expose a more refined version for use in other contracts. (Ideally in cw-plus 0.9 or 0.10).
Use at your own risk
Let us run unit tests with contracts calling contracts, and calling in and out of bank.
This only works with contracts and bank currently. We are working on refactoring to make it more extensible for more handlers, including custom messages/queries as well as IBC.
lib.rs
:
Multitest is a design to simulate a blockchain environment in pure Rust. This allows us to run unit tests that involve contract -> contract, and contract -> bank interactions. This is not intended to be a full blockchain app but to simulate the Cosmos SDK x/wasm module close enough to gain confidence in multi-contract deployements before testing them on a live blockchain.
To understand the design of this module, please refer to ../DESIGN.md
Dependencies
~13–20MB
~330K SLoC