@@ -8,10 +8,6 @@ ETH2SPEC_MODULE_DIR = $(PY_SPEC_DIR)/eth2spec
88TEST_REPORT_DIR = $(PY_SPEC_DIR ) /test-reports
99TEST_VECTOR_DIR = ../consensus-spec-tests/tests
1010GENERATOR_DIR = ./tests/generators
11- SOLIDITY_DEPOSIT_CONTRACT_DIR = ./solidity_deposit_contract
12- SOLIDITY_DEPOSIT_CONTRACT_SOURCE = ${SOLIDITY_DEPOSIT_CONTRACT_DIR}/deposit_contract.sol
13- SOLIDITY_FILE_NAME = deposit_contract.json
14- DEPOSIT_CONTRACT_TESTER_DIR = ${SOLIDITY_DEPOSIT_CONTRACT_DIR}/web3_tester
1511CONFIGS_DIR = ./configs
1612TEST_PRESET_TYPE ?= minimal
1713# Collect a list of generator names
@@ -50,15 +46,8 @@ GENERATOR_ERROR_LOG_FILE = $(CURRENT_DIR)/$(TEST_VECTOR_DIR)/testgen_error_log.t
5046
5147SCRIPTS_DIR = ${CURRENT_DIR}/scripts
5248
53- export DAPP_SKIP_BUILD: =1
54- export DAPP_SRC: =$(SOLIDITY_DEPOSIT_CONTRACT_DIR )
55- export DAPP_LIB: =$(SOLIDITY_DEPOSIT_CONTRACT_DIR ) /lib
56- export DAPP_JSON: =build/combined.json
57-
5849.PHONY : clean partial_clean all test citest lint generate_tests pyspec install_test open_cov \
59- install_deposit_contract_tester test_deposit_contract install_deposit_contract_compiler \
60- compile_deposit_contract test_compile_deposit_contract check_toc \
61- detect_generator_incomplete detect_generator_error_log
50+ check_toc detect_generator_incomplete detect_generator_error_log
6251
6352all : $(PY_SPEC_ALL_TARGETS )
6453
@@ -162,26 +151,6 @@ lint_generators: pyspec
162151 . venv/bin/activate; cd $(TEST_GENERATORS_DIR ) ; \
163152 flake8 --config $(LINTER_CONFIG_FILE )
164153
165- compile_deposit_contract :
166- @cd $(SOLIDITY_DEPOSIT_CONTRACT_DIR )
167- @git submodule update --recursive --init
168- @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 $(SOLIDITY_DEPOSIT_CONTRACT_SOURCE ) $(SOLIDITY_DEPOSIT_CONTRACT_DIR ) /tests/deposit_contract.t.sol
169- @/bin/echo -n ' {"abi": ' > $(SOLIDITY_FILE_NAME )
170- @cat build/DepositContract.abi >> $(SOLIDITY_FILE_NAME )
171- @/bin/echo -n ' , "bytecode": "0x' >> $(SOLIDITY_FILE_NAME )
172- @cat build/DepositContract.bin >> $(SOLIDITY_FILE_NAME )
173- @/bin/echo -n ' "}' >> $(SOLIDITY_FILE_NAME )
174-
175- test_deposit_contract :
176- dapp test -v --fuzz-runs 5
177-
178- install_deposit_contract_web3_tester :
179- cd $(DEPOSIT_CONTRACT_TESTER_DIR ) ; python3 -m venv venv; . venv/bin/activate; python3 -m pip install -r requirements.txt
180-
181- test_deposit_contract_web3_tests :
182- cd $(DEPOSIT_CONTRACT_TESTER_DIR ) ; . venv/bin/activate; \
183- python3 -m pytest .
184-
185154# Runs a generator, identified by param 1
186155define run_generator
187156 # Started!
0 commit comments