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..2e9d895 100644 --- a/makefile +++ b/makefile @@ -188,3 +188,31 @@ mythril: ## Run mythril security analysis myth analyze src/ImprovedFlashArbitrageV3.sol 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 + +# 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) + +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