-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtruffle.js
More file actions
executable file
·39 lines (38 loc) · 1.01 KB
/
Copy pathtruffle.js
File metadata and controls
executable file
·39 lines (38 loc) · 1.01 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
localhost: {
host: '127.0.0.1',
port: 7546,
network_id: '5777',
gas: 6700000,
},
development: {
provider: () => new HDWalletProvider(process.env.mnemonic_development, `https://ropsten.infura.io/v3/${process.env.infura_development}`),
network_id: 3,
gasPrice: 11000000000,
},
qa: {
provider: () => new HDWalletProvider(process.env.mnemonic_qa, `https://ropsten.infura.io/v3/${process.env.infura_qa}`),
network_id: 3,
gasPrice: 11000000000,
},
mainnet: {
provider: () => new HDWalletProvider(process.env.mnemonic_mainnet, `https://mainnet.infura.io/v3/${process.env.infura_mainnet}`),
network_id: 1,
gasPrice: 10000000000,
},
},
compilers: {
solc: {
version: '0.5.15',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};