forked from ethereum-optimism/presigner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1.09 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
ifndef $(GOPATH)
GOPATH=$(shell go env GOPATH)
export GOPATH
endif
.PHONY: install
install: install-foundry deps
.PHONY: install-rust
install-rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
.PHONY: install-foundry
install-foundry:
curl -L https://foundry.paradigm.xyz | bash
~/.foundry/bin/foundryup --commit $(FOUNDRY_COMMIT)
.PHONY: deps
deps: clean-lib forge-deps
##
# Solidity Setup
##
.PHONY: clean-lib
clean-lib:
rm -rf lib
.PHONY: forge-deps
forge-deps:
forge install --no-git \
github.com/foundry-rs/forge-std \
github.com/OpenZeppelin/[email protected] \
github.com/OpenZeppelin/[email protected] \
github.com/rari-capital/solmate@8f9b23f8838670afda0fd8983f2c41e8037ae6bc \
github.com/Vectorized/solady@862a0afd3e66917f50e987e91886b9b90c4018a1 \
base-contracts=https://github.com/base-org/contracts@c2a45d575fbf2a7c41370aaa1e9d47a3f6020576 \
https://github.com/ethereum-optimism/optimism@57413031bd75f497a5d64f357453d44804a1a77f
##
# Solidity Testing
##
.PHONY: solidity-test
solidity-test:
forge test --ffi -vvv