Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zombienet-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
zombienet-sdk
Commits
a5832f92
Unverified
Commit
a5832f92
authored
1 year ago
by
Nikos Kontakis
Browse files
Options
Downloads
Patches
Plain Diff
Finalize example moved from polkadot-sdk
parent
21a1e570
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crates/examples/examples/0001-simple.toml
+3
-6
3 additions, 6 deletions
crates/examples/examples/0001-simple.toml
crates/examples/examples/simple_network_example.rs
+4
-3
4 additions, 3 deletions
crates/examples/examples/simple_network_example.rs
with
7 additions
and
9 deletions
crates/examples/examples/0001-simple.toml
+
3
−
6
View file @
a5832f92
[settings]
timeout
=
1000
node_spawn_timeout
=
1000
[relaychain]
default_image
=
"docker.io/parity/polkadot-sdk:latest"
command
=
"polkadot"
default_image
=
"{{ZOMBIENET_INTEGRATION_TEST_IMAGE}}"
chain
=
"rococo-local"
command
=
"polkadot"
[[relaychain.nodes]]
name
=
"alice"
...
...
@@ -18,12 +17,10 @@ chain = "rococo-local"
[[
parachains
]]
id
=
100
addToGenesis
=
false
balance
=
200000000
chain
=
"some"
[
parachains.collator
]
name
=
"collator01"
image
=
"
docker.io/parity/polkadot-sdk:latest
"
image
=
"
{{COL_IMAGE}}
"
command
=
"adder-collator"
args
=
[
"-lruntime=debug,parachain
=
trace
" ]
...
...
This diff is collapsed.
Click to expand it.
crates/examples/examples/simple_network_example.rs
+
4
−
3
View file @
a5832f92
use
std
::
time
::
Duration
;
//
use std::time::Duration;
use
configuration
::
NetworkConfig
;
use
orchestrator
::
Orchestrator
;
...
...
@@ -7,7 +7,8 @@ use support::fs::local::LocalFileSystem;
#[tokio::main]
async
fn
main
()
->
Result
<
(),
Box
<
dyn
std
::
error
::
Error
>>
{
let
config
=
NetworkConfig
::
load_from_toml
(
"./crates/examples/examples/0001-simple.toml"
)
.expect
(
"errored?"
);
let
config
=
NetworkConfig
::
load_from_toml
(
"./crates/examples/examples/0001-simple.toml"
)
.expect
(
"errored?"
);
let
fs
=
LocalFileSystem
;
let
provider
=
NativeProvider
::
new
(
fs
.clone
());
...
...
@@ -19,5 +20,5 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
loop
{}
// Ok(())
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment