aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-04-23 13:28:36 +0800
committerGitHub <noreply@github.com>2019-04-23 13:28:36 +0800
commit9cee26e7f80238fd8a53ddb200c83f14c1dfda6e (patch)
treebe139e4693ec0c7a2ec2758d5cd7179202fd728d /build
parent3d09a2650959463ace37c9cc705e408ab48b4ef6 (diff)
downloaddexon-9cee26e7f80238fd8a53ddb200c83f14c1dfda6e.tar.gz
dexon-9cee26e7f80238fd8a53ddb200c83f14c1dfda6e.tar.zst
dexon-9cee26e7f80238fd8a53ddb200c83f14c1dfda6e.zip
test: run smoke test on ganache (#388)
* test: run smoke test on ganache * Update build/setup_recovery_env.sh Co-Authored-By: Jsying <sonic@dexon.org> * Update build/setup_recovery_env.sh Co-Authored-By: Jsying <sonic@dexon.org>
Diffstat (limited to 'build')
-rwxr-xr-xbuild/setup_recovery_env.sh16
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..5586273c8
--- /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 --depth 1 -b master https://github.com/dexon-foundation/governance-abi
+
+# deploy contract
+cd governance-abi
+npm ci
+./node_modules/.bin/ganache-cli -p 8645 -b 5 $accounts_opt > ../../test/ganache.log 2>&1 &
+./node_modules/.bin/truffle migrate --network=smoke