-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
71 lines (67 loc) · 1.6 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
import { HardhatUserConfig, task } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import * as dotenv from 'dotenv';
import "hardhat-deploy-ethers";
import "hardhat-deploy";
import "hardhat-gas-reporter";
import "hardhat-typechain";
import "@typechain/ethers-v5";
import "@nomiclabs/hardhat-etherscan";
import "./tasks/typechaintofrontend";
dotenv.config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config: HardhatUserConfig = {
networks: {
hardhat: {
gas: 1000000000,
blockGasLimit: 1000000000,
accounts: {
mnemonic: process.env.PASS_PHRASE,
},
forking: {
url: process.env.ALCHEMY_MAINNET_RPC_URL,
blockNumber: 12034582
}
},
rinkeby: {
url: process.env.ALCHEMY_RINKEBY_RPC_URL,
accounts: [process.env.RINKEBY_PRIVATE_KEY]
},
mainnet: {
url: process.env.ALCHEMY_MAINNET_RPC_URL,
accounts: [process.env.MAINNET_PRIVATE_KEY]
},
mumbai: {
url: process.env.MUMBAI_RPC_URL,
accounts: [process.env.MUMBAI_PRIVATE_KEY]
},
polygon: {
url: process.env.POLYGON_RPC_URL,
accounts: [process.env.POLYGON_PRIVATE_KEY]
}
},
etherscan: {
apiKey: process.env.POLYGONSCAN_API_KEY
},
// gasReporter: {
// currency: "USD",
// enabled: (process.env.REPORT_GAS) ? true : false
// },
solidity: {
compilers: [
{
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 50,
},
},
},
],
},
};
export default config;