git clone https://github.com/CreamFi/cream-deployment
cd cream-deployment
yarn install
Copy .env
from .env.default
cp .env.default .env
abd fill in all the variables in .env
Modify namedAccounts
in hardhat.config.ts
and add networks if necessary.
npx hardhat deploy --network <NETWORK>
--tags <tags>
: only excute deploy scripts with the given tags (separated by commas) and their dependencies
See more options here for hardhat deploy
.
Edit constructor arguments in /scripts/deploy_new_markets.ts
before executing the comment below.
npx hardhat run scripts/deploy_new_markets.ts --network <NETWORK>
Fill up the crToken address, price feed source, reserve factors, etc. before execution
npx hardhat run scripts/support_multiple_markets.ts --network <NETWORK>
npx hardhat --network <NETWORK> sourcify
Note: CWrappedNativeDelegator and CErc20Delegator need to verify manually by uploading the flatten source code CWrappedNativeDelegatorFlatten.sol
and CErc20DelegatorFlatten.sol