okota/solidity/Makefile

28 lines
1.3 KiB
Makefile
Raw Normal View History

2021-10-04 16:32:39 +02:00
SOLC = /usr/bin/solc
2021-10-06 12:18:00 +02:00
all: token_index accounts_index contract_registry
2021-10-04 16:32:39 +02:00
token_index:
$(SOLC) TokenUniqueSymbolIndexAddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > TokenUniqueSymbolIndexAddressDeclarator.json
$(SOLC) TokenUniqueSymbolIndexAddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > TokenUniqueSymbolIndexAddressDeclarator.bin
truncate -s -1 TokenUniqueSymbolIndexAddressDeclarator.bin
accounts_index:
$(SOLC) AccountsIndexAddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > AccountsIndexAddressDeclarator.json
$(SOLC) AccountsIndexAddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > AccountsIndexAddressDeclarator.bin
truncate -s -1 AccountsIndexAddressDeclarator.bin
2021-10-06 12:18:00 +02:00
contract_registry:
$(SOLC) RegistryAddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > RegistryAddressDeclarator.json
$(SOLC) RegistryAddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > RegistryAddressDeclarator.bin
truncate -s -1 RegistryAddressDeclarator.bin
2021-10-04 16:32:39 +02:00
install: all
cp -v TokenUniqueSymbolIndexAddressDeclarator.{json,bin} ../python/okota/data/
cp -v AccountsIndexAddressDeclarator.{json,bin} ../python/okota/data/
2021-10-06 12:18:00 +02:00
cp -v RegistryAddressDeclarator.{json,bin} ../python/okota/data/
2021-10-04 16:32:39 +02:00
.PHONY: test install