-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
38 lines (35 loc) · 952 Bytes
/
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-verify";
import { ProxyAgent, setGlobalDispatcher } from "undici";
const proxyAgent = new ProxyAgent("http://127.0.0.1:7890");
setGlobalDispatcher(proxyAgent);
const config: HardhatUserConfig = {
solidity: "0.8.19",
networks: {
hardhat: {},
goerli: {
url: 'https://goerli.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161',
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
etherscan: {
apiKey: {
goerli: "E51WDKVWR88WWR4INYZ69JYHQJP1M2XFMN"
},
customChains: [
{
network: "goerli",
chainId: 5,
urls: {
apiURL: "https://api-goerli.etherscan.io/api",
browserURL: "https://goerli.etherscan.io"
}
}
]
},
sourcify: {
enabled: true
}
};
export default config;