cw_ibc_query/ibc_msg.rs
1use cosmwasm_std::Binary;
2use schemars::JsonSchema;
3use serde::{Deserialize, Serialize};
4
5/// This is the message we send over the IBC channel
6#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, JsonSchema)]
7#[serde(rename_all = "snake_case")]
8pub struct PacketMsg {
9 /// The unique identifier of this request, as specified by the client
10 pub client_id: Option<String>,
11 pub path: String,
12 pub data: Binary,
13}
14
15#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
16#[serde(rename_all = "snake_case")]
17pub enum PacketAck {
18 Result(Binary),
19 Error(String),
20}