mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Fix verification tasks
This commit is contained in:
parent
86db408af5
commit
f5d0ce14bb
|
@ -1,6 +1,11 @@
|
||||||
import { zeroAddress } from 'ethereumjs-util';
|
import { zeroAddress } from 'ethereumjs-util';
|
||||||
import { task } from 'hardhat/config';
|
import { task } from 'hardhat/config';
|
||||||
import { loadPoolConfig, ConfigNames, getWethAddress } from '../../helpers/configuration';
|
import {
|
||||||
|
loadPoolConfig,
|
||||||
|
ConfigNames,
|
||||||
|
getWethAddress,
|
||||||
|
getTreasuryAddress,
|
||||||
|
} from '../../helpers/configuration';
|
||||||
import { ZERO_ADDRESS } from '../../helpers/constants';
|
import { ZERO_ADDRESS } from '../../helpers/constants';
|
||||||
import {
|
import {
|
||||||
getAaveProtocolDataProvider,
|
getAaveProtocolDataProvider,
|
||||||
|
@ -34,6 +39,7 @@ task('verify:general', 'Deploy oracles for dev enviroment')
|
||||||
ProviderRegistry,
|
ProviderRegistry,
|
||||||
MarketId,
|
MarketId,
|
||||||
} = poolConfig as ICommonConfiguration;
|
} = poolConfig as ICommonConfiguration;
|
||||||
|
const treasuryAddress = await getTreasuryAddress(poolConfig);
|
||||||
|
|
||||||
const registryAddress = getParamPerNetwork(ProviderRegistry, network);
|
const registryAddress = getParamPerNetwork(ProviderRegistry, network);
|
||||||
const addressesProvider = await getLendingPoolAddressesProvider();
|
const addressesProvider = await getLendingPoolAddressesProvider();
|
||||||
|
@ -146,7 +152,7 @@ task('verify:general', 'Deploy oracles for dev enviroment')
|
||||||
await verifyContract(aDAI, [
|
await verifyContract(aDAI, [
|
||||||
lendingPoolProxy.address,
|
lendingPoolProxy.address,
|
||||||
DAI,
|
DAI,
|
||||||
ZERO_ADDRESS,
|
treasuryAddress,
|
||||||
'Aave interest bearing DAI',
|
'Aave interest bearing DAI',
|
||||||
'aDAI',
|
'aDAI',
|
||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
|
@ -176,7 +182,7 @@ task('verify:general', 'Deploy oracles for dev enviroment')
|
||||||
await verifyContract(aUNI, [
|
await verifyContract(aUNI, [
|
||||||
lendingPoolProxy.address,
|
lendingPoolProxy.address,
|
||||||
UNI,
|
UNI,
|
||||||
ZERO_ADDRESS,
|
treasuryAddress,
|
||||||
'Aave interest bearing UNI',
|
'Aave interest bearing UNI',
|
||||||
'aUNI',
|
'aUNI',
|
||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
import { task } from 'hardhat/config';
|
import { task } from 'hardhat/config';
|
||||||
import { loadPoolConfig, ConfigNames, getWethAddress } from '../../helpers/configuration';
|
import {
|
||||||
|
loadPoolConfig,
|
||||||
|
ConfigNames,
|
||||||
|
getWethAddress,
|
||||||
|
getTreasuryAddress,
|
||||||
|
} from '../../helpers/configuration';
|
||||||
import { ZERO_ADDRESS } from '../../helpers/constants';
|
import { ZERO_ADDRESS } from '../../helpers/constants';
|
||||||
import {
|
import {
|
||||||
getAddressById,
|
getAddressById,
|
||||||
|
@ -18,6 +23,7 @@ task('verify:tokens', 'Deploy oracles for dev enviroment')
|
||||||
const network = localDRE.network.name as eEthereumNetwork;
|
const network = localDRE.network.name as eEthereumNetwork;
|
||||||
const poolConfig = loadPoolConfig(pool);
|
const poolConfig = loadPoolConfig(pool);
|
||||||
const { ReserveAssets, ReservesConfig } = poolConfig as ICommonConfiguration;
|
const { ReserveAssets, ReservesConfig } = poolConfig as ICommonConfiguration;
|
||||||
|
const treasuryAddress = await getTreasuryAddress(poolConfig);
|
||||||
|
|
||||||
const addressesProvider = await getLendingPoolAddressesProvider();
|
const addressesProvider = await getLendingPoolAddressesProvider();
|
||||||
const lendingPoolProxy = await getLendingPool();
|
const lendingPoolProxy = await getLendingPool();
|
||||||
|
@ -82,7 +88,7 @@ task('verify:tokens', 'Deploy oracles for dev enviroment')
|
||||||
await verifyContract(aToken, [
|
await verifyContract(aToken, [
|
||||||
lendingPoolProxy.address,
|
lendingPoolProxy.address,
|
||||||
tokenAddress,
|
tokenAddress,
|
||||||
ZERO_ADDRESS,
|
treasuryAddress,
|
||||||
`Aave interest bearing ${token}`,
|
`Aave interest bearing ${token}`,
|
||||||
`a${token}`,
|
`a${token}`,
|
||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user