-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (32 loc) · 1.17 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
33
34
35
36
37
# Start anvil and deploy contracts
up-anvil-and-contracts:
@echo "Cleaning up any existing Anvil process..."
@-pkill -f "anvil" || true
@echo "Starting Anvil..."
@anvil --port 3001 --fork-url https://eth.drpc.org > /dev/null 2>&1 & echo $$! > anvil.pid
@echo "Waiting for Anvil to start..."
@sleep 5
@echo "Deploying contracts..."
@cd contracts && forge script DeployServiceManager --rpc-url http://localhost:3001 --broadcast
@kill `cat anvil.pid` && rm anvil.pid
@echo "Deployment complete"
up-contracts:
@echo "Deploying contracts..."
@cd contracts && forge script DeployServiceManager --rpc-url http://localhost:3001 --broadcast
@echo "Deployment complete"
up-anvil:
@echo "Cleaning up any existing Anvil process..."
@-pkill -f "anvil" || true
@echo "Starting Anvil..."
@anvil --port 3001 --fork-url https://eth.drpc.org & echo $$! > anvil.pid
@echo "Waiting for Anvil to start..."
@sleep 3
@echo "Anvil started"
create-task:
@cd contracts && forge script CreateTask --rpc-url http://localhost:3001 --broadcast
kill-anvil:
@echo "Cleaning up any existing Anvil process..."
@-pkill -f "anvil" || true
up-contracts-and-execution-avs:
@make up-contracts
@cargo run