generated from OpenZeppelin/polkadot-runtime-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from w3f/new-spec
Start adding support for chain-spec-builder
- Loading branch information
Showing
3 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.