Repository navigation
Expand file tree
/
Copy pathhardhat.config.js
More file actions
73 lines (68 loc) · 1.6 KB
/
Copy pathhardhat.config.js
File metadata and controls
73 lines (68 loc) · 1.6 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
62
63
64
65
66
67
68
69
70
71
72
73
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
const privateKey = process.env.PRIVATE_KEY;
if (!privateKey) {
throw new Error("Please set your PRIVATE_KEY in a .env file");
}
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
hardhat: {
// Local development settings
},
etherlinkTestnet: {
url: "https://node.ghostnet.etherlink.com",
accounts: [privateKey]
},
etherlinkShadownet: {
url: "https://node.shadownet.etherlink.com",
accounts: [privateKey],
chainId: 127823
},
etherlinkMainnet: {
url: "https://node.mainnet.etherlink.com",
accounts: [privateKey],
chainId: 42793
}
},
gasReporter: {
enabled: false
},
etherscan: {
apiKey: {
// Blockscout doesn't require a real API key, but hardhat needs something
etherlinkShadownet: "no-api-key-needed",
etherlinkMainnet: "no-api-key-needed"
},
customChains: [
{
network: "etherlinkShadownet",
chainId: 127823,
urls: {
apiURL: "https://shadownet.explorer.etherlink.com/api",
browserURL: "https://shadownet.explorer.etherlink.com"
}
},
{
network: "etherlinkMainnet",
chainId: 42793,
urls: {
apiURL: "https://explorer.etherlink.com/api",
browserURL: "https://explorer.etherlink.com"
}
}
]
},
sourcify: {
enabled: false
}
};