diff --git a/contracts/neutron_interchain_queries/src/contract.rs b/contracts/neutron_interchain_queries/src/contract.rs index 4805923f..a3c32bbe 100644 --- a/contracts/neutron_interchain_queries/src/contract.rs +++ b/contracts/neutron_interchain_queries/src/contract.rs @@ -7,7 +7,6 @@ use cosmwasm_std::{ }; use cw2::set_contract_version; use neutron_sdk::interchain_queries::v047::register_queries::new_register_validators_signing_infos_query_msg; -use neutron_std::types::ibc::core::client::v1::Height; use neutron_std::types::neutron::interchainqueries::{KvKey, RegisteredQuery}; use crate::msg::{ @@ -40,6 +39,7 @@ use neutron_sdk::interchain_queries::{ use neutron_sdk::sudo::msg::SudoMsg; use neutron_sdk::{NeutronError, NeutronResult}; +use neutron_sdk::interchain_queries::sudo::Height; use neutron_sdk::interchain_queries::types::{ QueryType, TransactionFilterItem, TransactionFilterOp, TransactionFilterValue, }; diff --git a/packages/neutron-sdk/src/interchain_queries/mod.rs b/packages/neutron-sdk/src/interchain_queries/mod.rs index 1bda93e4..47bf3ce9 100644 --- a/packages/neutron-sdk/src/interchain_queries/mod.rs +++ b/packages/neutron-sdk/src/interchain_queries/mod.rs @@ -1,6 +1,7 @@ pub mod helpers; pub mod hex; pub mod queries; +pub mod sudo; pub mod types; pub mod v045; pub mod v047; diff --git a/packages/neutron-sdk/src/interchain_queries/sudo.rs b/packages/neutron-sdk/src/interchain_queries/sudo.rs new file mode 100644 index 00000000..bc2bf054 --- /dev/null +++ b/packages/neutron-sdk/src/interchain_queries/sudo.rs @@ -0,0 +1,13 @@ +use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; + +#[derive(Default, Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)] +#[serde(rename_all = "snake_case")] +pub struct Height { + /// the revision that the client is currently on + #[serde(default)] + pub revision_number: u64, + /// **height** is a height of remote chain + #[serde(default)] + pub revision_height: u64, +} diff --git a/packages/neutron-sdk/src/sudo/msg.rs b/packages/neutron-sdk/src/sudo/msg.rs index 03301146..10da2da6 100644 --- a/packages/neutron-sdk/src/sudo/msg.rs +++ b/packages/neutron-sdk/src/sudo/msg.rs @@ -1,5 +1,5 @@ +use crate::interchain_queries::sudo::Height; use cosmwasm_std::Binary; -use neutron_std::types::ibc::core::client::v1::Height; use schemars::JsonSchema; use serde::{Deserialize, Serialize};