-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
52 lines (48 loc) · 1019 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
46
47
48
49
50
51
52
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-gas-reporter");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-chai-matchers");
require("solidity-coverage");
require("dotenv").config();
// ethers = require('ethers');
// dotenv.config()
const accounts =
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [];
const url =
process.env.RPC_URL !== undefined ? process.env.RPC_URL : "";
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: "0.8.7",
},
{
version: "0.8.0",
},
{
version: "0.5.0",
},
],
},
mocha: {
timeout: 400000, // updated for tests
},
gasReporter: {
currency: 'CHF',
gasPrice: 21
},
networks: {
// hardhat: {
// forking: {
// url,
// // blockNumber: 27799481
// },
// },
mumbai: {
chainId : 80001,
url,
accounts
}
}
}