2023-06-21 23:25:27 +00:00
|
|
|
CONTRACTS_DIR := ./test/contract/contracts
|
|
|
|
CONTRACTS_OUTPUT_DIR := ./internal/testdata/build
|
2022-01-20 13:22:01 +00:00
|
|
|
|
2023-06-21 23:25:27 +00:00
|
|
|
GINKGO := go run github.com/onsi/ginkgo/v2/ginkgo
|
2022-01-20 13:22:01 +00:00
|
|
|
|
2023-06-21 23:25:27 +00:00
|
|
|
contracts: $(CONTRACTS_OUTPUT_DIR)/Test.bin $(CONTRACTS_OUTPUT_DIR)/Test.abi
|
|
|
|
.PHONY: contracts
|
2022-01-20 13:22:01 +00:00
|
|
|
|
2023-06-21 23:25:27 +00:00
|
|
|
# Solidity 0.8.20 defaults to the Shanghai fork which includes the PUSH0 opcode
|
|
|
|
# which our testnet doesn't yet support, so use Paris.
|
|
|
|
$(CONTRACTS_OUTPUT_DIR)/%.bin $(CONTRACTS_OUTPUT_DIR)/%.abi: $(CONTRACTS_DIR)/%.sol
|
|
|
|
solc $< --abi --bin -o $(CONTRACTS_OUTPUT_DIR) --overwrite --evm-version=paris
|
|
|
|
|
|
|
|
test: contracts
|
|
|
|
$(GINKGO) -v -r ./validator_test
|
2022-05-06 11:21:11 +00:00
|
|
|
.PHONY: test
|
2022-03-03 21:26:41 +00:00
|
|
|
|
2023-06-21 23:25:27 +00:00
|
|
|
clean:
|
|
|
|
rm $(CONTRACTS_OUTPUT_DIR)/*.bin $(CONTRACTS_OUTPUT_DIR)/*.abi
|