-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
55 lines (53 loc) · 1.16 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
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-gas-reporter");
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks:{
monad: {
url: process.env.MONAD_TESTNET_URL,
accounts: [process.env.PRIVATE_KEY1, process.env.PRIVATE_KEY2]
},
sonic: {
url: process.env.SONIC_TESTNET_URL,
accounts: [process.env.PRIVATE_KEY1, process.env.PRIVATE_KEY2]
}
},
solidity: {
compilers:[
{version: "0.8.23"},
],
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
gasReporter: {
enabled: true,
currency: 'ETH',
// coinmarketcap: 'YOUR_API_KEY',
outputFile: 'gas-report.txt',
noColors: true
},
sourcify: {
enabled: true,
apiUrl: "https://sourcify-api-monad.blockvision.org",
browserUrl: "https://testnet.monadexplorer.com",
failOnCompilerError: false,
validateSourcesOnPush: false
},
etherscan: {
enabled: false
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 4000
}
};