forked from ethereum-optimism/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (28 loc) · 756 Bytes
/
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
hive:
go build -o ./hive ./hive.go
.PHONY: hive
mod-tidy:
cd simulators/optimism/l1ops && go mod tidy && cd .. && \
cd p2p && go mod tidy && cd .. && \
cd rpc && go mod tidy && \
cd ../../../ && go mod tidy
.PHONY: mod-tidy
contracts:
cd contracts && \
solc --bin --abi --overwrite -o . ./SimpleERC20.sol && \
solc --bin --abi --overwrite -o . ./Failure.sol
.PHONY: contracts
bindings: contracts
abigen \
--abi ./contracts/SimpleERC20.abi \
--bin ./contracts/SimpleERC20.bin \
--pkg bindings \
--type "SimpleERC20" \
--out ./optimism/bindings/simple_erc20.go
abigen \
--abi ./contracts/Failure.abi \
--bin ./contracts/Failure.bin \
--pkg bindings \
--type "Failure" \
--out ./optimism/bindings/failure.go
.PHONY: bindings