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]
13pub enum ExecuteMsg {
14 /// Receives and handles an incoming packet.
15 Rx {
16 /// The local connection id the packet arrived on.
17 connection_id: String,
18 /// The port of the counterparty module.
19 counterparty_port: String,
20 /// The packet data.
21 data: Binary,
22 },
23}
24
25#[cw_serde]
26#[derive(QueryResponses)]
27pub enum QueryMsg {
28 /// Queries the configured block max gas. Serialized as
29 /// `"block_max_gas"`.
30 #[returns(Uint64)]
31 BlockMaxGas,
32 /// Queries the configured proxy code ID. Serialized as
33 /// `"proxy_code_id"`.
34 #[returns(Uint64)]
35 ProxyCodeId,
36}
37
38#[cw_serde]
39pub enum MigrateMsg {
40 /// Updates the module's configuration.
41 WithUpdate {
42 /// Code ID to use for instantiating proxy contracts.
43 proxy_code_id: Uint64,
44 /// The max gas allowed in a single block.
45 block_max_gas: Uint64,
46 },
47}