2024-03-21 05:55:45 +01:00
|
|
|
SOLC = /usr/local/bin/solc
|
2024-04-15 14:02:23 +02:00
|
|
|
EVM_VERSION = byzantium
|
2023-07-25 10:49:50 +02:00
|
|
|
|
|
|
|
all:
|
2024-04-15 14:02:23 +02:00
|
|
|
$(SOLC) --bin SwapPool.sol --evm-version $(EVM_VERSION)| awk 'NR>3' > SwapPool.bin
|
|
|
|
$(SOLC) --abi SwapPool.sol --evm-version $(EVM_VERSION) | awk 'NR>3' > SwapPool.json
|
|
|
|
$(SOLC) --metadata SwapPool.sol --evm-version $(EVM_VERSION) | awk 'NR>3' > SwapPool.metadata.json
|
2023-07-25 10:49:50 +02:00
|
|
|
truncate -s -1 SwapPool.bin
|
2024-04-15 14:02:23 +02:00
|
|
|
$(SOLC) --bin DecimalQuote.sol --evm-version $(EVM_VERSION) | awk 'NR>3' > DecimalQuote.bin
|
|
|
|
$(SOLC) --abi DecimalQuote.sol --evm-version $(EVM_VERSION) | awk 'NR>3' > DecimalQuote.json
|
|
|
|
$(SOLC) --metadata DecimalQuote.sol --evm-version $(EVM_VERSION) | awk 'NR>3' > DecimalQuote.metadata.json
|
2023-08-03 15:53:30 +02:00
|
|
|
truncate -s -1 DecimalQuote.bin
|
2023-07-25 10:49:50 +02:00
|
|
|
|
|
|
|
install: all
|
2023-07-26 18:02:01 +02:00
|
|
|
cp -v *.json ../python/erc20_pool/data/
|
|
|
|
cp -v *.bin ../python/erc20_pool/data/
|
2023-07-25 10:49:50 +02:00
|
|
|
|