mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
17 lines
767 B
TypeScript
17 lines
767 B
TypeScript
import { formatEther } from 'ethers/lib/utils';
|
|
import { task } from 'hardhat/config';
|
|
import { deployLendingPoolAddressesProviderRegistry } from '../../helpers/contracts-deployments';
|
|
import { getFirstSigner } from '../../helpers/contracts-getters';
|
|
|
|
task('full:deploy-address-provider-registry', 'Deploy address provider registry')
|
|
.addFlag('verify', 'Verify contracts at Etherscan')
|
|
.setAction(async ({ verify }, DRE) => {
|
|
await DRE.run('set-DRE');
|
|
const signer = await getFirstSigner();
|
|
console.log('Signer', await signer.getAddress());
|
|
console.log('Balance', formatEther(await signer.getBalance()));
|
|
|
|
const contract = await deployLendingPoolAddressesProviderRegistry(verify);
|
|
console.log('Registry Address:', contract.address);
|
|
});
|