-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update deployment script (#39)
- Loading branch information
1 parent
55de92e
commit 0ae7aef
Showing
7 changed files
with
72 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
SHELL := /bin/bash | ||
.PHONY: deploy-testnet deploy-mainnet deploy-aave-mainnet | ||
.PHONY: deploy-core-optimism-sepolia deploy-aave-optimism-sepolia deploy-core-optimism deploy-aave-optimism deploy-core-cyber-testnet deploy-aave-cyber-testnet deploy-core-cyber deploy-aave-cyber | ||
|
||
DEPLOY_CMD=source .env && forge script scripts/Deploy.s.sol:DeployScript | ||
DEPLOY_CMD=source .env && forge script scripts/DeployCore.s.sol:DeployCoreScript | ||
DEPLOY_AAVE_CMD=source .env && forge script scripts/DeployAave.s.sol:DeployAaveScript | ||
VERIFY_CMD=--etherscan-api-key $$OPTIMISM_ETHERSCAN_API_KEY --verify | ||
|
||
deploy-testnet: | ||
${DEPLOY_CMD} --rpc-url $$OPTIMISM_TESTNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
#${DEPLOY_CMD} --rpc-url $$CYBER_TESTNET_RPC --broadcast -vvvv | ||
|
||
deploy-mainnet: | ||
${DEPLOY_CMD} --rpc-url $$OPTIMISM_MAINNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
#${DEPLOY_CMD} --rpc-url $$CYBER_MAINNET_RPC --broadcast -vvvv | ||
## network: optimism-sepolia | ||
deploy-core-optimism-sepolia: | ||
${DEPLOY_CMD} --rpc-url $$OPTIMISM_TESTNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
deploy-aave-testnet: | ||
deploy-aave-optimism-sepolia: | ||
${DEPLOY_AAVE_CMD} --rpc-url $$OPTIMISM_TESTNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
deploy-aave-mainnet: | ||
## network: optimism | ||
deploy-core-optimism: | ||
${DEPLOY_CMD} --rpc-url $$OPTIMISM_MAINNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
deploy-aave-optimism: | ||
${DEPLOY_AAVE_CMD} --rpc-url $$OPTIMISM_MAINNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
## network: cyber-testnet | ||
deploy-core-cyber-testnet: | ||
${DEPLOY_CMD} --rpc-url $$CYBER_TESTNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
deploy-aave-cyber-testnet: | ||
${DEPLOY_AAVE_CMD} --rpc-url $$CYBER_TESTNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
## network: cyber-mainnet | ||
deploy-core-cyber: | ||
${DEPLOY_CMD} --rpc-url $$CYBER_MAINNET_RPC --broadcast ${VERIFY_CMD} -vvvv | ||
|
||
deploy-aave-cyber: | ||
${DEPLOY_AAVE_CMD} --rpc-url $$CYBER_MAINNET_RPC --broadcast ${VERIFY_CMD} -vvvv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters