-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
44 lines (40 loc) · 1.3 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
require("@nomiclabs/hardhat-waffle");
require('dotenv').config();
// The next line is part of the sample project, you don't need it in your
// project. It imports a Hardhat task definition, that can be used for
// testing the frontend.
require("./tasks/faucet");
// Go to https://www.alchemyapi.io, sign up, create
// a new App in its dashboard, and replace "KEY" with its key
const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
// Replace this private key with your Ropsten account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Be aware of NEVER putting real Ether into testing accounts
const ROPSTEN_PRIVATE_KEY = process.env.ROPSTEN_PRIVATE_KEY;
console.log(ALCHEMY_API_KEY);
module.exports = {
solidity: "0.8.9",
networks: {
hardhat: {
chainId: 1337
},
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`${ROPSTEN_PRIVATE_KEY}`],
chainId: 3
},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
accounts: [ROPSTEN_PRIVATE_KEY],
chainId: 80001,
gasPrice: 35000000000
},
zksync: {
url: "https://zksync2-testnet.zksync.dev",
accounts: [ROPSTEN_PRIVATE_KEY],
chainId: 280,
//gasPrice: 35000000000,
}
}
};