-
Notifications
You must be signed in to change notification settings - Fork 49
/
hardhat.config.ts
82 lines (79 loc) · 2.12 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-abi-exporter';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import 'hardhat-gas-reporter';
import 'hardhat-log-remover';
import 'solidity-coverage';
import 'hardhat-dependency-compiler';
import './hardhat/tsunami-tasks.js';
import { HardhatUserConfig } from 'hardhat/config';
import networks from './hardhat.network';
const optimizerEnabled = !process.env.OPTIMIZER_DISABLED;
const config: HardhatUserConfig = {
abiExporter: {
path: './abis',
clear: true,
flat: true,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
gasReporter: {
currency: 'USD',
gasPrice: 100,
enabled: process.env.REPORT_GAS ? true : false,
},
mocha: {
timeout: 30000,
},
namedAccounts: {
deployer: {
default: 0,
},
testnetCDai: {
// 1: '0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643',
4: '0x6D7F0754FFeb405d23C51CE938289d4835bE3b14',
42: '0xF0d0EB522cfa50B716B3b1604C4F0fA6f04376AD',
},
},
networks,
solidity: {
compilers: [
{
version: '0.8.6',
settings: {
optimizer: {
enabled: optimizerEnabled,
runs: 2000,
},
evmVersion: 'berlin',
},
},
{
version: '0.7.6',
settings: {
optimizer: {
enabled: optimizerEnabled,
runs: 2000,
},
evmVersion: 'berlin',
},
},
],
},
external: {
contracts: [
{
artifacts: 'node_modules/@pooltogether/pooltogether-rng-contracts/artifacts',
},
],
},
dependencyCompiler: {
paths: [
'@pooltogether/yield-source-interface/contracts/test/MockYieldSource.sol',
],
},
};
export default config;