Skip to content

Commit

Permalink
fix: switch denoms
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed Aug 30, 2024
1 parent b442784 commit 1837a84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/injective-testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 1 addition & 2 deletions packages/injective-testing/src/mocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
7 changes: 1 addition & 6 deletions packages/injective-testing/src/test_tube/exchange.rs
Original file line number Diff line number Diff line change
@@ -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},
};

Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 1837a84

Please sign in to comment.