-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a CLI tool to deploy the contracts using Foundry #86
Conversation
Usage: ./deploy.sh <local | tenderly-devnet | mainnet> Environment variables (can be set in a .env file): CHAIN_ID: Chain ID to deploy to (optional) RPC_URL: RPC URL to use (optional) DEPLOYER: Address or private key to deploy with (optional with local) DEPLOYER_PATH: HD path to use with the ledger (optional, only used when DEPLOYER is an address) ETHERSCAN_API_KEY: Etherscan API key for contracts verification (mainnet only) OPEN_DEMO_TROVES: Set to 1 to open demo troves after deployment (defaults to 0, local only)
uint256 debt; | ||
} | ||
|
||
function openDemoTroves() internal { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will move this part in another script before merging the PR, to separate deployment from demo data.
Also refactor the deployment script and our test harnesses to share a single deployment function.
e4c1183
to
a55c29d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good to me! 👍 👍
I've added some changes on top of the branch to automatically deploy to our testnet, can you give those a look before we merge this? Thanks 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 🔥 🔥
WIP
This relies on Foundry rather than Hardhat like #83 did.
utils/deploymentDev.js
to a Foundry script./deploy
)Add a GitHub action that:Deploys the contracts to TenderlyDeploys the app on Vercel (carrying the env vars from deploying the contracts)(will be done in another PR)deploy
can be launched with--help
to see its documentation: