mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: Update coverage calls
This commit is contained in:
parent
39ce74624b
commit
0eba9597e4
|
@ -21,15 +21,18 @@ import 'hardhat-gas-reporter';
|
|||
import 'hardhat-typechain';
|
||||
import '@tenderly/hardhat-tenderly';
|
||||
import 'solidity-coverage';
|
||||
import { fork } from 'child_process';
|
||||
|
||||
const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
|
||||
const DEFAULT_BLOCK_GAS_LIMIT = 12450000;
|
||||
const DEFAULT_GAS_MUL = 5;
|
||||
const DEFAULT_GAS_PRICE = 65000000000;
|
||||
const HARDFORK = 'istanbul';
|
||||
const INFURA_KEY = process.env.INFURA_KEY || '';
|
||||
const ALCHEMY_KEY = process.env.ALCHEMY_KEY || '';
|
||||
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || '';
|
||||
const MNEMONIC_PATH = "m/44'/60'/0'/0";
|
||||
const MNEMONIC = process.env.MNEMONIC || '';
|
||||
const MAINNET_FORK = process.env.MAINNET_FORK === 'true';
|
||||
|
||||
// Prevent to load scripts before compilation and typechain
|
||||
if (!SKIP_LOAD) {
|
||||
|
@ -62,15 +65,45 @@ const getCommonNetworkConfig = (networkName: eNetwork, networkId: number) => ({
|
|||
},
|
||||
});
|
||||
|
||||
let forkMode;
|
||||
const mainnetFork = MAINNET_FORK
|
||||
? {
|
||||
blockNumber: 12541468,
|
||||
url: ALCHEMY_KEY
|
||||
? `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_KEY}`
|
||||
: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
|
||||
}
|
||||
: undefined;
|
||||
|
||||
const buidlerConfig: HardhatUserConfig = {
|
||||
gasReporter: {
|
||||
enabled: true,
|
||||
},
|
||||
solidity: {
|
||||
version: '0.6.12',
|
||||
settings: {
|
||||
optimizer: { enabled: true, runs: 200 },
|
||||
evmVersion: 'istanbul',
|
||||
},
|
||||
compilers: [
|
||||
{
|
||||
version: '0.6.12',
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 200,
|
||||
details: {
|
||||
yul: true,
|
||||
yulDetails: {
|
||||
stackAllocation: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
evmVersion: 'istanbul',
|
||||
},
|
||||
},
|
||||
{
|
||||
version: '0.8.3',
|
||||
settings: {
|
||||
optimizer: { enabled: true, runs: 200 },
|
||||
evmVersion: 'istanbul',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
typechain: {
|
||||
outDir: 'types',
|
||||
|
|
29607
package-lock.json
generated
29607
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -36,7 +36,7 @@
|
|||
"test-uniswap": "hardhat test test/__setup.spec.ts test/uniswapAdapters*.spec.ts",
|
||||
"test:main:check-list": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test/__setup.spec.ts test/mainnet/check-list.spec.ts",
|
||||
"test:main:staticAToken": "MAINNET_FORK=true TS_NODE_TRANSPILE_ONLY=1 hardhat test test/mainnet/static-atoken.spec.ts",
|
||||
"dev:coverage": "buidler compile --force && buidler coverage --network coverage",
|
||||
"dev:coverage": "npm run compile && npx hardhat coverage --testfiles 'test-suites/test-aave/*.ts'",
|
||||
"aave:evm:dev:migration": "npm run compile && hardhat aave:dev",
|
||||
"aave:docker:full:migration": "npm run compile && npm run hardhat:docker -- aave:mainnet --skip-registry",
|
||||
"aave:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- aave:mainnet --skip-registry",
|
||||
|
@ -107,7 +107,7 @@
|
|||
"@nomiclabs/buidler-ethers": "2.0.0",
|
||||
"@nomiclabs/buidler-etherscan": "^2.1.0",
|
||||
"@nomiclabs/buidler-waffle": "2.0.0",
|
||||
"@nomiclabs/hardhat-ethers": "^2.0.0",
|
||||
"@nomiclabs/hardhat-ethers": "^2.0.2",
|
||||
"@nomiclabs/hardhat-waffle": "^2.0.0",
|
||||
"@openzeppelin/contracts": "3.1.0",
|
||||
"@tenderly/hardhat-tenderly": "1.1.0-beta.5",
|
||||
|
@ -122,7 +122,7 @@
|
|||
"@types/node": "14.0.5",
|
||||
"bignumber.js": "9.0.0",
|
||||
"buidler-typechain": "0.1.1",
|
||||
"chai": "4.2.0",
|
||||
"chai": "4.3.4",
|
||||
"chai-bignumber": "3.0.0",
|
||||
"chai-bn": "^0.2.1",
|
||||
"defender-relay-client": "^1.7.0",
|
||||
|
@ -132,7 +132,7 @@
|
|||
"ethereumjs-util": "7.0.2",
|
||||
"ethers": "^5.0.19",
|
||||
"globby": "^11.0.1",
|
||||
"hardhat": "^2.2.0",
|
||||
"hardhat": "^2.3.0",
|
||||
"hardhat-gas-reporter": "^1.0.0",
|
||||
"hardhat-typechain": "^0.3.3",
|
||||
"husky": "^4.2.5",
|
||||
|
|
Loading…
Reference in New Issue
Block a user