Skip to content

Commit

Permalink
remove more bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 15, 2024
1 parent 4841d02 commit 2f88f4e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 52 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 @@ -6,14 +6,14 @@ use cosmwasm_std::{
Response, StdError, StdResult, Uint128,
};
use cw2::set_contract_version;
use neutron_std::types::ibc::core::client::v1::Height;
use neutron_sdk::interchain_queries::v047::register_queries::new_register_validators_signing_infos_query_msg;
use neutron_std::types::neutron::interchainqueries::{KvKey, RegisteredQuery};

use crate::msg::{
Cw20BalanceResponse, ExecuteMsg, GetRecipientTxsResponse, InstantiateMsg, MigrateMsg, QueryMsg,
};
use crate::state::{Transfer, RECIPIENT_TXS, TRANSFERS};
use neutron_sdk::bindings::types::Height;
use neutron_sdk::interchain_queries::helpers::{
remove_interchain_query as helpers_remove_interchain_query,
update_interchain_query as helpers_update_interchain_query,
Expand Down
38 changes: 0 additions & 38 deletions packages/neutron-sdk/src/bindings/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,44 +39,6 @@ impl From<NeutronMsg> for CosmosMsg<NeutronMsg> {

impl CustomMsg for NeutronMsg {}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
/// Describes response structure for **RegisterInterchainQuery** msg.
pub struct MsgRegisterInterchainQueryResponse {
/// **id** is an identifier of newly registered interchain query.
pub id: u64,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
/// MsgRegisterInterchainAccountResponse defines the Msg/RegisterInterchainAccount response type.
pub struct MsgRegisterInterchainAccountResponse {
/// **channel_id** is a ...
pub channel_id: String,
/// **port_id** is a ...
pub port_id: String,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
/// MsgSubmitTxResponse defines the response for Msg/SubmitTx.
pub struct MsgSubmitTxResponse {
/// **sequence_id** is a channel's sequence_id for outgoing ibc packet. Unique per a channel.
pub sequence_id: u64,
/// **channel** is a src channel on neutron side transaction was submitted from.
pub channel: String,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
/// MsgIbcTransferResponse defines the response for Msg/IbcTransfer.
pub struct MsgIbcTransferResponse {
/// **sequence_id** is a channel's sequence_id for outgoing ibc packet. Unique per a channel.
pub sequence_id: u64,
/// **channel** is a src channel on neutron side transaction was submitted from.
pub channel: String,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
#[serde(rename_all = "snake_case")]
/// AdminProposal defines the struct for various proposals which Neutron's Admin Module may accept.
Expand Down
13 changes: 0 additions & 13 deletions packages/neutron-sdk/src/bindings/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::fmt::Write as _;

// TODO: do we need it?
Expand All @@ -20,14 +18,3 @@ pub fn decode_hex(s: &str) -> Option<Vec<u8>> {
.map(|i| u8::from_str_radix(&s[i..i + 2], 16).ok())
.collect()
}

#[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,
}

0 comments on commit 2f88f4e

Please sign in to comment.