forked from open-ibc/ibc-app-solidity-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
46 lines (43 loc) · 1008 Bytes
/
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
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,
process.env.PRIVATE_KEY_2,
process.env.PRIVATE_KEY_3,
],
},
// for OP testnet
'optimism': {
url: 'https://sepolia.optimism.io',
accounts: [
process.env.PRIVATE_KEY_1,
process.env.PRIVATE_KEY_2,
process.env.PRIVATE_KEY_3,
],
},
},
defaultNetwork: 'optimism',
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
libraries: './lib',
}
};