diff --git a/packages/neutron-sdk/src/bindings/mod.rs b/packages/neutron-sdk/src/bindings/mod.rs index 9cf737ba..55ed60a4 100644 --- a/packages/neutron-sdk/src/bindings/mod.rs +++ b/packages/neutron-sdk/src/bindings/mod.rs @@ -1,3 +1,2 @@ -pub mod hex; #[allow(deprecated)] pub mod msg; diff --git a/packages/neutron-sdk/src/bindings/hex.rs b/packages/neutron-sdk/src/interchain_queries/hex.rs similarity index 90% rename from packages/neutron-sdk/src/bindings/hex.rs rename to packages/neutron-sdk/src/interchain_queries/hex.rs index 21c24cb5..11de7aeb 100644 --- a/packages/neutron-sdk/src/bindings/hex.rs +++ b/packages/neutron-sdk/src/interchain_queries/hex.rs @@ -1,6 +1,5 @@ use std::fmt::Write as _; -// TODO: do we need it? /// Encodes bytes slice into hex string pub fn encode_hex(bytes: &[u8]) -> String { let mut s = String::with_capacity(bytes.len() * 2); @@ -10,7 +9,6 @@ pub fn encode_hex(bytes: &[u8]) -> String { s } -// TODO: do we need it? /// Decodes hex string into bytes vec pub fn decode_hex(s: &str) -> Option> { (0..s.len()) diff --git a/packages/neutron-sdk/src/interchain_queries/mod.rs b/packages/neutron-sdk/src/interchain_queries/mod.rs index 507603ea..91162bb9 100644 --- a/packages/neutron-sdk/src/interchain_queries/mod.rs +++ b/packages/neutron-sdk/src/interchain_queries/mod.rs @@ -3,5 +3,6 @@ pub mod queries; pub mod types; pub mod v045; pub mod v047; +pub mod hex; pub use queries::{check_query_type, get_registered_query, query_kv_result};