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
a3e11800a4
commit
b3f616ce5b
|
@ -14,6 +14,7 @@ import 'temp-hardhat-etherscan';
|
||||||
import 'hardhat-gas-reporter';
|
import 'hardhat-gas-reporter';
|
||||||
import 'hardhat-typechain';
|
import 'hardhat-typechain';
|
||||||
import '@tenderly/hardhat-tenderly';
|
import '@tenderly/hardhat-tenderly';
|
||||||
|
import 'solidity-coverage';
|
||||||
|
|
||||||
const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
|
const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
|
||||||
const DEFAULT_BLOCK_GAS_LIMIT = 12450000;
|
const DEFAULT_BLOCK_GAS_LIMIT = 12450000;
|
||||||
|
@ -65,7 +66,7 @@ const getCommonNetworkConfig = (networkName: eEthereumNetwork, networkId: number
|
||||||
|
|
||||||
const mainnetFork = MAINNET_FORK
|
const mainnetFork = MAINNET_FORK
|
||||||
? {
|
? {
|
||||||
blockNumber: 11608298,
|
blockNumber: 12541468,
|
||||||
url: ALCHEMY_KEY
|
url: ALCHEMY_KEY
|
||||||
? `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_KEY}`
|
? `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_KEY}`
|
||||||
: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
|
: `https://mainnet.infura.io/v3/${INFURA_KEY}`,
|
||||||
|
@ -73,12 +74,35 @@ const mainnetFork = MAINNET_FORK
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const buidlerConfig: HardhatUserConfig = {
|
const buidlerConfig: HardhatUserConfig = {
|
||||||
|
gasReporter: {
|
||||||
|
enabled: true,
|
||||||
|
},
|
||||||
solidity: {
|
solidity: {
|
||||||
version: '0.6.12',
|
compilers: [
|
||||||
settings: {
|
{
|
||||||
optimizer: { enabled: true, runs: 200 },
|
version: '0.6.12',
|
||||||
evmVersion: 'istanbul',
|
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: {
|
typechain: {
|
||||||
outDir: 'types',
|
outDir: 'types',
|
||||||
|
|
29260
package-lock.json
generated
29260
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
|
@ -34,7 +34,7 @@
|
||||||
"test-uniswap": "hardhat test test/__setup.spec.ts test/uniswapAdapters*.spec.ts",
|
"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: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",
|
"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:evm:dev:migration": "npm run compile && hardhat aave:dev",
|
||||||
"aave:docker:full:migration": "npm run compile && npm run hardhat:docker -- aave:mainnet",
|
"aave:docker:full:migration": "npm run compile && npm run hardhat:docker -- aave:mainnet",
|
||||||
"aave:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- aave:mainnet --verify",
|
"aave:kovan:full:migration": "npm run compile && npm run hardhat:kovan -- aave:mainnet --verify",
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
"@nomiclabs/buidler-ethers": "2.0.0",
|
"@nomiclabs/buidler-ethers": "2.0.0",
|
||||||
"@nomiclabs/buidler-etherscan": "^2.1.0",
|
"@nomiclabs/buidler-etherscan": "^2.1.0",
|
||||||
"@nomiclabs/buidler-waffle": "2.0.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",
|
"@nomiclabs/hardhat-waffle": "^2.0.0",
|
||||||
"@openzeppelin/contracts": "3.1.0",
|
"@openzeppelin/contracts": "3.1.0",
|
||||||
"@tenderly/hardhat-tenderly": "^1.1.0-beta.3",
|
"@tenderly/hardhat-tenderly": "^1.1.0-beta.3",
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
"@types/node": "14.0.5",
|
"@types/node": "14.0.5",
|
||||||
"bignumber.js": "9.0.0",
|
"bignumber.js": "9.0.0",
|
||||||
"buidler-typechain": "0.1.1",
|
"buidler-typechain": "0.1.1",
|
||||||
"chai": "4.2.0",
|
"chai": "4.3.4",
|
||||||
"chai-bignumber": "3.0.0",
|
"chai-bignumber": "3.0.0",
|
||||||
"chai-bn": "^0.2.1",
|
"chai-bn": "^0.2.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
"ethereumjs-util": "7.0.2",
|
"ethereumjs-util": "7.0.2",
|
||||||
"ethers": "^5.0.19",
|
"ethers": "^5.0.19",
|
||||||
"globby": "^11.0.1",
|
"globby": "^11.0.1",
|
||||||
"hardhat": "^2.0.8",
|
"hardhat": "^2.3.0",
|
||||||
"hardhat-gas-reporter": "^1.0.0",
|
"hardhat-gas-reporter": "^1.0.0",
|
||||||
"hardhat-typechain": "^0.3.3",
|
"hardhat-typechain": "^0.3.3",
|
||||||
"husky": "^4.2.5",
|
"husky": "^4.2.5",
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"prettier-plugin-solidity": "^1.0.0-alpha.53",
|
"prettier-plugin-solidity": "^1.0.0-alpha.53",
|
||||||
"pretty-quick": "^2.0.1",
|
"pretty-quick": "^2.0.1",
|
||||||
"solidity-coverage": "0.7.10",
|
"solidity-coverage": "^0.7.16",
|
||||||
"temp-hardhat-etherscan": "^2.0.2",
|
"temp-hardhat-etherscan": "^2.0.2",
|
||||||
"ts-generator": "^0.1.1",
|
"ts-generator": "^0.1.1",
|
||||||
"ts-node": "^8.10.2",
|
"ts-node": "^8.10.2",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user