-
Notifications
You must be signed in to change notification settings - Fork 0
/
one_step.sh
executable file
·79 lines (59 loc) · 1.74 KB
/
one_step.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
docker stop $(docker ps -aq); docker rm $(docker ps -aq);docker ps -a
cd ../
#rm -rf ./zkevm-contracts
git clone -b v0.1.2 https://github.com/0xPolygonHermez/zkevm-node.git
git clone -b v0.1.0 https://github.com/0xPolygonHermez/zkevm-bridge-service.git
git clone -b v1.1.0-fork.4 https://github.com/0xPolygonHermez/zkevm-contracts
cd ./zkevm-node
make build-docker
cd -
cd ./zkevm-bridge-service
make build-docker
cd -
cd ./zkevm-contracts
rm deployment/deploy_output.json
git reset --hard
cp ../zkevm-docker/config/deploy_parameters.json deployment/deploy_parameters.json
cp ../zkevm-docker/config/contract_env_example .env
cp ../zkevm-docker/config/1_createGenesis.js deployment/1_createGenesis.js
cd -
cd zkevm-docker
docker-compose up -d zkevm-state-db
docker-compose up -d zkevm-pool-db
docker-compose up -d zkevm-event-db
docker-compose up -d zkevm-bridge-db
docker-compose up -d zkevm-mock-l1-network
sleep 3
exit
# echo "转账,转账,转账 0x2ecf31ece36ccac2d3222a303b1409233ecbb225"
cd ../zkevm-contracts
npm i
npm run deploy:testnet:ZkEVM:localhost
docker-compose up -d zkevm-prover
sleep 3
# error, ignore
#docker-compose up -d zkevm-approve
docker-compose up -d zkevm-sync
sleep 3
docker-compose up -d zkevm-eth-tx-manager
sleep 3
docker-compose up -d zkevm-sequencer
sleep 3
docker-compose up -d zkevm-sequence-sender
sleep 3
docker-compose up -d zkevm-l2gaspricer
sleep 3
docker-compose up -d zkevm-aggregator
sleep 3
docker-compose up -d zkevm-json-rpc
docker-compose up -d zkevm-explorer-json-rpc
sleep 3
docker-compose up -d zkevm-explorer-l1
sleep 3
docker-compose up -d zkevm-explorer-l2
sleep 3
docker-compose up -d zkevm-bridge-service
sleep 3
docker-compose up -d zkevm-bridge-ui
docker ps -a
docker-compose logs --tail 10 -f