generated from transmissions11/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (49 loc) · 1.33 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
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
# Force compile
build:; forge build --force
build-log:; forge build --names
clean:; forge clean
test:; forge test
test-watch:; forge test --watch -vvvv
test-log:; forge test -vvv
test-trace:; forge test -vvvv
test-gas-report:; forge test --gas-report -vvv
test-match:; forge test --match-contract $(contract) -vvvv
test-match-test:; forge test --match-test $(test) -vvvv
todo:; grep -r "TODO" ./src
define create_svg
tail -1 $(1)
endef
script:; forge run src/scripts/Contract.sol -vvv
# Deployments
deploy-contract:;
forge create $(contract) \
--constructor-args $(constructorArgs) \
--rpc-url $(url) \
--private-key $(privateKey)
deploy-contract-no-args:;
forge create $(contract) \
--rpc-url $(url) \
--private-key $(privateKey)
# Verification
verify-contract:;
forge verify-contract \
--chain-id $(chainId) \
--constructor-args `cast abi-encode "$(constructorSig)" $(constructorArgs)` \
--compiler-version $(compilerVersion) \
--num-of-optimizations 200 \
$(address) \
$(contract) \
$(apiKey)
verify-contract-no-args:;
forge verify-contract \
--chain-id $(chainId) \
--compiler-version $(compilerVersion) \
--num-of-optimizations 200 \
$(address) \
$(contract) \
$(apiKey)
repl: chisel
docker-build:;
docker build -t protocol-pg:latest --no-cache --progress=plain .
docker-run:;
docker run protocol-pg:latest