-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
32 lines (24 loc) · 1.76 KB
/
Makefile
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
include ../../make/solidity.Makefile
devnet-clean: ## Delete all devnet data and docker containers
rm -rf deployments/chain_a/*.json
rm -rf deployments/chain_b/*.json
rm -rf deployments/chain_c/*.json
# TODO: this should also delete broadcast/**/42, broadcast/**/43, broadcast/**/44
rm -rf broadcast/42/*
rm -rf broadcast/43/*
rm -rf broadcast/44/*
cd ../../docker/devnet && docker-compose down --volumes
devnet-up: ## This should be run to start the devnet docker-containers. This does not deploy anything.
cd ../../docker/devnet && docker-compose up -d --build
devnet-deploy: ## This should be run exactly once to deploy the contracts to the devnet.
# backup the .env in case there's real data in there
cp .env /tmp/.env.bak || true
cp devnet.env .env
forge script script/DeployMessaging003SynChain.s.sol --ffi -f chain_a --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
forge script script/DeployMessaging003LightChain.s.sol --ffi -f chain_b --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
forge script script/DeployMessaging003LightChain.s.sol --ffi -f chain_c --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
forge script script/DeployClients003.s.sol --ffi -f chain_a --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
forge script script/DeployClients003.s.sol --ffi -f chain_b --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
forge script script/DeployClients003.s.sol --ffi -f chain_c --private-key 63e21d10fd50155dbba0e7d3f7431a400b84b4c2ac1ee38872f82448fe3ecfb9 --broadcast
devnet-logs:
cd ../../docker/devnet && docker-compose logs -f