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

Download history 397/week @ 2024-06-26 235/week @ 2024-07-03 245/week @ 2024-07-10 80/week @ 2024-07-17 88/week @ 2024-07-24 282/week @ 2024-07-31 276/week @ 2024-08-07 296/week @ 2024-08-14 404/week @ 2024-08-21 292/week @ 2024-08-28 114/week @ 2024-09-04 81/week @ 2024-09-11 76/week @ 2024-09-18 54/week @ 2024-09-25 76/week @ 2024-10-02 107/week @ 2024-10-09

337 downloads per month
Used in 5 crates (2 directly)

Apache-2.0

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–21MB
~330K SLoC