Skip to content

Commit

Permalink
add: deploy script for private key
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Burtsevych committed Dec 4, 2024
1 parent 62b946f commit fe754ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ test :; forge test -vvv
test-sd-rewards :; forge test -vvv --match-contract EmissionTestSDPolygon
test-stmatic-rewards :; forge test -vvv --match-contract EmissionTestSTMATICPolygon
test-maticx-rewards :; forge test -vvv --match-contract EmissionTestMATICXPolygon
deploy-ledger :; forge script ${contract} --rpc-url ${chain} --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv --slow --broadcast ${args}
deploy-ledger :; forge script ${contract} --rpc-url ${chain} --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} -vvvv --slow --broadcast
deploy-private-key :; forge script ${contract} --rpc-url ${chain} --private-key ${private_key} -vvvv --slow --broadcast

# scripts
deploy-sd-transfer-strategy :; forge script scripts/RewardsConfigHelpers.s.sol:SDDeployTransferStrategy --rpc-url polygon --broadcast --legacy --ledger --mnemonic-indexes ${MNEMONIC_INDEX} --sender ${LEDGER_SENDER} --verify -vvvv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ import {${poolChain}Script} from '../../lib/aave-address-book/lib/aave-v3-origin
/**
* @dev Deploy ${poolChain}
* deploy-command: make deploy-ledger contract=tests/${folderName}/${scriptName}.s.sol:${scriptName} chain=${chainAlias}
* deploy-command:
* make deploy-ledger contract=tests/${folderName}/${scriptName}.s.sol:${scriptName} chain=${chainAlias}
* or
* make deploy-private-key contract=tests/${folderName}/${scriptName}.s.sol:${scriptName} chain=${chainAlias} private_key=$\{PRIVATE_KEY\}
*/
contract ${scriptName} is ${testContractName}, ${poolChain}Script {
// solium-disable-next-line
Expand Down

0 comments on commit fe754ad

Please sign in to comment.