forked from Instadapp/dsa-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
95 lines (83 loc) · 2.31 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
88
89
90
91
92
93
94
// Buidler
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3")
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require('@openzeppelin/hardhat-upgrades');
require("@tenderly/hardhat-tenderly");
require("hardhat-gas-reporter");
require("solidity-coverage");
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
const { utils } = require("ethers");
// const INFURA_ID = process.env.INFURA_ID;
// assert.ok(INFURA_ID, "no Infura ID in process.env");
const ALCHEMY_ID = process.env.ALCHEMY_ID;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
// assert.ok(ALCHEMY_ID, "no Alchemy ID in process.env");
const INSTA_MASTER = "0xb1DC62EC38E6E3857a887210C38418E4A17Da5B2";
const INSTA_INDEX = "0x2971AdFa57b20E5a416aE5a708A8655A9c74f723";
// ================================= CONFIG =========================================
module.exports = {
defaultNetwork: "hardhat",
tenderly: {
project: "team-development",
username: "InstaDApp",
forkNetwork: "1"
},
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
// blockNumber: 11739260,
blockNumber: 12068005,
},
blockGasLimit: 12000000,
masterAddress: INSTA_MASTER,
instaIndexAddress: INSTA_INDEX
},
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
mainnet: {
url: `https://eth.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000,
gasPrice: parseInt(utils.parseUnits("160", "gwei"))
},
matic: {
// url: `https://eth.alchemyapi.io/v2/${ALCHEMY_ID}`,
url: "https://rpc-mainnet.maticvigil.com/",
accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000,
gasPrice: parseInt(utils.parseUnits("1", "gwei"))
}
},
solidity: {
compilers: [
{
version: "0.6.0",
settings: {
optimizer: { enabled: false },
},
},
{
version: "0.6.8",
settings: {
optimizer: { enabled: false },
},
},
{
version: "0.7.0",
settings: {
optimizer: { enabled: false },
},
}
]
},
etherscan: {
apiKey: process.env.ETHERSCAN
}
};