-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.js
More file actions
78 lines (76 loc) · 1.91 KB
/
Copy pathhardhat.config.js
File metadata and controls
78 lines (76 loc) · 1.91 KB
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
require('dotenv').config()
require('@nomiclabs/hardhat-ethers');
require("@nomiclabs/hardhat-truffle5");
const defaultNetwork = "rinkeby";
module.exports = {
defaultNetwork,
networks: {
localhost: {
url: "http://localhost:8545",
/*
No mnemonic here. It will just use account 0 of the hardhat node to deploy.
(Can put in a mnemonic here to set the deployer locally)
*/
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.REACT_APP_INFURA_KEY}`,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
xdai: {
url: 'https://rpc.xdaichain.com/',
gasPrice: 1000000000,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
mumbai: {
url: 'https://rpc-mumbai.matic.today',
gasPrice: 1000000000,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
matic: {
url: 'https://rpc-mainnet.maticvigil.com/',
gasPrice: 1000000000,
accounts: {
mnemonic: process.env.REACT_APP_MNEMONIC,
},
},
},
solidity: {
version: "0.6.7",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};