diff --git a/cw-orch-daemon/src/queriers.rs b/cw-orch-daemon/src/queriers.rs index b5c436bd6..02c05195b 100644 --- a/cw-orch-daemon/src/queriers.rs +++ b/cw-orch-daemon/src/queriers.rs @@ -43,28 +43,6 @@ pub trait DaemonQuerier { fn new(channel: tonic::transport::Channel) -> Self; } -/// macro for constructing and performing a query on a CosmosSDK module. -#[macro_export] -macro_rules! cosmos_query { - ($self:ident, $module:ident, $func_name:ident, $request_type:ident { $($field:ident : $value:expr),* $(,)? }) => { - { - use $crate::cosmos_modules::$module::{ - query_client::QueryClient, $request_type, - }; - let mut client = QueryClient::new($self.channel.clone()); - #[allow(clippy::redundant_field_names)] - let request = $request_type { $($field : $value),* }; - let response = client.$func_name(request.clone()).await?.into_inner(); - ::log::trace!( - "cosmos_query: {:?} resulted in: {:?}", - request, - response - ); - response - } -}; -} - mod authz; mod env; // mod bank; diff --git a/cw-orch-daemon/src/queriers/clients/mod.rs b/cw-orch-daemon/src/queriers/clients/mod.rs index b888ff429..85b5586e8 100644 --- a/cw-orch-daemon/src/queriers/clients/mod.rs +++ b/cw-orch-daemon/src/queriers/clients/mod.rs @@ -22,28 +22,6 @@ //! # }) //! ``` -/// macro for constructing and performing a query on a CosmosSDK module. -#[macro_export] -macro_rules! cosmos_query { - ($self:ident, $module:ident, $func_name:ident, $request_type:ident { $($field:ident : $value:expr),* $(,)? }) => { - { - use $crate::cosmos_modules::$module::{ - query_client::QueryClient, $request_type, - }; - let mut client = QueryClient::new($self.channel.clone()); - #[allow(clippy::redundant_field_names)] - let request = $request_type { $($field : $value),* }; - let response = client.$func_name(request.clone()).await?.into_inner(); - ::log::trace!( - "cosmos_query: {:?} resulted in: {:?}", - request, - response - ); - response - } -}; -} - mod auth; mod bank; mod cosmwasm;