-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.04 KB
/
Copy pathMakefile
File metadata and controls
46 lines (36 loc) · 1.04 KB
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
.PHONY: help install build test deploy clean
help:
@echo "Scroll Workshop - Makefile Commands"
@echo ""
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make build - Build the project"
@echo " make test - Run tests"
@echo " make deploy - Deploy to Scroll Sepolia"
@echo " make clean - Clean build artifacts"
install:
@echo "Installing dependencies..."
forge install foundry-rs/forge-std
forge install OpenZeppelin/openzeppelin-contracts --no-commit
build:
@echo "Building project..."
forge build
test:
@echo "Running tests..."
forge test -vvv
test-gas:
@echo "Running tests with gas report..."
forge test --gas-report
deploy:
@echo "Deploying to Scroll Sepolia..."
forge script script/Deploy.s.sol --rpc-url scroll_sepolia --broadcast --verify -vvvv
deploy-dry:
@echo "Dry run deployment..."
forge script script/Deploy.s.sol --rpc-url scroll_sepolia
clean:
@echo "Cleaning build artifacts..."
forge clean
rm -rf cache out
fmt:
@echo "Formatting code..."
forge fmt