Skip to content

Commit

Permalink
chore(contracts): mark phony make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhalliday committed Mar 4, 2024
1 parent f8f4813 commit 958ea99
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,40 @@ ifneq ("$(wildcard .env)","")
endif


.PHONY: help
help: ## Display this help message.
@egrep -h '\s##\s' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-30s\033[0m %s\n", $$1, $$2}'

.PHONY: version
version: ## Print tool versions.
@forge --version
@abigen --version

.PHONY: build
build: version ## Build contracts.
forge build

.PHONY: bindings
bindings: check-abigen-version build ## Generate golang contract bindings.
./bindings/scripts/gen.sh OmniPortal FeeOracleV1 OmniAVS TransparentUpgradeableProxy ProxyAdmin DelegationManager StrategyManager StrategyBase MockERC20 AVSDirectory
go run ./bindings/scripts/commenttypes.go -- bindings/strategymanager.go IStrategyManagerDeprecatedStructQueuedWithdrawal IStrategyManagerDeprecatedStructWithdrawerAndNonce
go run ./bindings/scripts/commenttypes.go -- bindings/avsdirectory.go ISignatureUtilsSignatureWithSaltAndExpiry

.PHONY: examples-bindings
examples-bindings: check-abigen-version build ## Generate golang contract bindings for example contracts
PKG=examples DIR=./bindings/examples ./bindings/scripts/gen.sh PingPong

.PHONY: deploy-eigenlayer-save-anvil-state
deploy-eigenlayer-save-anvil-state: ## Deploy eigenlayer contracts and dump anvil state.
./script/eigen/deploy-eigenlayer-save-anvil-state.sh

.PHONY: avs-fork-test-goerli
avs-fork-test-goerli: ## Run OmniAVS tests on a goerli fork.
@if [ -z "${INFURA_KEY}" ]; then echo "INFURA_KEY is not set"; exit 1; fi
@FOUNDRY_FUZZ_RUNS=10 forge test --fork-url https://goerli.infura.io/v3/${INFURA_KEY} --fork-block-number 10580259 --match-contract OmniAVS_Test

check-abigen-version: ## Check abigen version.
.PHONY: check-abigen-version
check-abigen-version: ## Check abigen version, exit(1) if not 1.13.14-stable.
@version=$$(abigen --version); \
if [ "$$version" != "abigen version 1.13.14-stable" ]; then \
echo "abigen version is not 1.13.14-stable"; \
Expand Down

0 comments on commit 958ea99

Please sign in to comment.