-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhardhat.config.js
82 lines (80 loc) · 2.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
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
require('@nomiclabs/hardhat-waffle');
require('@nomiclabs/hardhat-ethers');
// 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");
// const fs = require("fs");
// const privateKey = fs.readFileSync(".secret").toString().trim();
module.exports = {
defaultNetwork: 'hardhat',
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: '',
},
networks: {
hardhat: {
inject: false, // optional. If true, it will EXPOSE your mnemonic in your frontend code. Then it would be available as an "in-page browser wallet" / signer which can sign without confirmation.
accounts: {
mnemonic: 'test test test test test test test test test test test junk', // test test test test test test test test test test test junk
},
chainId: 1337,
},
mumbai: {
url: 'https://speedy-nodes-nyc.moralis.io/27686f41b7c9afc73b87dfa2/polygon/mumbai',
network_id: 80001,
confirmations: 2,
accounts: [],
},
polygon: {
url: 'https://speedy-nodes-nyc.moralis.io/f84f46508f22a737cbbdb355/polygon/mainnet',
network_id: 137,
confirmations: 2,
accounts: {
mnemonic: 'secret',
},
},
fuji: {
url: 'https://speedy-nodes-nyc.moralis.io/27686f41b7c9afc73b87dfa2/avalanche/testnet',
network_id: 43113,
confirmations: 2,
accounts: {
mnemonic: 'secret',
},
},
avalanche: {
url: 'https://speedy-nodes-nyc.moralis.io/27686f41b7c9afc73b87dfa2/avalanche/mainnet',
network_id: 43114,
confirmations: 2,
accounts: {
mnemonic: 'secret',
},
},
rinkeby: {
url: 'https://speedy-nodes-nyc.moralis.io/27686f41b7c9afc73b87dfa2/eth/rinkeby',
network_id: 4,
confirmations: 2,
accounts: {
mnemonic: 'secret',
},
},
ethereum: {
url: 'https://speedy-nodes-nyc.moralis.io/27686f41b7c9afc73b87dfa2/eth/mainnet',
network_id: 1,
confirmations: 2,
accounts: {
mnemonic: 'secret',
},
},
},
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};