From 5c56d3b9a3dfd4dd4513308e4f1d4b39222e7647 Mon Sep 17 00:00:00 2001 From: maxrobot Date: Wed, 16 Oct 2024 14:20:12 +0100 Subject: [PATCH 1/3] feat: bump prost --- packages/injective-test-tube/CHANGELOG.md | 6 ++++++ packages/injective-test-tube/Cargo.toml | 10 +++++----- packages/injective-test-tube/src/module/auction.rs | 3 ++- packages/injective-test-tube/src/module/exchange.rs | 10 ++++++++-- packages/test-tube/Cargo.toml | 4 ++-- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/packages/injective-test-tube/CHANGELOG.md b/packages/injective-test-tube/CHANGELOG.md index b7b2d74..072ee12 100644 --- a/packages/injective-test-tube/CHANGELOG.md +++ b/packages/injective-test-tube/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.13.2-auction.1 - 2024-16-10 + +### Changed + +- Bumped `prost@v1.13.3` + ## 1.13.2-auction - 2024-08-10 ### Changed diff --git a/packages/injective-test-tube/Cargo.toml b/packages/injective-test-tube/Cargo.toml index af3479f..a274b44 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -4,23 +4,23 @@ edition = "2021" license = "MIT OR Apache-2.0" name = "injective-test-tube" repository = "https://github.com/InjectiveLabs/test-tube" -version = "1.13.2-auction" +version = "1.13.2-auction.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html exclude = [ "injective-core", "test_artifacts" ] [dependencies] base64 = "0.21.5" -cosmrs = { version = "0.15.0", features = [ "cosmwasm", "rpc" ] } +cosmrs = { version = "0.20.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" } -injective-std = { version = "=1.13.2-auction" } -prost = "0.12.3" +injective-std = { version = "=1.13.2-auction", path = "../../../cw-injective/packages/injective-std" } +prost = { version = "0.13.3", features = [ "prost-derive" ] } serde = "1.0.144" serde_json = "1.0.85" -test-tube-inj = { version = "2.0.1" } +test-tube-inj = { version = "2.0.1", path = "../../packages/test-tube" } thiserror = "1.0.34" [build-dependencies] diff --git a/packages/injective-test-tube/src/module/auction.rs b/packages/injective-test-tube/src/module/auction.rs index b10c9e8..c426430 100644 --- a/packages/injective-test-tube/src/module/auction.rs +++ b/packages/injective-test-tube/src/module/auction.rs @@ -64,7 +64,8 @@ mod tests { response.params, Some(Params { auction_period: 604800, - min_next_bid_increment_rate: 2_500_000_000_000_000u128.to_string() + min_next_bid_increment_rate: 2_500_000_000_000_000u128.to_string(), + inj_basket_max_cap: "".to_string(), }) ); diff --git a/packages/injective-test-tube/src/module/exchange.rs b/packages/injective-test-tube/src/module/exchange.rs index 66849b0..68bcdf0 100644 --- a/packages/injective-test-tube/src/module/exchange.rs +++ b/packages/injective-test-tube/src/module/exchange.rs @@ -175,7 +175,9 @@ mod tests { sender: signer.address(), ticker: "INJ/USDT".to_owned(), base_denom: "inj".to_owned(), + base_decimals: 18u32, quote_denom: "usdt".to_owned(), + quote_decimals: 6u32, min_price_tick_size: "10000".to_owned(), min_quantity_tick_size: "100000".to_owned(), min_notional: "1".to_owned(), @@ -190,7 +192,9 @@ mod tests { sender: signer.address(), ticker: "INJ/USDT".to_owned(), base_denom: "inj".to_owned(), + base_decimals: 18u32, quote_denom: "usdt".to_owned(), + quote_decimals: 6u32, min_price_tick_size: "10000".to_owned(), min_quantity_tick_size: "100000".to_owned(), min_notional: "1".to_owned(), @@ -209,8 +213,10 @@ mod tests { let expected_response = v1beta1::QuerySpotMarketsResponse { markets: vec![v1beta1::SpotMarket { ticker: "INJ/USDT".to_string(), - base_denom: "inj".to_string(), - quote_denom: "usdt".to_string(), + base_denom: "inj".to_owned(), + base_decimals: 18u32, + quote_denom: "usdt".to_owned(), + quote_decimals: 6u32, maker_fee_rate: "-100000000000000".to_string(), taker_fee_rate: "1000000000000000".to_string(), relayer_fee_share_rate: "400000000000000000".to_string(), diff --git a/packages/test-tube/Cargo.toml b/packages/test-tube/Cargo.toml index b98adbb..a0c42cd 100644 --- a/packages/test-tube/Cargo.toml +++ b/packages/test-tube/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT OR Apache-2.0" name = "test-tube-inj" repository = "https://github.com/InjectiveLabs/test-tube" -version = "2.0.1" +version = "2.0.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,7 +12,7 @@ version = "2.0.1" base64 = "0.21.5" cosmrs = { version = "0.20.0", features = [ "cosmwasm", "rpc" ] } cosmwasm-std = { version = "2.1.0", features = [ "abort", "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } -prost = { version = "0.13.3", default-features = false, features = [ "prost-derive" ] } +prost = { version = "0.13.3", features = [ "prost-derive" ] } serde = "1.0.144" serde_json = "1.0.85" thiserror = "1.0.34" From f974802f6bbaa77c0985ad5a2a217b5cd217a125 Mon Sep 17 00:00:00 2001 From: maxrobot Date: Wed, 16 Oct 2024 14:21:09 +0100 Subject: [PATCH 2/3] chore:changelog --- packages/injective-test-tube/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/injective-test-tube/Cargo.toml b/packages/injective-test-tube/Cargo.toml index a274b44..224107f 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -20,7 +20,7 @@ injective-std = { version = "=1.13.2-auction", path = "../../../cw-injectiv prost = { version = "0.13.3", features = [ "prost-derive" ] } serde = "1.0.144" serde_json = "1.0.85" -test-tube-inj = { version = "2.0.1", path = "../../packages/test-tube" } +test-tube-inj = { version = "2.0.2" } thiserror = "1.0.34" [build-dependencies] From a0532f540586b4621321549dae446edfbe1bc9c9 Mon Sep 17 00:00:00 2001 From: maxrobot Date: Wed, 16 Oct 2024 14:22:16 +0100 Subject: [PATCH 3/3] fixed relative path --- packages/injective-test-tube/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/injective-test-tube/Cargo.toml b/packages/injective-test-tube/Cargo.toml index 224107f..0f50e63 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -16,7 +16,7 @@ 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" } -injective-std = { version = "=1.13.2-auction", path = "../../../cw-injective/packages/injective-std" } +injective-std = { version = "=1.13.2-auction" } prost = { version = "0.13.3", features = [ "prost-derive" ] } serde = "1.0.144" serde_json = "1.0.85"