3 releases (breaking)

0.18.0 Feb 8, 2024
0.17.0 Sep 26, 2023
0.16.2 Jul 20, 2023

#2905 in Magic Beans

Download history 42/week @ 2024-01-02 56/week @ 2024-01-09 150/week @ 2024-01-16 110/week @ 2024-01-23 243/week @ 2024-01-30 266/week @ 2024-02-06 333/week @ 2024-02-13 171/week @ 2024-02-20 118/week @ 2024-02-27 177/week @ 2024-03-05 108/week @ 2024-03-12 58/week @ 2024-03-19 63/week @ 2024-03-26 128/week @ 2024-04-02 153/week @ 2024-04-09 86/week @ 2024-04-16

446 downloads per month
Used in 3 crates (via cw-it)

Apache-2.0

390KB
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

~15MB
~298K SLoC