Skip to content

Commit

Permalink
instantiated things
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Apr 11, 2024
1 parent 7ed95a6 commit 0f483f3
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions mantis/node/tests/cvms.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use cosmwasm_std::{Addr, Empty};
use cw_cvm_outpost::msg::HereItem;
use cw_multi_test::{App, Contract, ContractWrapper, Executor};
// use cw_orch::prelude::*;
// use cw_orch::interface;
Expand Down Expand Up @@ -29,14 +30,36 @@ fn cvm_devnet_case() {
let cw_cvm_outpost_code_id = centauri.store_code(Box::new(cw_cvm_outpost_wasm));
let cw_cvm_executor_code_id = centauri.store_code(Box::new(cw_cvm_executor_wasm));

let cw_cvm_outpost_contract = centauri.instantiate_contract(
cw_cvm_outpost_code_id,
Addr::unchecked("juno1g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y"),
&Empty {},
&[],
"cvm-outpost",
None,
).unwrap();
let admin = Addr::unchecked("juno1g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y");
let cw_cvm_outpost_instantiate = cw_cvm_outpost::msg::InstantiateMsg(HereItem {
network_id: 3.into(),
admin: admin.clone(),
});
let cw_cvm_outpost_contract = centauri
.instantiate_contract(
cw_cvm_outpost_code_id,
admin.clone(),
&cw_cvm_outpost_instantiate,
&[],
"composable_cvm_outpost",
None,
)
.unwrap();

let cw_mantis_order_instantiate = cw_mantis_order::sv::InstantiateMsg {
admin: Some(admin.clone()),
cvm_address: cw_cvm_outpost_contract.clone(),
};
let cw_mantis_contract = centauri
.instantiate_contract(
cw_mantis_order_code_id,
admin,
&cw_mantis_order_instantiate,
&[],
"composable_mantis_order",
None,
)
.unwrap();

let sender = Addr::unchecked("juno16g2rahf5846rxzp3fwlswy08fz8ccuwk03k57y");
}

0 comments on commit 0f483f3

Please sign in to comment.