Updated hardhat config

This commit is contained in:
Thrilok Kumar 2021-03-20 02:07:23 +05:30
parent 34d1dceaeb
commit dde0349883
4 changed files with 1657 additions and 17942 deletions

View File

@ -104,7 +104,7 @@ abstract contract Helpers {
_ctokens[i], _ctokens[i],
_tokens[i] _tokens[i]
); );
emit LogCTokensUpdated(_names[i], _tokens[i], _ctokens[i]); emit LogCTokenUpdated(_names[i], _tokens[i], _ctokens[i]);
} }
} }

View File

@ -3,6 +3,8 @@ require("@tenderly/hardhat-tenderly");
require("@nomiclabs/hardhat-etherscan"); require("@nomiclabs/hardhat-etherscan");
require('dotenv').config(); require('dotenv').config();
const { utils } = require("ethers");
const PRIVATE_KEY = process.env.PRIVATE_KEY; const PRIVATE_KEY = process.env.PRIVATE_KEY;
const ALCHEMY_ID = process.env.ALCHEMY_ID; const ALCHEMY_ID = process.env.ALCHEMY_ID;
@ -37,20 +39,19 @@ module.exports = {
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`] accounts: [`0x${PRIVATE_KEY}`]
}, },
tenderlyMainnet: { mainnet: {
url: 'https://mainnet.tenderly.co', url: `https://eth.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`], accounts: [`0x${PRIVATE_KEY}`],
chainId: 1, timeout: 150000,
gasPrice: 25120000000, gasPrice: parseInt(utils.parseUnits("161", "gwei"))
timeout: 500000 },
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 12070498,
},
blockGasLimit: 12000000,
}, },
tenderlyKovan: {
url: 'https://kovan.tenderly.co',
accounts: [`0x${PRIVATE_KEY}`],
chainId: 42,
gasPrice: 40000000000,
timeout: 50000
}
}, },
etherscan: { etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY apiKey: process.env.ETHERSCAN_API_KEY

19576
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,6 +50,6 @@
"sol-merger": "^2.0.1", "sol-merger": "^2.0.1",
"solidity-coverage": "0.5.11", "solidity-coverage": "0.5.11",
"solium": "1.2.3", "solium": "1.2.3",
"web3": "^1.2.9" "web3": "^1.2.6"
} }
} }