2021-02-02 11:26:44 +01:00
|
|
|
SOLC = /usr/bin/solc
|
|
|
|
|
2021-06-05 11:58:35 +02:00
|
|
|
all: multi single
|
2021-06-05 07:50:59 +02:00
|
|
|
|
|
|
|
multi_nocap:
|
2021-06-04 09:05:08 +02:00
|
|
|
$(SOLC) DemurrageTokenMultiNocap.sol --abi --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiNocap.json
|
|
|
|
$(SOLC) DemurrageTokenMultiNocap.sol --bin --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiNocap.bin
|
2021-06-05 11:58:35 +02:00
|
|
|
truncate -s -1 DemurrageTokenMultiNocap.bin
|
2021-06-05 07:50:59 +02:00
|
|
|
|
|
|
|
multi_cap:
|
|
|
|
$(SOLC) DemurrageTokenMultiCap.sol --abi --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiCap.json
|
|
|
|
$(SOLC) DemurrageTokenMultiCap.sol --bin --evm-version byzantium | awk 'NR>3' > DemurrageTokenMultiCap.bin
|
2021-06-05 11:58:35 +02:00
|
|
|
truncate -s -1 DemurrageTokenMultiCap.bin
|
2021-02-02 11:26:44 +01:00
|
|
|
|
2021-06-05 07:50:59 +02:00
|
|
|
multi: multi_nocap multi_cap
|
|
|
|
|
|
|
|
single_nocap:
|
|
|
|
$(SOLC) DemurrageTokenSingleNocap.sol --abi --evm-version byzantium | awk 'NR>3' > DemurrageTokenSingleNocap.json
|
|
|
|
$(SOLC) DemurrageTokenSingleNocap.sol --bin --evm-version byzantium | awk 'NR>3' > DemurrageTokenSingleNocap.bin
|
|
|
|
truncate -s -1 DemurrageTokenSingleNocap.bin
|
|
|
|
|
2021-06-05 11:58:35 +02:00
|
|
|
single_cap:
|
|
|
|
$(SOLC) DemurrageTokenSingleCap.sol --abi --evm-version byzantium | awk 'NR>3' > DemurrageTokenSingleCap.json
|
|
|
|
$(SOLC) DemurrageTokenSingleCap.sol --bin --evm-version byzantium | awk 'NR>3' > DemurrageTokenSingleCap.bin
|
|
|
|
truncate -s -1 DemurrageTokenSingleCap.bin
|
|
|
|
|
|
|
|
single: single_nocap single_cap
|
|
|
|
|
2021-02-02 11:26:44 +01:00
|
|
|
test: all
|
|
|
|
python ../python/tests/test_basic.py
|
2021-02-03 09:00:24 +01:00
|
|
|
python ../python/tests/test_period.py
|
|
|
|
python ../python/tests/test_redistribution.py
|
2021-06-05 07:50:59 +02:00
|
|
|
python ../python/tests/test_pure.py
|
2021-02-02 11:26:44 +01:00
|
|
|
|
|
|
|
install: all
|
2022-12-15 11:48:40 +01:00
|
|
|
#cp -v DemurrageToken*.{json,bin} ../python/erc20_demurrage_token/data/
|
|
|
|
cp -v DemurrageTokenSingleNocap.{json,bin} ../python/erc20_demurrage_token/data/
|
|
|
|
|
|
|
|
install-broken: all
|
2021-06-05 07:50:59 +02:00
|
|
|
cp -v DemurrageToken*.{json,bin} ../python/erc20_demurrage_token/data/
|
2021-02-02 11:26:44 +01:00
|
|
|
|
|
|
|
.PHONY: test install
|