-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
50 lines (47 loc) · 1.48 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config({ path: ".env" });
require("hardhat-gas-reporter");
// 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.
const { GOERLI_PRIVATE_KEY, ALCHEMY_PROJECT_ID, POLYGON_TEST_PRIVATE_KEY, POLYGON_MAINNEI_PRIVATE_KEY } = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{ version: "0.8.0" }
]
},
networks: {
hardhat: {
chainId: 1337 // We set 1337 to make interacting with MetaMask simpler
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_PROJECT_ID}`,
accounts: [GOERLI_PRIVATE_KEY]
},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/YbE4U9U8b3M74_Un2wTDK83R0M2W1Ksf`,
accounts: [POLYGON_TEST_PRIVATE_KEY]
},
polygon: {
url: `https://polygon-mainnet.g.alchemy.com/v2/bvL_Fraw7yQecq_U9WKVlKVuOyg4RJxK`,
accounts: [POLYGON_MAINNEI_PRIVATE_KEY]
}
,
ethermind: {
url: `http://47.242.179.164:9933`,
accounts: ['0x193144a9aa67b535d16d37e07dcf6c7ca2cec48d2859bb880a117f56633a321e']
},
frondier: {
url: `http://8.210.44.55:9933`,
accounts: ['0x1667b42e9169b4a17fd62ebf339e449fcd1464b1db58d8e0518416cc58ec6d30']
}
},
gasReporter: {
enabled: false,
gasPrice: 10,
currency: 'USD',
token: "ETH"
}
};