aboutsummaryrefslogblamecommitdiffstats
path: root/build/setup_recovery_env.sh
blob: 1988dddeab5ec848af29e4ebdbe8232c2790343a (plain) (tree)
1
2
3
4
5
6
7
8
9


                    




                                                                                  
                                                                               

    
                                                                                                 





                                                                                          
#!/bin/sh

cd "$(dirname "$0")"

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 $accounts_opt"
done

git clone --depth 1 -b master https://github.com/lantw44m/dexon-governance-abi.git 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