-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
100 lines (97 loc) · 2.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import "@typechain/hardhat";
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-gas-reporter";
import "@primitivefi/hardhat-dodoc";
import "hardhat-interface-generator";
import "@nomicfoundation/hardhat-foundry";
import * as dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
solidity: "0.8.24",
networks: {
testnet: {
url: "https://rpc.ankr.com/fantom_testnet",
accounts: [process.env.PRIVATE_KEY as string],
},
mainnet: {
url: "https://rpc.ankr.com/eth",
accounts: [process.env.PRIVATE_KEY as string],
},
go: {
url: "https://rpc.ankr.com/eth_goerli",
accounts: [process.env.PRIVATE_KEY as string],
},
mumbai: {
url: "https://nd-072-371-713.p2pify.com/fe6358e09128eff5f6afb11fcade6b83",
accounts: [process.env.PRIVATE_KEY as string],
},
sepolia: {
url: "https://1rpc.io/sepolia",
accounts: [process.env.PRIVATE_KEY as string],
},
hardhat: {
forking: {
url: "https://rpc.ankr.com/eth",
},
},
},
etherscan: {
apiKey: {
testnet: process.env.API_KEY as string,
mumbai: "73VJ6ADK4KES1UHEAHK9UX86XSEF47ZVPX",
mainnet: "V9XZX97TN8AXB9NT21Z2WHAJ3H9TNA34SI",
go: "V9XZX97TN8AXB9NT21Z2WHAJ3H9TNA34SI",
},
customChains: [
{
network: "testnet",
chainId: 4002,
urls: {
apiURL: "https://api-testnet.ftmscan.com/api/",
browserURL: "https://testnet.ftmscan.com",
},
},
{
network: "mumbai",
chainId: 80001,
urls: {
apiURL: "https://api.polygonscan.com/api/",
browserURL: "https://polygonscan.com/",
},
},
{
network: "go",
chainId: 5,
urls: {
apiURL: "https://api-goerli.etherscan.io/api/",
browserURL: "https://goerli.etherscan.io/",
},
},
{
network: "mainnet",
chainId: 1,
urls: {
apiURL: "https://api.etherscan.io/api/",
browserURL: "https://etherscan.io/",
},
},
],
},
typechain: {
outDir: "typechain",
target: "ethers-v6",
},
gasReporter: {
currency: "USD",
},
dodoc: {
runOnCompile: true,
debugMode: false,
},
};
export default config;