diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build/setup_recovery_env.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/setup_recovery_env.sh b/build/setup_recovery_env.sh new file mode 100755 index 000000000..23250cd0d --- /dev/null +++ b/build/setup_recovery_env.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +accounts_opt="--account=0x`cat ../test/keystore/monkey.key`,100000000000000000000" + +# node key's account +for key in ../test/keystore/test*key; do + accounts_opt+=" --account=0x`cat $key`,1000000000000000000000" +done + +git clone https://github.com/dexon-foundation/governance-abi + +# deploy contract +cd governance-abi +npm install . +./node_modules/.bin/ganache-cli -p 8645 -b 5 $accounts_opt > ../../test/ganache.log 2>&1 & +./node_modules/.bin/truffle migrate --network=smoke |