2020-11-05 11:18:20 +00:00
|
|
|
import {task} from 'hardhat/config';
|
2020-11-02 13:45:00 +00:00
|
|
|
import {deployWalletBalancerProvider} from '../../helpers/contracts-deployments';
|
|
|
|
|
|
|
|
import {getLendingPoolAddressesProvider} from '../../helpers/contracts-getters';
|
|
|
|
|
|
|
|
task('dev:wallet-balance-provider', 'Initialize lending pool configuration.')
|
|
|
|
.addFlag('verify', 'Verify contracts at Etherscan')
|
|
|
|
.setAction(async ({verify}, localBRE) => {
|
2020-11-05 12:44:20 +00:00
|
|
|
await localBRE.run('set-DRE');
|
2020-11-02 13:45:00 +00:00
|
|
|
|
|
|
|
const addressesProvider = await getLendingPoolAddressesProvider();
|
|
|
|
await deployWalletBalancerProvider(addressesProvider.address, verify);
|
|
|
|
});
|