This repository was archived by the owner on Mar 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathtruffle.js
More file actions
151 lines (149 loc) · 3.91 KB
/
truffle.js
File metadata and controls
151 lines (149 loc) · 3.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/* eslint-disable global-require */
require("babel-register");
require("babel-polyfill");
const TestRPC = require("ethereumjs-testrpc");
const nanoProvider = (providerUrl, nanoPath, network) =>
process.argv.some(arg => arg === network)
? require("./nanoWeb3Provider").nanoWeb3Provider(providerUrl, nanoPath)
: undefined;
module.exports = {
networks: {
localhost: {
network_id: "*",
host: "localhost",
port: 8545,
gas: 4600000
// from: "0x429123b08df32b0006fd1f3b0ef893a8993802f3"
},
inprocess: {
network_id: "*",
provider: TestRPC.provider({
accounts: Array(10).fill({ balance: "12300000000000000000000000" })
})
},
inprocess_test: {
network_id: "*",
provider: TestRPC.provider({
accounts: Array(10).fill({ balance: "12300000000000000000000000" })
})
},
inprocess_massive_test: {
network_id: "*",
gas: 0xffffffff,
provider: TestRPC.provider({
deterministic: true,
gasLimit: 0xffffffff,
accounts: Array(100).fill({ balance: "12300000000000000000000000" })
})
},
coverage: {
network_id: "*",
gas: 0xfffffffffff,
gasPrice: 1,
host: "localhost",
port: 8555
},
ropsten: {
host: "localhost", // local parity kovan node
port: 8544,
network_id: "3",
gas: 4300000, // close to current mainnet limit
gasPrice: 30000000000 // 10 gwei /shannon
},
kovan: {
host: "localhost", // local parity kovan node
port: 8545,
network_id: "42"
},
ropsten_live: {
host: "localhost", // local parity ropsten
port: 8544,
network_id: "3",
gas: 4300000, // close to current mainnet limit
gasPrice: 10000000000 // 10 gwei /shannon
},
nano: {
network_id: "*",
gas: 4600000,
provider: nanoProvider("http://localhost:8543", "44'/60'/105'/1", "nano"),
gasPrice: 10000000000 // 10 gwei /shannon
},
nano_customer: {
network_id: "*",
gas: 4600000,
provider: nanoProvider(
"http://localhost:8543",
"44'/60'/0'/0",
"nano_customer"
),
gasPrice: 10000000000 // 10 gwei /shannon
},
simulated_live: {
network_id: "*",
host: "localhost",
port: 8545,
gas: 4600000
},
nf_private: {
host: "localhost",
port: 8545,
network_id: "16",
gas: 4600000,
// gasPrice: 11904761856
gasPrice: 21000000000
},
nf_private_test: {
host: "localhost",
port: 8545,
network_id: "16",
gas: 4600000,
// gasPrice: 11904761856
gasPrice: 21000000000
},
nf_dev_test: {
host: "localhost",
port: 8545,
network_id: "17",
gas: 4600000,
// gasPrice: 11904761856
gasPrice: 21000000000
},
forked_live_nano: {
network_id: "0xd75c5831a651",
gas: 4600000,
provider: nanoProvider(
"http://ethexp-node.neustg.net:8545",
"44'/60'/105'/0",
"forked_live_nano"
),
gasPrice: 10000000000 // 10 gwei /shannon
},
forked_live: {
network_id: 1, // Ethereum public network
host: "ethexp-node.neustg.net",
port: 8545,
gas: 6700000, // close to current mainnet limit
gasPrice: 50000000000 // 21 gwei /shannon
},
localhost_live: {
network_id: "*",
host: "localhost",
port: 8545,
gas: 4600000
// from: "0x429123b08df32b0006fd1f3b0ef893a8993802f3"
},
live: {
network_id: 1, // Ethereum public network
host: "localhost",
port: 8543,
gas: 6300000, // close to current mainnet limit
gasPrice: 50000000000 // 21 gwei /shannon
// optional config values
// host - defaults to "localhost"
// port - defaults to 8545
// gas
// gasPrice
// from - default address to use for any transaction Truffle makes during migrations
}
}
};