Add contract metadata

This commit is contained in:
lash
2023-03-21 16:53:37 +00:00
parent 6a6ffc97d0
commit 454b6a79b3
3 changed files with 8 additions and 3 deletions

View File

@@ -2,12 +2,15 @@ SOLC = /usr/bin/solc
all:
$(SOLC) --bin EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.bin
truncate -s -1 EthFaucet.bin
$(SOLC) --abi EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.json
$(SOLC) --metadata EthFaucet.sol --evm-version byzantium | awk 'NR>3' > EthFaucet.metadata.json
$(SOLC) --bin PeriodSimple.sol --evm-version byzantium | awk 'NR>3' > PeriodSimple.bin
truncate -s -1 PeriodSimple.bin
$(SOLC) --abi PeriodSimple.sol --evm-version byzantium | awk 'NR==4' > PeriodSimple.json
$(SOLC) --metadata PeriodSimple.sol --evm-version byzantium | awk 'NR==4' > PeriodSimple.metadata.json
truncate -s -1 EthFaucet.bin
truncate -s -1 PeriodSimple.bin
install: all
cp -v *{json,bin} ../python/eth_faucet/data/
cp -v *.json ../python/eth_faucet/data/
cp -v *.bin ../python/eth_faucet/data/