|
1 | 1 | use unionlabs_primitives::H256;
|
2 |
| - |
3 |
| -#[derive(serde::Serialize, serde::Deserialize)] |
| 2 | +#[derive(serde::Serialize, serde::Deserialize, Debug)] |
4 | 3 | #[serde(deny_unknown_fields, rename_all = "snake_case")]
|
| 4 | +#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] |
| 5 | +#[cfg_attr( |
| 6 | + feature = "cw-orch-interface", |
| 7 | + derive(cosmwasm_schema::QueryResponses, cw_orch::QueryFns) |
| 8 | +)] |
5 | 9 | pub enum QueryMsg {
|
| 10 | + #[cfg_attr(feature = "cw-orch-interface", returns(u64))] |
6 | 11 | GetTimestampAtHeight { client_id: u32, height: u64 },
|
| 12 | + #[cfg_attr(feature = "cw-orch-interface", returns(u64))] |
7 | 13 | GetLatestHeight { client_id: u32 },
|
| 14 | + #[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Binary))] |
8 | 15 | GetClientState { client_id: u32 },
|
| 16 | + #[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Binary))] |
9 | 17 | GetConsensusState { client_id: u32, height: u64 },
|
| 18 | + #[cfg_attr(feature = "cw-orch-interface", returns(crate::lightclient::Status))] |
10 | 19 | GetStatus { client_id: u32 },
|
| 20 | + #[cfg_attr(feature = "cw-orch-interface", returns(u64))] |
11 | 21 | GetClientType { client_id: u32 },
|
| 22 | + #[cfg_attr( |
| 23 | + feature = "cw-orch-interface", |
| 24 | + returns(ibc_union_spec::types::Connection) |
| 25 | + )] |
12 | 26 | GetConnection { connection_id: u32 },
|
| 27 | + #[cfg_attr(feature = "cw-orch-interface", returns(ibc_union_spec::types::Channel))] |
13 | 28 | GetChannel { channel_id: u32 },
|
| 29 | + #[cfg_attr(feature = "cw-orch-interface", returns(std::collections::BTreeSet<u32>))] |
14 | 30 | GetChannels { contract: String },
|
| 31 | + #[cfg_attr(feature = "cw-orch-interface", returns(Option<Vec<u8>>))] |
15 | 32 | GetBatchPackets { channel_id: u32, batch_hash: H256 },
|
| 33 | + #[cfg_attr(feature = "cw-orch-interface", returns(Option<Vec<u8>>))] |
16 | 34 | GetBatchReceipts { channel_id: u32, batch_hash: H256 },
|
| 35 | + #[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Addr))] |
17 | 36 | GetClientImpl { client_id: u32 },
|
| 37 | + #[cfg_attr(feature = "cw-orch-interface", returns(cosmwasm_std::Addr))] |
18 | 38 | GetRegisteredClientType { client_type: String },
|
19 | 39 | }
|
0 commit comments