abstract_polytone_voice/msg.rs
1use cosmwasm_schema::{cw_serde, QueryResponses};
2use cosmwasm_std::{Binary, Uint64};
3
4#[cw_serde]
5pub struct InstantiateMsg {
6 /// Code ID to use for instantiating proxy contracts.
7 pub proxy_code_id: Uint64,
8 /// The max gas allowed in a single block.
9 pub block_max_gas: Uint64,
10}
11
12#[cw_serde]
13#[derive(cw_orch::ExecuteFns)] // cw-orch automatic
14pub enum ExecuteMsg {
15 /// Receives and handles an incoming packet.
16 Rx {
17 /// The local connection id the packet arrived on.
18 connection_id: String,
19 /// The port of the counterparty module.
20 counterparty_port: String,
21 /// The packet data.
22 data: Binary,
23 },
24}
25
26#[cw_serde]
27#[derive(QueryResponses, cw_orch::QueryFns)] // cw-orch automatic
28pub enum QueryMsg {
29 /// Queries the configured block max gas. Serialized as
30 /// `"block_max_gas"`.
31 #[returns(Uint64)]
32 BlockMaxGas,
33 /// Queries the configured proxy code ID. Serialized as
34 /// `"proxy_code_id"`.
35 #[returns(Uint64)]
36 ProxyCodeId,
37}
38
39#[cw_serde]
40pub enum MigrateMsg {
41 /// Updates the module's configuration.
42 WithUpdate {
43 /// Code ID to use for instantiating proxy contracts.
44 proxy_code_id: Uint64,
45 /// The max gas allowed in a single block.
46 block_max_gas: Uint64,
47 },
48}