import { task } from 'hardhat/config'; import { ConfigNames, loadPoolConfig } from '../../helpers/configuration'; import { getParamPerNetwork } from '../../helpers/contracts-helpers'; import { printContracts } from '../../helpers/misc-utils'; task('arbitrum:dev', 'Deploy development enviroment') .addFlag('verify', 'Verify contracts at Etherscan') .addFlag('skipRegistry', 'Skip addresses provider registration at Addresses Provider Registry') .setAction(async ({ verify, skipRegistry }, DRE) => { const POOL_NAME = ConfigNames.Arbitrum; await DRE.run('set-DRE'); console.log('Migration started\n'); console.log('1. Deploy address provider'); await DRE.run('full:deploy-address-provider', { pool: POOL_NAME, skipRegistry }); console.log('2. Deploy lending pool'); await DRE.run('full:deploy-lending-pool', { pool: POOL_NAME }); console.log('3. Deploy oracles'); await DRE.run('full:deploy-oracles', { pool: POOL_NAME }); console.log('4. Deploy Data Provider'); await DRE.run('full:data-provider', { pool: POOL_NAME }); console.log('5. Deploy WETH Gateway'); await DRE.run('full-deploy-weth-gateway', { pool: POOL_NAME }); console.log('6. Initialize lending pool'); await DRE.run('full:initialize-lending-pool', { pool: POOL_NAME }); console.log('\nFinished migrations'); printContracts(); });