Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(contracts): mark phony make targets #493

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading