-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
78 lines (74 loc) · 2.03 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
import "dotenv/config"
import "tsconfig-paths/register"
import "hardhat-gas-reporter"
import "@nomiclabs/hardhat-ethers"
import "@nomiclabs/hardhat-etherscan"
import "@nomicfoundation/hardhat-chai-matchers"
import "@typechain/hardhat"
import chai from "chai"
import chaiAsPromised from "chai-as-promised"
chai.use(chaiAsPromised)
const accounts = [process.env.OPERATOR_PRIVATE_KEY]
module.exports = {
networks: {
arbitrum: {
chainId: 42161,
url: "https://arb1.arbitrum.io/rpc",
accounts,
},
arbitrumSepolia: {
chainId: 421614,
url: "https://sepolia-rollup.arbitrum.io/rpc",
accounts,
},
arbitrumGoerli: {
chainId: 421613,
url: "https://goerli-rollup.arbitrum.io/rpc",
accounts,
},
polygon: {
chainId: 137,
url: "https://polygon-rpc.com/",
accounts,
},
polygonMumbai: {
chainId: 80001,
url: "https://rpc-mumbai.maticvigil.com/",
accounts,
},
},
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
},
},
},
],
},
mocha: {
timeout: 60000,
},
etherscan: {
apiKey: {
arbitrumOne: process.env.ARBISCAN_API_KEY,
arbitrumSepolia: process.env.ARBISCAN_API_KEY,
arbitrumGoerli: process.env.ARBISCAN_API_KEY,
polygon: process.env.POLYGONSCAN_API_KEY,
polygonMumbai: process.env.POLYGONSCAN_API_KEY,
},
customChains: [
{
network: "arbitrumSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/",
},
},
],
},
}