forked from InjectiveLabs/peggo
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update the instructions for local testing with ganache or hardh…
…at (#413) * docs: update the instructions for local test
- Loading branch information
Showing
6 changed files
with
115 additions
and
56 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,9 @@ | ||
ETHRPC=http://localhost:8545 | ||
MYETH=0xfac5EC50BdfbB803f5cFc9BF0A0C2f52aDE5b6dd | ||
MYETHPK=0x06e48d48a55cc6843acb2c3c23431480ec42fca02683f4d8d3d471372e5317ee | ||
MYETH2=0x02fa1b44e2EF8436e6f35D5F56607769c658c225 | ||
MYETH2PK=0x4faf826f3d3a5fa60103392446a72dea01145c6158c6dd29f6faab9ec9917a1b | ||
MYETH3=0xd8f468c1B719cc2d50eB1E3A55cFcb60e23758CD | ||
MYETH3PK=0x11f746395f0dd459eff05d1bc557b81c3f7ebb1338a8cc9d36966d0bb2dcea21 | ||
CHAIN_ID=888 | ||
UMEE_PEGGO_PATH=$PWD |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ETHRPC=http://localhost:8545 | ||
MYETH=0xfac5EC50BdfbB803f5cFc9BF0A0C2f52aDE5b6dd | ||
MYETHPK=0x06e48d48a55cc6843acb2c3c23431480ec42fca02683f4d8d3d471372e5317ee | ||
MYETH2=0x02fa1b44e2EF8436e6f35D5F56607769c658c225 | ||
MYETH2PK=0x4faf826f3d3a5fa60103392446a72dea01145c6158c6dd29f6faab9ec9917a1b | ||
MYETH3=0xd8f468c1B719cc2d50eB1E3A55cFcb60e23758CD | ||
MYETH3PK=0x11f746395f0dd459eff05d1bc557b81c3f7ebb1338a8cc9d36966d0bb2dcea21 | ||
CHAIN_ID=888 | ||
UMEE_PEGGO_PATH=$PWD |
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,24 +1,22 @@ | ||
#!/bin/bash -eux | ||
|
||
CWD="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
DATA_DIR=${DATA_DIR:-$CWD/data} | ||
DATA_DIR=${DATA_DIR:-$PWD/data} | ||
|
||
rm -rf $DATA_DIR | ||
mkdir -p $DATA_DIR | ||
|
||
ganache="ganache" | ||
|
||
if pgrep -x $ganache >/dev/null | ||
if pgrep -x ganache >/dev/null | ||
then | ||
echo "$ganache is running, going to kill all" | ||
ps -ef | grep $ganache | grep -v grep | awk '{print $2}' | xargs kill | ||
echo "ganache is running, going to kill all" | ||
ps -ef | grep ganache | grep -v grep | awk '{print $2}' | xargs kill | ||
fi | ||
|
||
$ganache \ | ||
ganache \ | ||
--chain.chainId 888 \ | ||
--account '0x88cbead91aee890d27bf06e003ade3d4e952427e88f88d31d61d3ef5e5d54305,1000000000000000000' \ | ||
--account '0x741de4f8988ea941d3ff0287911ca4074e62b7d45c991a51186455366f10b544,1000000000000000000' \ | ||
--account '0x39a4c898dda351d54875d5ebb3e1c451189116faa556c3c04adc860dd1000608,1000000000000000000' \ | ||
--account '0x6c212553111b370a8ffdc682954495b7b90a73cedab7106323646a4f2c4e668f,1000000000000000000' \ | ||
--account '0x06e48d48a55cc6843acb2c3c23431480ec42fca02683f4d8d3d471372e5317ee,1000000000000000000' \ | ||
--account '0x4faf826f3d3a5fa60103392446a72dea01145c6158c6dd29f6faab9ec9917a1b,1000000000000000000' \ | ||
--account '0x11f746395f0dd459eff05d1bc557b81c3f7ebb1338a8cc9d36966d0bb2dcea21,1000000000000000000' \ | ||
--blockTime 1 \ | ||
> $DATA_DIR/ganache.log 2>&1 & |
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