Skip to content

Commit

Permalink
fix Height deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 17, 2024
1 parent 08b4e76 commit b3095f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/neutron_interchain_queries/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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,
};
Expand Down
1 change: 1 addition & 0 deletions packages/neutron-sdk/src/interchain_queries/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
13 changes: 13 additions & 0 deletions packages/neutron-sdk/src/interchain_queries/sudo.rs
Original file line number Diff line number Diff line change
@@ -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,
}
2 changes: 1 addition & 1 deletion packages/neutron-sdk/src/sudo/msg.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down

0 comments on commit b3095f3

Please sign in to comment.