diff --git a/runtime/vane-parachain-runtime/src/xcm_eml_testing/mod.rs b/runtime/vane-parachain-runtime/src/xcm_eml_testing/mod.rs index c89148cde..345de9903 100644 --- a/runtime/vane-parachain-runtime/src/xcm_eml_testing/mod.rs +++ b/runtime/vane-parachain-runtime/src/xcm_eml_testing/mod.rs @@ -350,17 +350,17 @@ decl_test_networks!( ); // // -// static INIT: Once = Once::new(); -// pub fn init_tracing() { -// INIT.call_once(|| { -// // Add test tracing (from sp_tracing::init_for_tests()) but filtering for xcm logs only -// let _ = tracing_subscriber::fmt() -// //.with_max_level(tracing::Level::TRACE) -// //.with_env_filter("xcm=trace,system::events=trace") // Comment out this line to see all traces -// .with_test_writer() -// .init(); -// }); -// } +static INIT: Once = Once::new(); +pub fn init_tracing() { + INIT.call_once(|| { + // Add test tracing (from sp_tracing::init_for_tests()) but filtering for xcm logs only + let _ = tracing_subscriber::fmt() + .with_max_level(tracing::Level::TRACE) + .with_env_filter("xcm=trace") // Comment out this line to see all traces + //.with_test_writer() + .init(); + }); +} // // // // Tests @@ -400,17 +400,17 @@ decl_test_networks!( // } // } -static INIT: Once = Once::new(); -fn init_tracing() { - INIT.call_once(|| { - // Add test tracing (from sp_tracing::init_for_tests()) but filtering for xcm logs only - let _ = tracing_subscriber::fmt() - .with_max_level(tracing::Level::TRACE) - .with_env_filter("xcm=trace,system::events=trace") // Comment out this line to see all traces - .with_test_writer() - .init(); - }); -} +// static INIT: Once = Once::new(); +// fn init_tracing() { +// INIT.call_once(|| { +// // Add test tracing (from sp_tracing::init_for_tests()) but filtering for xcm logs only +// let _ = tracing_subscriber::fmt() +// .with_max_level(tracing::Level::TRACE) +// .with_env_filter("xcm=trace,system::events=trace") // Comment out this line to see all traces +// .with_test_writer() +// .init(); +// }); +// } #[cfg(test)] mod tests { @@ -503,4 +503,19 @@ use super::*; fn reverting_works(){ } + + + + // ------------------------------------------------------------- + // Polkadot - Alice ---------N Dots--------> Vane Sovereign Acc - + // - - + // ------------------------------------------------------------- + + + + // Send xcm message to vane parachain instructing to configure the state account for confirmation + #[test] + fn test_vane_2_logic_without_involving_token_bridging(){ + + } } \ No newline at end of file diff --git a/runtime/vane-parachain-runtime/src/xcm_sim_testing/mod.rs b/runtime/vane-parachain-runtime/src/xcm_sim_testing/mod.rs index d745bd9f3..0d30ded36 100644 --- a/runtime/vane-parachain-runtime/src/xcm_sim_testing/mod.rs +++ b/runtime/vane-parachain-runtime/src/xcm_sim_testing/mod.rs @@ -475,7 +475,9 @@ use super::*; assert_eq!( relay_chain::Balances::free_balance(child_account_id(2000)), 10_010 - ) + ); + + println!("{:#}",child_account_id(2000)) }); diff --git a/zombienet/vane.json b/zombienet/vane.json new file mode 100644 index 000000000..f21edd9f3 --- /dev/null +++ b/zombienet/vane.json @@ -0,0 +1,46 @@ + +{ + "settings": { + "timeout": 1000, + "provider": "native" + }, + "relaychain": { + "chain": "rococo-local", + "default_command": "../../bin/polkadot", + "default_args": ["--no-hardware-benchmarks", "-lparachain=debug", "--database=paritydb"], + "nodes": [ + { + "name": "alice", + "ws_port": "8000", + "validator": true + }, + { + "name": "bob", + "ws_port": "8050", + "validator": true + } + ] + }, + "parachains": [ + { + "id": 2000, + "cumulus_based": true, + "onboard_as_parachain": true, + "collators": [ + { + "name" :"vane-collator", + "ws_port": 9910, + "command":"../target/release/vane-node" + } + + ] + } + ], + "types": { + "Header": { + "number": "u64", + "parent_hash": "Hash", + "post_state": "Hash" + } + } +} diff --git a/zombienet/vane.toml b/zombienet/vane.toml deleted file mode 100644 index 47d9d2a30..000000000 --- a/zombienet/vane.toml +++ /dev/null @@ -1,29 +0,0 @@ -[settings] -bootnode = false - -[relaychain] -chain = "rococo-local" -default_command = "../bin/polkadot" -bootnode = false - - [[relaychain.nodes]] - name = "alice" - validator = true - ws_port = 8000 - - [[relaychain.nodes]] - name = "bob" - validator = true - ws_port = 8050 - -[[parachains]] -id = 2000 -#chain_spec_path = "./tmp1/vane.json" -cumulus_based = true -onboard_as_parachain = true - - [[parachains.collators]] - name = "vane-collator" - ws_port = 9910 - command = "./target/release/vane-node" -# args = [ "-lxcm=trace", "--state-cache-size=0" ]