abstract_cw_plus_interface/
cw1_subkeys.rs

1use cw_orch::interface;
2
3use abstract_cw1_subkeys::contract;
4pub use abstract_cw1_subkeys::msg::{ExecuteMsg, QueryMsg};
5pub use abstract_cw1_whitelist::msg::InstantiateMsg;
6
7#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, Empty)]
8pub struct Cw1SubKeys;
9
10#[cfg(not(target_arch = "wasm32"))]
11use cw_orch::prelude::*;
12
13#[cfg(not(target_arch = "wasm32"))]
14impl<Chain: CwEnv> Uploadable for Cw1SubKeys<Chain> {
15    // Return the path to the wasm file
16    fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
17        artifacts_dir_from_workspace!()
18            .find_wasm_path("cw1_subkeys")
19            .unwrap()
20    }
21    // Return a CosmWasm contract wrapper
22    fn wrapper() -> Box<dyn MockContract<Empty>> {
23        Box::new(
24            ContractWrapper::new_with_empty(
25                contract::execute,
26                contract::instantiate,
27                contract::query,
28            )
29            .with_migrate(contract::migrate),
30        )
31    }
32}