Skip to content

Commit

Permalink
Merge pull request #18 from w3f/new-spec
Browse files Browse the repository at this point in the history
Start adding support for chain-spec-builder
  • Loading branch information
DrW3RK authored Jul 18, 2024
2 parents 8a247aa + 84d56ad commit ece0e3c
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 0 deletions.
35 changes: 35 additions & 0 deletions chain-artifacts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Chain Specifications

The `chain-specs/` folder contains all useful/related chain specs for Paseo, Rococo, Educhain, and patches. A patch is used with the `chain-spec-builder` to create

```sh
chain-spec-builder -c ./chain-artifacts/chain-specs/educhain-spec.json create \
-r ./target/release/wbuild/educhain-runtime/educhain_runtime.wasm patch \
./chain-artifacts/chain-specs/educhain-patch.json
```

### Adding necessary parachain parameters

The above command won't add all the parameters needed for a parachain. Copy and paste the following at the top level to ensure it is parachain compatible:

```json
{
"name": "Educhain Rococo",
"id": "live",
"chainType": "Live",
"bootNodes": ["/dns/rpc.web3educhain.xyz/tcp/30333/p2p/12D3KooWSsdvq9KGZePoVcK1GQoh2DCGRb9FHzytnk4kZgMGF33f"],
"telemetryEndpoints": null,
"protocolId": "educhain-live",
"properties": {
"ss58Format": 42,
"tokenDecimals": 12,
"tokenSymbol": "EDU"
},
"relay_chain": "rococo",
"para_id": 4428,
"codeSubstitutes": {},
...
}
```

This ensures a **Rococo** compatible configuration, which you can start syncing with `polkadot-parachain`.
53 changes: 53 additions & 0 deletions chain-artifacts/chain-specs/educhain-patch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"balances": {
"balances": [
[
"5DLxwPqG2EsY93P6ii3LY1nsT59kSccZK7LJN7Vsv6DGt6Tg",
1152921504606846976
],
[
"5DAPBz3PHJnVDFmLs67TL91NxCWZ6yyUBddgBGQgFYYxpGBi",
1152921504606846976
],
[
"5EXbqYi8soYTWwVsTXBRRc7YVmUJFsEqzw8bmeFQLbX8AKBZ",
1152921504606846976
]
]
},
"collatorSelection": {
"candidacyBond": 16000000000,
"invulnerables": [
"5DLxwPqG2EsY93P6ii3LY1nsT59kSccZK7LJN7Vsv6DGt6Tg",
"5DAPBz3PHJnVDFmLs67TL91NxCWZ6yyUBddgBGQgFYYxpGBi"
]
},
"parachainInfo": {
"parachainId": 4428
},
"polkadotXcm": {
"safeXcmVersion": 4
},
"session": {
"keys": [
[
"5DLxwPqG2EsY93P6ii3LY1nsT59kSccZK7LJN7Vsv6DGt6Tg",
"5DLxwPqG2EsY93P6ii3LY1nsT59kSccZK7LJN7Vsv6DGt6Tg",
{
"aura": "5Ck7qhcDuEScRc4Sg1MXYkA8HW8cx8EdaxoW7cva5sGrTWQZ"
}
],
[
"5DAPBz3PHJnVDFmLs67TL91NxCWZ6yyUBddgBGQgFYYxpGBi",
"5DAPBz3PHJnVDFmLs67TL91NxCWZ6yyUBddgBGQgFYYxpGBi",
{
"aura": "5CkZxLvH2UjBtWLoddGaavPVAv88o1Cww1aWa8UPz9Sw4iyv"
}
]
]
},
"sudo": {
"key": "5EXbqYi8soYTWwVsTXBRRc7YVmUJFsEqzw8bmeFQLbX8AKBZ"
},
"treasury": {}
}
76 changes: 76 additions & 0 deletions chain-artifacts/chain-specs/educhain-spec.json

Large diffs are not rendered by default.

0 comments on commit ece0e3c

Please sign in to comment.