Skip to content

Commit 572c2b7

Browse files
0xLuccanhussein110xlukemdawnkelly09eshaben
authored
Fix zero-to-hero tutorial (#431)
* Improve set-up-a-template * Update deploy-to-testnet * More updates * Apply suggestions from code review Co-authored-by: Nicolás Hussein <[email protected]> * Apply suggestions * Apply suggestions from code review Co-authored-by: Lucas Malizia <[email protected]> * Update tutorials/polkadot-sdk/parachains/zero-to-hero/deploy-to-testnet.md Co-authored-by: Lucas Malizia <[email protected]> * Update llms.txt * Update tutorials/polkadot-sdk/parachains/zero-to-hero/deploy-to-testnet.md Co-authored-by: Dawn Kelly <[email protected]> * Update llms.txt * Update description * Apply suggestions * Apply suggestions from code review Co-authored-by: Erin Shaben <[email protected]> * Use variables in urls --------- Co-authored-by: Nicolás Hussein <[email protected]> Co-authored-by: Lucas Malizia <[email protected]> Co-authored-by: Dawn Kelly <[email protected]> Co-authored-by: Erin Shaben <[email protected]>
1 parent ba866da commit 572c2b7

File tree

11 files changed

+510
-234
lines changed

11 files changed

+510
-234
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"bootNodes": [],
3+
"chainType": "Live",
4+
"codeSubstitutes": {},
5+
"genesis": {
6+
"runtimeGenesis": {
7+
"code": "0x...",
8+
"patch": {
9+
"aura": {
10+
"authorities": []
11+
},
12+
"auraExt": {},
13+
"balances": {
14+
"balances": [["INSERT_SUDO_ACCOUNT", 1152921504606846976]]
15+
},
16+
"collatorSelection": {
17+
"candidacyBond": 16000000000,
18+
"desiredCandidates": 0,
19+
"invulnerables": ["INSERT_ACCOUNT_ID_COLLATOR_1"]
20+
},
21+
"parachainInfo": {
22+
"parachainId": "INSERT_PARA_ID"
23+
},
24+
"parachainSystem": {},
25+
"polkadotXcm": {
26+
"safeXcmVersion": 4
27+
},
28+
"session": {
29+
"keys": [
30+
[
31+
"INSERT_ACCOUNT_ID_COLLATOR_1",
32+
"INSERT_ACCOUNT_ID_COLLATOR_1",
33+
{
34+
"aura": "INSERT_SESSION_KEY_COLLATOR_1"
35+
}
36+
]
37+
],
38+
"nonAuthorityKeys": []
39+
},
40+
"sudo": {
41+
"key": "INSERT_SUDO_ACCOUNT"
42+
},
43+
"system": {},
44+
"transactionPayment": {
45+
"multiplier": "1000000000000000000"
46+
}
47+
}
48+
}
49+
},
50+
"id": "INSERT_ID",
51+
"name": "INSERT_NAME",
52+
"para_id": "INSERT_PARA_ID",
53+
"properties": {
54+
"tokenDecimals": 12,
55+
"tokenSymbol": "UNIT"
56+
},
57+
"protocolId": "INSERT_PROTOCOL_ID",
58+
"relay_chain": "paseo",
59+
"telemetryEndpoints": null
60+
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div id="termynal" data-termynal>
2-
<span data-ty="input"><span class="file-path"></span>polkadot-omni-node key generate-node-key --base-path /tmp/parachain/pubs-demo --chain raw-parachain-chainspec.json</span>
2+
<span data-ty="input"><span class="file-path"></span>polkadot-omni-node key generate-node-key --base-path data --chain raw_chain_spec.json</span>
33
<br />
4-
<span data-ty="progress">2024-09-11 09:48:15 Building chain spec</span>
5-
<span data-ty="progress">Generating key in "/tmp/parachain/pubs-demo/chains/live/network/secret_ed25519"</span>
6-
<span data-ty="progress">12D3KooWJH816dWizsft7MXVrv1nH3dHnGsHxD1qdyQm9mMAbo7Z</span>
4+
<span data-ty="progress">Generating key in "/data/chains/custom/network/secret_ed25519"</span>
5+
<span data-ty="progress">12D3KooWKGW964eG4fAwsNMFdckbj3GwhpmSGFU9dd8LFAVAa4EE</span>
76
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div id="termynal" data-termynal>
2+
<span data-ty="input"><span class="file-path"></span>docker run -it parity/subkey:latest generate --scheme sr25519</span>
3+
<span> <br />Secret phrase: lemon play remain picture leopard frog mad bridge hire hazard best buddy <br />Network ID: substrate <br />Secret seed: 0xb748b501de061bae1fcab1c0b814255979d74d9637b84e06414a57a1a149c004 <br />Public key (hex): 0xf4ec62ec6e70a3c0f8dcbe0531e2b1b8916cf16d30635bbe9232f6ed3f0bf422 <br />Account ID: 0xf4ec62ec6e70a3c0f8dcbe0531e2b1b8916cf16d30635bbe9232f6ed3f0bf422 <br />Public key (SS58): 5HbqmBBJ5ALUzho7tw1k1jEgKBJM7dNsQwrtfSfUskT1a3oe <br />SS58 Address: 5HbqmBBJ5ALUzho7tw1k1jEgKBJM7dNsQwrtfSfUskT1a3oe </span>
4+
</div>

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/deploy-to-testnet/partial-chain-spec.json

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"bootNodes": [],
3+
"chainType": "Live",
4+
"codeSubstitutes": {},
5+
"genesis": {
6+
"runtimeGenesis": {
7+
"code": "0x...",
8+
"patch": {
9+
"aura": {
10+
"authorities": []
11+
},
12+
"auraExt": {},
13+
"balances": {
14+
"balances": [
15+
[
16+
"5F9Zteceg3Q4ywi63AxQNVb2b2r5caFSqjQxBkCrux6j8ZpS",
17+
1152921504606846976
18+
]
19+
]
20+
},
21+
"collatorSelection": {
22+
"candidacyBond": 16000000000,
23+
"desiredCandidates": 0,
24+
"invulnerables": [
25+
"5F9Zteceg3Q4ywi63AxQNVb2b2r5caFSqjQxBkCrux6j8ZpS"
26+
]
27+
},
28+
"parachainInfo": {
29+
"parachainId": 4508
30+
},
31+
"parachainSystem": {},
32+
"polkadotXcm": {
33+
"safeXcmVersion": 4
34+
},
35+
"session": {
36+
"keys": [
37+
[
38+
"5F9Zteceg3Q4ywi63AxQNVb2b2r5caFSqjQxBkCrux6j8ZpS",
39+
"5F9Zteceg3Q4ywi63AxQNVb2b2r5caFSqjQxBkCrux6j8ZpS",
40+
{
41+
"aura": "5GcAKNdYcw5ybb2kAnta8WVFyiQbGJ5od3aH9MsgYDmVcrhJ"
42+
}
43+
]
44+
],
45+
"nonAuthorityKeys": []
46+
},
47+
"sudo": {
48+
"key": "5F9Zteceg3Q4ywi63AxQNVb2b2r5caFSqjQxBkCrux6j8ZpS"
49+
},
50+
"system": {},
51+
"transactionPayment": {
52+
"multiplier": "1000000000000000000"
53+
}
54+
}
55+
}
56+
},
57+
"id": "custom",
58+
"name": "Custom",
59+
"para_id": 4508,
60+
"properties": {
61+
"tokenDecimals": 12,
62+
"tokenSymbol": "UNIT"
63+
},
64+
"protocolId": null,
65+
"relay_chain": "paseo",
66+
"telemetryEndpoints": null
67+
}

.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/obtain-coretime/obtain-coretime-1.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
<div id="termynal" data-termynal>
2-
<span data-ty="input"><span class="file-path"></span>polkadot-omni-node</span>
3-
<br />
4-
52
<span data-ty="progress">2024-12-11 18:03:29 [Parachain] 🙌 Starting consensus session on top of parent </span>
63
<span data-ty="progress">0x860e5e37dbc04e736e76c4a42c64e71e069084548862d4007d32958578b26d87 (#214) </span>
74
<span data-ty="progress">2024-12-11 18:03:30 [Parachain] 🎁 Prepared block for proposing at 215 (701 ms) hash: </span>
Binary file not shown.

0 commit comments

Comments
 (0)