-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
89 lines (87 loc) · 2.11 KB
/
hardhat.config.js
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
/** @type import('hardhat/config').HardhatUserConfig */
const dot = require('dotenv').config();
require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-chai-matchers");
const { OPTISCAN_API_KEY, API_URL_OPTIGOERLI, API_URL_BASEGOERLI, API_URL_ZORAGOERLI, PRIVATE_KEY } = process.env;
module.exports = {
solidity: {
compilers: [
{
version: '0.8.21',
settings: {
evmVersion: 'paris'
}
}
]
},
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 200,
details: {
yulDetails: {
optimizerSteps: "u",
},
},
},
},
defaultNetwork: "baseGoerli",
networks: {
hardhat: {
accounts: [{ privateKey: `0x${PRIVATE_KEY}`, balance: "10000000000000000000000"}],
forking: {
url: API_URL_OPTIGOERLI,
blockNumber: 8717392
},
loggingEnabled: true,
gasMultiplier: 10,
gasPrice: 1000000000 * 500,
blockGasLimit: 0x1fffffffffffff
},
optimisticGoerli: {
url: API_URL_OPTIGOERLI,
accounts: [`0x${PRIVATE_KEY}`],
gasMultiplier: 10,
gasPrice: 1000000000 * 1,
blockGasLimit: 0x1fffffffffffff
},
baseGoerli: {
url: API_URL_BASEGOERLI,
accounts: [`0x${PRIVATE_KEY}`],
gasPrice: 1000000000 * 10,
},
zoraGoerli: {
url: API_URL_ZORAGOERLI,
accounts: [`0x${PRIVATE_KEY}`],
gasMultiplier: 10,
gasPrice: 1000000000 * 1,
blockGasLimit: 0x1fffffffffffff
}
},
etherscan: {
apiKey: {
optimisticGoerli: OPTISCAN_API_KEY,
baseGoerli: "PLACEHOLDER_STRING",
zoraGoerli: "PLACEHOLDER_STRING"
},
customChains: [
{
network: "baseGoerli",
chainId: 84531,
urls: {
apiURL: "https://api-goerli.basescan.org/api",
browserURL: "https://goerli.basescan.org"
}
},
{
network: "zoraGoerli",
chainId: 999,
urls: {
apiURL: "https://testnet.explorer.zora.energy/api",
browserURL: "https://testnet.explorer.zora.energy"
}
}
]
}
};