-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
49 lines (47 loc) · 1.07 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import "dotenv/config";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
},
localhost: {
chainId: 31337,
},
goerli: {
chainId: 5,
url: process.env.GOERLI_RPC_URL,
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
},
},
solidity: {
compilers: [
{
version: "0.8.17",
},
{
version: "0.6.6",
},
],
},
namedAccounts: {
deployer: {
default: 0,
},
},
gasReporter: {
enabled: false,
currency: "USD",
outputFile: "gas-report.txt",
noColors: true,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
export default config;