Add kovan print config

This commit is contained in:
David Racero 2020-11-30 19:47:16 +01:00
parent 3f46697d24
commit a2c9e0074f
2 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,8 @@
"kovan:verify:tokens": "npm run hardhat:kovan verify:tokens -- --pool Aave", "kovan:verify:tokens": "npm run hardhat:kovan verify:tokens -- --pool Aave",
"ropsten:verify:tokens": "npm run hardhat:ropsten verify:tokens -- --pool Aave", "ropsten:verify:tokens": "npm run hardhat:ropsten verify:tokens -- --pool Aave",
"mainnet:verify:tokens": "npm run hardhat:main verify:tokens -- --pool Aave", "mainnet:verify:tokens": "npm run hardhat:main verify:tokens -- --pool Aave",
"print-config:fork:mainnet": "MAINNET_FORK=true hardhat print-config:fork" "print-config:fork:mainnet": "MAINNET_FORK=true hardhat print-config:fork",
"print-config:kovan": "hardhat --network kovan print-config --pool Aave --data-provider 0xA1901785c29cBd48bfA74e46b67C736b26054fa4"
}, },
"devDependencies": { "devDependencies": {
"@nomiclabs/buidler": "^1.4.7", "@nomiclabs/buidler": "^1.4.7",

View File

@ -10,7 +10,7 @@ import { DRE } from '../../helpers/misc-utils';
import { eEthereumNetwork } from '../../helpers/types'; import { eEthereumNetwork } from '../../helpers/types';
task('print-config', 'Inits the DRE, to have access to all the plugins') task('print-config', 'Inits the DRE, to have access to all the plugins')
.addOptionalParam('dataProvider', 'Address of AaveProtocolDataProvider') .addParam('dataProvider', 'Address of AaveProtocolDataProvider')
.addParam('pool', `Pool name to retrieve configuration, supported: ${Object.values(ConfigNames)}`) .addParam('pool', `Pool name to retrieve configuration, supported: ${Object.values(ConfigNames)}`)
.setAction(async ({ pool, dataProvider }, localBRE) => { .setAction(async ({ pool, dataProvider }, localBRE) => {
await localBRE.run('set-DRE'); await localBRE.run('set-DRE');