forked from tellor-io/tellorFlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
108 lines (103 loc) · 2.68 KB
/
hardhat.config.js
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("solidity-coverage");
require("hardhat-gas-reporter");
require('hardhat-contract-sizer');
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: "0.8.3",
settings: {
optimizer: {
enabled: true,
runs: 300
}
}
},
{
version: "0.7.4",
settings: {
optimizer: {
enabled: true,
runs: 300
}
}
}
]
},
networks: {
hardhat: {
// hardfork: process.env.CODE_COVERAGE ? "berlin" : "london",
initialBaseFeePerGas: 0,
accounts: {
mnemonic:
"nick lucian brenda kevin sam fiscal patch fly damp ocean produce wish",
count: 40,
},
allowUnlimitedContractSize: true
},
// rinkeby: {
// url: `${process.env.NODE_URL_RINKEBY}`,
// seeds: [process.env.PRIVATE_KEY],
// gas: 10000000 ,
// gasPrice: 40000000000
// } ,
// mainnet: {
// url: `${process.env.NODE_URL_MAINNET}`,
// seeds: [process.env.PRIVATE_KEY],
// gas: 3000000 ,
// gasPrice: 300000000000
// }
// polygon_testnet: {
// url: `${process.env.NODE_URL_MUMBAI}`,
// accounts: [process.env.TESTNET_PK],
// gas: 10000000 ,
// gasPrice: 50000000000
// }
// harmony_testnet: {
// url: `${process.env.NODE_URL_HARMONY_TESTNET}`,
// accounts: [process.env.TESTNET_PK],
// gas: 10000000 ,
// gasPrice: 50000000000
// }
// harmony_mainnet: {
// url: `${process.env.NODE_URL_HARMONY_MAINNET}`,
// accounts: [process.env.MAINNET_PK],
// gas: 10000000 ,
// gasPrice: 50000000000
// }
harmony_mainnet: {
url: "https://api.s0.t.hmny.io/",
seeds: [process.env.PRIVATE_KEY],
gas: 10000000 ,
gasPrice: 50000000000
}
, arbitrum_testnet: {
url: `${process.env.NODE_URL_ARBITRUM_TESTNET}`,
seeds: [process.env.PRIVATE_KEY],
gas: 10000000 ,
gasPrice: 50000000000
}
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.POLYGONSCAN
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
mocha: {
grep: "@skip-on-coverage", // Find everything with this tag
invert: true // Run the grep's inverse set.
}
}