-
Notifications
You must be signed in to change notification settings - Fork 332
/
Copy pathhardhat.config.js
61 lines (59 loc) · 1.13 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
require('dotenv').config();
require("@nomicfoundation/hardhat-toolbox");
const {
PRIVATE__KEY,
PRIVATE_KEY,
SEPOLIA_API_URL,
MAINNET_API_URL,
ETHERSCAN_API_KEY,
BASE_API_KEY
} = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200
},
viaIR: true
}
},
defaultNetwork: "sepolia",
networks: {
hardhat: {},
sepolia: {
url: `${SEPOLIA_API_URL}`,
accounts: [`0x${PRIVATE__KEY}`]
},
mainnet: {
url: `${MAINNET_API_URL}`,
accounts: [`0x${PRIVATE_KEY}`]
},
base_mainnet: {
url: 'https://mainnet.base.org',
accounts: [`0x${PRIVATE_KEY}`],
gasPrice: 1000000000,
},
base_sepolia: {
url: 'https://sepolia.base.org',
accounts: [`0x${PRIVATE__KEY}`],
gasPrice: 1000000000,
}
},
paths: {
sources: "./contracts",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 40000
},
etherscan: {
apiKey: BASE_API_KEY
},
sourcify: {
enabled: true
}
};