-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
41 lines (38 loc) · 1.15 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("@tenderly/hardhat-tenderly");
require("dotenv").config({ path: ".env" });
require("./tasks/accounts");
require("./tasks/setGreeting");
require("./tasks/setNumber");
const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL || "https://eth-rinkeby.alchemyapi.io/v2/your-api-key";
const MUMBAI_RPC_URL = process.env.MUMBAI_RPC_URL || "https://matic-mumbai.chainstacklabs.com";
const MNEMONIC = process.env.MNEMONIC || "your mnemonic";
const PRIVATE_KEY = process.env.PRIVATE_KEY || "your private key";
const ETHERSCAN_APIKEY = process.env.ETHERSCAN_APIKEY || "your etherscan api-key";
const POLYGONSCAN_APIKEY = process.env.POLYGONSCAN_APIKEY || "your ploygonscan api-key";
module.exports = {
networks: {
localhost: {
url: "http://localhost:8545"
},
rinkeby: {
url: RINKEBY_RPC_URL,
accounts: [PRIVATE_KEY]
},
mumbai: {
url: MUMBAI_RPC_URL,
accounts: {
mnemonic: MNEMONIC
}
}
},
etherscan: {
apiKey: POLYGONSCAN_APIKEY
},
solidity: "0.8.4",
tenderly: {
project: "hello-tenderly",
username: "trust"
}
};