-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
41 lines (38 loc) · 968 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
require("@nomiclabs/hardhat-waffle");
require('@openzeppelin/hardhat-upgrades');
require('hardhat-contract-sizer');
require('dotenv').config({path:__dirname+'/.env'});
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.11",
defaultNetwork: "hardhat",
networks: {
hardhat:{},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [`${process.env.MAIN_DEPLOYMENT_ACCOUNT_PRIVATE_KEY}`] ,
gasPrice:100000000000,
timeout:40000000,
},
local: {
url: `http://localhost:7545`,
accounts: [`${process.env.LOCAL_DEPLOYMENT_ACCOUNT_PRIVATE_KEY}`] ,
gasPrice:100000000000,
timeout:40000000,
},
},
// settings:{
// optimizer: {
// enabled: true,
// runs: 20,
// },
// },
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
}
};