-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
56 lines (55 loc) · 2.17 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
52
53
54
55
56
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("hardhat-deploy");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.6",
networks: {
hardhat: {},
dev: {
chainId: 31337,
url: "http://localhost:8547",
accounts: ["0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"]
},
xdai: {
chainId: 100,
url: "https://rpc.xdaichain.com/",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
mainnet: {
chainId: 1,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}` || "",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
matic: {
chainId: 137,
url: "https://polygon-rpc.com",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
polygon: {
chainId: 137,
gasPrice: 400000000000,
url: "https://polygon-rpc.com",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
bsc: {
chainId: 56,
url: "https://bsc-dataseed.binance.org/",
accounts: [process.env.KEY || "0x5e98cce00cff5dea6b454889f359a4ec06b9fa6b88e9d69b86de8e1c81887da0"] // dummy key
},
},
namedAccounts: {
DATA: {
1: "0x8f693ca8D21b157107184d29D398A8D082b38b76",
100: "0x256eb8a51f382650B2A1e946b8811953640ee47D",
56: "0x0864c156b3c5f69824564dec60c629ae6401bf2a",
137: "0x3a9A81d576d83FF21f26f325066054540720fC34",
8995: "0xbAA81A0179015bE47Ad439566374F2Bae098686F",
8997: "0x73Be21733CC5D08e1a14Ea9a399fb27DB3BEf8fF",
31337: "0xbAA81A0179015bE47Ad439566374F2Bae098686F",
},
deployer: {
default: 0, // take the first account as deployer
}
}
};