From 9cdd75f30f5273ab57573a039de4a72e4e516279 Mon Sep 17 00:00:00 2001 From: jose Date: Mon, 15 Jun 2026 21:35:37 +0200 Subject: [PATCH 1/3] Bump Injective test tube to v1.20.0 --- Cargo.lock | 38 +++------- packages/injective-test-tube/CHANGELOG.md | 14 ++++ packages/injective-test-tube/Cargo.toml | 8 +-- packages/injective-test-tube/build.rs | 4 +- .../libinjectivetesttube/go.mod | 37 +++++----- .../libinjectivetesttube/go.sum | 70 +++++++++---------- .../libinjectivetesttube/testenv/setup.go | 25 ++----- .../injective-test-tube/src/module/auction.rs | 4 +- .../src/module/exchange.rs | 1 + .../injective-test-tube/src/module/oracle.rs | 4 ++ packages/test-tube/Cargo.toml | 2 +- packages/test-tube/src/runner/app.rs | 4 +- packages/test-tube/src/runner/result.rs | 2 +- 13 files changed, 97 insertions(+), 116 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 32c05f7..83ccf42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1733,9 +1733,9 @@ dependencies = [ [[package]] name = "injective-cosmwasm" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f0fc1345be5ca8c1bf7bcc7215b581cbef6a13a73e62fa390dc2be122183363" +checksum = "5a172a9ee576d6d00d86119766cd3b5b8dbbd757c13ed2440225986a55bce941" dependencies = [ "cosmwasm-std 3.0.5", "cw-storage-plus 3.0.1", @@ -1751,9 +1751,9 @@ dependencies = [ [[package]] name = "injective-math" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c04b6ee8f956b14b48b554acb8c70389f7ef614b8f1cdab9c1b8e87651ff8c8b" +checksum = "f830683c4408bc3046d3ee6aeef82cf1fcccdb85e0dd7c6ebc8b50ee7ef462f6" dependencies = [ "cosmwasm-std 3.0.5", "primitive-types", @@ -1763,9 +1763,9 @@ dependencies = [ [[package]] name = "injective-std" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2313d53947ef805df990c67ff94ffa7b2eb02b1f8bdb5ff01539419bb1f0d736" +checksum = "31c948f99e2a1783e4c0168fd3f5ea15c6dbe8a112f3e2fc360a04941da97ca5" dependencies = [ "chrono", "cosmwasm-std 3.0.5", @@ -1779,9 +1779,9 @@ dependencies = [ [[package]] name = "injective-std-derive" -version = "1.16.4-1" +version = "1.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d641a3aac0c25e166670df2a94293a508293639711e8ac29a7b48223eaf0af2e" +checksum = "1de432e1d74b25b99dda0af277c0af0e6f28ab34daf27c5745349ece821861d6" dependencies = [ "cosmwasm-std 3.0.5", "itertools 0.14.0", @@ -1792,7 +1792,7 @@ dependencies = [ [[package]] name = "injective-test-tube" -version = "1.19.0" +version = "1.20.0" dependencies = [ "bindgen", "cosmrs", @@ -1806,7 +1806,7 @@ dependencies = [ "serde", "serde_json", "sha3", - "test-tube-inj 2.0.10 (registry+https://github.com/rust-lang/crates.io-index)", + "test-tube-inj", ] [[package]] @@ -3182,23 +3182,7 @@ dependencies = [ [[package]] name = "test-tube-inj" -version = "2.0.10" -dependencies = [ - "base64 0.21.7", - "cosmrs", - "cosmwasm-std 3.0.5", - "k256", - "prost", - "serde_json", - "sha3", - "thiserror", -] - -[[package]] -name = "test-tube-inj" -version = "2.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36156086ca5edd5da0d000432782a6818e9db8da4d97b1d7717304e543388c5f" +version = "2.0.11" dependencies = [ "base64 0.21.7", "cosmrs", diff --git a/packages/injective-test-tube/CHANGELOG.md b/packages/injective-test-tube/CHANGELOG.md index fb294cd..36ce648 100644 --- a/packages/injective-test-tube/CHANGELOG.md +++ b/packages/injective-test-tube/CHANGELOG.md @@ -5,6 +5,20 @@ 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.20.0 - 2026-06-15 + +### Changed + +- Bumped `injective-core@v1.20.0` +- Bumped `injective-std@=1.20.0` +- Bumped `injective-cosmwasm@0.3.7`, including transitive `injective-math@0.3.7` +- Bumped `test-tube-inj@2.0.11` + +### Fixed + +- Updated test app bootstrap for the `injective-core@v1.20.0` app config API +- Updated exchange and oracle test compatibility for new `injective-std@1.20.0` fields + ## 1.19.0 - 2026-04-29 ### Added diff --git a/packages/injective-test-tube/Cargo.toml b/packages/injective-test-tube/Cargo.toml index 478c1fd..43469e1 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -4,7 +4,7 @@ edition = "2021" license = "MIT OR Apache-2.0" name = "injective-test-tube" repository = "https://github.com/InjectiveLabs/test-tube" -version = "1.19.0" +version = "1.20.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html exclude = [ "injective-core", "test_artifacts" ] @@ -12,15 +12,15 @@ exclude = [ "injective-core", "test_artifacts" ] [dependencies] cosmrs = { version = "0.22.0", features = [ "cosmwasm", "rpc" ] } cosmwasm-std = { version = "3.0.5", features = [ "cosmwasm_1_2", "cosmwasm_1_3", "cosmwasm_1_4", "cosmwasm_2_0", "iterator", "stargate" ] } -injective-cosmwasm = { version = "0.3.6" } -injective-std = { version = "=1.19.0" } +injective-cosmwasm = { version = "0.3.7" } +injective-std = { version = "=1.20.0" } k256 = { version = "0.13.3" } prost = { version = "0.13.5", features = [ "derive" ] } rlp = "0.5.2" serde = "1.0.144" serde_json = "1.0.85" sha3 = { version = "0.10.8" } -test-tube-inj = { version = "2.0.10" } +test-tube-inj = { version = "2.0.11", path = "../test-tube" } [build-dependencies] bindgen = "0.60.1" diff --git a/packages/injective-test-tube/build.rs b/packages/injective-test-tube/build.rs index 4aa6e87..363ab03 100644 --- a/packages/injective-test-tube/build.rs +++ b/packages/injective-test-tube/build.rs @@ -16,7 +16,7 @@ fn main() { .join("artifacts") .join("libinjectivetesttube.docrs.h") } else { - out_dir.join(format!("lib{}.h", lib_name)) + out_dir.join(format!("lib{lib_name}.h")) }; // rerun when go code is updated emit_rerun_if_changed(&manifest_dir.join("libinjectivetesttube")); @@ -67,7 +67,7 @@ fn main() { // disable linking if docrs if std::env::var("DOCS_RS").is_err() { - println!("cargo:rustc-link-lib=dylib={}", lib_name); + println!("cargo:rustc-link-lib=dylib={lib_name}"); } // The bindgen::Builder is the main entry point diff --git a/packages/injective-test-tube/libinjectivetesttube/go.mod b/packages/injective-test-tube/libinjectivetesttube/go.mod index cf2a488..79e4c06 100644 --- a/packages/injective-test-tube/libinjectivetesttube/go.mod +++ b/packages/injective-test-tube/libinjectivetesttube/go.mod @@ -12,6 +12,7 @@ require ( github.com/cosmos/cosmos-db v1.1.1 github.com/cosmos/cosmos-sdk v0.50.14 github.com/cosmos/gogoproto v1.7.0 + github.com/ethereum/go-ethereum v1.15.7 github.com/pkg/errors v0.9.1 ) @@ -27,15 +28,13 @@ require ( cosmossdk.io/x/tx v0.13.8 // indirect cosmossdk.io/x/upgrade v0.1.4 // indirect github.com/CosmWasm/wasmvm/v2 v2.1.5 // indirect - github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.8 // indirect - github.com/bcp-innovations/hyperlane-cosmos v1.0.1 // indirect + github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.9 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 v8.2.0 // indirect github.com/cosmos/ibc-apps/modules/ibc-hooks/v8 v8.0.0 // indirect github.com/cosmos/ibc-go/modules/capability v1.0.1 // indirect github.com/cosmos/ibc-go/v8 v8.7.0 // indirect - github.com/ethereum/go-ethereum v1.15.7 github.com/ferranbt/fastssz v0.1.4 // indirect github.com/go-jose/go-jose/v4 v4.1.1 // indirect github.com/go-test/deep v1.0.7 // indirect @@ -149,7 +148,6 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.3.0 // indirect github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect - github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gofrs/flock v0.12.1 // indirect github.com/gogo/googleapis v1.4.1 // indirect @@ -274,26 +272,25 @@ require ( ) replace ( - cosmossdk.io/api => github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.9 - cosmossdk.io/client/v2 => github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.9 - cosmossdk.io/core => github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.9 - cosmossdk.io/errors => github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.9 - cosmossdk.io/store => github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.9 - cosmossdk.io/x/circuit => github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.9 - cosmossdk.io/x/evidence => github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.9 - cosmossdk.io/x/feegrant => github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.9 - cosmossdk.io/x/nft => github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.9 - cosmossdk.io/x/tx => github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.9 - cosmossdk.io/x/upgrade => github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.9 + cosmossdk.io/api => github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.10 + cosmossdk.io/client/v2 => github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.10 + cosmossdk.io/core => github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.10 + cosmossdk.io/errors => github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.10 + cosmossdk.io/store => github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.10 + cosmossdk.io/x/circuit => github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.10 + cosmossdk.io/x/evidence => github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.10 + cosmossdk.io/x/feegrant => github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.10 + cosmossdk.io/x/nft => github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.10 + cosmossdk.io/x/tx => github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.10 + cosmossdk.io/x/upgrade => github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.10 github.com/CosmWasm/wasmd => github.com/InjectiveLabs/wasmd v0.53.3-inj.3 - github.com/InjectiveLabs/injective-core => github.com/InjectiveFoundation/injective-core v1.19.0 - github.com/bcp-innovations/hyperlane-cosmos => github.com/InjectiveLabs/hyperlane-cosmos v1.0.1-inj + github.com/InjectiveLabs/injective-core => github.com/InjectiveFoundation/injective-core v1.20.0 github.com/coder/websocket => github.com/InjectiveLabs/websocket v1.8.13 - github.com/cometbft/cometbft => github.com/InjectiveLabs/cometbft v1.0.1-inj.7 - github.com/cometbft/cometbft/api => github.com/InjectiveLabs/cometbft/api v1.0.0-inj.3 - github.com/cosmos/cosmos-sdk => github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.9 + github.com/cometbft/cometbft => github.com/InjectiveLabs/cometbft v1.0.1-inj.v1.19.0-rollback + github.com/cometbft/cometbft/api => github.com/InjectiveLabs/cometbft/api v1.0.1-inj.v1.19.0-rollback + github.com/cosmos/cosmos-sdk => github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.10 github.com/cosmos/gogoproto => github.com/InjectiveLabs/gogoproto v1.7.2-inj.2 github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v8 => github.com/InjectiveLabs/ibc-apps/middleware/packet-forward-middleware/v8 v8.2.0-inj.4 diff --git a/packages/injective-test-tube/libinjectivetesttube/go.sum b/packages/injective-test-tube/libinjectivetesttube/go.sum index dc2f791..f9f1819 100644 --- a/packages/injective-test-tube/libinjectivetesttube/go.sum +++ b/packages/injective-test-tube/libinjectivetesttube/go.sum @@ -1247,44 +1247,42 @@ github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0 github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.48.1/go.mod h1:0wEl7vrAD8mehJyohS9HZy+WyEOaQO2mJx86Cvh93kM= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 h1:8nn+rsCvTq9axyEh382S0PFLBeaFwNsT43IrPWzctRU= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1/go.mod h1:viRWSEhtMZqz1rhwmOVKkWl6SwmVowfL9O2YR5gI2PE= -github.com/InjectiveFoundation/injective-core v1.19.0 h1:/Z0AaxB5BrlcUf9WE+WyrXfsmhCkOj7dPUZo0IiUDNs= -github.com/InjectiveFoundation/injective-core v1.19.0/go.mod h1:AfEB/rfMd3rOgGclOWd4XUEDjeSa8BHZp+S/oEj89vI= +github.com/InjectiveFoundation/injective-core v1.20.0 h1:PGXtr6z457kxii0BU4U0Lwoj6QdcSi0Ov8iAnXpr21o= +github.com/InjectiveFoundation/injective-core v1.20.0/go.mod h1:CXwb3dIj7Nu/FwwJnYzmyZpyC9Zo7puU9qaJY/MZ7Wo= github.com/InjectiveLabs/block-sdk/v2 v2.5.1-inj.10 h1:kt3aYExxXLVf4WYrHPJAmyLY08kqiLWzWJst4C8ad5A= github.com/InjectiveLabs/block-sdk/v2 v2.5.1-inj.10/go.mod h1:CUI+qUNuWG1LbWIz6+ZV5o2K3aOf0NUTuHmHBUgtswA= -github.com/InjectiveLabs/cometbft v1.0.1-inj.7 h1:TjiWFNOd7EcIw4hJV4T4pXSsXuF/kYJxYJkHGbVCZ5E= -github.com/InjectiveLabs/cometbft v1.0.1-inj.7/go.mod h1:GjHzF+48UzwdWUUG4uUD+e52h2L6Pq9rK4eL+oYIyBU= -github.com/InjectiveLabs/cometbft/api v1.0.0-inj.3 h1:nr+WvziQ0eehb9i0A85KCb71JjWQh+oIKF18946NEcE= -github.com/InjectiveLabs/cometbft/api v1.0.0-inj.3/go.mod h1:rr73UKPAv9CIvQBxZZ3KEVGIl2BUpOncx1krVXmOg1g= -github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.9 h1:Ai9eyJYdMkF8BU3sUVhyU6kie922glMNddNKfUQkf24= -github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.9/go.mod h1:cA6OCt8K1z4ljh2fP1Cs4pWD6z91eqICBHX3wR10gRs= -github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.9 h1:xieSSYRgj1t6Nb1bCuBk7c3zKeWAMVDDH4dH3C2YmXQ= -github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.9/go.mod h1:Su9HBAPf65TPBWBRnMm6awh1Il6kBTAO1NS0Ik9sap4= -github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.9 h1:KGC7nV8AfhG1Tn79DiXPV5kFRcnsgWFf3MgrbZp6fGk= -github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.9/go.mod h1:QJZ82NlQuURsQSZET6Q1+I6DoV3mYmfZj9onL57kYSo= -github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.9 h1:gFBQCHTn2AWBd/52khOG9haQayRIidSB/Rwe4SjuifE= -github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.9/go.mod h1:s+X5H5pETn5sQPsF8IrMn644+IigC1fw2yh2s0cf83U= -github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.9 h1:2qfeuogm15ZJAq9xzgAhEFRF4Py8HoVGeXmNX0LUBgw= -github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.9/go.mod h1:K3Fpn9YUxmoZz/lMED2hh7vPtuRnPtCY8ug6/p5VFVI= -github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.9 h1:C1JO4wTlmQvfGAAPJcV3dVLPxPPDH6emQN8hDdtLQW8= -github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.9/go.mod h1:gNVXH6m4CpqVqn5roNoVHBiRhh48/iSg/BUhDKRqBaI= -github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.9 h1:nJed4WjOemfFDEunf+yZU9AJ4gLYW8InPOFIy1dFiUo= -github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.9/go.mod h1:u52/H5dsTA7bNmp4X1CdQnnMVmSKim0YAT6tuHLwARM= -github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.9 h1:B1irkGEAbDR5G/ravEWTbuzqsHpWYNwcAKFR3Ox1E/Y= -github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.9/go.mod h1:h7YtlrO8KWgxUb6huvSGkzfIQ7bccrJm8rg6rX4tjY0= -github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.9 h1:fHEzi9QPmDT5n2DvNdC6qymf/ent5pYPuMC7v2kYWGk= -github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.9/go.mod h1:ZpC411WtHITXC+T/XJCLLviCCiMctN3L/n3+e/gg+xc= -github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.9 h1:8dJVUo0vwD1kbW7ui5nGbDHbB2l4WnFCLx7UxM5l4HA= -github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.9/go.mod h1:gGylc6YfEJoZ+vkPXWtfyXs4Rc89crTKZmwPHXFKERE= -github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.9 h1:nj/ko5JMVZBOLH/hx4TeLHXf1SqNV2IWGthB+AojdKA= -github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.9/go.mod h1:CfziCW45jOIDlEvf2lCakmxAnH+ECivzQJFcIKBpz/o= -github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.9 h1:oXgwKpbWc8GWMiCq+ycTK1JgBS3uAJ5FM8bShiNNNmc= -github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.9/go.mod h1:O6Aw22f7GaCeChDZ3VmhFiD6RCGo2grZsmJikg9qMiA= +github.com/InjectiveLabs/cometbft v1.0.1-inj.v1.19.0-rollback h1:otJtsxbZ0b4GMCM0ARhjlGIr9tznyqqijYsL/HydQBs= +github.com/InjectiveLabs/cometbft v1.0.1-inj.v1.19.0-rollback/go.mod h1:GjHzF+48UzwdWUUG4uUD+e52h2L6Pq9rK4eL+oYIyBU= +github.com/InjectiveLabs/cometbft/api v1.0.1-inj.v1.19.0-rollback h1:GoMfLIjcNcd14Beb9IG4u4HiUdPidQEi3Q0ex0u92Gk= +github.com/InjectiveLabs/cometbft/api v1.0.1-inj.v1.19.0-rollback/go.mod h1:rr73UKPAv9CIvQBxZZ3KEVGIl2BUpOncx1krVXmOg1g= +github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.10 h1:6eo8STFu88BH3tfdbXJxG+bxgo+mMpxruZ2Jgr5wQyw= +github.com/InjectiveLabs/cosmos-sdk v0.50.14-inj.10/go.mod h1:tBEDKVTtetab2qPSeE3d9wAZcCU+rCKs15MXQEA9ui0= +github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.10 h1:cEHx3HIZ2K5qSqW9/BdyP1XLjM1/SFaob26I85KeiwM= +github.com/InjectiveLabs/cosmos-sdk/api v0.50.14-inj.10/go.mod h1:Su9HBAPf65TPBWBRnMm6awh1Il6kBTAO1NS0Ik9sap4= +github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.10 h1:f6Qv0D+GGOCz8vlNe/2CFfz5lAi+qAbNy8dfqyOCbx0= +github.com/InjectiveLabs/cosmos-sdk/client/v2 v2.0.0-v0.50.14-inj.10/go.mod h1:QJZ82NlQuURsQSZET6Q1+I6DoV3mYmfZj9onL57kYSo= +github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.10 h1:gyIebD9AzM2RknqFPQbFtR1LTywupay+IFVO2ltZq10= +github.com/InjectiveLabs/cosmos-sdk/core v0.50.14-inj.10/go.mod h1:s+X5H5pETn5sQPsF8IrMn644+IigC1fw2yh2s0cf83U= +github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.10 h1:AGAb4sAUg5AmHJG/dL5W6j2p4j/c5y4WJXfJTA3Ezao= +github.com/InjectiveLabs/cosmos-sdk/errors v0.50.14-inj.10/go.mod h1:K3Fpn9YUxmoZz/lMED2hh7vPtuRnPtCY8ug6/p5VFVI= +github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.10 h1:naaEVWGKV30xrBIPGn/MtXDZBwRYs2ioxjkQm6t3zEc= +github.com/InjectiveLabs/cosmos-sdk/store v0.50.14-inj.10/go.mod h1:j46KQvf2/Ht1Ryj2wS3x9iHdFRY+HoeF6dnkHhGQPj4= +github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.10 h1:pJ6IGLbzeRWyQLcMd1qseGeqxDxjeIeaLVr/qMbvx/8= +github.com/InjectiveLabs/cosmos-sdk/x/circuit v0.50.14-inj.10/go.mod h1:lnLi9vT+DRpGC6+Jz6BNmJJ7gFx9t8wNYJ/GcpPPVjc= +github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.10 h1:qNfMCxZQiIYe1Gn6l8Qu3NO9dpdruUP4cuhElWwMW74= +github.com/InjectiveLabs/cosmos-sdk/x/evidence v0.50.14-inj.10/go.mod h1:VFUXb+XeZxoOcqr6thh1TI3iH1JaJqYMaiLOupyihh8= +github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.10 h1:GF55cpiconqO/PNix9jg/8MaM5QxojqupQgu8gDnJ1k= +github.com/InjectiveLabs/cosmos-sdk/x/feegrant v0.50.14-inj.10/go.mod h1:l3foSGFCETY3SRafrNmYFKHp1iz+6YZJq6V7eOLY3Og= +github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.10 h1:OCD2TPMAdbW+dOqo1nU1iOmAieE/4a9rS1E5riA/1vw= +github.com/InjectiveLabs/cosmos-sdk/x/nft v0.50.14-inj.10/go.mod h1:GJ/Comg4RgGDb8H8TnL+AP9MeJRWbvxKrOtFXx7nADs= +github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.10 h1:cvNeCF0oj20kKity67QSWYbNHBKydXZdZE8O0yZ6Ow0= +github.com/InjectiveLabs/cosmos-sdk/x/tx v0.50.14-inj.10/go.mod h1:CfziCW45jOIDlEvf2lCakmxAnH+ECivzQJFcIKBpz/o= +github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.10 h1:IN6Zo7ZX40b4G1OHwtPKzuDxgmwpt6WEU77jNgpy2yg= +github.com/InjectiveLabs/cosmos-sdk/x/upgrade v0.50.14-inj.10/go.mod h1:tl5wsRQDcu1rmrml65kkapsmQKM5xrQTiOwBDJfi5RA= github.com/InjectiveLabs/go-ethereum v1.16.3-inj.2 h1:20SwI6J3SU2Y2NRq6kUVdBZbWuJU/hAd2+eDje50z2A= github.com/InjectiveLabs/go-ethereum v1.16.3-inj.2/go.mod h1:Lrsc6bt9Gm9RyvhfFK53vboCia8kpF9nv+2Ukntnl+8= github.com/InjectiveLabs/gogoproto v1.7.2-inj.2 h1:m79pFc+EheCbZms2N0WdG0aYJjQNvEtq5uM6dNhyFSk= github.com/InjectiveLabs/gogoproto v1.7.2-inj.2/go.mod h1:8S7w53P1Y1cHwND64o0BnArT6RmdgIvsBuco6uTllsk= -github.com/InjectiveLabs/hyperlane-cosmos v1.0.1-inj h1:FrfheY6aFibpFK+BRM7lcKfvZY129jeqykj17T6YGuk= -github.com/InjectiveLabs/hyperlane-cosmos v1.0.1-inj/go.mod h1:qPRUSSE9RTnZYHsfLmXWn7GKy+VYmSAm52Ey6Gz4JSM= github.com/InjectiveLabs/ibc-apps/middleware/packet-forward-middleware/v8 v8.2.0-inj.4 h1:npI68nZf6druaW1b1GRqfH4w/roggcnsR4FRTxaXfSQ= github.com/InjectiveLabs/ibc-apps/middleware/packet-forward-middleware/v8 v8.2.0-inj.4/go.mod h1:6v2ugf/s/FdDXH2YFgiQDj42KTeuEbFSwCdHj+gG870= github.com/InjectiveLabs/ibc-apps/modules/ibc-hooks/v8 v8.0.0-inj.4 h1:rFcEezCMLSQcXHpYteBrHD+6P7jerr/Xn1//00hPyCM= @@ -1295,8 +1293,8 @@ github.com/InjectiveLabs/ibc-go/modules/capability v1.0.0-inj.4 h1:icQacndGsF7sp github.com/InjectiveLabs/ibc-go/modules/capability v1.0.0-inj.4/go.mod h1:9yJ97Kw1qVOlg/pL21erfBlz6AxXmaXKP2d89mL9mpg= github.com/InjectiveLabs/ibc-go/v8 v8.7.0-inj.4 h1:dD8rgHheFaJ6UhycH0ow14X5A5hJ046IcfuNSnxNQ1Y= github.com/InjectiveLabs/ibc-go/v8 v8.7.0-inj.4/go.mod h1:mJcKKRy2/b8n6bikQDeaqrx1A6Wmm3GzpbrcUEUPcqU= -github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.8 h1:zvIV7ifNcH2Dvl0RrXd2qYRkaDSc+iP0hqaAhfS85MY= -github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.8/go.mod h1:fdW28eWh1Ace92UW2TzINdJVaVP7whCmHKkGQZHsxGI= +github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.9 h1:Cp3yVXdyDo4xW9vLZi/Rt2PGgZrONAnPyoUxmEvw/Pc= +github.com/InjectiveLabs/metrics/v2 v2.0.0-beta.9/go.mod h1:fdW28eWh1Ace92UW2TzINdJVaVP7whCmHKkGQZHsxGI= github.com/InjectiveLabs/wasmd v0.53.3-inj.3 h1:lMhBgZdPoR86wTF/uiIs6M6xGzRZ2J3MN1ZGrqojmfg= github.com/InjectiveLabs/wasmd v0.53.3-inj.3/go.mod h1:c2kGlfsFstKHD6AwI9B+2K0pmOYnERz322G0vmHjalk= github.com/InjectiveLabs/websocket v1.8.13 h1:GTVddOKEzC4EfXplkCN1a6ms4l/81pYP8tocqmddvR4= @@ -1590,8 +1588,6 @@ github.com/go-pdf/fpdf v0.6.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhO github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU= github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= -github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-test/deep v1.0.7 h1:/VSMRlnY/JSyqxQUzQLKVMAskpY/NZKFA5j2P+0pP2M= github.com/go-test/deep v1.0.7/go.mod h1:QV8Hv/iy04NyLBxAdO9njL0iVPN1S4d/A3NVv1V36o8= github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= @@ -1966,8 +1962,6 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108 github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.22.2 h1:/3X8Panh8/WwhU/3Ssa6rCKqPLuAkVY2I0RoyDLySlU= -github.com/onsi/ginkgo/v2 v2.22.2/go.mod h1:oeMosUL+8LtarXBHu/c0bx2D/K9zyQ6uX3cTyztHwsk= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8= diff --git a/packages/injective-test-tube/libinjectivetesttube/testenv/setup.go b/packages/injective-test-tube/libinjectivetesttube/testenv/setup.go index e6584f1..68b5cf1 100644 --- a/packages/injective-test-tube/libinjectivetesttube/testenv/setup.go +++ b/packages/injective-test-tube/libinjectivetesttube/testenv/setup.go @@ -17,7 +17,6 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/server" - servertypes "github.com/cosmos/cosmos-sdk/server/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -31,6 +30,7 @@ import ( // injective "github.com/InjectiveLabs/injective-core/injective-chain/app" + appconfig "github.com/InjectiveLabs/injective-core/injective-chain/app/config" injcodectypes "github.com/InjectiveLabs/injective-core/injective-chain/codec/types" exchangetypes "github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types" exchangetypesv2 "github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types/v2" @@ -64,22 +64,11 @@ type TestEnv struct { NodeHome string } -type AppOptions map[string]interface{} - -func (m AppOptions) Get(key string) interface{} { - v, ok := m[key] - if !ok { - return nil - } - - return v -} - -func NewAppOptionsWithFlagHome(homePath string) servertypes.AppOptions { - return AppOptions{ - flags.FlagHome: homePath, - server.FlagTrace: true, - } +func NewAppConfigWithFlagHome(homePath string) appconfig.Config { + cfg := *appconfig.DefaultConfig() + cfg.Set(flags.FlagHome, homePath) + cfg.Set(server.FlagTrace, true) + return cfg } func NewInjectiveApp(nodeHome string) *app.InjectiveApp { @@ -89,7 +78,7 @@ func NewInjectiveApp(nodeHome string) *app.InjectiveApp { db, nil, true, - NewAppOptionsWithFlagHome(nodeHome), + NewAppConfigWithFlagHome(nodeHome), baseapp.SetChainID("injective-777"), ) } diff --git a/packages/injective-test-tube/src/module/auction.rs b/packages/injective-test-tube/src/module/auction.rs index ee39dff..1ebc058 100644 --- a/packages/injective-test-tube/src/module/auction.rs +++ b/packages/injective-test-tube/src/module/auction.rs @@ -101,9 +101,7 @@ mod tests { assert!(closing_time > 0, "closing_time should be positive"); assert!( closing_time > block_time_sec, - "closing_time ({}) should be bigger than block_time_sec ({})", - closing_time, - block_time_sec + "closing_time ({closing_time}) should be bigger than block_time_sec ({block_time_sec})" ); app.increase_time(1); diff --git a/packages/injective-test-tube/src/module/exchange.rs b/packages/injective-test-tube/src/module/exchange.rs index 6277b96..f93fb3a 100644 --- a/packages/injective-test-tube/src/module/exchange.rs +++ b/packages/injective-test-tube/src/module/exchange.rs @@ -919,6 +919,7 @@ mod tests { open_notional_cap: Some(OpenNotionalCap { cap: Some(Cap::Uncapped(OpenNotionalCapUncapped {})), }), + cross_margin_eligible: false, }, &admin, ) diff --git a/packages/injective-test-tube/src/module/oracle.rs b/packages/injective-test-tube/src/module/oracle.rs index c177f41..7260295 100644 --- a/packages/injective-test-tube/src/module/oracle.rs +++ b/packages/injective-test-tube/src/module/oracle.rs @@ -230,6 +230,10 @@ mod tests { pyth_contract: pyth_contract.address(), chainlink_verifier_proxy_contract: "".to_string(), chainlink_data_streams_verification_gas_limit: 1000000, + pyth_pro_verifier_contract: "".to_string(), + pyth_pro_verification_gas_limit: 500000, + pyth_pro_verification_fee: 1, + seda_fast_params: None, }), }, &mut buf, diff --git a/packages/test-tube/Cargo.toml b/packages/test-tube/Cargo.toml index ad22b5e..f2d3740 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.10" +version = "2.0.11" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/packages/test-tube/src/runner/app.rs b/packages/test-tube/src/runner/app.rs index d5f1ddd..7ed84d8 100644 --- a/packages/test-tube/src/runner/app.rs +++ b/packages/test-tube/src/runner/app.rs @@ -381,7 +381,7 @@ impl BaseApp { tx::SignDoc::new(&tx_body, &auth_info, &chain_id, account_number).map_err(|e| { match e.downcast::() { Ok(encode_err) => EncodeError::ProtoEncodeError(encode_err), - Err(e) => panic!("expect `prost::EncodeError` but got {:?}", e), + Err(e) => panic!("expect `prost::EncodeError` but got {e:?}"), } })?; @@ -391,7 +391,7 @@ impl BaseApp { .to_bytes() .map_err(|e| match e.downcast::() { Ok(encode_err) => EncodeError::ProtoEncodeError(encode_err), - Err(e) => panic!("expect `prost::EncodeError` but got {:?}", e), + Err(e) => panic!("expect `prost::EncodeError` but got {e:?}"), }) .map_err(RunnerError::EncodeError) } diff --git a/packages/test-tube/src/runner/result.rs b/packages/test-tube/src/runner/result.rs index bff905d..b5f8113 100644 --- a/packages/test-tube/src/runner/result.rs +++ b/packages/test-tube/src/runner/result.rs @@ -239,7 +239,7 @@ impl RawResult { 2 => RunnerError::ExecuteError { msg: content_string, }, - _ => panic!("undefined code: {}", code), + _ => panic!("undefined code: {code}"), }; Some(Self(Err(error))) } From 2cb6c3e28830b51e3592f5ee3d847f5193b8169b Mon Sep 17 00:00:00 2001 From: jose Date: Mon, 15 Jun 2026 21:44:53 +0200 Subject: [PATCH 2/3] Remove local test-tube-inj path dependency --- 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 43469e1..0e557d2 100644 --- a/packages/injective-test-tube/Cargo.toml +++ b/packages/injective-test-tube/Cargo.toml @@ -20,7 +20,7 @@ rlp = "0.5.2" serde = "1.0.144" serde_json = "1.0.85" sha3 = { version = "0.10.8" } -test-tube-inj = { version = "2.0.11", path = "../test-tube" } +test-tube-inj = { version = "2.0.11" } [build-dependencies] bindgen = "0.60.1" From 5877323c040406d0b32fe24aa69b8fc1e4648b0f Mon Sep 17 00:00:00 2001 From: jose Date: Mon, 15 Jun 2026 21:53:31 +0200 Subject: [PATCH 3/3] Resolve test-tube-inj from registry --- Cargo.lock | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 83ccf42..16f33b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1806,7 +1806,7 @@ dependencies = [ "serde", "serde_json", "sha3", - "test-tube-inj", + "test-tube-inj 2.0.11 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3194,6 +3194,22 @@ dependencies = [ "thiserror", ] +[[package]] +name = "test-tube-inj" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00f4fc723ea738896f18a633a34ebd3c70d24cf136075bfc981250aa7e781729" +dependencies = [ + "base64 0.21.7", + "cosmrs", + "cosmwasm-std 3.0.5", + "k256", + "prost", + "serde_json", + "sha3", + "thiserror", +] + [[package]] name = "textwrap" version = "0.16.2"