-
Notifications
You must be signed in to change notification settings - Fork 10
/
hardhat.config.js
116 lines (111 loc) · 4.36 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("hardhat-deploy-ethers");
require("hardhat-deploy");
// require("@symfoni/hardhat-react");
// require("hardhat-typechain");
// require("typechain-target-ethers-v5");
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.7.6",
settings: {
optimizer: {
enabled: true,
runs: 100000,
}
}
},
networks: {
hardhat: {
accounts: [
{
privateKey: '0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d', // 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
balance: '276701161105643274240',
},
{
privateKey: '0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1', // 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0
balance: '276701161105643274240',
},
{
privateKey: '0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c', // 0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b
balance: '276701161105643274240',
},
{
privateKey: '0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913', // 0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d
balance: '276701161105643274240',
},
{
privateKey: '0x738302d9eb4214a1ad218c2585068c18c8f76509a041288a377821161706abeb', // 0xf3878f48bfece1c57a5f910bb39dad4559829347
balance: '276701161105643274240',
},
]
},
ganache: {
url: "http://localhost:8545",
accounts: [
'0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d', // 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
'0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1', // 0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0
'0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c', // 0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b
'0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913', // 0xE11BA2b4D45Eaed5996Cd0823791E0C93114882d
'0x738302d9eb4214a1ad218c2585068c18c8f76509a041288a377821161706abeb', // 0xf3878f48bfece1c57a5f910bb39dad4559829347
]
},
mainnet: {
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_KEY,
accounts: process.env.MAINNET_PRIVATE_KEY ? [ process.env.MAINNET_PRIVATE_KEY ] : [],
gasPrice: 60000000000, // 60 Gwei
},
bsc: {
url: "https://bsc-dataseed4.ninicoin.io:443",
accounts: process.env.MAINNET_PRIVATE_KEY ? [ process.env.MAINNET_PRIVATE_KEY ] : [],
gasPrice: 25000000000, // 25 Gwei
},
bsctest: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
accounts: process.env.TESTNET_PRIVATE_KEY ? [ process.env.TESTNET_PRIVATE_KEY ] : [],
gasPrice: 25000000000, // 25 Gwei
},
matic: {
url: "https://rpc-mainnet.maticvigil.com/v1/" + process.env.MATIC_KEY,
accounts: process.env.MAINNET_PRIVATE_KEY ? [process.env.MAINNET_PRIVATE_KEY] : [],
gasPrice: 4000000000, // 4 Gwei
},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com/v1/" + process.env.MATIC_KEY,
accounts: process.env.TESTNET_PRIVATE_KEY ? [process.env.TESTNET_PRIVATE_KEY] : [],
gasPrice: 1000000000, // 1 Gwei
},
moonbasealpha: {
url: "https://rpc.testnet.moonbeam.network",
accounts: process.env.TESTNET_PRIVATE_KEY ? [process.env.TESTNET_PRIVATE_KEY] : [],
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/" + process.env.INFURA_KEY,
accounts: process.env.TESTNET_PRIVATE_KEY ? [process.env.TESTNET_PRIVATE_KEY] : [],
gasPrice: 25000000000, // 25 Gwei
},
xdai: {
url: "https://rpc.xdaichain.com/",
accounts: process.env.MAINNET_PRIVATE_KEY ? [process.env.MAINNET_PRIVATE_KEY] : [],
gasPrice: 1000000000, // 1 Gwei
},
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
};