Skip to content

Commit

Permalink
tinkering
Browse files Browse the repository at this point in the history
  • Loading branch information
MrishoLukamba committed Dec 23, 2023
1 parent 376dc0e commit 20f9301
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 52 deletions.
59 changes: 37 additions & 22 deletions runtime/vane-parachain-runtime/src/xcm_eml_testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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(){

}
}
4 changes: 3 additions & 1 deletion runtime/vane-parachain-runtime/src/xcm_sim_testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ use super::*;
assert_eq!(
relay_chain::Balances::free_balance(child_account_id(2000)),
10_010
)
);

println!("{:#}",child_account_id(2000))

});

Expand Down
46 changes: 46 additions & 0 deletions zombienet/vane.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
29 changes: 0 additions & 29 deletions zombienet/vane.toml

This file was deleted.

0 comments on commit 20f9301

Please sign in to comment.