forked from open-ibc/ibc-app-solidity-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
66 lines (63 loc) · 1.44 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-foundry");
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.23',
settings: {
optimizer: {
enabled: true,
runs: 200 // Optimize for a typical number of runs
}
}
},
networks: {
// for Base testnet
'base': {
url: 'https://sepolia.base.org',
accounts: [
process.env.PRIVATE_KEY_1
],
},
// for OP testnet
'optimism': {
url: 'https://sepolia.optimism.io',
accounts: [
process.env.PRIVATE_KEY_1
],
},
},
defaultNetwork: 'optimism',
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
libraries: './lib',
},
etherscan: {
apiKey: {
optimism: process.env.OP_BLOCKSCOUT_API_KEY,
base: process.env.BASE_BLOCKSCOUT_API_KEY,
},
customChains: [
{
network: "base",
chainId: 84532,
urls: {
apiURL: "https://base-sepolia.blockscout.com/api",
browserURL: "https://base-sepolia.blockscout.com",
}
},
{
network: "optimism",
chainId: 11155420,
urls: {
apiURL: "https://optimism-sepolia.blockscout.com/api",
browserURL: "https://optimism-sepolia.blockscout.com",
}
}
]
},
};