-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
96 lines (91 loc) · 2.26 KB
/
truffle.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
module.exports = {
networks: {
'development': {
host: "localhost",
port: 8545,
network_id: "*"
},
'alastria': {
host: "35.176.19.89",
port: 22000,
network_id: "*",
gas: 0xffffff,
gasPrice: 0x0,
from: "0xd65616c46a2e55957aff33e238b31bc568358e20"
},
compilers: {
solc: {
version: "^0.4.23", // A version or constraint - Ex. "^0.5.0"
}
}
}
/*//HD Wallet for keyless servers (infura)
const HDWalletProvider = require("truffle-hdwallet-provider");
const Ganache = require("ganache-cli");
let provider
function getNmemonic() {
try{
return require('fs').readFileSync("./seed", "utf8").trim();
} catch(err){
return "";
}
}
function getProvider(rpcUrl) {
if (!provider) {
provider = new HDWalletProvider(getNmemonic(), rpcUrl);
}
return provider;
}
module.exports = {
networks: {
in_memory: {
get provider() {
if (!provider) {
provider = Ganache.provider({total_accounts: 25, gasLimit: '0xfffffff'});
}
return provider;
},
network_id: "*"
},
coverage: {
host: "localhost",
network_id: "*",
port: 7555, // <-- Use port 7555
gas: 0xfffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 0xfffffff,
gasPrice: 0x01
},
alastria_general1: {
host: "192.168.31.200",
port: 22001,
network_id: "*", // Match any network id
gas: 0xfffffff,
gasPrice: 0x0,
from: "0x0defda53d6e0ba7627a4891b43737c5889e280cc"
},
alastria_general2: {
host: "192.168.31.200",
port: 22002,
network_id: "*", // Match any network id
gas: 0xfffffffffffff,
gasPrice: 0x0,
from: "0x95066cdf6a5ac9489eeb28755f0e878eb3de711d"
},
alastria: {
host: "34.246.45.100",
port: 22000,
network_id: "*", // Match any network id
gas: 0xffffff,
gasPrice: 0x0,
from: "0x95066cdf6a5ac9489eeb28755f0e878eb3de711d"
}
}
};
*/
};