Skip to content
Snippets Groups Projects
Unverified Commit f622db9c authored by Javier Viola's avatar Javier Viola
Browse files

add examples

parent 9f251308
No related merge requests found
[workspace]
resolver = "2"
members = [
"crates/examples",
"crates/support",
"crates/configuration",
"crates/orchestrator",
......
[package]
name = "examples"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
configuration = { path = "../configuration" }
use configuration::NetworkConfigBuilder;
fn main() {
let config = NetworkConfigBuilder::new()
.with_relaychain(|r| {
r.with_chain("rococo-local")
.with_node(|node| {
node.with_name("alice").with_command("polkadot")
})
})
.build();
println!("{:?}", config.unwrap());
}
use configuration::NetworkConfigBuilder;
fn main() {
let config = NetworkConfigBuilder::new()
.with_relaychain(|r| {
r.with_chain("rococo-local")
.with_default_command("polkadot")
.with_node(|node| node.with_name("alice"))
.with_node(|node| node.with_name("name"))
})
.build();
println!("{:?}", config.unwrap());
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment