diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..b512c09d4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
\ No newline at end of file
diff --git a/.husky/pre-commit b/.husky/pre-commit
new file mode 100755
index 000000000..a07e2a6aa
--- /dev/null
+++ b/.husky/pre-commit
@@ -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}
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-output.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-output.html
index e7f2189ae..e0819b6a5 100644
--- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-output.html
+++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-output.html
@@ -1,27 +1,27 @@
-
-
./target/release/solochain-template-node --dev
-
-
2024-09-09 08:32:42 Substrate Node
-
2024-09-09 08:32:42 ✌️ version 0.1.0-8599efc46ae
-
2024-09-09 08:32:42 ❤️ by Parity Technologies , 2017-2024
-
2024-09-09 08:32:42 📋 Chain specification: Development
-
2024-09-09 08:32:42 🏷 Node name: light-boundary-7850
-
2024-09-09 08:32:42 👤 Role: AUTHORITY
-
2024-09-09 08:32:42 💾 Database: RocksDb at /var/folders/x0/xl_kjddj3ql3bx7752yr09hc0000gn/T/substrate0QH9va/chains/dev/db/full
-
2024-09-09 08:32:42 🔨 Initializing Genesis block/state (state: 0xc2a0…16ba, header-hash: 0x0eef…935d)
-
2024-09-09 08:32:42 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
-
2024-09-09 08:32:42 Using default protocol ID "sup" because none is configured in the chain specs
-
2024-09-09 08:32:42 🏷 Local node identity is: 12D3KooWPhdUzf66di1SuuRFgjkFs6X8jm3Uj2ss5ri31WuVAbgt
-
2024-09-09 08:32:42 Running libp2p network backend
-
2024-09-09 08:32:42 💻 Operating system: macos
-
2024-09-09 08:32:42 💻 CPU architecture: aarch64
-
2024-09-09 08:32:42 📦 Highest known block at #0
-
2024-09-09 08:32:42 〽️ Prometheus exporter started at 127.0.0.1:9615
-
2024-09-09 08:32:42 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["*"]
-
2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0
-
2024-09-09 08:32:48 🙌 Starting consensus session on top of parent 0x0eef4a08ef90cc04d01864514dc5cb2bd822314309b770b49b0177f920ed935d (#0)
-
2024-09-09 08:32:48 🎁 Prepared block for proposing at 1 (1 ms) [hash: 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36; parent_hash: 0x0eef…935d; extrinsics (1): [0xbcd8…5132]
-
2024-09-09 08:32:48 🔖 Pre-sealed block for proposal at 1. Hash now 0xcb3d2f28bc73807dac5cf19fcfb2ac6d7e922756da9d41ca0c9dadbd0e45265b, previously 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36.
-
2024-09-09 08:32:48 🏆 Imported #1 (0x0eef…935d → 0xcb3d…265b)
-
...
-
\ No newline at end of file
+
+ ./target/release/solochain-template-node --dev
+
+ 2024-09-09 08:32:42 Substrate Node
+ 2024-09-09 08:32:42 ✌️ version 0.1.0-8599efc46ae
+ 2024-09-09 08:32:42 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024
+ 2024-09-09 08:32:42 📋 Chain specification: Development
+ 2024-09-09 08:32:42 🏷 Node name: light-boundary-7850
+ 2024-09-09 08:32:42 👤 Role: AUTHORITY
+ 2024-09-09 08:32:42 💾 Database: RocksDb at /var/folders/x0/xl_kjddj3ql3bx7752yr09hc0000gn/T/substrate0QH9va/chains/dev/db/full
+ 2024-09-09 08:32:42 🔨 Initializing Genesis block/state (state: 0xc2a0…16ba, header-hash: 0x0eef…935d)
+ 2024-09-09 08:32:42 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
+ 2024-09-09 08:32:42 Using default protocol ID "sup" because none is configured in the chain specs
+ 2024-09-09 08:32:42 🏷 Local node identity is: 12D3KooWPhdUzf66di1SuuRFgjkFs6X8jm3Uj2ss5ri31WuVAbgt
+ 2024-09-09 08:32:42 Running libp2p network backend
+ 2024-09-09 08:32:42 💻 Operating system: macos
+ 2024-09-09 08:32:42 💻 CPU architecture: aarch64
+ 2024-09-09 08:32:42 📦 Highest known block at #0
+ 2024-09-09 08:32:42 〽️ Prometheus exporter started at 127.0.0.1:9615
+ 2024-09-09 08:32:42 Running JSON-RPC server: addr=127.0.0.1:9944, allowed origins=["*"]
+ 2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0
+ 2024-09-09 08:32:48 🙌 Starting consensus session on top of parent 0x0eef4a08ef90cc04d01864514dc5cb2bd822314309b770b49b0177f920ed935d (#0)
+ 2024-09-09 08:32:48 🎁 Prepared block for proposing at 1 (1 ms) [hash: 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36; parent_hash: 0x0eef…935d; extrinsics (1): [0xbcd8…5132]
+ 2024-09-09 08:32:48 🔖 Pre-sealed block for proposal at 1. Hash now 0xcb3d2f28bc73807dac5cf19fcfb2ac6d7e922756da9d41ca0c9dadbd0e45265b, previously 0xc14630b76907550bef9037dcbfafa2b25c8dc763495f30d9e36ad4b93b673b36.
+ 2024-09-09 08:32:48 🏆 Imported #1 (0x0eef…935d → 0xcb3d…265b)
+ ...
+
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output-1.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output-1.html
index 52441a04e..bb4550546 100644
--- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output-1.html
+++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output-1.html
@@ -1,19 +1,19 @@
-
- ...
- 2024-09-10 09:04:57 discovered: 12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD /ip4/192.168.1.4/tcp/30334
- 2024-09-10 09:04:58 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0.3kiB/s ⬆ 0.3kiB/s
- 2024-09-10 09:05:00 🙌 Starting consensus session on top of parent 0x850ffab4827cb0297316cbf01fc7c2afb954c5124f366f25ea88bfd19ede951f (#0)
- 2024-09-10 09:05:00 🎁 Prepared block for proposing at 1 (2 ms) [hash: 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d; parent_hash: 0x850f…951f; extrinsics (1): [0x0c18…08d8]
- 2024-09-10 09:05:00 🔖 Pre-sealed block for proposal at 1. Hash now 0x75bbb026db82a4d6ff88b96f952a29e15dac2b7df24d4cb95510945e2bede82d, previously 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d.
- 2024-09-10 09:05:00 🏆 Imported #1 (0x850f…951f → 0x75bb…e82d)
- 2024-09-10 09:05:03 💤 Idle (1 peers), best: #1 (0x75bb…e82d), finalized #0 (0x850f…951f), ⬇ 0.7kiB/s ⬆ 0.8kiB/s
- 2024-09-10 09:05:06 🏆 Imported #2 (0x75bb…e82d → 0x774d…a176)
- 2024-09-10 09:05:08 💤 Idle (1 peers), best: #2 (0x774d…a176), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.5kiB/s
- 2024-09-10 09:05:12 🙌 Starting consensus session on top of parent 0x774dec6bff7a27c38e21106a5a7428ae5d50b991f39cda7c0aa3c0c9322da176 (#2)
- 2024-09-10 09:05:12 🎁 Prepared block for proposing at 3 (0 ms) [hash: 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486; parent_hash: 0x774d…a176; extrinsics (1): [0xdcd4…b5ec]
- 2024-09-10 09:05:12 🔖 Pre-sealed block for proposal at 3. Hash now 0x01e080f4b8421c95d0033aac7310b36972fdeef7c6025f8a153c436c1bb214ee, previously 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486.
- 2024-09-10 09:05:12 🏆 Imported #3 (0x774d…a176 → 0x01e0…14ee)
- 2024-09-10 09:05:13 💤 Idle (1 peers), best: #3 (0x01e0…14ee), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
- 2024-09-10 09:05:18 🏆 Imported #4 (0x01e0…14ee → 0xe176…0430)
- 2024-09-10 09:05:18 💤 Idle (1 peers), best: #4 (0xe176…0430), finalized #1 (0x75bb…e82d), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
-
\ No newline at end of file
+
+ ...
+ 2024-09-10 09:04:57 discovered: 12D3KooWHdiAxVd8uMQR1hGWXccidmfCwLqcMpGwR6QcTP6QRMuD /ip4/192.168.1.4/tcp/30334
+ 2024-09-10 09:04:58 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0.3kiB/s ⬆ 0.3kiB/s
+ 2024-09-10 09:05:00 🙌 Starting consensus session on top of parent 0x850ffab4827cb0297316cbf01fc7c2afb954c5124f366f25ea88bfd19ede951f (#0)
+ 2024-09-10 09:05:00 🎁 Prepared block for proposing at 1 (2 ms) [hash: 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d; parent_hash: 0x850f…951f; extrinsics (1): [0x0c18…08d8]
+ 2024-09-10 09:05:00 🔖 Pre-sealed block for proposal at 1. Hash now 0x75bbb026db82a4d6ff88b96f952a29e15dac2b7df24d4cb95510945e2bede82d, previously 0xe21a305e6647b0b0c6c73ba31a49ae422809611387fadb7785f68d0a1db0b52d.
+ 2024-09-10 09:05:00 🏆 Imported #1 (0x850f…951f → 0x75bb…e82d)
+ 2024-09-10 09:05:03 💤 Idle (1 peers), best: #1 (0x75bb…e82d), finalized #0 (0x850f…951f), ⬇ 0.7kiB/s ⬆ 0.8kiB/s
+ 2024-09-10 09:05:06 🏆 Imported #2 (0x75bb…e82d → 0x774d…a176)
+ 2024-09-10 09:05:08 💤 Idle (1 peers), best: #2 (0x774d…a176), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.5kiB/s
+ 2024-09-10 09:05:12 🙌 Starting consensus session on top of parent 0x774dec6bff7a27c38e21106a5a7428ae5d50b991f39cda7c0aa3c0c9322da176 (#2)
+ 2024-09-10 09:05:12 🎁 Prepared block for proposing at 3 (0 ms) [hash: 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486; parent_hash: 0x774d…a176; extrinsics (1): [0xdcd4…b5ec]
+ 2024-09-10 09:05:12 🔖 Pre-sealed block for proposal at 3. Hash now 0x01e080f4b8421c95d0033aac7310b36972fdeef7c6025f8a153c436c1bb214ee, previously 0x10bb4589a7a13bac657219a9ff06dcef8d55e46a4275aa287a966b5648a6d486.
+ 2024-09-10 09:05:12 🏆 Imported #3 (0x774d…a176 → 0x01e0…14ee)
+ 2024-09-10 09:05:13 💤 Idle (1 peers), best: #3 (0x01e0…14ee), finalized #0 (0x850f…951f), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
+ 2024-09-10 09:05:18 🏆 Imported #4 (0x01e0…14ee → 0xe176…0430)
+ 2024-09-10 09:05:18 💤 Idle (1 peers), best: #4 (0xe176…0430), finalized #1 (0x75bb…e82d), ⬇ 0.6kiB/s ⬆ 0.6kiB/s
+
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output.html
index 3015ba3fe..4307d2c07 100644
--- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output.html
+++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-output.html
@@ -1,29 +1,21 @@
-
-
./target/release/solochain-template-node \
---base-path /tmp/alice \
---chain local \
---alice \
---port 30333 \
---rpc-port 9945 \
---node-key 0000000000000000000000000000000000000000000000000000000000000001 \
---validator
-
-
2024-09-10 08:35:43 Substrate Node
-
2024-09-10 08:35:43 ✌️ version 0.1.0-8599efc46ae
-
2024-09-10 08:35:43 ❤️ by Parity Technologies , 2017-2024
-
2024-09-10 08:35:43 📋 Chain specification: Local Testnet
-
2024-09-10 08:35:43 🏷 Node name: Alice
-
2024-09-10 08:35:43 👤 Role: AUTHORITY
-
2024-09-10 08:35:43 💾 Database: RocksDb at /tmp/alice/chains/local_testnet/db/full
-
2024-09-10 08:35:43 🔨 Initializing Genesis block/state (state: 0x074c…27bd, header-hash: 0x850f…951f)
-
2024-09-10 08:35:43 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
-
2024-09-10 08:35:43 Using default protocol ID "sup" because none is configured in the chain specs
-
2024-09-10 08:35:43 🏷 Local node identity is: 12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
-
2024-09-10 08:35:43 Running libp2p network backend
-
2024-09-10 08:35:43 💻 Operating system: macos
-
2024-09-10 08:35:43 💻 CPU architecture: aarch64
-
2024-09-10 08:35:43 📦 Highest known block at #0
-
2024-09-10 08:35:43 〽️ Prometheus exporter started at 127.0.0.1:9615
-
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"]
-
2024-09-10 08:35:48 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0 ⬆ 0
-
\ No newline at end of file
+
+ ./target/release/solochain-template-node \ --base-path /tmp/alice \ --chain local \ --alice \ --port 30333 \ --rpc-port 9945 \ --node-key 0000000000000000000000000000000000000000000000000000000000000001 \ --validator
+ 2024-09-10 08:35:43 Substrate Node
+ 2024-09-10 08:35:43 ✌️ version 0.1.0-8599efc46ae
+ 2024-09-10 08:35:43 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024
+ 2024-09-10 08:35:43 📋 Chain specification: Local Testnet
+ 2024-09-10 08:35:43 🏷 Node name: Alice
+ 2024-09-10 08:35:43 👤 Role: AUTHORITY
+ 2024-09-10 08:35:43 💾 Database: RocksDb at /tmp/alice/chains/local_testnet/db/full
+ 2024-09-10 08:35:43 🔨 Initializing Genesis block/state (state: 0x074c…27bd, header-hash: 0x850f…951f)
+ 2024-09-10 08:35:43 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.
+ 2024-09-10 08:35:43 Using default protocol ID "sup" because none is configured in the chain specs
+ 2024-09-10 08:35:43 🏷 Local node identity is: 12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp
+ 2024-09-10 08:35:43 Running libp2p network backend
+ 2024-09-10 08:35:43 💻 Operating system: macos
+ 2024-09-10 08:35:43 💻 CPU architecture: aarch64
+ 2024-09-10 08:35:43 📦 Highest known block at #0
+ 2024-09-10 08:35:43 〽️ Prometheus exporter started at 127.0.0.1:9615
+ 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"]
+ 2024-09-10 08:35:48 💤 Idle (0 peers), best: #0 (0x850f…951f), finalized #0 (0x850f…951f), ⬇ 0 ⬆ 0
+
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html
index 4266e5348..601dd4443 100644
--- a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html
+++ b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html
@@ -1,21 +1,21 @@
-
2024-09-09 13:49:58 Parity Polkadot
-
-
2024-09-09 13:49:58 ✌️ version 1.15.2-d6f482d5593
-
-
2024-09-09 13:49:58 ❤️ by Parity Technologies , 2017-2024
-
-
2024-09-09 13:49:58 📋 Chain specification: Rococo Local Testnet
-
-
2024-09-09 13:49:58 🏷 Node name: Alice
-
-
2024-09-09 13:49:58 👤 Role: AUTHORITY
-
-
2024-09-09 13:49:58 💾 Database: RocksDb at /tmp/relay/alice/chains/rococo_local_testnet/db/full
-
- 2024-09-09 13:49:59 🏷 Local node identity is: 12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp
-
- 2024-09-09 13:49:59 Running libp2p network backend
-
- ...
-
\ No newline at end of file
+ 2024-09-09 13:49:58 Parity Polkadot
+
+ 2024-09-09 13:49:58 ✌️ version 1.15.2-d6f482d5593
+
+ 2024-09-09 13:49:58 ❤️ by Parity Technologies <admin@parity.io>, 2017-2024
+
+ 2024-09-09 13:49:58 📋 Chain specification: Rococo Local Testnet
+
+ 2024-09-09 13:49:58 🏷 Node name: Alice
+
+ 2024-09-09 13:49:58 👤 Role: AUTHORITY
+
+ 2024-09-09 13:49:58 💾 Database: RocksDb at /tmp/relay/alice/chains/rococo_local_testnet/db/full
+
+ 2024-09-09 13:49:59 🏷 Local node identity is: 12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp
+
+ 2024-09-09 13:49:59 Running libp2p network backend
+
+ ...
+
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html
index 8fc3c7268..982b8b333 100644
--- a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html
+++ b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html
@@ -1,9 +1,9 @@
- ...
-
- 2024-09-10 13:29:38 🏆 Imported #55 (0xad6a…567c → 0xecae…ad12)
-
- 2024-09-10 13:29:38 💤 Idle (1 peers), best: #55 (0xecae…ad12), finalized #0 (0x1cac…618d), ⬇ 2.0kiB/s ⬆ 1.6kiB/s
-
- ...
-
\ No newline at end of file
+ ...
+
+ 2024-09-10 13:29:38 🏆 Imported #55 (0xad6a…567c → 0xecae…ad12)
+
+ 2024-09-10 13:29:38 💤 Idle (1 peers), best: #55 (0xecae…ad12), finalized #0 (0x1cac…618d), ⬇ 2.0kiB/s ⬆ 1.6kiB/s
+
+ ...
+
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/base-example.json b/.snippets/code/tutorials/tooling/zombienet/overview/base-example.json
index ca336a2c1..306fb2162 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/base-example.json
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/base-example.json
@@ -4,7 +4,7 @@
"bootnode": false,
"provider": "kubernetes",
"backchannel": false,
- ...
+ "...": {}
},
- ...
+ "...": {}
}
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/base-example.toml b/.snippets/code/tutorials/tooling/zombienet/overview/base-example.toml
index fff1b657a..b9d669a28 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/base-example.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/base-example.toml
@@ -3,6 +3,4 @@ timeout = 1000
bootnode = false
provider = "kubernetes"
backchannel = false
-...
-
-
+# ...
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.json b/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.json
index 1547a6791..a0baec8e7 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.json
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.json
@@ -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",
+ "...": {}
+ }
+ ]
},
- ...
- }
\ No newline at end of file
+ "...": {}
+}
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.toml b/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.toml
index 6da7fdc67..efdf82897 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/collator-example.toml
@@ -9,4 +9,4 @@ genesis_state_path = "/path/to/state"
name = "alice"
image = "polkadot-parachain"
command = "polkadot-parachain"
-...
\ No newline at end of file
+# ...
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.json b/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.json
index 48aef41b6..598487102 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.json
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.json
@@ -11,9 +11,9 @@
"count": 2,
"image": "polkadot-parachain",
"command": "polkadot-parachain",
- ...
- },
- ],
+ "...": {}
+ }
+ ]
},
- ...
-}
\ No newline at end of file
+ "...": {}
+}
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.toml b/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.toml
index 01965c726..09a27e87d 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/collator-groups-example.toml
@@ -10,4 +10,4 @@ name = "group-1"
count = 2
image = "polkadot-parachain"
command = "polkadot-parachain"
-...
\ No newline at end of file
+# ...
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.json b/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.json
index 156cc1626..8f7510400 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.json
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.json
@@ -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",
+ "...": {}
},
- ...
-}
\ No newline at end of file
+ "...": {}
+}
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.toml b/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.toml
index cb96b3579..7858c54c4 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/parachain-example.toml
@@ -4,4 +4,4 @@ add_to_genesis = true
cumulus_based = true
genesis_wasm_path = "/path/to/wasm"
genesis_state_path = "/path/to/state"
-...
\ No newline at end of file
+# ...
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.json b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.json
index b9921be50..5b6f5e928 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.json
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.json
@@ -1,5 +1,4 @@
{
- ...,
"relaychain": {
"default_command": "polkadot",
"default_image": "polkadot-debug:master",
@@ -15,7 +14,7 @@
"args": ["--chain", "rococo-local"]
}
],
- ...
+ "...": {}
},
- ...
-}
\ No newline at end of file
+ "...": {}
+}
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.toml b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.toml
index 04169f5e0..03dd7a9f3 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-node-groups.toml
@@ -11,4 +11,4 @@ count = 2
image = "polkadot-debug:master"
command = "polkadot"
args = ["--chain", "rococo-local"]
-...
\ No newline at end of file
+# ...
diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.toml b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.toml
index 396668a6a..30e19d435 100644
--- a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.toml
+++ b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.toml
@@ -14,4 +14,4 @@ balance = 1000000000000
name = "bob"
validator = true
balance = 1000000000000
-...
\ No newline at end of file
+# ...
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 000000000..65b7775ac
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,43 @@
+{
+ "name": "polkadot-docs",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "polkadot-docs",
+ "version": "1.0.0",
+ "license": "ISC",
+ "devDependencies": {
+ "@taplo/cli": "^0.7.0",
+ "husky": "^8.0.0"
+ }
+ },
+ "node_modules/@taplo/cli": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/@taplo/cli/-/cli-0.7.0.tgz",
+ "integrity": "sha512-Ck3zFhQhIhi02Hl6T4ZmJsXdnJE+wXcJz5f8klxd4keRYgenMnip3JDPMGDRLbnC/2iGd8P0sBIQqI3KxfVjBg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "taplo": "dist/cli.js"
+ }
+ },
+ "node_modules/husky": {
+ "version": "8.0.3",
+ "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
+ "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "husky": "lib/bin.js"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/typicode"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 000000000..0abdd3630
--- /dev/null
+++ b/package.json
@@ -0,0 +1,17 @@
+{
+ "name": "polkadot-docs",
+ "version": "1.0.0",
+ "description": "This package contains tools to support the development and maintenance of the polkadot-docs repository.",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "prepare": "husky install"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC",
+ "devDependencies": {
+ "@taplo/cli": "^0.7.0",
+ "husky": "^8.0.0"
+ }
+}