From f1ee1dd5eeb8fb97384924a0b549a41fd7c53f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Mon, 18 Nov 2024 18:53:00 +0700 Subject: [PATCH] Minor tweaks --- .gitignore | 2 ++ Makefile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 037dbf1..80e3a6d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ lcov.info .DS_Store *.tree + +logs/* diff --git a/Makefile b/Makefile index 60cda8c..2cf2ab1 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,7 @@ pre-deploy-prodnet: pre-deploy ## Simulate a deployment to the production n : ## +deploy-mint-testnet: export MINT_TEST_TOKENS = true deploy-testnet: export RPC_URL = $(TESTNET_RPC_URL) deploy-testnet: export NETWORK = $(TESTNET_NETWORK) deploy-prodnet: export RPC_URL = $(PRODNET_RPC_URL) @@ -193,6 +194,7 @@ deploy-prodnet: export NETWORK = $(PRODNET_NETWORK) deploy-testnet: export DEPLOYMENT_LOG_FILE=./deployment-$(patsubst "%",%,$(TESTNET_NETWORK))-$(shell date +"%y-%m-%d-%H-%M").log deploy-prodnet: export DEPLOYMENT_LOG_FILE=./deployment-$(patsubst "%",%,$(PRODNET_NETWORK))-$(shell date +"%y-%m-%d-%H-%M").log +deploy-mint-testnet: deploy-testnet ## Deploy to the testnet, mint a token and verify deploy-testnet: deploy ## Deploy to the testnet and verify deploy-prodnet: deploy ## Deploy to the production network and verify @@ -207,6 +209,7 @@ pre-deploy: .PHONY: deploy deploy: test @echo "Starting the deployment" + @mkdir -p logs/ forge script $(DEPLOY_SCRIPT) \ --chain $(NETWORK) \ --rpc-url $(RPC_URL) \ @@ -215,7 +218,7 @@ deploy: test $(VERIFIER_TYPE_PARAM) \ $(VERIFIER_URL_PARAM) \ $(ETHERSCAN_API_KEY_PARAM) \ - $(VERBOSITY) | tee $(DEPLOYMENT_LOG_FILE) + $(VERBOSITY) | tee logs/$(DEPLOYMENT_LOG_FILE) : ##