-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
42 lines (41 loc) · 999 Bytes
/
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
require("@openzeppelin/hardhat-upgrades");
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-contract-sizer");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
gasReporter: {
enabled: true,
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_API_KEY
},
paths: {
artifacts: "./src/backend/artifacts",
sources: "./src/backend/contracts",
cache: "./src/backend/cache",
tests: "./src/backend/test"
},
networks: {
hardhat: {
mining: {
auto: false,
interval: [1000, 2000]
}
},
aurora: {
url: process.env.AURORA_RPC_URL !== undefined ? process.env.AURORA_RPC_URL : "",
accounts: process.env.AURORA_PRIVATE_KEY !== undefined ? [process.env.AURORA_PRIVATE_KEY] : []
}
}
};