Skip to content

Commit

Permalink
tidy 'msg.rs'
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Oct 29, 2024
1 parent 4eb471d commit a8474a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 4 additions & 6 deletions cross-contract/contracts/outpost-factory/src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
use cosmwasm_schema::{cw_serde, QueryResponses};
use storage_outpost::outpost_helpers::ica_callback_execute;
use storage_outpost::types::msg::options::ChannelOpenInitOptions;

#[cw_serde]
pub struct InstantiateMsg {
pub storage_outpost_code_id: u64,
}

// #[ica_callback_execute] let's implement this later
#[cw_serde]
pub enum ExecuteMsg {
CreateOutpost {
channel_open_init_options: ChannelOpenInitOptions,
},
// When the outpost is created for a user, the created outpost contract will call back this owner contract
// When the outpost is created for a user, the created outpost contract will call back this factory contract
// to execute the below function and map the user's address to their owned outpost
MapUserOutpost {
outpost_owner: String, // this function is called for a specific purpose of updating a map so nothing is optional
outpost_owner: String, // This function is called for a specific purpose of updating a map so we don't make the params optional
},
// Let's perform a migration with a cross contract call to see how it goes
// Migrations thoroughly tested
MigrateOutpost {
outpost_owner: String, // this function is called for a specific purpose of updating a map so nothing is optional
outpost_owner: String,
new_outpost_code_id: String,
}
}
Expand Down
12 changes: 9 additions & 3 deletions e2e/interchaintest/logs/test.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
INFO: 2024/10/29 11:59:56 The sender of instantiate is wasmd-localwasm-1-cef
INFO: 2024/10/29 12:00:08 [0x14001650200]
INFO: 2024/10/29 12:00:46 /
INFO: 2024/10/29 13:20:19 contract Info is: address:"wasm1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqhs9hr8" contract_info:<code_id:2 creator:"wasm13w0fse6k9tvrq6zn68smdl6ln4s7kmh9fvq8ag" admin:"wasm13w0fse6k9tvrq6zn68smdl6ln4s7kmh9fvq8ag" label:"wasm-contract" created:<block_height:54 > ibc_port_id:"wasm.wasm1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqhs9hr8" >
INFO: 2024/10/29 13:20:19 factory state is: data:"{\"storage_outpost_code_id\":1,\"admin\":\"wasm13w0fse6k9tvrq6zn68smdl6ln4s7kmh9fvq8ag\"}"

INFO: 2024/10/29 13:20:23 outpostContractInfo is: address:"wasm1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrss5maay" contract_info:<code_id:1 creator:"wasm1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqhs9hr8" admin:"wasm1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtqhs9hr8" label:"storage_outpost-owned by: wasm13w0fse6k9tvrq6zn68smdl6ln4s7kmh9fvq8ag" created:<block_height:56 > ibc_port_id:"wasm.wasm1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrss5maay" >
INFO: 2024/10/29 13:21:19 new outpost code id is: 3
INFO: 2024/10/29 13:21:28 codeID is: 3
INFO: 2024/10/29 13:21:32 data:"\"migration successful\""
INFO: 2024/10/29 13:22:00 factory state is: data:"{\"storage_outpost_code_id\":3,\"admin\":\"wasm13w0fse6k9tvrq6zn68smdl6ln4s7kmh9fvq8ag\"}"

0 comments on commit a8474a8

Please sign in to comment.