From 130121e0d6be1ce6a7beaa4426d778500b4be7b4 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 19 Sep 2025 08:00:06 -0700 Subject: [PATCH 1/8] feat: Add Verification & Interaction Section Header In makefile --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 9a8574d..79075c6 100644 --- a/makefile +++ b/makefile @@ -254,4 +254,8 @@ deploy-optimism: ## Deploy to Optimism @echo "$(BLUE)🚀 Deploying to Optimism...$(RESET)" forge script script/Deploy.s.sol:DeployScript \ --rpc-url $(OPTIMISM_RPC_URL) \ - --broadcast \ No newline at end of file + --broadcast + +# ================================================================ +# VERIFICATION & INTERACTION +# ================================================================ \ No newline at end of file From 689fccea716412abf4b08e71eea97028398ef2f8 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 19 Sep 2025 08:00:31 -0700 Subject: [PATCH 2/8] feat: Add Verify contract on Etherscan --- makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 79075c6..e02084d 100644 --- a/makefile +++ b/makefile @@ -258,4 +258,10 @@ deploy-optimism: ## Deploy to Optimism # ================================================================ # VERIFICATION & INTERACTION -# ================================================================ \ No newline at end of file +# ================================================================ + +verify-mainnet: ## Verify contract on Etherscan + @echo "$(BLUE)✅ Verifying contract on Etherscan...$(RESET)" + forge verify-contract $(CONTRACT_ADDRESS) src/ImprovedFlashArbitrageV3.sol:ImprovedFlashArbitrageV3 \ + --chain-id 1 \ + --etherscan-api-key $(ETHERSCAN_API_KEY) \ No newline at end of file From cd62236cad176e076f4e61818bd3f6997e1761a2 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 19 Sep 2025 08:00:49 -0700 Subject: [PATCH 3/8] feat: Add Run interaction script on local network --- makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e02084d..d1e860b 100644 --- a/makefile +++ b/makefile @@ -264,4 +264,9 @@ verify-mainnet: ## Verify contract on Etherscan @echo "$(BLUE)✅ Verifying contract on Etherscan...$(RESET)" forge verify-contract $(CONTRACT_ADDRESS) src/ImprovedFlashArbitrageV3.sol:ImprovedFlashArbitrageV3 \ --chain-id 1 \ - --etherscan-api-key $(ETHERSCAN_API_KEY) \ No newline at end of file + --etherscan-api-key $(ETHERSCAN_API_KEY) + +# Contract interaction scripts +interact-local: ## Run interaction script on local network + @echo "$(BLUE)🔄 Running interaction script locally...$(RESET)" + forge script script/Interact.s.sol:InteractionScript --rpc-url http://localhost:8545 From ec40a34c70d5ceaf5d1b20008f72bb3a20b35e16 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Fri, 19 Sep 2025 08:01:13 -0700 Subject: [PATCH 4/8] feat: Add Run interaction script on testnet --- makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makefile b/makefile index d1e860b..f33386e 100644 --- a/makefile +++ b/makefile @@ -270,3 +270,8 @@ verify-mainnet: ## Verify contract on Etherscan interact-local: ## Run interaction script on local network @echo "$(BLUE)🔄 Running interaction script locally...$(RESET)" forge script script/Interact.s.sol:InteractionScript --rpc-url http://localhost:8545 + +interact-testnet: ## Run interaction script on testnet + @echo "$(BLUE)🔄 Running interaction script on testnet...$(RESET)" + forge script script/Interact.s.sol:InteractionScript --rpc-url $(SEPOLIA_RPC_URL) + From 18f4d8cd2aa8e99773b6b614cfb7e5196db04d3b Mon Sep 17 00:00:00 2001 From: malgus01 Date: Sat, 20 Sep 2025 11:28:10 -0700 Subject: [PATCH 5/8] feat: Add Local Deployment --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index f33386e..342d193 100644 --- a/makefile +++ b/makefile @@ -275,3 +275,6 @@ interact-testnet: ## Run interaction script on testnet @echo "$(BLUE)🔄 Running interaction script on testnet...$(RESET)" forge script script/Interact.s.sol:InteractionScript --rpc-url $(SEPOLIA_RPC_URL) +# ================================================================ +# LOCAL DEVELOPMENT +# ================================================================ \ No newline at end of file From c5b3e3c7b2120c685bb20c624d031b8cafc8213e Mon Sep 17 00:00:00 2001 From: malgus01 Date: Sat, 20 Sep 2025 11:29:05 -0700 Subject: [PATCH 6/8] feat: Add Start local Anvil node --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 342d193..7858a02 100644 --- a/makefile +++ b/makefile @@ -277,4 +277,8 @@ interact-testnet: ## Run interaction script on testnet # ================================================================ # LOCAL DEVELOPMENT -# ================================================================ \ No newline at end of file +# ================================================================ + +anvil: ## Start local Anvil node + @echo "$(BLUE)⚒️ Starting Anvil local node...$(RESET)" + anvil --host 0.0.0.0 --port 8545 --chain-id 31337 \ No newline at end of file From 0e033efbc498ac62d5352fedbc3eb2bf44e61af4 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Sat, 20 Sep 2025 11:29:25 -0700 Subject: [PATCH 7/8] feat: Add Start Anvil forked from mainnet --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 7858a02..6251fbf 100644 --- a/makefile +++ b/makefile @@ -281,4 +281,8 @@ interact-testnet: ## Run interaction script on testnet anvil: ## Start local Anvil node @echo "$(BLUE)⚒️ Starting Anvil local node...$(RESET)" - anvil --host 0.0.0.0 --port 8545 --chain-id 31337 \ No newline at end of file + anvil --host 0.0.0.0 --port 8545 --chain-id 31337 + +anvil-fork: ## Start Anvil forked from mainnet + @echo "$(BLUE)🍴 Starting Anvil forked from mainnet...$(RESET)" + anvil --fork-url $(MAINNET_RPC_URL) --host 0.0.0.0 --port 8545 \ No newline at end of file From febfe5793d66da76e51b46ca9950a07e2a4f2c81 Mon Sep 17 00:00:00 2001 From: malgus01 Date: Sat, 20 Sep 2025 11:29:49 -0700 Subject: [PATCH 8/8] feat: Add Start Anvil forked from Polygon --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 6251fbf..239f8f3 100644 --- a/makefile +++ b/makefile @@ -285,4 +285,8 @@ anvil: ## Start local Anvil node anvil-fork: ## Start Anvil forked from mainnet @echo "$(BLUE)🍴 Starting Anvil forked from mainnet...$(RESET)" - anvil --fork-url $(MAINNET_RPC_URL) --host 0.0.0.0 --port 8545 \ No newline at end of file + anvil --fork-url $(MAINNET_RPC_URL) --host 0.0.0.0 --port 8545 + +anvil-polygon: ## Start Anvil forked from Polygon + @echo "$(BLUE)🍴 Starting Anvil forked from Polygon...$(RESET)" + anvil --fork-url $(POLYGON_RPC_URL) --host 0.0.0.0 --port 8545 \ No newline at end of file