2020-04-15 11:03:19 +00:00
|
|
|
all: compile
|
|
|
|
|
|
|
|
clean:
|
2020-05-15 17:23:58 +00:00
|
|
|
@rm -rf build
|
|
|
|
@rm -f deposit_contract.json
|
2020-04-15 11:03:19 +00:00
|
|
|
|
2020-05-15 17:23:58 +00:00
|
|
|
# Note: using /bin/echo for macOS support
|
2020-04-15 11:03:19 +00:00
|
|
|
compile: clean
|
2020-05-14 19:58:48 +00:00
|
|
|
@git submodule update --recursive --init
|
2020-05-15 17:23:58 +00:00
|
|
|
@solc --metadata-literal --optimize --optimize-runs 5000000 --bin --abi --combined-json=abi,bin,bin-runtime,srcmap,srcmap-runtime,ast,metadata,storage-layout --overwrite -o build deposit_contract.sol tests/deposit_contract.t.sol
|
2020-05-15 10:48:00 +00:00
|
|
|
@/bin/echo -n '{"abi": ' > deposit_contract.json
|
2020-05-15 17:23:58 +00:00
|
|
|
@cat build/DepositContract.abi >> deposit_contract.json
|
2020-05-15 10:48:00 +00:00
|
|
|
@/bin/echo -n ', "bytecode": "0x' >> deposit_contract.json
|
2020-05-15 17:23:58 +00:00
|
|
|
@cat build/DepositContract.bin >> deposit_contract.json
|
2020-05-15 10:48:00 +00:00
|
|
|
@/bin/echo -n '"}' >> deposit_contract.json
|
2020-05-14 19:58:48 +00:00
|
|
|
|
|
|
|
export DAPP_SKIP_BUILD:=1
|
|
|
|
export DAPP_SRC:=.
|
2020-05-15 17:23:58 +00:00
|
|
|
export DAPP_JSON:=build/combined.json
|
2020-05-14 19:58:48 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
dapp test -v --fuzz-runs 5
|