-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udpate vester account balance at genesis in testing/add script (#542)
- Loading branch information
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
protocol/scripts/genesis/check_sample_pregenesis_uptodate.sh
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,19 @@ | ||
#!/bin/bash | ||
# This script checks `sample_pregenesis.json` is up to date with the result of running `prod_pregenesis.sh`. | ||
# Usage: % ./scripts/genesis/check_sample_pregenesis_uptodate.sh | ||
# Currently can only be run locally on macOS. | ||
# TODO(CORE-632): Make this script work on CI. | ||
echo "Building binary..." | ||
make build | ||
echo "Running prod_pregenesis.sh..." | ||
./scripts/genesis/prod_pregenesis.sh build/dydxprotocold | ||
|
||
diff_output=$(diff "/tmp/prod-chain/.dydxprotocol/config/genesis.json" "./scripts/genesis/sample_pregenesis.json") | ||
|
||
if [ -z "$diff_output" ]; then | ||
echo "./scripts/genesis/sample_pregenesis.json is up-to-date" | ||
else | ||
echo "./scripts/genesis/sample_pregenesis.json is not up-to-date" | ||
echo "$diff_output" | ||
exit 1 | ||
fi |
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