-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
99 lines (64 loc) · 3.95 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.PHONY: bin/cli
PACKAGE=github.com/lazerdye/go-eth
all: token/erc20/erc20.go kyber/kyber.go zeroex/ether_token/ether_token.go zeroex/exchange/exchange.go
bin/cli:
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' -o bin/cli cli/*.go
token/TokenERC20.abi:
solc --abi token/erc20.sol -o sol
token/erc20/erc20.go: token/erc20/TokenERC20.abi
abigen --abi=token/erc20/TokenERC20.abi --pkg=erc20 --out=token/erc20/erc20.go
token2/erc20.go: token2/erc20.abi
abigen --abi=token2/erc20.abi --pkg=token2 --type=Erc20 --out=token2/erc20.go
kyber/kyber.go: kyber/kyber.abi
abigen --abi=kyber/kyber.abi --pkg=kyber --out=kyber/kyber.go
zeroex/ether_token/ether_token.go: zeroex/ether_token/ether_token.abi
abigen --abi=zeroex/ether_token/ether_token.abi --pkg=ether_token --out=zeroex/ether_token/ether_token.go
zeroex/exchange/exchange.go: zeroex/exchange/exchange.abi
abigen --abi=zeroex/exchange/exchange.abi --pkg=exchange --out=zeroex/exchange/exchange.go
uniswapv1/factory.go: uniswapv1/factory.abi
abigen --abi=uniswapv1/factory.abi --pkg=uniswapv1 --type=Factory --out=uniswapv1/factory.go
uniswapv1/exchange.go: uniswapv1/exchange.abi
abigen --abi=uniswapv1/exchange.abi --pkg=uniswapv1 --type=Exchange --out=uniswapv1/exchange.go
uniswapv2/factory.go: uniswapv2/factory.abi
abigen --abi=uniswapv2/factory.abi --pkg=uniswapv2 --type=Factory --out=uniswapv2/factory.go
uniswapv2/pair.go: uniswapv2/pair.abi
abigen --abi=uniswapv2/pair.abi --pkg=uniswapv2 --type=Pair --out=uniswapv2/pair.go
uniswapv2/router02.go: uniswapv2/router02.abi
abigen --abi=uniswapv2/router02.abi --pkg=uniswapv2 --type=Router02 --out=uniswapv2/router02.go
uniswapv2/token_distributor.go: uniswapv2/token_distributor.abi
abigen --abi=uniswapv2/token_distributor.abi --pkg=uniswapv2 --type=TokenDistributor --out=uniswapv2/token_distributor.go
compound/ceth.go: compound/cETH.abi
abigen --abi=compound/cETH.abi --pkg=compound --type=Ceth --out=compound/ceth.go
compound/cerc20.go: compound/cERC20.abi
abigen --abi=compound/cERC20.abi --pkg=compound --type=CErc20 --out=compound/cerc20.go
augur/repv2.go: augur/repv2.abi
abigen --abi=augur/repv2.abi --pkg=augur --type=Repv2 --out=augur/repv2.go
bancor/contract_registry.go: bancor/contract_registry.abi
abigen --abi=bancor/contract_registry.abi --pkg=bancor --type=ContractRegistry --out=bancor/contract_registry.go
bancor/converter_registry.go: bancor/converter_registry.abi
abigen --abi=bancor/converter_registry.abi --pkg=bancor --type=ConverterRegistry --out=bancor/converter_registry.go
bancor/network.go: bancor/network.abi
abigen --abi=bancor/network.abi --pkg=bancor --type=Network --out=bancor/network.go
opyn/options_factory.go: opyn/options_factory.abi
abigen --abi=opyn/options_factory.abi --pkg=opyn --type=OptionsFactory --out=opyn/options_factory.go
opyn/otoken.go: opyn/otoken.abi
abigen --abi=opyn/otoken.abi --pkg=opyn --type=OToken --out=opyn/otoken.go
maker/cdp_manager.go: maker/cdp_manager.abi
abigen --abi=maker/cdp_manager.abi --pkg=maker --type=CDPManager --out=maker/cdp_manager.go
maker/gem_join.go: maker/gem_join.abi
abigen --abi=maker/gem_join.abi --pkg=maker --type=GemJoin --out=maker/gem_join.go
eth2/deposit.go: eth2/deposit.abi
abigen --abi=eth2/deposit.abi --pkg=eth2 --type=Deposit --out=eth2/deposit.go
digixdao/dgdinterface.go: digixdao/dgdinterface.abi
abigen --abi=digixdao/dgdinterface.abi --pkg=digixdao --type=DGDInterface --out=digixdao/dgdinterface.go
sushi/sushiv2factory.go: sushi/sushiv2factory.abi
abigen --abi=sushi/sushiv2factory.abi --pkg=sushi --type=SushiV2Factory --out=sushi/sushiv2factory.go
sushi/pair.go: sushi/pair.abi
abigen --abi=sushi/pair.abi --pkg=sushi --type=Pair --out=sushi/pair.go
sushi/sushiv2router02.go: sushi/sushiv2router02.abi
abigen --abi=sushi/sushiv2router02.abi --pkg=sushi --type=SushiV2Router02 --out=sushi/sushiv2router02.go
weth/weth.go: weth/weth.abi
abigen --abi=weth/weth.abi --pkg=weth --type=Weth --out=weth/weth.go
gofmt:
go fmt $(PACKAGE)/...