From 92234316cabf42e2a39ae26553bae42cd7f84981 Mon Sep 17 00:00:00 2001 From: ApolloGie Date: Wed, 3 Jul 2024 02:09:46 +0000 Subject: [PATCH] fix: bump cw-it, use create_astroport_pair --- Cargo.toml | 3 ++- cw-dex-astroport/tests/astroport_tests.rs | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cb28c5c..ea80456 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ serde = { version = "1.0.145", default-features = false, features = ["derive"] } thiserror = { version = "1.0.31" } apollo-cw-asset = "0.1.1" osmosis-std = "0.22.0" -cw-it = "0.4.0-rc.1" +cw-it = { git = "https://github.com/apollodao/cw-it.git", branch = "dev/astroport-native-lp-tokens"} apollo-utils = "0.1.0" astroport = "2.9.0" astroport_v5 = { package = "astroport", version = "5.1.0" } @@ -50,3 +50,4 @@ lto = true opt-level = 3 overflow-checks = true rpath = false + diff --git a/cw-dex-astroport/tests/astroport_tests.rs b/cw-dex-astroport/tests/astroport_tests.rs index b6dfa02..5f4a7e7 100644 --- a/cw-dex-astroport/tests/astroport_tests.rs +++ b/cw-dex-astroport/tests/astroport_tests.rs @@ -1,4 +1,6 @@ mod tests { + use std::str::FromStr; + use apollo_cw_asset::{Asset, AssetInfo, AssetInfoBase, AssetList}; use apollo_utils::assets::separate_natives_and_cw20s; use apollo_utils::coins::coin_from_str; @@ -6,11 +8,11 @@ mod tests { use astroport::factory::PairType; use astroport_v5::asset::Asset as AstroportAsset; use cosmwasm_std::{assert_approx_eq, coin, coins, Addr, Coin, SubMsgResponse, Uint128}; - use cw_it::cw_multi_test::{StargateKeeper, StargateMessageHandler}; use cw_dex_test_contract::msg::{AstroportExecuteMsg, ExecuteMsg, QueryMsg}; use cw_dex_test_helpers::astroport::setup_pool_and_test_contract; use cw_dex_test_helpers::{cw20_balance_query, cw20_transfer, query_asset_balance}; use cw_it::astroport::utils::AstroportContracts; + use cw_it::cw_multi_test::{StargateKeeper, StargateMessageHandler}; use cw_it::helpers::Unwrap; use cw_it::multi_test::modules::TokenFactory; use cw_it::multi_test::MultiTestRunner; @@ -27,7 +29,7 @@ mod tests { #[cfg(feature = "osmosis-test-tube")] use cw_it::osmosis_test_tube::OsmosisTestApp; - pub const DENOM_CREATION_FEE: &str = "0uosmo"; + pub const DENOM_CREATION_FEE: &str = "10000000uosmo"; const TOKEN_FACTORY: &TokenFactory = &TokenFactory::new("factory", 32, 16, 59 + 16, DENOM_CREATION_FEE); pub fn get_test_runner<'a>() -> OwnedTestRunner<'a> { @@ -66,6 +68,7 @@ mod tests { initial_liquidity, 2, TEST_CONTRACT_WASM_FILE_PATH, + &[Coin::from_str(DENOM_CREATION_FEE).unwrap()], ) }