polytone-voice 1.0.0

The Polytone Voice contract, recieving notes over IBC and vocalizing them on the host chain via account proxy contracts.
Documentation
use cosmwasm_schema::{cw_serde, QueryResponses};
use cosmwasm_std::{Binary, Uint64};

#[cw_serde]
pub struct InstantiateMsg {
    /// Code ID to use for instantiating proxy contracts.
    pub proxy_code_id: Uint64,
    /// The max gas allowed in a single block.
    pub block_max_gas: Uint64,
}

#[cw_serde]
pub enum ExecuteMsg {
    /// Receives and handles an incoming packet.
    Rx {
        /// The local connection id the packet arrived on.
        connection_id: String,
        /// The port of the counterparty module.
        counterparty_port: String,
        /// The packet data.
        data: Binary,
    },
}

#[cw_serde]
#[derive(QueryResponses)]
pub enum QueryMsg {
    /// Queries the configured block max gas. Serialized as
    /// `"block_max_gas"`.
    #[returns(Uint64)]
    BlockMaxGas,
    /// Queries the configured proxy code ID. Serialized as
    /// `"proxy_code_id"`.
    #[returns(Uint64)]
    ProxyCodeId,
}

#[cw_serde]
pub enum MigrateMsg {
    /// Updates the module's configuration.
    WithUpdate {
        /// Code ID to use for instantiating proxy contracts.
        proxy_code_id: Uint64,
        /// The max gas allowed in a single block.
        block_max_gas: Uint64,
    },
}