2020-04-15 11:03:19 +00:00
|
|
|
all: compile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f DepositContract.abi DepositContract.bin IDepositContract.abi IDepositContract.bin deposit_contract.json
|
|
|
|
|
|
|
|
compile: clean
|
|
|
|
@solc --bin --abi --overwrite -o . deposit_contract.sol
|
2020-05-13 22:03:42 +00:00
|
|
|
@echo -n '{"abi": ' > deposit_contract.json
|
2020-04-15 11:03:19 +00:00
|
|
|
@cat DepositContract.abi >> deposit_contract.json
|
2020-05-13 22:03:42 +00:00
|
|
|
@echo -n ', "bytecode": "0x' >> deposit_contract.json
|
2020-04-15 11:03:19 +00:00
|
|
|
@cat DepositContract.bin >> deposit_contract.json
|
2020-05-13 22:03:42 +00:00
|
|
|
@echo -n '"}' >> deposit_contract.json
|