mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
22 lines
866 B
TypeScript
22 lines
866 B
TypeScript
import { task } from 'hardhat/config';
|
|
import { eContractid } from '../../helpers/types';
|
|
import { deployUiIncentiveDataProviderV2 } from '../../helpers/contracts-deployments';
|
|
|
|
task(
|
|
`deploy-${eContractid.UiIncentiveDataProviderV2}`,
|
|
`Deploys the UiIncentiveDataProviderV2 contract`
|
|
)
|
|
.addFlag('verify', 'Verify UiIncentiveDataProviderV2 contract via Etherscan API.')
|
|
.setAction(async ({ verify }, localBRE) => {
|
|
await localBRE.run('set-DRE');
|
|
if (!localBRE.network.config.chainId) {
|
|
throw new Error('INVALID_CHAIN_ID');
|
|
}
|
|
console.log(`\n- UiIncentiveDataProviderV2 deployment`);
|
|
|
|
const uiIncentiveDataProviderV2 = await deployUiIncentiveDataProviderV2(verify);
|
|
|
|
console.log('UiIncentiveDataProviderV2 deployed at:', uiIncentiveDataProviderV2.address);
|
|
console.log(`\tFinished UiIncentiveDataProviderV2 deployment`);
|
|
});
|