croncat_integration_testing/
contracts.rs

1use cosmwasm_std::Empty;
2use cw_multi_test::{Contract, ContractWrapper};
3
4pub fn croncat_factory_contract() -> Box<dyn Contract<Empty>> {
5    let contract = ContractWrapper::new(
6        croncat_factory::contract::execute,
7        croncat_factory::contract::instantiate,
8        croncat_factory::contract::query,
9    )
10    .with_reply(croncat_factory::contract::reply);
11    Box::new(contract)
12}
13
14pub fn croncat_manager_contract() -> Box<dyn Contract<Empty>> {
15    let contract = ContractWrapper::new(
16        croncat_manager::contract::execute,
17        croncat_manager::contract::instantiate,
18        croncat_manager::contract::query,
19    )
20    .with_reply(croncat_manager::contract::reply);
21    Box::new(contract)
22}
23
24pub fn croncat_tasks_contract() -> Box<dyn Contract<Empty>> {
25    let contract = ContractWrapper::new(
26        croncat_tasks::contract::execute,
27        croncat_tasks::contract::instantiate,
28        croncat_tasks::contract::query,
29    );
30    Box::new(contract)
31}
32
33pub fn croncat_agents_contract() -> Box<dyn Contract<Empty>> {
34    let contract = ContractWrapper::new(
35        croncat_agents::contract::execute,
36        croncat_agents::contract::instantiate,
37        croncat_agents::contract::query,
38    );
39    Box::new(contract)
40}