-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
58 lines (51 loc) · 1.27 KB
/
truffle-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
const HDWallet = require('truffle-hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".mnemonic.door").toString().trim();
const infuraKey = fs.readFileSync(".infura.door").toString().trim();
const rpcHost = process.env.RPC_HOST;
const rpcPort = process.env.RPC_PORT;
const networkId = process.env.NETWORK_ID;
const url = process.env.RPC_URL;
module.exports = {
networks: {
contracts_build_directory: "./build/contracts",
development: {
host: rpcHost || "127.0.0.1",
port: rpcPort || 7545,
network_id: networkId || 5777,
gas: 6000000,
gasPrice: 20000000000,
websockets: true
},
fluid: {
host: "127.0.0.1",
port: rpcPort || 7535,
network_id: networkId || 12,
gas: 6000000, //energy
gasPrice: 20000000000, //matter
websockets: true
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/${infuraKey}`),
network_id: 3,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
}
},
mocha: {
timeout: 100000
},
compilers: {
solc: {
version: "0.5.1",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}