-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathhardhat.config.js
More file actions
54 lines (52 loc) · 1.32 KB
/
Copy pathhardhat.config.js
File metadata and controls
54 lines (52 loc) · 1.32 KB
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
require("@nomiclabs/hardhat-waffle");
require("solidity-coverage");
require("@nomiclabs/hardhat-solhint");
require("hardhat-gas-reporter");
const { mnemonic } = require('./.secrets.json')
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 1
}
}
}]
},
networks: {
hardhat: {
gas: 19000000,
allowUnlimitedContractSize: true,
timeout: 1800000
},
goerli: {
url: "https://goerli.infura.io/v3/c4174820658a4db9a6e5d54efec43ede",
chainId: 5,
accounts: { mnemonic: mnemonic },
gas: 1200000000,
blockGasLimit: 3000000000,
allowUnlimitedContractSize: true,
timeout: 1800000
},
matic: {
url: "https://rpc-mainnet.maticvigil.com",
chainId: 137,
gasPrice: "auto",
allowUnlimitedContractSize: true,
timeout: 1800000,
accounts: { mnemonic: mnemonic },
},
},
goerli: {
apiKey: ""
},
gasReporter: {
currency: 'USD',
gasPrice: 21
}
};