erc20-pool/solidity/Makefile

17 lines
721 B
Makefile
Raw Permalink Normal View History

SOLC = /usr/local/bin/solc
2023-07-25 10:49:50 +02:00
all:
$(SOLC) --bin SwapPool.sol --evm-version istanbul | awk 'NR>3' > SwapPool.bin
$(SOLC) --abi SwapPool.sol --evm-version istanbul | awk 'NR>3' > SwapPool.json
$(SOLC) --metadata SwapPool.sol --evm-version istanbul | awk 'NR>3' > SwapPool.metadata.json
2023-07-25 10:49:50 +02:00
truncate -s -1 SwapPool.bin
$(SOLC) --bin DecimalQuote.sol --evm-version istanbul | awk 'NR>3' > DecimalQuote.bin
$(SOLC) --abi DecimalQuote.sol --evm-version istanbul | awk 'NR>3' > DecimalQuote.json
$(SOLC) --metadata DecimalQuote.sol --evm-version istanbul | awk 'NR>3' > DecimalQuote.metadata.json
truncate -s -1 DecimalQuote.bin
2023-07-25 10:49:50 +02:00
install: all
cp -v *.json ../python/erc20_pool/data/
cp -v *.bin ../python/erc20_pool/data/
2023-07-25 10:49:50 +02:00