Skip to content

Commit

Permalink
stashing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Oct 9, 2024
1 parent bb5892e commit 524d55f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
4 changes: 2 additions & 2 deletions packages/injective-test-tube/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ cosmrs = { version = "0.15.0", features = [ "cosmwasm", "rpc" ] }
cosmwasm-schema = { version = "2.1.1" }
cosmwasm-std = { version = "2.1.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] }
hex = "0.4.2"
injective-cosmwasm = { version = "0.3.0", path = "../../../cw-injective/packages/injective-cosmwasm" }
injective-std = { version = "1.13.0", path = "../../../cw-injective/packages/injective-std" }
injective-cosmwasm = { version = "0.3.0" }
injective-std = { version = "1.13.2-auction" }
prost = "0.12.3"
serde = "1.0.144"
serde_json = "1.0.85"
Expand Down
Binary file not shown.
Binary file not shown.
37 changes: 0 additions & 37 deletions packages/injective-test-tube/src/module/auction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ mod tests {
use cosmwasm_schema::cw_serde;

Check warning on line 53 in packages/injective-test-tube/src/module/auction.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused import: `cosmwasm_schema::cw_serde`

Check failure on line 53 in packages/injective-test-tube/src/module/auction.rs

View workflow job for this annotation

GitHub Actions / Lints

unused import: `cosmwasm_schema::cw_serde`
use test_tube_inj::Module;

#[cw_serde]
pub struct InstantiateMsg {}

#[test]
fn auction_integration() {
let app = InjectiveTestApp::new();
Expand All @@ -82,7 +79,6 @@ mod tests {
assert_eq!(
result,
LastAuctionResult {
// amount: "100000inj".to_string(),
amount: Some(BaseCoin {

Check failure on line 82 in packages/injective-test-tube/src/module/auction.rs

View workflow job for this annotation

GitHub Actions / Test Suite

mismatched types

Check failure on line 82 in packages/injective-test-tube/src/module/auction.rs

View workflow job for this annotation

GitHub Actions / Lints

mismatched types
denom: "inj".to_string(),
amount: "100000".to_string()
Expand All @@ -92,37 +88,4 @@ mod tests {
}
);
}

#[test]
fn ttest_cosmwasmpool_proposal() {
let app = InjectiveTestApp::default();

let wasm = Wasm::new(&app);

let signer = app
.init_account(&[cosmwasm_std::Coin::new(1000000000000000000u128, "inj")])
.unwrap();

// upload cosmwasm pool code and whitelist through proposal
let wasm_byte_code = std::fs::read(
"/Users/wandlitz/go/src/github.com/InjectiveLabs/test-tube/packages/injective-test-tube/src/module/artifacts/dummy-aarch64.wasm",
)
.unwrap();

let code_id = wasm
.store_code(&wasm_byte_code, None, &signer)
.unwrap()
.data
.code_id;

wasm.instantiate(
code_id,
&InstantiateMsg {},
None,
Some("no label"),
&[],
&signer,
)
.unwrap();
}
}

0 comments on commit 524d55f

Please sign in to comment.