-
Notifications
You must be signed in to change notification settings - Fork 5
/
hardhat.config.js
58 lines (57 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
require("@nomicfoundation/hardhat-ethers");
require("dotenv").config();
require("@nomicfoundation/hardhat-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
viaIR: true,
},
},
networks: {
sepolia: {
url: process.env.SEPOLIA_RPC_URL,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
base: {
url: process.env.BASE_RPC_URL,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
op: {
url: process.env.ALCHEMY_OP_ENDPOINT,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
celo: {
url: process.env.ALCHEMY_CELO_ENDPOINT,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
localhost: {
url: "http://127.0.0.1:8545", // This is the default URL for the Hardhat node
allowCors: true,
},
},
etherscan: {
apiKey: {
// Is not required by blockscout. Can be any non-empty string
base: "abc",
},
customChains: [
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://base.blockscout.com/api",
browserURL: "https://base.blockscout.com/",
},
},
],
},
sourcify: {
enabled: false,
},
};