-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
74 lines (72 loc) · 1.7 KB
/
hardhat.config.js
File metadata and controls
74 lines (72 loc) · 1.7 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
74
require("@nomicfoundation/hardhat-toolbox");
const { INFURA_API_KEY, SEPOLIA_PRIVATE_KEY, PRIVATE_KEY } = require("./config");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version:"0.8.26",
settings: {
evmVersion: "cancun",
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
}
},
networks: {
hardhat: {
mining: {
auto: true,
interval: 2000
}
},
ganache: {
url: "http://127.0.0.1:7545",
chainId: 1337,
accounts: {
mnemonic: "fruit insect love learn tower opera divide link intact always garment foam",
}
},
sepolia: {
url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`,
chainId: 11155111,
accounts: [`0x${SEPOLIA_PRIVATE_KEY}`],
},
et: {
url: `https://node.ghostnet.etherlink.com`,
chainId: 128123,
accounts: [`0x${PRIVATE_KEY}`],
timeout: 180000,
},
etm: {
url: `https://node.mainnet.etherlink.com`,
chainId: 42793,
accounts: [`0x${PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: {
// Blockscout doesn't require a real API key, just a non-empty string
et: "blockscout",
etm: "blockscout",
},
customChains: [
{
network: "et",
chainId: 128123,
urls: {
apiURL: "https://testnet.explorer.etherlink.com/api",
browserURL: "https://testnet.explorer.etherlink.com",
},
},
{
network: "etm",
chainId: 42793,
urls: {
apiURL: "https://explorer.etherlink.com/api",
browserURL: "https://explorer.etherlink.com",
},
},
],
},
};