provisioning/taskservs/polkadot/zombienet/default/network-config.toml.j2

83 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

# Zombienet Network Configuration
# Generated by provisioning system
[settings]
timeout = {{ polkadot_zombienet.settings.timeout }}
{% if polkadot_zombienet.settings.node_spawn_timeout is defined %}
node_spawn_timeout = {{ polkadot_zombienet.settings.node_spawn_timeout }}
{% endif %}
{% if polkadot_zombienet.settings.enable_tracing is defined %}
enable_tracing = {{ polkadot_zombienet.settings.enable_tracing | lower }}
{% endif %}
{% if polkadot_zombienet.settings.backchannel is defined %}
backchannel = {{ polkadot_zombienet.settings.backchannel | lower }}
{% endif %}
[relaychain]
chain = "{{ polkadot_zombienet.relaychain.chain }}"
{% if polkadot_zombienet.relaychain.default_image is defined %}
default_image = "{{ polkadot_zombienet.relaychain.default_image }}"
{% endif %}
{% if polkadot_zombienet.relaychain.default_command is defined %}
default_command = "{{ polkadot_zombienet.relaychain.default_command }}"
{% endif %}
{% if polkadot_zombienet.relaychain.genesis is defined %}
genesis = "{{ polkadot_zombienet.relaychain.genesis }}"
{% endif %}
{% if polkadot_zombienet.relaychain.runtime_genesis_patch is defined %}
runtime_genesis_patch = "{{ polkadot_zombienet.relaychain.runtime_genesis_patch }}"
{% endif %}
{% for node in polkadot_zombienet.relaychain.nodes %}
[[relaychain.nodes]]
name = "{{ node.name }}"
{% if node.image is defined %}
image = "{{ node.image }}"
{% endif %}
{% if node.command is defined %}
command = "{{ node.command }}"
{% endif %}
{% if node.args %}
args = [{{ node.args | map('tojsonquote') | join(', ') }}]
{% endif %}
validator = {{ node.validator | lower }}
{% if node.balance is defined %}
balance = {{ node.balance }}
{% endif %}
{% endfor %}
{% for parachain in polkadot_zombienet.parachains %}
[[parachains]]
id = {{ parachain.id }}
{% if parachain.chain is defined %}
chain = "{{ parachain.chain }}"
{% endif %}
{% if parachain.balance is defined %}
balance = {{ parachain.balance }}
{% endif %}
{% if parachain.genesis_wasm is defined %}
genesis_wasm = "{{ parachain.genesis_wasm }}"
{% endif %}
{% if parachain.genesis_state is defined %}
genesis_state = "{{ parachain.genesis_state }}"
{% endif %}
{% for collator in parachain.collators %}
[[parachains.collators]]
name = "{{ collator.name }}"
{% if collator.image is defined %}
image = "{{ collator.image }}"
{% endif %}
{% if collator.command is defined %}
command = "{{ collator.command }}"
{% endif %}
{% if collator.args %}
args = [{{ collator.args | map('tojsonquote') | join(', ') }}]
{% endif %}
{% if collator.balance is defined %}
balance = {{ collator.balance }}
{% endif %}
{% endfor %}
{% endfor %}