diff --git a/Cargo.lock b/Cargo.lock index e214f2e8..ac11cb2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1731,7 +1731,7 @@ dependencies = [ [[package]] name = "injective-testing" -version = "1.1.0" +version = "1.1.1" dependencies = [ "anyhow", "base64 0.13.1", diff --git a/packages/injective-testing/Cargo.toml b/packages/injective-testing/Cargo.toml index 6b1a7a69..57823ee8 100644 --- a/packages/injective-testing/Cargo.toml +++ b/packages/injective-testing/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "injective-testing" repository = "https://github.com/InjectiveLabs/cw-injective/tree/dev/packages/injective-testing" -version = "1.1.0" +version = "1.1.1" [dependencies] anyhow = { workspace = true } diff --git a/packages/injective-testing/src/mocks.rs b/packages/injective-testing/src/mocks.rs index acd84732..c51e574d 100644 --- a/packages/injective-testing/src/mocks.rs +++ b/packages/injective-testing/src/mocks.rs @@ -13,8 +13,7 @@ pub const MOCK_ATOM_DECIMALS: i32 = 8i32; pub const MOCK_QUOTE_DECIMALS: i32 = 6i32; pub const MOCK_ATOM_DENOM: &str = "atom"; -pub const MOCK_GAS_DENOM: &str = "inj"; -pub const MOCK_BASE_DENOM: &str = "ubase"; +pub const MOCK_BASE_DENOM: &str = "inj"; pub const MOCK_QUOTE_DENOM: &str = "usdt"; pub const MOCK_USDC_DENOM: &str = "usdc"; diff --git a/packages/injective-testing/src/test_tube/exchange.rs b/packages/injective-testing/src/test_tube/exchange.rs index d0ff0865..9fe74e51 100644 --- a/packages/injective-testing/src/test_tube/exchange.rs +++ b/packages/injective-testing/src/test_tube/exchange.rs @@ -1,8 +1,5 @@ use crate::{ - mocks::{ - MOCK_ATOM_DECIMALS, MOCK_ATOM_DENOM, MOCK_BASE_DECIMALS, MOCK_BASE_DENOM, MOCK_GAS_DENOM, MOCK_QUOTE_DECIMALS, MOCK_QUOTE_DENOM, - MOCK_USDC_DENOM, - }, + mocks::{MOCK_ATOM_DECIMALS, MOCK_ATOM_DENOM, MOCK_BASE_DECIMALS, MOCK_BASE_DENOM, MOCK_QUOTE_DECIMALS, MOCK_QUOTE_DENOM, MOCK_USDC_DENOM}, utils::{dec_to_proto, scale_price_quantity_perp_market, scale_price_quantity_spot_market, str_coin}, }; @@ -553,7 +550,6 @@ pub fn execute_spot_limit_order(app: &InjectiveTestApp, market_id: String, price let trader = app .init_account(&[ str_coin("1000000", MOCK_ATOM_DENOM, MOCK_ATOM_DECIMALS), - str_coin("1000000", MOCK_GAS_DENOM, MOCK_BASE_DECIMALS), str_coin("1000000", MOCK_BASE_DENOM, MOCK_BASE_DECIMALS), str_coin("1000000", MOCK_QUOTE_DENOM, MOCK_QUOTE_DECIMALS), str_coin("1000000", MOCK_USDC_DENOM, MOCK_QUOTE_DECIMALS), @@ -638,7 +634,6 @@ pub fn execute_derivative_limit_order( .init_account(&[ str_coin("1000000", MOCK_ATOM_DENOM, MOCK_ATOM_DECIMALS), str_coin("1000000", MOCK_BASE_DENOM, MOCK_BASE_DECIMALS), - str_coin("1000000", MOCK_GAS_DENOM, MOCK_BASE_DECIMALS), str_coin("1000000", MOCK_QUOTE_DENOM, MOCK_QUOTE_DECIMALS), ]) .unwrap();