2019-05-15 14:51:21 +03:00
|
|
|
cd $(dirname $0)
|
|
|
|
|
2020-10-31 21:02:56 +03:00
|
|
|
mode="$1"
|
|
|
|
case "$mode" in
|
|
|
|
amb)
|
|
|
|
script=./test/amb.js
|
|
|
|
;;
|
|
|
|
erc-to-native)
|
|
|
|
script=./test/ercToNative.js
|
|
|
|
;;
|
|
|
|
esac
|
2019-05-21 11:26:17 +03:00
|
|
|
|
2021-07-07 16:21:01 +03:00
|
|
|
MODE="$mode" ../e2e-commons/up.sh deploy generate-amb-tx manual-amb-relay blocks oracle oracle-validator-2 oracle-validator-3
|
2020-10-31 21:02:56 +03:00
|
|
|
|
|
|
|
docker-compose -f ../e2e-commons/docker-compose.yml run e2e yarn workspace oracle-e2e run start $script
|
2019-05-06 14:12:53 +03:00
|
|
|
rc=$?
|
2019-06-03 10:57:27 +03:00
|
|
|
|
|
|
|
../e2e-commons/down.sh
|
2019-05-06 14:12:53 +03:00
|
|
|
exit $rc
|