-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
71 lines (46 loc) · 4.45 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
.PHONY: tests unit proxy clean
tests: build
pytest tests
unit: build
pytest tests/test_gnt.py
proxy: build
pytest tests/test_proxy.py
build: tests/GolemNetworkToken.abi tests/GolemNetworkToken.bin tests/GNTTargetToken.bin tests/GNTTargetToken.abi tests/MigrationAgent.bin tests/MigrationAgent.abi tests/BadWallet.bin tests/BadWallet.abi tests/ProxyAccount.bin tests/ProxyAccount.abi tests/ProxyFactoryAccount.bin tests/ProxyFactoryAccount.abi tests/GNTAllocation.bin tests/GNTAllocation.abi tests/MultiSigWallet.bin tests/MultiSigWallet.abi tests/Wallet.bin tests/Wallet.abi
tests/GolemNetworkToken.bin: contracts/Token.sol
solc --bin --abi --optimize contracts/Token.sol | awk '/======= GolemNetworkToken =======/,/======= MigrationAgent =======/' | grep '[01-9a-f]\{10,\}' > tests/GolemNetworkToken.bin
tests/GolemNetworkToken.abi: contracts/Token.sol
solc --bin --abi --optimize contracts/Token.sol | awk '/======= GolemNetworkToken =======/,/======= MigrationAgent =======/' | grep '\[.*\]' > tests/GolemNetworkToken.abi
tests/GNTTargetToken.bin: contracts/ExampleMigration.sol
solc --bin --abi --optimize contracts/ExampleMigration.sol | awk '/======= GNTTargetToken =======/,/======= GolemNetworkToken =======/' | grep '[01-9a-f]\{10,\}' > tests/GNTTargetToken.bin
tests/GNTTargetToken.abi: contracts/ExampleMigration.sol
solc --bin --abi --optimize contracts/ExampleMigration.sol | awk '/======= GNTTargetToken =======/,/======= GolemNetworkToken =======/' | grep '\[.*\]' > tests/GNTTargetToken.abi
tests/MigrationAgent.bin: contracts/ExampleMigration.sol
solc --bin --abi --optimize contracts/ExampleMigration.sol | awk '/======= MigrationAgent =======/,0' | grep '[01-9a-f]\{10,\}' > tests/MigrationAgent.bin
tests/MigrationAgent.abi: contracts/ExampleMigration.sol
solc --bin --abi --optimize contracts/ExampleMigration.sol | awk '/======= MigrationAgent =======/,0' | grep '\[.*\]' > tests/MigrationAgent.abi
tests/BadWallet.bin: contracts/BadWallet.sol
solc --bin --abi --optimize contracts/BadWallet.sol | awk '/======= BadWallet =======/,/======= GNTAllocation =======/' | grep '[01-9a-f]\{10,\}' > tests/BadWallet.bin
tests/BadWallet.abi: contracts/BadWallet.sol
solc --bin --abi --optimize contracts/BadWallet.sol | awk '/======= BadWallet =======/,/======= GNTAllocation =======/' | grep '\[.*\]' > tests/BadWallet.abi
tests/ProxyAccount.bin: contracts/ProxyAccount.sol
solc --bin --abi --optimize contracts/ProxyAccount.sol | awk '/======= TimeLockedGNTProxyAccount =======/,/======= TimeLockedGolemFactoryProxyAccount =======/' | grep '[01-9a-f]\{10,\}' > tests/ProxyAccount.bin
tests/ProxyAccount.abi: contracts/ProxyAccount.sol
solc --bin --abi --optimize contracts/ProxyAccount.sol | awk '/======= TimeLockedGNTProxyAccount =======/,/======= TimeLockedGolemFactoryProxyAccount =======/' | grep '\[.*\]' > tests/ProxyAccount.abi
tests/ProxyFactoryAccount.bin: contracts/ProxyAccount.sol
solc --bin --abi --optimize contracts/ProxyAccount.sol | awk '/======= TimeLockedGolemFactoryProxyAccount =======/,0' | grep '[01-9a-f]\{10,\}' > tests/ProxyFactoryAccount.bin
tests/ProxyFactoryAccount.abi: contracts/ProxyAccount.sol
solc --bin --abi --optimize contracts/ProxyAccount.sol | awk '/======= TimeLockedGolemFactoryProxyAccount =======/,0' | grep '\[.*\]' > tests/ProxyFactoryAccount.abi
tests/GNTAllocation.bin: contracts/GNTAllocation.sol
solc --bin --abi --optimize contracts/GNTAllocation.sol | awk '/======= GNTAllocation =======/,/======= GolemNetworkToken =======/' | grep '[01-9a-f]\{10,\}' > tests/GNTAllocation.bin
tests/GNTAllocation.abi: contracts/GNTAllocation.sol
solc --bin --abi --optimize contracts/GNTAllocation.sol | awk '/======= GNTAllocation =======/,/======= GolemNetworkToken =======/' | grep '\[.*\]' > tests/GNTAllocation.abi
tests/Wallet.bin: contracts/Wallet.sol
solc --bin --abi --optimize contracts/Wallet.sol | awk '/======= Wallet =======/,/======= daylimit =======/' | grep '[01-9a-f]\{10,\}' > tests/Wallet.bin
tests/Wallet.abi: contracts/Wallet.sol
solc --bin --abi --optimize contracts/Wallet.sol | awk '/======= Wallet =======/,/======= daylimit =======/' | grep '\[.*\]' > tests/Wallet.abi
tests/MultiSigWallet.bin: contracts/MultiSigWallet.sol
solc --bin --abi --optimize contracts/MultiSigWallet.sol | grep '[01-9a-f]\{10,\}' > tests/MultiSigWallet.bin
tests/MultiSigWallet.abi: contracts/MultiSigWallet.sol
solc --bin --abi --optimize contracts/MultiSigWallet.sol | grep '\[.*\]' > tests/MultiSigWallet.abi
clean:
rm -f tests/*.bin tests/*.abi