pub use abstract_std::proxy::{ExecuteMsgFns as ProxyExecFns, QueryMsgFns as ProxyQueryFns};
use abstract_std::{objects::AccountId, proxy::*, PROXY};
use cw_orch::{interface, prelude::*};
#[interface(InstantiateMsg, ExecuteMsg, QueryMsg, MigrateMsg)]
pub struct Proxy<Chain>;
impl<Chain: CwEnv> Proxy<Chain> {
pub(crate) fn new_from_id(account_id: &AccountId, chain: Chain) -> Self {
let proxy_id = format!("{PROXY}-{account_id}");
Self::new(proxy_id, chain)
}
}
impl<Chain: CwEnv> Uploadable for Proxy<Chain> {
#[cfg(feature = "integration")]
fn wrapper() -> <Mock as ::cw_orch::environment::TxHandler>::ContractSource {
Box::new(
ContractWrapper::new_with_empty(
::proxy::contract::execute,
::proxy::contract::instantiate,
::proxy::contract::query,
)
.with_migrate(::proxy::contract::migrate)
.with_reply(::proxy::contract::reply),
)
}
fn wasm(_chain: &ChainInfoOwned) -> WasmPath {
artifacts_dir_from_workspace!()
.find_wasm_path("proxy")
.unwrap()
}
}
impl<Chain: CwEnv> Proxy<Chain> {
}