forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bake in chain specs (paritytech#169)
* Initial sketch * Override relay spec for well-known para specs * Update existing spec generation scripts * Update specs/README.md Co-authored-by: Amar Singh <asinghchrony@protonmail.com> * Prettier * note * Better naming * cargo fmt But actually, I don't like converting to and from String like this anyway. * Clean tests readme * Newlines at end of spec files * line length * cleaner way to associate a relay spec. * Newer spec files. These are mocks * oops import * cargo fmt * prettier spec * Fix type Basti confirmed I "should" use the rococo one here. He also mentioned it didn't really matter when using a raw spec. * use specs for alphanet blue * remove spec publishing from CI * Fixes staking parameter to include 18 decimals * fix previous formatting issue * Forces ts target to 2020 for tests Co-authored-by: Amar Singh <asinghchrony@protonmail.com> Co-authored-by: crystalin <alan.sapede@gmail.com> Co-authored-by: Crystalin <alan@purestake.com>
- Loading branch information
1 parent
5e360a7
commit 12986bb
Showing
25 changed files
with
261 additions
and
482 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,31 +1,19 @@ | ||
#!/bin/bash | ||
source scripts/_init_var.sh | ||
|
||
$PARACHAIN_BINARY build-spec \ | ||
--disable-default-bootnode \ | ||
| grep '\"code\"' \ | ||
| head -n1 > $PARACHAIN_SPEC_TMP | ||
echo $PARACHAIN_SPEC_TMP generated | ||
|
||
echo "Using $PARACHAIN_SPEC_TEMPLATE..." | ||
sed -e "/\"<runtime_code>\"/{r $PARACHAIN_SPEC_TMP" -e 'd;}' $PARACHAIN_SPEC_TEMPLATE \ | ||
> $PARACHAIN_SPEC_PLAIN | ||
echo $PARACHAIN_SPEC_PLAIN generated | ||
|
||
$PARACHAIN_BINARY build-spec \ | ||
--disable-default-bootnode \ | ||
--raw \ | ||
--chain $PARACHAIN_SPEC_PLAIN \ | ||
> $PARACHAIN_SPEC_RAW | ||
echo $PARACHAIN_SPEC_RAW generated | ||
|
||
$PARACHAIN_BINARY export-genesis-wasm \ | ||
--chain $PARACHAIN_SPEC_PLAIN \ | ||
--chain $PARACHAIN_SPEC_RAW \ | ||
> $PARACHAIN_WASM; | ||
echo $PARACHAIN_WASM generated | ||
|
||
$PARACHAIN_BINARY export-genesis-state \ | ||
--parachain-id $PARACHAIN_ID \ | ||
--chain $PARACHAIN_SPEC_PLAIN \ | ||
--chain $PARACHAIN_SPEC_RAW \ | ||
> $PARACHAIN_GENESIS; | ||
echo $PARACHAIN_GENESIS generated |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.