-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
51 lines (47 loc) · 1.16 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
require("dotenv").config({ path: "./.env" });
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
const privateKey = process.env.REACT_APP_PRIVATE_KEY;
const projectId = process.env.REACT_APP_ROPSTEN_KEY;
module.exports = {
networks: {
hardhat: {},
boba_rinkeby: {
url: `https://rinkeby.boba.network`,
accounts: [privateKey],
},
matic:{
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.REACT_APP_ALCHEMY_KEY}`,
accounts:[privateKey],
gas: 2100000,
gasPrice: 8000000000
},
ropsten:{
url:`https://ropsten.infura.io/v3/${projectId}`,
accounts:[privateKey],
gas: 2100000,
gasPrice: 8000000000
},
bsc: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
gasPrice: 20000000000,
accounts:[privateKey]
},
avalancheTest: {
url: 'https://api.avax-test.network/ext/bc/C/rpc',
gasPrice: 225000000000,
chainId: 43113,
accounts:[privateKey],
},
},
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};