-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
60 lines (55 loc) · 1.31 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
require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
// runs: 2 ** 32 - 1,
runs: 200,
},
// viaIR: true,
},
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {
forking: {
enabled: true,
url: 'https://sepolia.base.org',
},
chainId: 84532,
// allowUnlimitedContractSize: true,
},
localhost: {
url: "http://127.0.0.1:8545",
},
base: {
// url: 'https://base.llamarpc.com',
url: 'https://mainnet.base.org',
chainId: 8453,
accounts: [process.env.PRIVATE_KEY],
},
baseSepolia: {
url: 'https://sepolia.base.org',
chainId: 84532,
accounts: [process.env.PRIVATE_KEY],
},
// testnet
root: {
url: 'https://public-node.testnet.rsk.co',
chainId: 31,
accounts: [process.env.PRIVATE_KEY],
// https://explorer.testnet.rootstock.io/
},
morpy: {
url: 'https://rpc-quicknode-holesky.morphl2.io',
chainId: 2810,
accounts: [process.env.PRIVATE_KEY],
// https://explorer-holesky.morphl2.io/
},
},
};