-
Notifications
You must be signed in to change notification settings - Fork 6
/
hardhat.config.ts
101 lines (95 loc) · 2.01 KB
/
hardhat.config.ts
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "hardhat-gas-reporter";
import "hardhat-deploy-ethers";
import "hardhat-deploy";
//import "@symfoni/hardhat-react";
//import "hardhat-typechain";
import "hardhat-contract-sizer";
import * as dotenv from "dotenv";
dotenv.config();
const { ALCHEMY_API, ALCHEMY_POLYGON_API, PRIVATE_KEY, MENMONIC } = process.env;
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
export default {
react: {
providerPriority: ["web3modal", "hardhat"],
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
solidity: {
compilers: [
{
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
/*hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API}`,
blockNumber: 12956195,
},
accounts: {
count: 100
}
},*/
hardhat: {
forking: {
url: `https://polygon-rpc.com/`,
blockNumber: 23260291,
},
accounts: {
count: 100,
},
},
mumbai: {
url: "https://matic-mumbai.chainstacklabs.com",
accounts: [PRIVATE_KEY],
},
matic: {
url: `https://polygon-rpc.com/`,
accounts: [PRIVATE_KEY],
gasPrice: 80000000000,
},
bsc: {
url: `https://bsc-dataseed.binance.org/`,
accounts: [PRIVATE_KEY],
},
polygon: {
url: `https://polygon-rpc.com/`,
accounts: {
mnemonic: MENMONIC,
count: 50,
},
gasPrice: 60000000000,
},
},
gasReporter: {
enabled: true,
},
mocha: {
timeout: 2000000,
},
};