From 177ca8139c8c9a1bbb27429782d061b870468ccd Mon Sep 17 00:00:00 2001 From: malgus01 Date: Thu, 18 Sep 2025 09:25:49 -0700 Subject: [PATCH 1/4] feat: Add Deployment Script Sectition Header Natspec In makefile --- foundry.lock | 17 +++++++++++++++++ makefile | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 foundry.lock diff --git a/foundry.lock b/foundry.lock new file mode 100644 index 0000000..214da2c --- /dev/null +++ b/foundry.lock @@ -0,0 +1,17 @@ +{ + "lib/balancer-v2-monorepo": { + "rev": "36d282374b457dddea828be7884ee0d185db06ba" + }, + "lib/forge-std": { + "rev": "b93cf4bc34ff214c099dc970b153f85ade8c9f66" + }, + "lib/openzeppelin-contracts": { + "rev": "281550b71c3df9a83e6b80ceefc700852c287570" + }, + "lib/v3-core": { + "rev": "e3589b192d0be27e100cd0daaf6c97204fdb1899" + }, + "lib/v3-periphery": { + "rev": "80f26c86c57b8a5e4b913f42844d4c8bd274d058" + } +} \ No newline at end of file diff --git a/makefile b/makefile index 0e52e32..af5eaec 100644 --- a/makefile +++ b/makefile @@ -188,3 +188,7 @@ mythril: ## Run mythril security analysis myth analyze src/ImprovedFlashArbitrageV3.sol audit-prep: fmt build analyze ## Prepare for security audit + +# ================================================================ +# DEPLOYMENT SCRIPTS +# ================================================================ From eea9d42911bda7de8e48a543b53c21013510cd6e Mon Sep 17 00:00:00 2001 From: malgus01 Date: Thu, 18 Sep 2025 09:26:16 -0700 Subject: [PATCH 2/4] feat: Add Deploy to local anvil network --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index af5eaec..035a4a9 100644 --- a/makefile +++ b/makefile @@ -192,3 +192,8 @@ audit-prep: fmt build analyze ## Prepare for security audit # ================================================================ # DEPLOYMENT SCRIPTS # ================================================================ + +# Local deployment +deploy-local: ## Deploy to local anvil network + @echo "$(BLUE)🚀 Deploying to local network...$(RESET)" + forge script script/Deploy.s.sol:DeployScript --rpc-url http://localhost:8545 --broadcast From 0cd67434f4615ef81898a4bc099dc3e138ac4e7b Mon Sep 17 00:00:00 2001 From: malgus01 Date: Thu, 18 Sep 2025 09:26:35 -0700 Subject: [PATCH 3/4] feat: Add Deploy to Sepolia testnet --- makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/makefile b/makefile index 035a4a9..d301bd3 100644 --- a/makefile +++ b/makefile @@ -197,3 +197,14 @@ audit-prep: fmt build analyze ## Prepare for security audit deploy-local: ## Deploy to local anvil network @echo "$(BLUE)🚀 Deploying to local network...$(RESET)" forge script script/Deploy.s.sol:DeployScript --rpc-url http://localhost:8545 --broadcast + +# Testnet deployments +deploy-sepolia: ## Deploy to Sepolia testnet + @echo "$(BLUE)🚀 Deploying to Sepolia...$(RESET)" + forge script script/Deploy.s.sol:DeployScript \ + --rpc-url $(SEPOLIA_RPC_URL) \ + --broadcast \ + --verify \ + --etherscan-api-key $(ETHERSCAN_API_KEY) \ + --gas-limit $(GAS_LIMIT) \ + --gas-price $(GAS_PRICE) \ No newline at end of file From ae0d724c6058afff634094752e702de9da5ee379 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Thu, 18 Sep 2025 09:27:00 -0700 Subject: [PATCH 4/4] feat: Add Deploy to Goerli testnet --- makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index d301bd3..2e9d895 100644 --- a/makefile +++ b/makefile @@ -207,4 +207,12 @@ deploy-sepolia: ## Deploy to Sepolia testnet --verify \ --etherscan-api-key $(ETHERSCAN_API_KEY) \ --gas-limit $(GAS_LIMIT) \ - --gas-price $(GAS_PRICE) \ No newline at end of file + --gas-price $(GAS_PRICE) + +deploy-goerli: ## Deploy to Goerli testnet + @echo "$(BLUE)🚀 Deploying to Goerli...$(RESET)" + forge script script/Deploy.s.sol:DeployScript \ + --rpc-url $(GOERLI_RPC_URL) \ + --broadcast \ + --verify \ + --etherscan-api-key $(ETHERSCAN_API_KEY) \ No newline at end of file