Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 194 additions & 0 deletions chain/westend-local-v0.9.30-raw.json

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions chain/westend-local/config-alice.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[global]
basepath = "~/.gossamer/westend-local-alice"
log = "info"
metrics-address = ":9876"

[log]
core = ""
network = ""
rpc = ""
state = ""
runtime = ""
babe = ""
grandpa = ""
sync = ""
digest = ""

[init]
genesis = "./chain/westend-local/westend-local-spec-raw.json"

[account]
key = "alice"
unlock = ""

[core]
roles = 4
babe-authority = true
grandpa-authority = true
babe-lead = true

[network]
port = 7001
nobootstrap = false
nomdns = false

[rpc]
enabled = true
ws = true
port = 8545
host = "localhost"
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8546

[pprof]
enabled = false
listening-address = "localhost:6060"
block-rate = 0
mutex-rate = 0
57 changes: 57 additions & 0 deletions chain/westend-local/config-bob.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[global]
basepath = "~/.gossamer/westend-local-bob"
log = "info"
metrics-address = ":9877"

[log]
core = ""
network = ""
rpc = ""
state = ""
runtime = ""
babe = ""
grandpa = ""
sync = ""
digest = ""

[init]
genesis = "./chain/westend-local/westend-local-spec-raw.json"

[account]
key = "bob"
unlock = ""

[core]
roles = 4
babe-authority = true
grandpa-authority = true

[network]
port = 7002
nobootstrap = false
nomdns = false

[rpc]
enabled = true
ws = true
port = 8555
host = "localhost"
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8556

[pprof]
enabled = false
listening-address = "localhost:6061"
block-rate = 0
mutex-rate = 0
57 changes: 57 additions & 0 deletions chain/westend-local/config-charlie.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[global]
basepath = "~/.gossamer/westend-local-charlie"
log = "info"
metrics-address = ":9878"

[log]
core = ""
network = ""
rpc = ""
state = ""
runtime = ""
babe = ""
grandpa = ""
sync = ""
digest = ""

[init]
genesis = "./chain/westend-local/westend-local-spec-raw.json"

[account]
key = "charlie"
unlock = ""

[core]
roles = 4
babe-authority = true
grandpa-authority = true

[network]
port = 7003
nobootstrap = false
nomdns = false

[rpc]
enabled = true
ws = true
port = 8565
host = "localhost"
modules = [
"system",
"author",
"chain",
"state",
"rpc",
"grandpa",
"offchain",
"childstate",
"syncstate",
"payment",
]
ws-port = 8566

[pprof]
enabled = false
listening-address = "localhost:6062"
block-rate = 0
mutex-rate = 0
Empty file.
235 changes: 235 additions & 0 deletions chain/westend-local/westend-3auth.json

Large diffs are not rendered by default.

194 changes: 194 additions & 0 deletions chain/westend-local/westend-local-spec-raw.json

Large diffs are not rendered by default.

248 changes: 248 additions & 0 deletions chain/westend-local/westend-local-spec.json

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions examples/0001-cross-client-network.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[relaychain]
default_image = "docker.io/paritypr/polkadot-debug:master"
chain_spec_path = "chain/westend-local/westend-local-spec-raw.json"
#chain_spec_path = "chain/3-auth-node-v0.9.10/genesis-raw.json"

chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
command = "polkadot"
validator = true

[[relaychain.nodes]]
name = "bob"
command = "~/projects/ChainSafe/gossamer/bin/gossamer"
validator = true
args = ["--config", "./chain/westend-local/config-bob-min.toml", "--key bob", "--rpcmods", "system,author,chain,state,rpc,grandpa,offchain,childstate,syncstate,payment"]

#[[relaychain.nodes]]
#name = "charlie"
#command = "~/projects/ChainSafe/gossamer/bin/gossamer"
#validator = true
#args = ["--config", "./chain/westend-local/config-charlie-min.toml","--key charlie", "--rpcmods", "system,#author,chain,state,rpc,grandpa,offchain,childstate,syncstate,payment"]
19 changes: 19 additions & 0 deletions examples/0001-westend-local-network.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[relaychain]
default_image = "docker.io/paritypr/polkadot-debug:master"
default_command = "~/projects/ChainSafe/gossamer/bin/gossamer"
chain_spec_path = "chain/westend-local/westend-local-spec-raw.json"

[[relaychain.nodes]]
name = "alice"
validator = true
args = ["--config", "./chain/westend-local/config-alice.toml", "--key alice", "--babe-lead", "--rpcmods", "system,author,chain,state,rpc,grandpa,offchain,childstate,syncstate,payment"]

[[relaychain.nodes]]
name = "bob"
validator = true
args = ["--config", "./chain/westend-local/config-bob.toml","--key bob", "--rpcmods", "system,author,chain,state,rpc,grandpa,offchain,childstate,syncstate,payment"]

[[relaychain.nodes]]
name = "charlie"
validator = true
args = ["--config", "./chain/westend-local/config-charlie.toml","--key charlie", "--rpcmods", "system,author,chain,state,rpc,grandpa,offchain,childstate,syncstate,payment"]
34 changes: 34 additions & 0 deletions examples/0001-westend-local-network.zndsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Description: Small Network test
Network: ./0001-westend-local-network.toml
Creds: config


# well known functions
#alice: js-script ./examples/js-examples.js return is 1
alice: js-script ./custom-js.js return is 1 within 200 seconds
#alice: js-script ./0008-custom.js return is greater than 1 within 200 seconds
#alice: is up
#bob: is up
#alice: parachain 100 is registered within 225 seconds

# Tracing
# alice: trace with traceID 94c1501a78a0d83c498cc92deec264d9 contains ["answer-chunk-request", "answer-chunk-request"]

# metrics
#alice: reports gossamer_network_syncer_is_synced is 0
#alice: reports sub_libp2p_is_major_syncing is 0

# histogram
#alice: reports histogram polkadot_pvf_execution_time has at least 2 samples in buckets ["0.1", "0.25", "0.5", "+Inf"] within 100 seconds
#alice: reports histogram tcp_connection_duration_bucket has at least 2 samples in buckets ["11.390625", "25.62890625", "86.49755859375"] within 100 seconds

# logs
#bob: log line matches glob "*rted #1*" within 10 seconds
#bob: log line matches glob "*built*" within 10 seconds

# system events
#bob: system event contains "A candidate was included" within 20 seconds
#alice: system event matches glob "*was backed*" within 10 seconds

# javascript tests
# alice: js-script ./js-examples.js return is 2
Loading