Skip to content

Commit

Permalink
test-tube 0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
iboss-ptk committed Sep 7, 2023
1 parent c602f40 commit 745f17d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/test-tube/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ edition = "2021"
license = "MIT OR Apache-2.0"
name = "test-tube"
repository = "https://github.com/osmosis-labs/test-tube"
version = "0.1.6"
version = "0.1.7"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
base64 = "0.13.0"
cosmrs = {version = "0.9.0", features = ["cosmwasm", "rpc"]}
cosmwasm-std = {version = "1.1.2", features = ["stargate"]}
osmosis-std = "0.17.0-rc0"
cosmwasm-std = {version = "1.4.0", features = ["stargate"]}
osmosis-std = {version = "0.19.1", optional = true}
prost = "0.11.0"
serde = "1.0.144"
serde_json = "1.0.85"
Expand All @@ -21,3 +21,11 @@ thiserror = "1.0.34"
[dev-dependencies]
cw1-whitelist = "0.15.0"
rayon = "1.5.3"

[features]
default = []

module-wrappers = ["bank", "wasm"]

bank = ["osmosis-std"]
wasm = ["osmosis-std"]
2 changes: 2 additions & 0 deletions packages/test-tube/src/module/bank.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "bank")]

use crate::{fn_execute, fn_query};
use osmosis_std::types::cosmos::bank::v1beta1::{
MsgSend, MsgSendResponse, QueryAllBalancesRequest, QueryAllBalancesResponse,
Expand Down
3 changes: 3 additions & 0 deletions packages/test-tube/src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ use crate::runner::Runner;
pub mod bank;
pub mod wasm;

#[cfg(feature = "bank")]
pub use bank::Bank;

#[cfg(feature = "wasm")]
pub use wasm::Wasm;

#[macro_use]
Expand Down
2 changes: 2 additions & 0 deletions packages/test-tube/src/module/wasm.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(feature = "wasm")]

use cosmwasm_std::Coin;
use osmosis_std::types::cosmwasm::wasm::v1::{
AccessConfig, MsgExecuteContract, MsgExecuteContractResponse, MsgInstantiateContract,
Expand Down

0 comments on commit 745f17d

Please sign in to comment.