-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
69 lines (67 loc) · 1.51 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require('dotenv').config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-abi-exporter');
const { STAGING_ALCHEMY_API_URL,
STAGING_PRIVATE_KEY,
PRODUCTION_ALCHEMY_API_URL,
PRODUCTION_PRIVATE_KEY } = process.env;
module.exports = {
solidity: {
compilers: [
{
version: '0.8.7',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: '0.8.1',
settings: {},
},
{
version: '0.8.0',
settings: {},
},
{
version: '0.7.3',
settings: {},
},
{
version: '0.6.2',
settings: {},
}
]
},
defaultNetwork: "rinkeby",
networks: {
hardhat: {},
rinkeby: {
url: STAGING_ALCHEMY_API_URL,
accounts: [`0x${STAGING_PRIVATE_KEY}`]
},
ropsten: {
url: STAGING_ALCHEMY_API_URL,
accounts: [`0x${STAGING_PRIVATE_KEY}`]
},
// mainnet: {
// url: PRODUCTION_ALCHEMY_API_URL,
// accounts: [`0x${PRODUCTION_PRIVATE_KEY}`]
// }
},
abiExporter: {
path: './data/abi',
clear: true,
flat: true
},
etherscan: {
apiKey: "N2A3Z2D8UQRE2QZUKCGDY1QK6SAUXVG7JV"
}
}