-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.js
More file actions
59 lines (57 loc) · 1.47 KB
/
Copy pathhardhat.config.js
File metadata and controls
59 lines (57 loc) · 1.47 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
55
56
57
58
59
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-truffle5");
require("@nomiclabs/hardhat-ethers");
require("hardhat-gas-reporter");
const keys = require('./dev-keys.json');
const ethForkUrl = "https://eth-mainnet.alchemyapi.io/v2/" + keys.alchemyKeyMainnet;
const bscForkUrl = "https://bsc-dataseed1.ninicoin.io/";
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
allowUnlimitedContractSize: true,
chainId: (process.env.FORK_BSC) ? 56 : 1,
forking: {
url: (process.env.FORK_BSC) ? bscForkUrl : ethForkUrl,
blockNumber: (process.env.FORK_BSC) ? undefined : 11984580,
}
},
ropsten: {
allowUnlimitedContractSize: true,
url: "https://eth-ropsten.alchemyapi.io/v2/" + keys.alchemyKeyRopsten,
// accounts: ["0x" + keys.ropstenPrivateKey],
},
mainnet: {
url: "https://eth-mainnet.alchemyapi.io/v2/" + keys.alchemyKeyMainnet,
},
bsc: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
},
},
etherscan: {
apiKey: (process.env.BSC) ? keys.bscscanAPI : keys.etherscanAPI
},
solidity: {
compilers: [
{version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 1
}
}},
]
},
mocha: {
timeout: 2000000
},
gasReporter: {
enabled: true,
currency: 'USD',
}
};