This repository was archived by the owner on Aug 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathtruffle.js
More file actions
45 lines (43 loc) · 1.19 KB
/
truffle.js
File metadata and controls
45 lines (43 loc) · 1.19 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
/*
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
* function when declaring them. Failure to do so will cause commands to hang. ex:
* ```
* mainnet: {
* provider: function() {
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
* },
* network_id: '1',
* gas: 4500000,
* gasPrice: 10000000000,
* },
*/
const HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*', // Match any network id
from: '0x303de46de694cc75a2f66da93ac86c6a6eee607e',
provider: new HDWalletProvider(
'wine churn waste cabbage admit security brisk knife swallow fancy rib observe',
'http://localhost:8545',
),
gas: 4500000,
gasPrice: 10000000000,
},
},
compilers: {
solc: {
version: '0.5.0-nightly.2018.11.5+commit.88aee34c',
settings: {
optimizer: {
enabled: true,
runs: 200
},
},
},
},
};