Cargo Features

cw-multi-test has no features set by default.

[dependencies]
cw-multi-test = { version = "3.0.0-ibc-alpha.0", features = ["backtrace", "staking", "stargate", "cosmwasm_1_1", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0"] }
backtrace

Enables backtrace of anyhow

staking

Enables staking of cosmwasm-std

cosmwasm-std:

staking exposes bindings to a required staking moudle in the runtime, via new CosmosMsg types, and new QueryRequest types. This should only be enabled on contracts that require these types, so other contracts can be used on systems with eg. PoA consensus

Affects featured::staking

stargate

Enables stargate of cosmwasm-std

cosmwasm-std:

stargate enables stargate-dependent messages and queries, like raw protobuf messages as well as ibc-related functionality

Affects test_helpers::gov, test_helpers::ibc, test_helpers::stargate

cosmwasm_1_1 cosmwasm_1_2?

Enables cosmwasm_1_1 of cosmwasm-std

cosmwasm-std:

This feature makes BankQuery::Supply available for the contract to call, but requires the host blockchain to run CosmWasm 1.1.0 or higher.

cosmwasm_1_2 cosmwasm_1_3? = cosmwasm_1_1

Enables cosmwasm_1_2 of cosmwasm-std

cosmwasm-std:

This feature makes GovMsg::VoteWeighted available for the contract to call, but requires the host blockchain to run CosmWasm 1.2.0 or higher.

Affects executor::Executor.instantiate2_contract

cosmwasm_1_3 cosmwasm_1_4? = cosmwasm_1_2

Enables cosmwasm_1_3 of cosmwasm-std

cosmwasm-std:

This feature makes BankQuery::DenomMetadata available for the contract to call, but requires the host blockchain to run CosmWasm 1.3.0 or higher.

cosmwasm_1_4 cosmwasm_2_0? = cosmwasm_1_3

Enables cosmwasm_1_4 of cosmwasm-std

cosmwasm-std:

Together with the iterator feature this enables additional imports for more efficient iteration over DB keys or values. It also makes DistributionQuery::{DelegationRewards, DelegationTotalRewards, DelegatorValidators} available for the contract to call. It requires the host blockchain to run CosmWasm 1.4.0 or higher.

cosmwasm_2_0 = cosmwasm_1_4

Enables cosmwasm_2_0 of cosmwasm-std

cosmwasm-std:

This enables functionality that is only available on 2.0 chains. It adds CosmosMsg::Any, replacing CosmosMsg::Stargate. It also adds QueryRequest::Grpc.