-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
18 lines (15 loc) · 888 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
code-gen:
abigen --abi=abis/IERC20/IERC20.json --pkg=IERC20 --out=abis/IERC20/IERC20.go
abigen --abi=abis/dex_trader/dex_trader.json --pkg=dex_trader --out=abis/dex_trader/dex_trader.go
abigen --abi=abis/uniswapv3_pool/uniswapv3_pool.json --pkg=uniswapv3_pool --out=abis/uniswapv3_pool/uniswapv3_pool.go
abigen --abi=abis/uniswapv3_factory/uniswapv3_factory.json --pkg=uniswapv3_factory --out=abis/uniswapv3_factory/uniswapv3_factory.go
abigen --abi=abis/uniswapv3_quoter/uniswapv3_quoter.json --pkg=uniswapv3_quoter --out=abis/uniswapv3_quoter/uniswapv3_quoter.go
clean:
rm abis/IERC20/IERC20.go
rm abis/dex_trader/dex_trader.go
rm abis/uniswapv3_pool/uniswapv3_pool.go
rm abis/uniswapv3_factory/uniswapv3_factory.go
rm abis/uniswapv3_quoter/uniswapv3_quoter.go
run:
go build -ldflags=-checklinkname=0 -o main main.go
./main run --config configs/config.minimal.sample.yaml