Skip to content

Commit

Permalink
add reset anvil in make file
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed Aug 13, 2024
1 parent f48f498 commit b6b5bfc
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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}'
Expand All @@ -13,22 +14,26 @@ CHAINID=31337
STRATEGY_ADDRESS=0x7a2088a1bFc9d81c55368AE168C2C02570cB814F
DEPLOYMENT_FILES_DIR=contracts/script/output/${CHAINID}

reset-anvil:
-docker stop anvil
-docker rm anvil

-----------------------------: ##

___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
Expand Down

0 comments on commit b6b5bfc

Please sign in to comment.