-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle.js
More file actions
43 lines (41 loc) · 1.16 KB
/
truffle.js
File metadata and controls
43 lines (41 loc) · 1.16 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
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
const HDWalletProvider = require("truffle-hdwallet-provider");
module.exports = {
migrations_directory: "./migrations",
// contracts_build_directory: "./src/contracts",
networks: {
development: {
host: 'localhost',
gas: 6721975,
gasPrice: 20000000000,
port: 7545,
network_id: "5777" // Match any network id
},
test: {
host: 'localhost',
port: 7545,
gas: 8007776,
gasPrice: 2000000000,
network_id: "*", // Match any network id
provider: () => {
return new HDWalletProvider(
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat',
'https://ropsten.infura.io/c2M8LGCNQPz9NnAZWkDt'
)
},
},
ropsten: {
gas: 4600000,
// gasPrice: 10000000000, //too long
gasPrice: 20000000000,
provider: () => {
return new HDWalletProvider(
'lottery hold latin index cool renew scatter cradle begin evil rich cream',
'https://ropsten.infura.io/c2M8LGCNQPz9NnAZWkDt'
)
},
network_id: 3
},
}
};