-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.js
More file actions
122 lines (118 loc) · 2.75 KB
/
Copy pathhardhat.config.js
File metadata and controls
122 lines (118 loc) · 2.75 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
const { task } = require("hardhat/config");
const { getSelectors, FacetCutAction } = require("./scripts/libraries/diamond.js");
const utils = require("ethers").utils;
require("hardhat-abi-exporter");
require("@nomiclabs/hardhat-waffle");
require("solidity-coverage");
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
console.log("Task run");
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
require("hardhat-contract-sizer");
require("dotenv").config();
require("@tenderly/hardhat-tenderly");
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
forking: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
},
chainId: 1337,
},
ropsten: {
chainId: 3,
url: process.env.API_URL,
accounts: {
mnemonic: process.env.MNEMONIC,
},
gas: 2100000,
gasPrice: 8000000000,
},
kovan: {
accounts: {
mnemonic: process.env.MNEMONIC,
},
url: "https://kovan.infura.io/v3/99b8947af7e14278ae235bb21eb81f53",
chainId: 42,
timeout: 200000,
gas: 2100000,
gasPrice: 8000000000,
nonce: 150,
},
bsctestnet: {
accounts: {
mnemonic: process.env.MNEMONIC,
},
url: "https://nd-400-266-190.p2pify.com/1efac602169fba8d5bf0589315ec436a",
// url: 'https://data-seed-prebsc-1-s1.binance.org:8545',
chainId: 97,
timeout: 2000000,
gas: 2100000,
gasLimit: 5000000,
},
// harmony: {
// url: 'https://api.s0.b.hmny.io',
// timeout: 200000,
// accounts: [process.env.HARMONY_PRIVATE_KEY],
// gas: 2100000,
// gasPrice: 8000000000
// },
// avax: {
// url: 'https://api.avax.network/ext/bc/C/rpc',
// timeout: 200000,
// accounts: [process.env.PRIVATE_KEY],
// chainId: 43114
// }
},
solidity: {
compilers: [
{
version: "0.8.1",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
mocha: {
timeout: 200000,
},
tenderly: {
project: "Open-Protocol Testnet",
username: "v9hstk",
},
};