mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
20 lines
675 B
TypeScript
20 lines
675 B
TypeScript
import {task} from 'hardhat/config';
|
|
import {deployAaveProtocolDataProvider} from '../../helpers/contracts-deployments';
|
|
import {exit} from 'process';
|
|
import {getLendingPoolAddressesProvider} from '../../helpers/contracts-getters';
|
|
|
|
task('full:data-provider', 'Initialize lending pool configuration.')
|
|
.addFlag('verify', 'Verify contracts at Etherscan')
|
|
.setAction(async ({verify}, localBRE) => {
|
|
try {
|
|
await localBRE.run('set-DRE');
|
|
|
|
const addressesProvider = await getLendingPoolAddressesProvider();
|
|
|
|
await deployAaveProtocolDataProvider(addressesProvider.address, verify);
|
|
} catch (err) {
|
|
console.error(err);
|
|
exit(1);
|
|
}
|
|
});
|