mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
|
import {task} from '@nomiclabs/buidler/config';
|
||
|
import {checkVerification} from '../../helpers/etherscan-verification';
|
||
|
|
||
|
task('dev-migration', 'Deploy development enviroment')
|
||
|
.addOptionalParam('verify', 'Verify contracts at Etherscan')
|
||
|
.setAction(async ({verify}, localBRE) => {
|
||
|
await localBRE.run('set-bre');
|
||
|
|
||
|
// Prevent loss of gas verifying all the needed ENVs for Etherscan verification
|
||
|
if (verify) {
|
||
|
checkVerification();
|
||
|
}
|
||
|
|
||
|
console.log('Migration started\n');
|
||
|
|
||
|
console.log('1. Deploy mock tokens');
|
||
|
await localBRE.run('deploy-mock-tokens');
|
||
|
|
||
|
console.log('2. Deploy address provider');
|
||
|
await localBRE.run('deploy-address-provider');
|
||
|
|
||
|
console.log('3. Deploy lending pool');
|
||
|
await localBRE.run('deploy-lending-pool');
|
||
|
|
||
|
console.log('4. Deploy oracles');
|
||
|
await localBRE.run('deploy-oracles');
|
||
|
|
||
|
// 5. Initialize lending pool configuration
|
||
|
//
|
||
|
// console.log('5. Initialize lending pool')
|
||
|
// await localBRE.run('initialize-lending-pool');
|
||
|
|
||
|
console.log('\nFinished migration');
|
||
|
});
|