diff --git a/Cargo.lock b/Cargo.lock index 7ed0f98b..71bad8bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -214,7 +214,7 @@ dependencies = [ "cw-storage-plus", "cw-utils", "cw2", - "injective-cosmwasm 0.3.0", + "injective-cosmwasm 0.3.1", "injective-math 0.3.0", "injective-std 1.13.0", "prost 0.12.6", @@ -957,7 +957,7 @@ dependencies = [ "cosmwasm-std 2.1.3", "cw-storage-plus", "cw2", - "injective-cosmwasm 0.3.0", + "injective-cosmwasm 0.3.1", "schemars", "serde 1.0.210", "thiserror", @@ -1567,36 +1567,36 @@ dependencies = [ [[package]] name = "injective-cosmwasm" version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23e93e9438844b10add3eb40ed1e8c92689824ac080d207f856412a73551c221" dependencies = [ - "cosmwasm-schema 1.5.7", "cosmwasm-std 2.1.3", "cw-storage-plus", "ethereum-types", "hex", - "injective-math 0.3.0", + "injective-math 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "schemars", "serde 1.0.210", - "serde-json-wasm 1.0.1", "serde_repr", - "serde_test", "subtle-encoding", "tiny-keccak", ] [[package]] name = "injective-cosmwasm" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23e93e9438844b10add3eb40ed1e8c92689824ac080d207f856412a73551c221" +version = "0.3.1" dependencies = [ + "cosmwasm-schema 1.5.7", "cosmwasm-std 2.1.3", "cw-storage-plus", "ethereum-types", "hex", - "injective-math 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "injective-math 0.3.0", "schemars", "serde 1.0.210", + "serde-json-wasm 1.0.1", "serde_repr", + "serde_test", "subtle-encoding", "tiny-keccak", ] @@ -1610,7 +1610,7 @@ dependencies = [ "cosmwasm-std 2.1.3", "cw-storage-plus", "cw2", - "injective-cosmwasm 0.3.0", + "injective-cosmwasm 0.3.1", "injective-math 0.3.0", "injective-std 1.13.0", "injective-test-tube", @@ -1631,7 +1631,7 @@ dependencies = [ "cosmwasm-std 2.1.3", "cw-storage-plus", "cw2", - "injective-cosmwasm 0.3.0", + "injective-cosmwasm 0.3.1", "injective-math 0.3.0", "injective-std 1.13.0", "injective-test-tube", @@ -1738,7 +1738,7 @@ dependencies = [ "cosmrs", "cosmwasm-std 2.1.3", "hex", - "injective-cosmwasm 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "injective-cosmwasm 0.3.0", "injective-std 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", "prost 0.12.6", "serde 1.0.210", @@ -1749,13 +1749,13 @@ dependencies = [ [[package]] name = "injective-testing" -version = "1.1.0" +version = "1.1.1" dependencies = [ "anyhow", "base64 0.21.7", "cosmwasm-std 2.1.3", "cw-multi-test", - "injective-cosmwasm 0.3.0", + "injective-cosmwasm 0.3.1", "injective-math 0.3.0", "injective-std 1.13.0", "injective-test-tube", diff --git a/packages/injective-cosmwasm/CHANGELOG.md b/packages/injective-cosmwasm/CHANGELOG.md index 1f026c83..eba4bdb4 100644 --- a/packages/injective-cosmwasm/CHANGELOG.md +++ b/packages/injective-cosmwasm/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.3.1] - 2024-10-02 + +### Fixed + +- Add min notional to markets + ## [0.2.24] - 2024-08-01 ### Changed diff --git a/packages/injective-cosmwasm/Cargo.toml b/packages/injective-cosmwasm/Cargo.toml index a318d3fc..971bb7fd 100644 --- a/packages/injective-cosmwasm/Cargo.toml +++ b/packages/injective-cosmwasm/Cargo.toml @@ -6,7 +6,7 @@ license = "Apache-2.0" name = "injective-cosmwasm" readme = "README.md" repository = "https://github.com/InjectiveLabs/cw-injective/tree/dev/packages/injective-cosmwasm" -version = "0.3.0" +version = "0.3.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/packages/injective-testing/CHANGELOG.md b/packages/injective-testing/CHANGELOG.md index f772492a..6476f48f 100644 --- a/packages/injective-testing/CHANGELOG.md +++ b/packages/injective-testing/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.1] - 2024-10-02 + +### Added + +- Added a staking denom to the mocks + ## [1.1.0] - 2024-08-23 ### Changed diff --git a/packages/injective-testing/Cargo.toml b/packages/injective-testing/Cargo.toml index 45fb841a..a3615510 100644 --- a/packages/injective-testing/Cargo.toml +++ b/packages/injective-testing/Cargo.toml @@ -5,16 +5,16 @@ 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 } base64 = { workspace = true } cosmwasm-std = { workspace = true } cw-multi-test = { workspace = true } -injective-cosmwasm = { path = "../injective-cosmwasm" } -injective-math = { path = "../injective-math" } -injective-std = { path = "../injective-std" } +injective-cosmwasm = { version = "0.3.1", path = "../injective-cosmwasm" } +injective-math = { version = "0.3.0", path = "../injective-math" } +injective-std = { version = "1.13.0", path = "../injective-std" } injective-test-tube = { workspace = true } prost = { workspace = true } rand = { workspace = true } diff --git a/packages/injective-testing/src/mocks.rs b/packages/injective-testing/src/mocks.rs index 26009c2d..b2bb7c7c 100644 --- a/packages/injective-testing/src/mocks.rs +++ b/packages/injective-testing/src/mocks.rs @@ -9,11 +9,13 @@ pub const MOCKED_FEE_RECIPIENT: &str = "0x01edfab47f124748dc89998eb33144af734484 pub const MOCK_EXCHANGE_DECIMALS: i32 = 18i32; pub const MOCK_BASE_DECIMALS: i32 = 18i32; +pub const MOCK_STAKE_DECIMALS: i32 = 18i32; pub const MOCK_ATOM_DECIMALS: i32 = 8i32; pub const MOCK_QUOTE_DECIMALS: i32 = 6i32; pub const MOCK_ATOM_DENOM: &str = "atom"; pub const MOCK_BASE_DENOM: &str = "inj"; +pub const MOCK_STAKE_DENOM: &str = "hinj"; 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 a2948f40..5dc33e66 100644 --- a/packages/injective-testing/src/test_tube/exchange.rs +++ b/packages/injective-testing/src/test_tube/exchange.rs @@ -1,5 +1,8 @@ use crate::{ - mocks::{MOCK_ATOM_DECIMALS, MOCK_ATOM_DENOM, MOCK_BASE_DECIMALS, MOCK_BASE_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_STAKE_DECIMALS, + MOCK_STAKE_DENOM, MOCK_USDC_DENOM, + }, utils::{dec_to_proto, scale_price_quantity_perp_market, scale_price_quantity_spot_market, str_coin}, }; @@ -551,6 +554,7 @@ pub fn execute_spot_limit_order(app: &InjectiveTestApp, market_id: String, price .init_account(&[ str_coin("1000000", MOCK_ATOM_DENOM, MOCK_ATOM_DECIMALS), str_coin("1000000", MOCK_BASE_DENOM, MOCK_BASE_DECIMALS), + str_coin("1000000", MOCK_STAKE_DENOM, MOCK_STAKE_DECIMALS), str_coin("1000000", MOCK_QUOTE_DENOM, MOCK_QUOTE_DECIMALS), str_coin("1000000", MOCK_USDC_DENOM, MOCK_QUOTE_DECIMALS), ]) @@ -634,6 +638,7 @@ 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_STAKE_DENOM, MOCK_STAKE_DECIMALS), str_coin("1000000", MOCK_QUOTE_DENOM, MOCK_QUOTE_DECIMALS), ]) .unwrap();