-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
45 lines (42 loc) · 1.13 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import '@typechain/hardhat'
import '@nomicfoundation/hardhat-ethers'
import '@nomicfoundation/hardhat-chai-matchers'
import "@nomiclabs/hardhat-ganache";
import "hardhat-gas-reporter";
import "@openzeppelin/hardhat-upgrades";
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
const config: HardhatUserConfig = {
solidity: {
compilers: [
{ version: "0.8.18", settings: { optimizer: { enabled: true, runs: 1000 }} },
{ version: "0.5.16", settings: { optimizer: { enabled: true, runs: 1000 }} },
{ version: "0.6.6", settings: { optimizer: { enabled: true, runs: 1000 }} },
]
},
gasReporter: {
enabled: true,
currency: 'USD',
coinmarketcap: process.env.CMC_API_KEY
},
networks: {
hardhat: {
accounts: {
mnemonic: process.env.mnemonic
}
},
ethereum: {
url: "https://eth.llamarpc.com",
chainId: 1,
accounts: [process.env.OWNER_KEY],
}
},
etherscan: {
apiKey: {
mainnet: process.env.ETHSCAN_API_KEY
}
},
};
export default config;