hpl_interface/
connection.rs

1use cosmwasm_schema::{cw_serde, QueryResponses};
2
3#[cw_serde]
4pub enum ConnectionMsg {
5    SetMailbox { mailbox: String },
6
7    SetHook { hook: String },
8
9    SetIsm { ism: String },
10}
11
12#[cw_serde]
13#[derive(QueryResponses)]
14pub enum ConnectionQueryMsg {
15    #[returns(MailboxResponse)]
16    GetMailbox {},
17
18    #[returns(HookResponse)]
19    GetHook {},
20
21    #[returns(IsmResponse)]
22    GetIsm {},
23}
24
25#[cw_serde]
26pub struct MailboxResponse {
27    pub mailbox: Option<String>,
28}
29
30#[cw_serde]
31pub struct HookResponse {
32    pub hook: Option<String>,
33}
34
35#[cw_serde]
36pub struct IsmResponse {
37    pub ism: Option<String>,
38}