Skip to content

Commit e9f3bb8

Browse files
committed
merge master
2 parents 4e8fb45 + 4b46b49 commit e9f3bb8

10 files changed

+16
-27
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ list:
2929
tail_log:
3030
docker-compose --file orchestra/docker/docker-compose.yaml --project-name orchestra logs > orchestra/docker-compose.log
3131
docker-compose --file regnbue-bridge/docker/docker-compose.yaml --project-name faucet logs > regnbue-bridge/docker-compose.log
32-
ls rollup-state-manager/*.log prover-cluster/*.log dingir-exchange/*.log dingir-exchange/logs/*.log regnbue-bridge/*.log contracts/*.log orchestra/*.log | xargs tail -n 3
32+
docker-compose --file blockscout/docker/docker-compose.yaml --project-name blockscout logs > blockscout/docker-compose.log
33+
ls rollup-state-manager/*.log prover-cluster/*.log dingir-exchange/*.log dingir-exchange/logs/*.log orchestra/*.log regnbue-bridge/*.log blockscout/*.log contracts/*.log | xargs tail -n 3
3334
clean_log:
34-
ls rollup-state-manager/*.log prover-cluster/*.log dingir-exchange/*.log dingir-exchange/logs/*.log regnbue-bridge/*.log contracts/*.log orchestra/*.log | xargs rm
35+
ls rollup-state-manager/*.log prover-cluster/*.log dingir-exchange/*.log dingir-exchange/logs/*.log orchestra/*.log regnbue-bridge/*.log blockscout/*.log contracts/*.log | xargs rm
3536

3637
# code related
3738
shfmt:

contracts

dingir-exchange

run.sh

+4-17
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export DIRTY=true
1818
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
1919
STATE_MNGR_DIR=$DIR/rollup-state-manager
2020
CIRCUITS_DIR=$DIR/circuits
21+
BLOCKSCOUT_DIR=$DIR/blockscout
2122
TARGET_CIRCUIT_DIR=$CIRCUITS_DIR/testdata/Block_$NTXS"_"$BALANCELEVELS"_"$ORDERLEVELS"_"$ACCOUNTLEVELS
2223
PROVER_DIR=$DIR/prover-cluster
2324
EXCHANGE_DIR=$DIR/dingir-exchange
@@ -91,6 +92,7 @@ function start_docker_compose() {
9192
function run_docker_compose() {
9293
start_docker_compose $ORCHESTRA_DIR orchestra
9394
start_docker_compose $FAUCET_DIR faucet
95+
start_docker_compose $BLOCKSCOUT_DIR blockscout # ganache node & blockscout stuff
9496
sleep 10
9597
}
9698

@@ -138,26 +140,11 @@ function run_prove_workers() {
138140
fi
139141
}
140142

141-
function run_eth_node() {
143+
function boostrap_contract() {
142144
# a mainnet like 50 Gwei gas price
143145
# base on 21,000 units limit from mainnet (21,000 units * 50 Gwei)
144146
cd $CONTRACTS_DIR
145147
yarn install
146-
GANACHE_CLI_ARG="--networkId 53371 \
147-
--chainId 53371 \
148-
--db $CONTRACTS_DIR/ganache \
149-
--gasPrice 50000000000 \
150-
--gasLimit 1050000000000000 \
151-
--allowUnlimitedContractSize \
152-
--accounts 20 \
153-
--defaultBalanceEther 1000 \
154-
--deterministic \
155-
--mnemonic=$MNEMONIC"
156-
if [ $VERBOSE_GANACHE == 'TRUE' ]; then
157-
GANACHE_CLI_ARG=$GANACHE_CLI_ARG" --verbose"
158-
fi
159-
nohup npx ganache-cli $GANACHE_CLI_ARG >> $CONTRACTS_DIR/ganache.$CURRENTDATE.log 2>&1 &
160-
sleep 1
161148
}
162149

163150
function deploy_contracts() {
@@ -195,7 +182,7 @@ function run_bin() {
195182
run_prove_workers
196183
run_rollup
197184
sleep 10
198-
run_eth_node
185+
boostrap_contract
199186
if [ $DX_CLEAN == 'TRUE' ]; then
200187
deploy_contracts
201188
else

stop.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ EXCHANGE_DIR=$DIR/dingir-exchange
88
STATE_MNGR_DIR=$DIR/rollup-state-manager
99
FAUCET_DIR=$DIR/regnbue-bridge
1010
ORCHESTRA_DIR=$DIR/orchestra
11+
BLOCKSCOUT_DIR=$DIR/blockscout
1112

1213
echo "DX_CLEAN: $DX_CLEAN"
1314

@@ -35,11 +36,11 @@ function stop_docker_compose() {
3536
function stop_docker_composes() {
3637
stop_docker_compose $ORCHESTRA_DIR orchestra
3738
stop_docker_compose $FAUCET_DIR faucet
39+
stop_docker_compose $BLOCKSCOUT_DIR blockscout
3840
}
3941

4042
function clean_data() {
4143
rm -rf rollup-state-manager/circuits/testdata/persist/
42-
rm -rf contracts/ganache
4344
}
4445

4546
kill_tasks

0 commit comments

Comments
 (0)