Skip to content

Commit

Permalink
[Substrate.io Migration] Tutorials -> Build a Parachain -> Connect a …
Browse files Browse the repository at this point in the history
…parachain (#22)

* fix: adding prepare substrate relay chain

* fiox: formatting error

* fix: description

* fix: paraphrasing

* fix: vale warning

* fix: formatting

* fix: adding conclusion to the tutorial

* fix: formatting

* fix: formatting

* git: adding intro and build the parachain template section

* fix: adding wip

* fix: updating prepare relay chain output and commands

* fix: adding build a parachain complete process

* fix: vale suggestion

* fix: formatting

* fix: typo and adding abs route to build a local blockchain tutorial

* fix: paraphrasing

* fix: updating deprecated route

* fix: paraphrasing

* fix: formatting

* fix: chain specs decoupled from substrate website

* Update tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md

Co-authored-by: 0xLucca <[email protected]>

* fix: typo

* fix: removing redundant commands on terminal elements

* fix: adding disclaimer for chain spec generation

* fix: removing redundant commands on terminal elements

* fix: removing unnecessary info

* fix: addin small clarification about sudo txs

* fix: clarification about sudo changes

* Update tutorials/polkadot-sdk/build-a-parachain/connect-a-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* fix: adding missing terminal output

* fix: adding image to register with the local relay chain process, step 6

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* fix: moving terminal outputs to code snippets

* fix: adding clarification over resetting bc state

* fix: adding hook to further tutorials

* moves terminal output elements to snippets

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>
  • Loading branch information
4 people authored Sep 26, 2024
1 parent 84b1c77 commit 01803d1
Show file tree
Hide file tree
Showing 16 changed files with 354 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/parachain-template-node export-genesis-state --chain raw-parachain-chainspec.json para-2000-genesis-state</span>
<span data-ty="progress">2024-09-10 14:41:13 🔨 Initializing Genesis block/state (state: 0xb089…1830, header-hash: 0x6b0b…bd69)</span>
<span data-ty="input"><span class="file-path"></span></span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>...</span>
<span data-ty>[Relaychain] 💤 Idle (2 peers), best: #90 (0x5f73…1ccf), finalized #87 (0xeb50…68ea), ⬇ 1.4kiB/s ⬆ 1.1kiB/s</span>
<span data-ty>[Parachain] 💤 Idle (0 peers), best: #0 (0x3626…fef3), finalized #0 (0x3626…fef3), ⬇ 1.2kiB/s ⬆ 0.7kiB/s</span>
<span data-ty>[Relaychain] 💤 Idle (2 peers), best: #90 (0x5f73…1ccf), finalized #88 (0xd43c…c3e6), ⬇ 0.7kiB/s ⬆ 0.5kiB/s</span>
<span data-ty>[Parachain] 💤 Idle (0 peers), best: #0 (0x3626…fef3), finalized #0 (0x3626…fef3), ⬇ 1.0kiB/s ⬆ 0.6kiB/s</span>
<span data-ty>[Relaychain] 👶 New epoch 9 launching at block 0x1c93…4aa9 (block slot 281848325 >= start slot 281848325)</span>
<span data-ty>[Relaychain] 👶 Next epoch starts at slot 281848335</span>
<span data-ty>[Relaychain] ✨ Imported #91 (0x1c93…4aa9)</span>
<span data-ty>[Parachain] Starting collation. relay_parent=0x1c936289cfe15fabaa369f7ae5d73050581cb12b75209c11976afcf07f6a4aa9 at=0x36261113c31019d4b2a1e27d062e186f46da0e8f6786177dc7b35959688ffef3</span>
<span data-ty>[Relaychain] 💤 Idle (2 peers), best: #91 (0x1c93…4aa9), finalized #88 (0xd43c…c3e6), ⬇ 1.2kiB/s ⬆ 0.7kiB/s</span>
<span data-ty>[Parachain] 💤 Idle (0 peers), best: #0 (0x3626…fef3), finalized #0 (0x3626…fef3), ⬇ 0.2kiB/s ⬆ 37 B/s</span>
<span data-ty="input"><span class="file-path"></span></span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/parachain-template-node build-spec --chain plain-parachain-chainspec.json --disable-default-bootnode --raw > raw-parachain-chainspec.json</span>
<span data-ty="progress">2024-09-10 14:34:58 Building chain spec</span>
<span data-ty="progress">2024-09-10 14:34:59 assembling new collators for new session 0 at #0</span>
<span data-ty="progress">2024-09-10 14:34:59 assembling new collators for new session 1 at #0</span>
<span data-ty="input"><span class="file-path"></span></span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<div id="termynal" data-termynal>
<span data-ty="input"><span class="file-path"></span>./target/release/parachain-template-node \
--charlie \
--collator \
--force-authoring \
--chain raw-parachain-chainspec.json \
--base-path /tmp/charlie-parachain/ \
--unsafe-force-node-key-generation \
--port 40333 \
--rpc-port 8844 \
-- \
--chain INSERT_RELAY_CHAIN_PATH/local-raw-spec.json \
--port 30333 \
--rpc-port 9946</span>
<span data-ty>2024-09-10 16:26:30 [Parachain] PoV size { header: 0.21875kb, extrinsics: 3.6103515625kb, storage_proof: 3.150390625kb }</span>
<span data-ty>2024-09-10 16:26:30 [Parachain] Compressed PoV size: 6.150390625kb</span>
<span data-ty>2024-09-10 16:26:33 [Relaychain] 💤 Idle (2 peers), best: #1729 (0x3aa4…cb6b), finalized #1726 (0xff7a…4352), ⬇ 9.1kiB/s ⬆ 3.8kiB/s</span>
<span data-ty="input"><span class="file-path"></span></span>
</div>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion tutorials/polkadot-sdk/build-a-parachain/.pages
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
title: Build a Parachain Tutorials
nav:
- index.md
- prepare-relay-chain.md
- 'Prepare Relay Chain': 'prepare-relay-chain.md'
- 'Connect a Parachain': 'connect-a-parachain.md'
307 changes: 307 additions & 0 deletions tutorials/polkadot-sdk/build-a-parachain/connect-a-parachain.md

Large diffs are not rendered by default.

0 comments on commit 01803d1

Please sign in to comment.