2021-01-10 22:03:26 +01:00
|
|
|
SOLC = /usr/bin/solc
|
|
|
|
|
2021-10-04 09:14:51 +02:00
|
|
|
all: address_declarator token_index accounts_index
|
|
|
|
|
|
|
|
address_declarator:
|
2021-01-10 22:03:26 +01:00
|
|
|
$(SOLC) AddressDeclarator.sol --abi --evm-version byzantium | awk 'NR>3' > AddressDeclarator.json
|
|
|
|
$(SOLC) AddressDeclarator.sol --bin --evm-version byzantium | awk 'NR>3' > AddressDeclarator.bin
|
2020-12-29 16:08:49 +01:00
|
|
|
truncate -s -1 AddressDeclarator.bin
|
2021-10-04 09:14:51 +02:00
|
|
|
|
|
|
|
token_index:
|
2021-10-04 10:26:52 +02:00
|
|
|
$(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
|
2020-12-29 19:44:14 +01:00
|
|
|
|
2021-10-04 09:14:51 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
#test: all
|
2020-12-29 19:44:14 +01:00
|
|
|
#python test.py
|
2021-10-04 09:14:51 +02:00
|
|
|
#python test_tokenindex.py
|
2021-01-10 22:03:26 +01:00
|
|
|
|
|
|
|
install: all
|
|
|
|
cp -v AddressDeclarator.{json,bin} ../python/eth_address_declarator/data/
|
2021-10-04 10:26:52 +02:00
|
|
|
cp -v TokenUniqueSymbolIndexAddressDeclarator.{json,bin} ../python/eth_address_declarator/data/
|
2021-10-04 09:14:51 +02:00
|
|
|
cp -v AccountsIndexAddressDeclarator.{json,bin} ../python/eth_address_declarator/data/
|
2020-12-21 23:00:45 +01:00
|
|
|
|
2021-01-10 22:03:26 +01:00
|
|
|
.PHONY: test install
|