Skip to content

Commit

Permalink
Add husky (#61)
Browse files Browse the repository at this point in the history
* Set up Husky with Prettier hook

* update desc

* add TOML formatter

* add taplo package

* update JSON file formatting
  • Loading branch information
eshaben authored Sep 27, 2024
1 parent 01803d1 commit 7811f80
Show file tree
Hide file tree
Showing 20 changed files with 206 additions and 145 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "Running Prettier on .snippets/code/**/*.{js,json,html}"
npx prettier --write .snippets/code/**/*.{js,json,html}

echo "Running Taplo to format TOML files"
npx taplo fmt .snippets/code/**/*.toml

echo "Adding formatted files back to the commit..."
git add .snippets/code/**/*.{js,json,html,toml}
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<div id='termynal' data-termynal>
<span data-ty='input'><span class='file-path'></span>./target/release/solochain-template-node --dev</span>
<br>
<span data-ty>2024-09-09 08:32:42 Substrate Node</span>
<span data-ty>2024-09-09 08:32:42 ✌️ version 0.1.0-8599efc46ae</span>
<span data-ty>2024-09-09 08:32:42 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024</span>
<span data-ty>2024-09-09 08:32:42 📋 Chain specification: Development</span>
<span data-ty>2024-09-09 08:32:42 🏷 Node name: light-boundary-7850</span>
<span data-ty>2024-09-09 08:32:42 👤 Role: AUTHORITY</span>
<span data-ty>2024-09-09 08:32:42 💾 Database: RocksDb at /var/folders/x0/xl_kjddj3ql3bx7752yr09hc0000gn/T/substrate0QH9va/chains/dev/db/full</span>
<span data-ty>2024-09-09 08:32:42 🔨 Initializing Genesis block/state (state: 0xc2a0…16ba, header-hash: 0x0eef…935d)</span>
<span data-ty>2024-09-09 08:32:42 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.</span>
<span data-ty>2024-09-09 08:32:42 Using default protocol ID "sup" because none is configured in the chain specs</span>
<span data-ty>2024-09-09 08:32:42 🏷 Local node identity is: 12D3KooWPhdUzf66di1SuuRFgjkFs6X8jm3Uj2ss5ri31WuVAbgt</span>
<span data-ty>2024-09-09 08:32:42 Running libp2p network backend</span>
<span data-ty>2024-09-09 08:32:42 💻 Operating system: macos</span>
<span data-ty>2024-09-09 08:32:42 💻 CPU architecture: aarch64</span>
<span data-ty>2024-09-09 08:32:42 📦 Highest known block at #0</span>
<span data-ty>2024-09-09 08:32:42 〽️ Prometheus exporter started at 127.0.0.1:9615</span>
<span data-ty>2024-09-09 08:32:42 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["*"]</span>
<span data-ty>2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0</span>
<span data-ty>2024-09-09 08:32:48 🙌 Starting consensus session on top of parent 0x0eef4a08ef90cc04d01864514dc5cb2bd822314309b770b49b0177f920ed935d (#0)</span>
<span data-ty>2024-09-09 08:32:48 🎁 Prepared block for proposing at 1 (1 ms) [hash: 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36; parent_hash: 0x0eef…935d; extrinsics (1): [0xbcd8…5132]</span>
<span data-ty>2024-09-09 08:32:48 🔖 Pre-sealed block for proposal at 1. Hash now 0xcb3d2f28bc73807dac5cf19fcfb2ac6d7e922756da9d41ca0c9dadbd0e45265b, previously 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36.</span>
<span data-ty>2024-09-09 08:32:48 🏆 Imported #1 (0x0eef…935d → 0xcb3d…265b)</span>
<span data-ty>...</span>
</div>
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/solochain-template-node --dev</span>
<br />
<span data-ty>2024-09-09 08:32:42 Substrate Node</span>
<span data-ty>2024-09-09 08:32:42 ✌️ version 0.1.0-8599efc46ae</span>
<span data-ty>2024-09-09 08:32:42 ❤️ by Parity Technologies &lt;admin@parity.io&gt;, 2017-2024</span>
<span data-ty>2024-09-09 08:32:42 📋 Chain specification: Development</span>
<span data-ty>2024-09-09 08:32:42 🏷 Node name: light-boundary-7850</span>
<span data-ty>2024-09-09 08:32:42 👤 Role: AUTHORITY</span>
<span data-ty>2024-09-09 08:32:42 💾 Database: RocksDb at /var/folders/x0/xl_kjddj3ql3bx7752yr09hc0000gn/T/substrate0QH9va/chains/dev/db/full</span>
<span data-ty>2024-09-09 08:32:42 🔨 Initializing Genesis block/state (state: 0xc2a0…16ba, header-hash: 0x0eef…935d)</span>
<span data-ty>2024-09-09 08:32:42 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.</span>
<span data-ty>2024-09-09 08:32:42 Using default protocol ID "sup" because none is configured in the chain specs</span>
<span data-ty>2024-09-09 08:32:42 🏷 Local node identity is: 12D3KooWPhdUzf66di1SuuRFgjkFs6X8jm3Uj2ss5ri31WuVAbgt</span>
<span data-ty>2024-09-09 08:32:42 Running libp2p network backend</span>
<span data-ty>2024-09-09 08:32:42 💻 Operating system: macos</span>
<span data-ty>2024-09-09 08:32:42 💻 CPU architecture: aarch64</span>
<span data-ty>2024-09-09 08:32:42 📦 Highest known block at #0</span>
<span data-ty>2024-09-09 08:32:42 〽️ Prometheus exporter started at 127.0.0.1:9615</span>
<span data-ty>2024-09-09 08:32:42 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["*"]</span>
<span data-ty>2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0</span>
<span data-ty>2024-09-09 08:32:48 🙌 Starting consensus session on top of parent 0x0eef4a08ef90cc04d01864514dc5cb2bd822314309b770b49b0177f920ed935d (#0)</span>
<span data-ty>2024-09-09 08:32:48 🎁 Prepared block for proposing at 1 (1 ms) [hash: 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36; parent_hash: 0x0eef…935d; extrinsics (1): [0xbcd8…5132]</span>
<span data-ty>2024-09-09 08:32:48 🔖 Pre-sealed block for proposal at 1. Hash now 0xcb3d2f28bc73807dac5cf19fcfb2ac6d7e922756da9d41ca0c9dadbd0e45265b, previously 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36.</span>
<span data-ty>2024-09-09 08:32:48 🏆 Imported #1 (0x0eef…935d → 0xcb3d…265b)</span>
<span data-ty>...</span>
</div>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<div id='termynal' data-termynal>
<data-ty>...</span>
<span data-ty>2024-09-10 09:04:57 discovered: 12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD /ip4/192.168.1.4/tcp/30334</span>
<span data-ty>2024-09-10 09:04:58 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0.3kiB/s ⬆ 0.3kiB/s</span>
<span data-ty>2024-09-10 09:05:00 🙌 Starting consensus session on top of parent 0x850ffab4827cb0297316cbf01fc7c2afb954c5124f366f25ea88bfd19ede951f (#0)</span>
<span data-ty>2024-09-10 09:05:00 🎁 Prepared block for proposing at 1 (2 ms) [hash: 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d; parent_hash: 0x850f…951f; extrinsics (1): [0x0c18…08d8]</span>
<span data-ty>2024-09-10 09:05:00 🔖 Pre-sealed block for proposal at 1. Hash now 0x75bbb026db82a4d6ff88b96f952a29e15dac2b7df24d4cb95510945e2bede82d, previously 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d.</span>
<span data-ty>2024-09-10 09:05:00 🏆 Imported #1 (0x850f…951f → 0x75bb…e82d)</span>
<span data-ty>2024-09-10 09:05:03 💤 Idle (1 peers), best: #1 (0x75bb…e82d), finalized #0 (0x850f…951f), ⬇ 0.7kiB/s ⬆ 0.8kiB/s</span>
<span data-ty>2024-09-10 09:05:06 🏆 Imported #2 (0x75bb…e82d → 0x774d…a176)</span>
<span data-ty>2024-09-10 09:05:08 💤 Idle (1 peers), best: #2 (0x774d…a176), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.5kiB/s</span>
<span data-ty>2024-09-10 09:05:12 🙌 Starting consensus session on top of parent 0x774dec6bff7a27c38e21106a5a7428ae5d50b991f39cda7c0aa3c0c9322da176 (#2)</span>
<span data-ty>2024-09-10 09:05:12 🎁 Prepared block for proposing at 3 (0 ms) [hash: 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486; parent_hash: 0x774d…a176; extrinsics (1): [0xdcd4…b5ec]</span>
<span data-ty>2024-09-10 09:05:12 🔖 Pre-sealed block for proposal at 3. Hash now 0x01e080f4b8421c95d0033aac7310b36972fdeef7c6025f8a153c436c1bb214ee, previously 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486.</span>
<span data-ty>2024-09-10 09:05:12 🏆 Imported #3 (0x774d…a176 → 0x01e0…14ee)</span>
<span data-ty>2024-09-10 09:05:13 💤 Idle (1 peers), best: #3 (0x01e0…14ee), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.6kiB/s</span>
<span data-ty>2024-09-10 09:05:18 🏆 Imported #4 (0x01e0…14ee → 0xe176…0430)</span>
<span data-ty>2024-09-10 09:05:18 💤 Idle (1 peers), best: #4 (0xe176…0430), finalized #1 (0x75bb…e82d), ⬇ 0.6kiB/s ⬆ 0.6kiB/s</span>
</div>
<div id="termynal" data-termynal>
<span data-ty>...</span>
<span data-ty>2024-09-10 09:04:57 discovered: 12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD /ip4/192.168.1.4/tcp/30334</span>
<span data-ty>2024-09-10 09:04:58 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0.3kiB/s ⬆ 0.3kiB/s</span>
<span data-ty>2024-09-10 09:05:00 🙌 Starting consensus session on top of parent 0x850ffab4827cb0297316cbf01fc7c2afb954c5124f366f25ea88bfd19ede951f (#0)</span>
<span data-ty>2024-09-10 09:05:00 🎁 Prepared block for proposing at 1 (2 ms) [hash: 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d; parent_hash: 0x850f…951f; extrinsics (1): [0x0c18…08d8]</span>
<span data-ty>2024-09-10 09:05:00 🔖 Pre-sealed block for proposal at 1. Hash now 0x75bbb026db82a4d6ff88b96f952a29e15dac2b7df24d4cb95510945e2bede82d, previously 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d.</span>
<span data-ty>2024-09-10 09:05:00 🏆 Imported #1 (0x850f…951f → 0x75bb…e82d)</span>
<span data-ty>2024-09-10 09:05:03 💤 Idle (1 peers), best: #1 (0x75bb…e82d), finalized #0 (0x850f…951f), ⬇ 0.7kiB/s ⬆ 0.8kiB/s</span>
<span data-ty>2024-09-10 09:05:06 🏆 Imported #2 (0x75bb…e82d → 0x774d…a176)</span>
<span data-ty>2024-09-10 09:05:08 💤 Idle (1 peers), best: #2 (0x774d…a176), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.5kiB/s</span>
<span data-ty>2024-09-10 09:05:12 🙌 Starting consensus session on top of parent 0x774dec6bff7a27c38e21106a5a7428ae5d50b991f39cda7c0aa3c0c9322da176 (#2)</span>
<span data-ty>2024-09-10 09:05:12 🎁 Prepared block for proposing at 3 (0 ms) [hash: 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486; parent_hash: 0x774d…a176; extrinsics (1): [0xdcd4…b5ec]</span>
<span data-ty>2024-09-10 09:05:12 🔖 Pre-sealed block for proposal at 3. Hash now 0x01e080f4b8421c95d0033aac7310b36972fdeef7c6025f8a153c436c1bb214ee, previously 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486.</span>
<span data-ty>2024-09-10 09:05:12 🏆 Imported #3 (0x774d…a176 → 0x01e0…14ee)</span>
<span data-ty>2024-09-10 09:05:13 💤 Idle (1 peers), best: #3 (0x01e0…14ee), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.6kiB/s</span>
<span data-ty>2024-09-10 09:05:18 🏆 Imported #4 (0x01e0…14ee → 0xe176…0430)</span>
<span data-ty>2024-09-10 09:05:18 💤 Idle (1 peers), best: #4 (0xe176…0430), finalized #1 (0x75bb…e82d), ⬇ 0.6kiB/s ⬆ 0.6kiB/s</span>
</div>
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
<div id='termynal' data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/solochain-template-node \
--base-path /tmp/alice \
--chain local \
--alice \
--port 30333 \
--rpc-port 9945 \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--validator
</span>
<span data-ty>2024-09-10 08:35:43 Substrate Node</span>
<span data-ty>2024-09-10 08:35:43 ✌️ version 0.1.0-8599efc46ae</span>
<span data-ty>2024-09-10 08:35:43 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024</span>
<span data-ty>2024-09-10 08:35:43 📋 Chain specification: Local Testnet</span>
<span data-ty>2024-09-10 08:35:43 🏷 Node name: Alice</span>
<span data-ty>2024-09-10 08:35:43 👤 Role: AUTHORITY</span>
<span data-ty>2024-09-10 08:35:43 💾 Database: RocksDb at /tmp/alice/chains/local_testnet/db/full</span>
<span data-ty>2024-09-10 08:35:43 🔨 Initializing Genesis block/state (state: 0x074c…27bd, header-hash: 0x850f…951f)</span>
<span data-ty>2024-09-10 08:35:43 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.</span>
<span data-ty>2024-09-10 08:35:43 Using default protocol ID "sup" because none is configured in the chain specs</span>
<span data-ty>2024-09-10 08:35:43 🏷 Local node identity is: 12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp</span>
<span data-ty>2024-09-10 08:35:43 Running libp2p network backend</span>
<span data-ty>2024-09-10 08:35:43 💻 Operating system: macos</span>
<span data-ty>2024-09-10 08:35:43 💻 CPU architecture: aarch64</span>
<span data-ty>2024-09-10 08:35:43 📦 Highest known block at #0</span>
<span data-ty>2024-09-10 08:35:43 〽️ Prometheus exporter started at 127.0.0.1:9615</span>
<span data-ty>2024-09-10 08:35:43 Running JSON-RPC server: addr=127.0.0.1:9945, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]</span>
<span data-ty>2024-09-10 08:35:48 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0 ⬆ 0</span>
</div>
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/solochain-template-node \ --base-path /tmp/alice \ --chain local \ --alice \ --port 30333 \ --rpc-port 9945 \ --node-key 0000000000000000000000000000000000000000000000000000000000000001 \ --validator </span>
<span data-ty>2024-09-10 08:35:43 Substrate Node</span>
<span data-ty>2024-09-10 08:35:43 ✌️ version 0.1.0-8599efc46ae</span>
<span data-ty>2024-09-10 08:35:43 ❤️ by Parity Technologies &lt;admin@parity.io&gt;, 2017-2024</span>
<span data-ty>2024-09-10 08:35:43 📋 Chain specification: Local Testnet</span>
<span data-ty>2024-09-10 08:35:43 🏷 Node name: Alice</span>
<span data-ty>2024-09-10 08:35:43 👤 Role: AUTHORITY</span>
<span data-ty>2024-09-10 08:35:43 💾 Database: RocksDb at /tmp/alice/chains/local_testnet/db/full</span>
<span data-ty>2024-09-10 08:35:43 🔨 Initializing Genesis block/state (state: 0x074c…27bd, header-hash: 0x850f…951f)</span>
<span data-ty>2024-09-10 08:35:43 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.</span>
<span data-ty>2024-09-10 08:35:43 Using default protocol ID "sup" because none is configured in the chain specs</span>
<span data-ty>2024-09-10 08:35:43 🏷 Local node identity is: 12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp</span>
<span data-ty>2024-09-10 08:35:43 Running libp2p network backend</span>
<span data-ty>2024-09-10 08:35:43 💻 Operating system: macos</span>
<span data-ty>2024-09-10 08:35:43 💻 CPU architecture: aarch64</span>
<span data-ty>2024-09-10 08:35:43 📦 Highest known block at #0</span>
<span data-ty>2024-09-10 08:35:43 〽️ Prometheus exporter started at 127.0.0.1:9615</span>
<span data-ty>2024-09-10 08:35:43 Running JSON-RPC server: addr=127.0.0.1:9945, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"]</span>
<span data-ty>2024-09-10 08:35:48 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0 ⬆ 0</span>
</div>
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<div id="termynal" data-termynal>
<span>2024-09-09 13:49:58 Parity Polkadot</span>
<br>
<span>2024-09-09 13:49:58 ✌️ version 1.15.2-d6f482d5593</span>
<br>
<span>2024-09-09 13:49:58 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024</span>
<br>
<span>2024-09-09 13:49:58 📋 Chain specification: Rococo Local Testnet</span>
<br>
<span>2024-09-09 13:49:58 🏷 Node name: Alice</span>
<br>
<span>2024-09-09 13:49:58 👤 Role: AUTHORITY</span>
<br>
<span>2024-09-09 13:49:58 💾 Database: RocksDb at /tmp/relay/alice/chains/rococo_local_testnet/db/full<span>
<br>
<span>2024-09-09 13:49:59 🏷 Local node identity is: 12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp</span>
<br>
<span>2024-09-09 13:49:59 Running libp2p network backend</span>
<br>
<span>...</span>
</div>
<span>2024-09-09 13:49:58 Parity Polkadot</span>
<br />
<span>2024-09-09 13:49:58 ✌️ version 1.15.2-d6f482d5593</span>
<br />
<span>2024-09-09 13:49:58 ❤️ by Parity Technologies &lt;admin@parity.io&gt;, 2017-2024</span>
<br />
<span>2024-09-09 13:49:58 📋 Chain specification: Rococo Local Testnet</span>
<br />
<span>2024-09-09 13:49:58 🏷 Node name: Alice</span>
<br />
<span>2024-09-09 13:49:58 👤 Role: AUTHORITY</span>
<br />
<span>2024-09-09 13:49:58 💾 Database: RocksDb at /tmp/relay/alice/chains/rococo_local_testnet/db/full</span>
<br />
<span>2024-09-09 13:49:59 🏷 Local node identity is: 12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp</span>
<br />
<span>2024-09-09 13:49:59 Running libp2p network backend</span>
<br />
<span>...</span>
</div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div id="termynal" data-termynal>
<span>...</span>
<br>
<span>2024-09-10 13:29:38 🏆 Imported #55 (0xad6a…567c → 0xecae…ad12)<span>
<br>
<span>2024-09-10 13:29:38 💤 Idle (1 peers), best: #55 (0xecae…ad12), finalized #0 (0x1cac…618d), ⬇ 2.0kiB/s ⬆ 1.6kiB/s</span>
<br>
<span>...</span>
</div>
<span>...</span>
<br />
<span>2024-09-10 13:29:38 🏆 Imported #55 (0xad6a…567c → 0xecae…ad12)</span>
<br />
<span>2024-09-10 13:29:38 💤 Idle (1 peers), best: #55 (0xecae…ad12), finalized #0 (0x1cac…618d), ⬇ 2.0kiB/s ⬆ 1.6kiB/s</span>
<br />
<span>...</span>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"bootnode": false,
"provider": "kubernetes",
"backchannel": false,
...
"...": {}
},
...
"...": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ timeout = 1000
bootnode = false
provider = "kubernetes"
backchannel = false
...


# ...
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"parachain": {
"id": 100,
"add_to_genesis": true,
"cumulus_based": true,
"genesis_wasm_path": "/path/to/wasm",
"genesis_state_path": "/path/to/state",
"collators": [
{
"name": "alice",
"image": "polkadot-parachain",
"command": "polkadot-parachain",
...
},
],
"id": 100,
"add_to_genesis": true,
"cumulus_based": true,
"genesis_wasm_path": "/path/to/wasm",
"genesis_state_path": "/path/to/state",
"collators": [
{
"name": "alice",
"image": "polkadot-parachain",
"command": "polkadot-parachain",
"...": {}
}
]
},
...
}
"...": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ genesis_state_path = "/path/to/state"
name = "alice"
image = "polkadot-parachain"
command = "polkadot-parachain"
...
# ...
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"count": 2,
"image": "polkadot-parachain",
"command": "polkadot-parachain",
...
},
],
"...": {}
}
]
},
...
}
"...": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ name = "group-1"
count = 2
image = "polkadot-parachain"
command = "polkadot-parachain"
...
# ...
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"parachain": {
"id": 100,
"add_to_genesis": true,
"cumulus_based": true,
"genesis_wasm_path": "/path/to/wasm",
"genesis_state_path": "/path/to/state",
...
"id": 100,
"add_to_genesis": true,
"cumulus_based": true,
"genesis_wasm_path": "/path/to/wasm",
"genesis_state_path": "/path/to/state",
"...": {}
},
...
}
"...": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ add_to_genesis = true
cumulus_based = true
genesis_wasm_path = "/path/to/wasm"
genesis_state_path = "/path/to/state"
...
# ...
Loading

0 comments on commit 7811f80

Please sign in to comment.