BVS Multi Test
BVS Multi Test is a testing utility for the SatLayer ecosystem. It provides a convenient way to bootstrap all the necessary contracts for testing services in the BVS ecosystem.
This crate is designed to simplify the testing process for BVS ecosystem contracts by providing a pre-configured environment with all the necessary contracts already initialized. It's similar to cw-multi-test, but specifically tailored for the BVS ecosystem.
This crate is only compiled for non-wasm32 targets (i.e., for testing purposes) and is not included in the final Wasm binary.
Features
- Initializes core BVS contracts (Pauser, Registry, VaultRouter) with a single function call
- Provides helper methods to deploy and configure various vault types:
- Bank vaults (for native tokens)
- CW20 vaults (for CW20 tokens)
- Simplifies the creation of CW20 tokens for testing purposes
Usage
BVS Multi Test integrates with the following BVS contracts:
bvs-pauser: Contract for pausing functionalitybvs-registry: Contract for registry functionalitybvs-vault-router: Contract for routing between different vaultsbvs-vault-bank: Contract for bank vaults (native tokens)bvs-vault-cw20: Contract for CW20 vaults (CW20 tokens)
When you create a new BvsMultiTest instance, it automatically initializes these core contracts.
You can then use the provided methods to deploy and configure additional contracts as needed.
Basic Setup
use BvsMultiTest;
use mock_env;
use App;
Deploying a Bank Vault
Deploying a CW20 Token and Vault