From c950a4ff709c1549210d80cc96f5156f51207c13 Mon Sep 17 00:00:00 2001 From: Kerber0x Date: Tue, 7 May 2024 15:51:52 +0100 Subject: [PATCH] chore: remove factory flags from token_factory package --- packages/white-whale-std/src/lib.rs | 12 ++---------- packages/white-whale-std/src/tokenfactory/burn.rs | 12 ------------ packages/white-whale-std/src/tokenfactory/common.rs | 1 - .../src/tokenfactory/create_denom.rs | 13 +------------ 4 files changed, 3 insertions(+), 35 deletions(-) diff --git a/packages/white-whale-std/src/lib.rs b/packages/white-whale-std/src/lib.rs index 6af2ef3f6..d5fc73902 100644 --- a/packages/white-whale-std/src/lib.rs +++ b/packages/white-whale-std/src/lib.rs @@ -1,6 +1,6 @@ -pub mod common; - +pub mod bonding_manager; pub mod coin; +pub mod common; pub mod constants; pub mod epoch_manager; pub mod fee; @@ -12,14 +12,6 @@ pub mod migrate_guards; pub mod pool_manager; pub mod pool_network; pub mod token_factory; - -pub mod bonding_manager; - -#[cfg(any( - feature = "token_factory", - feature = "osmosis_token_factory", - feature = "injective" -))] pub mod tokenfactory; pub mod traits; pub mod vault_manager; diff --git a/packages/white-whale-std/src/tokenfactory/burn.rs b/packages/white-whale-std/src/tokenfactory/burn.rs index d372a25ba..b6c58e934 100644 --- a/packages/white-whale-std/src/tokenfactory/burn.rs +++ b/packages/white-whale-std/src/tokenfactory/burn.rs @@ -1,18 +1,6 @@ use std::str::FromStr; -#[cfg(any( - feature = "token_factory", - feature = "osmosis_token_factory", - feature = "injective" -))] use crate::tokenfactory::common::{create_msg, MsgTypes}; -#[allow(unused_imports)] -#[cfg(any( - feature = "token_factory", - feature = "osmosis_token_factory", - feature = "injective" -))] -use crate::tokenfactory::mint::MsgMint; use anybuf::{Anybuf, Bufany}; use cosmwasm_schema::cw_serde; #[allow(unused_imports)] diff --git a/packages/white-whale-std/src/tokenfactory/common.rs b/packages/white-whale-std/src/tokenfactory/common.rs index 9d10cf12b..af745aafb 100644 --- a/packages/white-whale-std/src/tokenfactory/common.rs +++ b/packages/white-whale-std/src/tokenfactory/common.rs @@ -1,4 +1,3 @@ -#[cfg(feature = "token_factory")] use cosmwasm_schema::cw_serde; use cosmwasm_std::{CosmosMsg, StdResult}; diff --git a/packages/white-whale-std/src/tokenfactory/create_denom.rs b/packages/white-whale-std/src/tokenfactory/create_denom.rs index 09a26f03a..121244e51 100644 --- a/packages/white-whale-std/src/tokenfactory/create_denom.rs +++ b/packages/white-whale-std/src/tokenfactory/create_denom.rs @@ -1,19 +1,8 @@ -/// Returns the MsgCreateDenom Stargate message -#[cfg(any( - feature = "token_factory", - feature = "osmosis_token_factory", - feature = "injective" -))] use crate::tokenfactory::common::{create_msg, MsgTypes}; use anybuf::{Anybuf, Bufany}; use cosmwasm_schema::cw_serde; use cosmwasm_std::StdResult; -/// Returns the MsgCreateDenom Stargate message -#[cfg(any( - feature = "token_factory", - feature = "osmosis_token_factory", - feature = "injective" -))] + use cosmwasm_std::{Addr, CosmosMsg}; use crate::tokenfactory::common::EncodeMessage;