diff --git a/Makefile b/Makefile index 56f5c72f..fe620a87 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ ############################# HELP MESSAGE ############################# # Make sure the help command stays first, so that it's printed by default when `make` is called without arguments +PHONY: reset-anvil .PHONY: help tests help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' @@ -13,6 +14,10 @@ CHAINID=31337 STRATEGY_ADDRESS=0x7a2088a1bFc9d81c55368AE168C2C02570cB814F DEPLOYMENT_FILES_DIR=contracts/script/output/${CHAINID} +reset-anvil: + -docker stop anvil + -docker rm anvil + -----------------------------: ## ___CONTRACTS___: ## @@ -20,15 +25,15 @@ ___CONTRACTS___: ## build-contracts: ## builds all contracts cd contracts && forge build -deploy-eigenlayer-contracts-to-anvil-and-save-state: ## Deploy eigenlayer +deploy-eigenlayer-contracts-to-anvil-and-save-state: reset-anvil ## Deploy eigenlayer ./utils/anvil/deploy-eigenlayer-save-anvil-state.sh -deploy-hello-world-contracts-to-anvil-and-save-state: ## Deploy avs +deploy-hello-world-contracts-to-anvil-and-save-state: reset-anvil ## Deploy avs ./utils/anvil/deploy-avs-save-anvil-state.sh -deploy-contracts-to-anvil-and-save-state: deploy-eigenlayer-contracts-to-anvil-and-save-state deploy-hello-world-contracts-to-anvil-and-save-state ## deploy eigenlayer, shared avs contracts, and inc-sq contracts (part of quickstart) +deploy-contracts-to-anvil-and-save-state: reset-anvil deploy-eigenlayer-contracts-to-anvil-and-save-state deploy-hello-world-contracts-to-anvil-and-save-state ## deploy eigenlayer, shared avs contracts, and inc-sq contracts (part of quickstart) -start-chain-with-contracts-deployed: ## starts anvil from a saved state file (with el and avs contracts deployed) +start-chain-with-contracts-deployed: reset-anvil ## starts anvil from a saved state file (with el and avs contracts deployed) ./utils/anvil/start-anvil-chain-with-el-and-avs-deployed.sh # start-chain-and-deploy-hello-world-avs: build-contracts deploy-contracts-to-anvil-and-save-state start-anvil-chain-with-el-and-avs-deployed