From db078893cccd1d48792df934fb277ab922517222 Mon Sep 17 00:00:00 2001 From: Kerber0x <94062656+kerber0x@users.noreply.github.com> Date: Thu, 27 Jun 2024 14:41:10 +0100 Subject: [PATCH] chore(white-whale-std): make ibc-denom helper public --- Cargo.lock | 40 +++++++++---------- Cargo.toml | 2 +- packages/white-whale-std/Cargo.toml | 2 +- .../white-whale-std/src/pool_network/asset.rs | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64085af9..de370cb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -541,7 +541,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -587,7 +587,7 @@ dependencies = [ "schemars", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -614,7 +614,7 @@ dependencies = [ "vault", "vault_factory", "whale-lair", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -631,7 +631,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -685,7 +685,7 @@ dependencies = [ "serde", "terraswap-pair", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -787,7 +787,7 @@ dependencies = [ "serde", "terraswap-token", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -804,7 +804,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1532,7 +1532,7 @@ dependencies = [ "serde", "stable-swap-sim", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1602,7 +1602,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1623,7 +1623,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1640,7 +1640,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1657,7 +1657,7 @@ dependencies = [ "schemars", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1733,7 +1733,7 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1754,7 +1754,7 @@ dependencies = [ "serde", "thiserror", "vault", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1776,7 +1776,7 @@ dependencies = [ "thiserror", "vault", "vault_factory", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1820,13 +1820,13 @@ dependencies = [ "semver", "serde", "thiserror", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "white-whale-testing", ] [[package]] name = "white-whale-std" -version = "1.1.4" +version = "1.1.5" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1843,9 +1843,9 @@ dependencies = [ [[package]] name = "white-whale-std" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6288f5197b4834220a801e33d84e3848eaf1bf60a07c58f90ad3f6bd366eea" +checksum = "f3015d5c0c46b6e1cf2fb02c036e8d1481174508a32572d62e6f240a4dec4077" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1872,7 +1872,7 @@ dependencies = [ "schemars", "serde", "whale-lair", - "white-whale-std 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "white-whale-std 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 90b9856e..4e2cc7ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ prost = { version = "0.11.9", default-features = false, features = [ prost-types = { version = "0.11.9", default-features = false } # for local development #white-whale-std = { path = "packages/white-whale-std" } -white-whale-std = { version = "1.1.4" } +white-whale-std = { version = "1.1.5" } white-whale-testing = { path = "./packages/white-whale-testing" } cw-multi-test = { version = "0.16.5" } uint = "0.9.5" diff --git a/packages/white-whale-std/Cargo.toml b/packages/white-whale-std/Cargo.toml index 8c758a02..f716910a 100644 --- a/packages/white-whale-std/Cargo.toml +++ b/packages/white-whale-std/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "white-whale-std" -version = "1.1.4" +version = "1.1.5" edition.workspace = true authors = [ "Kerber0x ", diff --git a/packages/white-whale-std/src/pool_network/asset.rs b/packages/white-whale-std/src/pool_network/asset.rs index c531424a..310c5477 100644 --- a/packages/white-whale-std/src/pool_network/asset.rs +++ b/packages/white-whale-std/src/pool_network/asset.rs @@ -266,7 +266,7 @@ pub fn has_factory_token(assets: &[AssetInfo]) -> bool { } /// Verifies if the given denom is an ibc token or not -fn is_ibc_token(denom: &str) -> bool { +pub fn is_ibc_token(denom: &str) -> bool { let split: Vec<&str> = denom.splitn(2, '/').collect(); if split[0] == IBC_PREFIX && split.len() == 2 {