From 549fa92c63a7e8b0d9dcdea628681f0b48caab0b Mon Sep 17 00:00:00 2001 From: Erin Shaben Date: Wed, 25 Sep 2024 12:29:36 -0400 Subject: [PATCH] format code snippets --- .../compilation-output.html | 8 ++--- .../node-block-production.html | 22 +++++++------- .../simulate-a-network/node-shutdown.html | 8 ++--- ....md => relay-chain-bootstraping-logs.html} | 0 ...-logs.md => relay-chain-running-logs.html} | 0 .../chopsticks/overview/replay-block.json | 7 ++--- .../overview/terminal/fork-output.html | 29 +++++++++++++++++++ .../overview/terminal/fork-output.md | 29 ------------------- .../overview/relaychain-example-nodes.json | 9 ++---- .../tooling/chopsticks/overview.md | 2 +- .../build-a-parachain/prepare-relay-chain.md | 4 +-- 11 files changed, 56 insertions(+), 62 deletions(-) rename .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/{relay-chain-bootstraping-logs.md => relay-chain-bootstraping-logs.html} (100%) rename .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/{relay-chain-running-logs.md => relay-chain-running-logs.html} (100%) create mode 100644 .snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.html delete mode 100644 .snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.md diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/compilation-output.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/compilation-output.html index d16a0d2e6..ddd0db1a7 100644 --- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/compilation-output.html +++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/compilation-output.html @@ -1,5 +1,5 @@
- cargo build --release - Compiling solochain-template-node - Finished `release` profile [optimized] target(s) in 27.12s -
\ No newline at end of file + cargo build --release + Compiling solochain-template-node + Finished `release` profile [optimized] target(s) in 27.12s + diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-block-production.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-block-production.html index d888f06d5..5b1f8a6d7 100644 --- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-block-production.html +++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/build-a-local-blockchain/node-block-production.html @@ -1,11 +1,11 @@ -
- ... - 2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 - ... - 2024-09-09 08:32:52 💤 Idle (0 peers), best: #1 (0xcb3d…265b), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 - ... - 2024-09-09 08:32:57 💤 Idle (0 peers), best: #2 (0x16d7…083f), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 - ... - 2024-09-09 08:33:02 💤 Idle (0 peers), best: #3 (0xe6a4…2cc4), finalized #1 (0xcb3d…265b), ⬇ 0 ⬆ 0 - ... -
\ No newline at end of file +
+ ... + 2024-09-09 08:32:47 💤 Idle (0 peers), best: #0 (0x0eef…935d), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 + ... + 2024-09-09 08:32:52 💤 Idle (0 peers), best: #1 (0xcb3d…265b), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 + ... + 2024-09-09 08:32:57 💤 Idle (0 peers), best: #2 (0x16d7…083f), finalized #0 (0x0eef…935d), ⬇ 0 ⬆ 0 + ... + 2024-09-09 08:33:02 💤 Idle (0 peers), best: #3 (0xe6a4…2cc4), finalized #1 (0xcb3d…265b), ⬇ 0 ⬆ 0 + ... +
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-shutdown.html b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-shutdown.html index f020f8bf2..6500822f7 100644 --- a/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-shutdown.html +++ b/.snippets/code/tutorials/polkadot-sdk/build-a-blockchain/simulate-a-network/node-shutdown.html @@ -1,4 +1,4 @@ -
- 2024-09-10 09:10:03 💤 Idle (1 peers), best: #51 (0x0dd6…e763), finalized #49 (0xb70a…1fc0), ⬇ 0.7kiB/s ⬆ 0.6kiB/s - 2024-09-10 09:10:08 💤 Idle (0 peers), best: #52 (0x2c40…a50e), finalized #49 (0xb70a…1fc0), ⬇ 0.3kiB/s ⬆ 0.3kiB/s -
\ No newline at end of file +
+ 2024-09-10 09:10:03 💤 Idle (1 peers), best: #51 (0x0dd6…e763), finalized #49 (0xb70a…1fc0), ⬇ 0.7kiB/s ⬆ 0.6kiB/s + 2024-09-10 09:10:08 💤 Idle (0 peers), best: #52 (0x2c40…a50e), finalized #49 (0xb70a…1fc0), ⬇ 0.3kiB/s ⬆ 0.3kiB/s +
diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.md b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html similarity index 100% rename from .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.md rename to .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html diff --git a/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.md b/.snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html similarity index 100% rename from .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.md rename to .snippets/code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html diff --git a/.snippets/code/tutorials/tooling/chopsticks/overview/replay-block.json b/.snippets/code/tutorials/tooling/chopsticks/overview/replay-block.json index 21230a01f..3360f1c42 100644 --- a/.snippets/code/tutorials/tooling/chopsticks/overview/replay-block.json +++ b/.snippets/code/tutorials/tooling/chopsticks/overview/replay-block.json @@ -74,10 +74,7 @@ "0x2b06af9719ac64d755623cda8ddd9b94b1c371ded9e9c565e89ba783c4d5f5f9b4def25cfda6ef3a000000006f3d6b177c8acbd8dc9974cdb3cebfac4d31333c30865ff66c35c1bf898df5c5dd2924d3280e7201", "0x9b000000" ], - [ - "0x3a65787472696e7369635f696e646578", - null - ], + ["0x3a65787472696e7369635f696e646578", null], [ "0x3f1467a096bcd71a5b6a0c8155e208103f2edf3bdf381debe331ab7446addfdc", "0x550057381efedcffffffffffffffffff" @@ -146,4 +143,4 @@ "offchainStorageDiff": [], "runtimeLogs": [] } -} \ No newline at end of file +} diff --git a/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.html b/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.html new file mode 100644 index 000000000..ba045ad8d --- /dev/null +++ b/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.html @@ -0,0 +1,29 @@ +
+ npx @acala-network/chopsticks xcm \ + --r polkadot \ + --p moonbeam \ + --p astar +
+ [13:46:07.901] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/moonbeam.yml + app: "chopsticks" + [13:46:12.631] INFO: Moonbeam RPC listening on port 8000 + app: "chopsticks" + [13:46:12.632] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/astar.yml + app: "chopsticks" + chopsticks::executor TRACE: Calling Metadata_metadata + chopsticks::executor TRACE: Completed Metadata_metadata + [13:46:23.669] INFO: Astar RPC listening on port 8001 + app: "chopsticks" + [13:46:25.144] INFO (xcm): Connected parachains [2004,2006] + app: "chopsticks" + [13:46:25.144] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/polkadot.yml + app: "chopsticks" + chopsticks::executor TRACE: Calling Metadata_metadata + chopsticks::executor TRACE: Completed Metadata_metadata + [13:46:53.320] INFO: Polkadot RPC listening on port 8002 + app: "chopsticks" + [13:46:54.038] INFO (xcm): Connected relaychain 'Polkadot' with parachain 'Moonbeam' + app: "chopsticks" + [13:46:55.028] INFO (xcm): Connected relaychain 'Polkadot' with parachain 'Astar' + app: "chopsticks" +
diff --git a/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.md b/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.md deleted file mode 100644 index 1b14cce7f..000000000 --- a/.snippets/code/tutorials/tooling/chopsticks/overview/terminal/fork-output.md +++ /dev/null @@ -1,29 +0,0 @@ -
- npx @acala-network/chopsticks xcm \ ---r polkadot \ ---p moonbeam \ ---p astar -
- [13:46:07.901] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/moonbeam.yml - app: "chopsticks" - [13:46:12.631] INFO: Moonbeam RPC listening on port 8000 - app: "chopsticks" - [13:46:12.632] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/astar.yml - app: "chopsticks" - chopsticks::executor TRACE: Calling Metadata_metadata - chopsticks::executor TRACE: Completed Metadata_metadata - [13:46:23.669] INFO: Astar RPC listening on port 8001 - app: "chopsticks" - [13:46:25.144] INFO (xcm): Connected parachains [2004,2006] - app: "chopsticks" - [13:46:25.144] INFO: Loading config file https://raw.githubusercontent.com/AcalaNetwork/chopsticks/master/configs/polkadot.yml - app: "chopsticks" - chopsticks::executor TRACE: Calling Metadata_metadata - chopsticks::executor TRACE: Completed Metadata_metadata - [13:46:53.320] INFO: Polkadot RPC listening on port 8002 - app: "chopsticks" - [13:46:54.038] INFO (xcm): Connected relaychain 'Polkadot' with parachain 'Moonbeam' - app: "chopsticks" - [13:46:55.028] INFO (xcm): Connected relaychain 'Polkadot' with parachain 'Astar' - app: "chopsticks" -
\ No newline at end of file diff --git a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.json b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.json index f8cbc14fa..9b3357303 100644 --- a/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.json +++ b/.snippets/code/tutorials/tooling/zombienet/overview/relaychain-example-nodes.json @@ -1,5 +1,4 @@ { - ..., "relaychain": { "default_command": "polkadot", "default_image": "polkadot-debug:master", @@ -17,8 +16,6 @@ "validator": true, "balance": 1000000000000 } - ], - ... - }, - ... -} \ No newline at end of file + ] + } +} diff --git a/develop/application-devs/tooling/chopsticks/overview.md b/develop/application-devs/tooling/chopsticks/overview.md index 7280f860a..a2f5fdd03 100644 --- a/develop/application-devs/tooling/chopsticks/overview.md +++ b/develop/application-devs/tooling/chopsticks/overview.md @@ -226,7 +226,7 @@ npx @acala-network/chopsticks xcm \ After running it, you should see output similar to the following: ---8<-- 'code/tutorials/tooling/chopsticks/overview/terminal/fork-output.md' +--8<-- 'code/tutorials/tooling/chopsticks/overview/terminal/fork-output.html' Now you can interact with your forked chains using the ports specified in the output. diff --git a/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md b/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md index 4ea547a76..631b8f961 100644 --- a/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md +++ b/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md @@ -129,7 +129,7 @@ To start the validator nodes, follow these steps: 3. Review log messages as the node starts and take note of the `Local node identity` value. This value is the node’s peer ID, which you need to connect the parachain to the relay chain - --8<-- "code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.md" + --8<-- "code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-bootstraping-logs.html" !!! note You need to specify this identifier to enable other nodes to connect. In this case, the `Local node identity` is `12D3KooWG393uX82rR3QgDkZpb7U8StzuRx9BQUXCvWsP1ctgygp`. @@ -161,6 +161,6 @@ To start the validator nodes, follow these steps: 5. Verify that the relay chain nodes are running by checking the logs for each node. The logs should show that the nodes are connected to each other and producing blocks. For example, Bob's logs will be displayed as follows: - --8<-- "code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.md" + --8<-- "code/tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain/relay-chain-running-logs.html" Once the relay chain nodes are running, you can proceed to the next tutorial to set up a test parachain node and connect it to the relay chain. \ No newline at end of file