forked from baofinance/bao-markets-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
executable file
·87 lines (85 loc) · 1.89 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require('dotenv').config();
require("xdeployer");
//require('hardhat-dependency-compiler'); // extra (e.g. test) contract compilation
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
localhost: {
//Requires start of local network at port:
url: "http://127.0.0.1:8545"
},
hardhat: {},
polygon: {
url: "https://polygon-rpc.com/",
//Consider any address posted here to be compromised
//accounts: [""]
},
/*
ropsten: {
url: process.env.ROPSTEN_URL,
//Consider any address posted here to be compromised
accounts: [process.env.PRIVATE_KEY_1,process.env.PRIVATE_KEY_2]
}
*/
},
/*
xdeploy: {
contract: "CErc20Delegator",
constructorArgsPath: "./scripts/verificationArgs/bdUSDCArguments.js",
salt: "UwU",
signer: process.env.PRIVATE_KEY_1,
networks: ["ropsten"],
rpcUrls: [process.env.ROPSTEN_URL],
gasLimit: 6 * 10 ** 6,
},
*/
solidity: {
compilers: [
{
version: "0.8.1",
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
},
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
}
],
},
paths: {
tests: './test', //default
sources: './contracts', //default
},
/*
dependencyCompiler: {
paths: [ // relative to a subdirectory of 'sources' directory above
'test/ComptrollerHarness.sol',
]
},
*/
mocha: {
timeout: 10000000000
},
gasReporter: {
enabled: false,
currency: 'USD',
gasPriceApi: "https://api.etherscan.io/api?module=proxy&action=eth_gasPrice"
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY
}
};