This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
121 lines (118 loc) · 3.55 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import {HardhatUserConfig} from 'hardhat/config'
import {config as configENV} from 'dotenv'
import '@nomicfoundation/hardhat-foundry'
import '@nomicfoundation/hardhat-toolbox'
import '@openzeppelin/hardhat-upgrades'
import 'solidity-docgen'
import 'hardhat-deploy'
if (process.env.NODE_ENV !== 'PRODUCTION') {
configENV()
}
const config: HardhatUserConfig = {
namedAccounts: {
deployer: {
default: 0
}
},
solidity: {
compilers: [
{
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
]
},
networks: {
mumbai: {
url: 'https://rpc.ankr.com/polygon_mumbai',
chainId: 80001,
loggingEnabled: true,
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
polygon: {
url: 'https://polygon-rpc.com',
chainId: 137,
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
zetachainTestnet: {
chainId: 7001,
url: 'https://zetachain-athens-evm.blockpi.network/v1/rpc/public',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
zetachain: {
chainId: 7000,
url: 'https://zetachain-evm.blockpi.network/v1/rpc/public',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
opBnbTestnet: {
chainId: 5611,
url: 'https://opbnb-testnet-rpc.bnbchain.org',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
opBnb: {
chainId: 204,
url: 'https://opbnb-mainnet-rpc.bnbchain.org',
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
},
ethereum: {
chainId: 1,
url: process.env.ALCHEMY_ETH_RPC!,
accounts: [process.env.PRIVATE_KEY!],
saveDeployments: true,
zksync: false
}
},
etherscan: {
apiKey: {
polygon: process.env.POLYGONSCAN_KEY!,
polygonMumbai: process.env.POLYGONSCAN_KEY!,
mantaPacific: process.env.MANTAPACIFIC_KEY!,
mantaPacificTestnet: process.env.MANTAPACIFIC_TEST_KEY!,
avax: process.env.SNOWTRACE_KEY!,
sepolia: process.env.ETHERSCAN_KEY!,
mainnet: process.env.ETHERSCAN_KEY!,
zetachainTestnet: process.env.ZETASCAN_API_KEY!,
zetachain: process.env.ZETASCAN_API_KEY!
},
customChains: [
{
network: 'zetachainTestnet',
chainId: 7001,
urls: {
apiURL: 'https://zetachain-athens-3.blockscout.com/api',
browserURL: 'https://zetachain-athens-3.blockscout.com/'
}
},
{
network: 'zetachain',
chainId: 7000,
urls: {
apiURL: 'https://zetachain.blockscout.com/api',
browserURL: 'https://zetachain.blockscout.com/'
}
}
]
},
docgen: {
pages: 'files',
exclude: []
}
}
export default config