Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Substrate.io Migration] Tutorials -> Build a Parachain -> Connect a parachain #22

Merged
merged 41 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1a523ef
fix: adding prepare substrate relay chain
nhussein11 Sep 9, 2024
a59e5e3
fiox: formatting error
nhussein11 Sep 9, 2024
d5cc084
fix: description
nhussein11 Sep 9, 2024
5e7a4dc
fix: paraphrasing
nhussein11 Sep 9, 2024
2413eec
fix: vale warning
nhussein11 Sep 9, 2024
291a833
fix: formatting
nhussein11 Sep 9, 2024
3b73da1
fix: adding conclusion to the tutorial
nhussein11 Sep 9, 2024
fabc617
fix: formatting
nhussein11 Sep 10, 2024
5316122
fix: formatting
nhussein11 Sep 10, 2024
763f598
git: adding intro and build the parachain template section
nhussein11 Sep 10, 2024
d27184f
fix: adding wip
nhussein11 Sep 10, 2024
ff83f15
fix: updating prepare relay chain output and commands
nhussein11 Sep 10, 2024
339514f
Merge branch 'nhussein11/tutorials-substrate-prepare-relay-chain' int…
nhussein11 Sep 10, 2024
907bff6
fix: adding build a parachain complete process
nhussein11 Sep 10, 2024
75d518f
fix: vale suggestion
nhussein11 Sep 10, 2024
5f7a28c
fix: formatting
nhussein11 Sep 11, 2024
213814e
fix: typo and adding abs route to build a local blockchain tutorial
nhussein11 Sep 11, 2024
1286b44
fix: paraphrasing
nhussein11 Sep 11, 2024
4f2a152
fix: updating deprecated route
nhussein11 Sep 11, 2024
f8b1fa8
fix: paraphrasing
nhussein11 Sep 11, 2024
1cb5f77
fix: formatting
nhussein11 Sep 11, 2024
5274116
fix: chain specs decoupled from substrate website
nhussein11 Sep 11, 2024
6bfe5e4
Update tutorials/polkadot-sdk/build-a-parachain/prepare-relay-chain.md
nhussein11 Sep 23, 2024
6446b16
fix: typo
nhussein11 Sep 23, 2024
aa08eca
fix: removing redundant commands on terminal elements
nhussein11 Sep 23, 2024
8acc357
fix: adding disclaimer for chain spec generation
nhussein11 Sep 23, 2024
231eafe
fix: removing redundant commands on terminal elements
nhussein11 Sep 23, 2024
1cac723
fix: removing unnecessary info
nhussein11 Sep 23, 2024
38ab69e
fix: addin small clarification about sudo txs
nhussein11 Sep 23, 2024
357bd72
fix: clarification about sudo changes
nhussein11 Sep 23, 2024
7a21a64
Update tutorials/polkadot-sdk/build-a-parachain/connect-a-parachain.md
nhussein11 Sep 23, 2024
bd8ff69
fix: adding missing terminal output
nhussein11 Sep 23, 2024
df3357c
fix: adding image to register with the local relay chain process, step 6
nhussein11 Sep 23, 2024
f463234
Apply suggestions from code review
nhussein11 Sep 24, 2024
ac7f71a
fix: moving terminal outputs to code snippets
nhussein11 Sep 24, 2024
1bd5b34
Merge branch 'master' into nhussein11/tutorials-substrate-prepare-rel…
nhussein11 Sep 24, 2024
daadd83
Merge branch 'nhussein11/tutorials-substrate-prepare-relay-chain' int…
nhussein11 Sep 24, 2024
6516f69
fix: adding clarification over resetting bc state
nhussein11 Sep 24, 2024
d4f68e4
fix: adding hook to further tutorials
nhussein11 Sep 25, 2024
02aba6a
Merge branch 'master' into nhussein11/tutorials-substrate-connect-a-p…
nhussein11 Sep 25, 2024
b70b614
moves terminal output elements to snippets
dawnkelly09 Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.