-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
61 lines (60 loc) · 1.58 KB
/
hardhat.config.ts
File metadata and controls
61 lines (60 loc) · 1.58 KB
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
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-ethers");
require("@typechain/hardhat");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.22",
settings: {
optimizer: {
enabled: false,
runs: 1,
},
},
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
networks: {},
etherscan: {
apiKey: {
sepolia: process.env.ALCHEMY_TEST_KEY1,
mainnet: process.env.ALCHEMY_TEST_KEY1,
zkEVMtestnet: process.env.ALCHEMY_TEST_KEY2,
zkEVMMainnet: process.env.ALCHEMY_TEST_KEY3,
polygon: process.env.ALCHEMY_TEST_KEY2,
amoy: process.env.ALCHEMY_TEST_KEY2,
polygonMumbai: process.env.ALCHEMY_TEST_KEY2,
arbitrumOne: process.env.ALCHEMY_TEST_KEY4,
optimisticEthereum: process.env.ALCHEMY_TEST_KEY5,
},
customChains: [
{
network: "zkEVMtestnet",
chainId: 1442,
urls: {
apiURL: "https://api-testnet-zkevm.polygonscan.com/api",
browserURL: "https://testnet-zkevm.polygonscan.com/",
},
},
{
network: "zkEVMMainnet",
chainId: 1101,
urls: {
apiURL: "https://api-testnet-zkevm.polygonscan.com/api",
browserURL: "https://testnet-zkevm.polygonscan.com/",
},
},
{
network: "amoy",
chainId: 80002,
urls: {
apiURL: "https://rpc-amoy.polygon.technology/",
browserURL: "https://www.oklink.com/amoy",
},
},
],
},
};