This repository was archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtruffle.js
More file actions
50 lines (47 loc) · 1.27 KB
/
truffle.js
File metadata and controls
50 lines (47 loc) · 1.27 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
require('babel-register');
require('babel-polyfill');
//const WalletProvider = require("truffle-hdwallet-provider-privkey");
//const privKey = require('fs').readFileSync('./infura_privKey').toString();
//const apiKey = require('fs').readFileSync('./infura_apiKey').toString();
const WalletProvider = require("truffle-wallet-provider");
const keystore = require('fs').readFileSync('./sample-keystore').toString();
const pass = require('fs').readFileSync('./sample-pass').toString();
const wallet = require('ethereumjs-wallet').fromV3(keystore, pass);
const config = {
networks: {
development: {
host: 'localhost',
port: 8545,
gas: 15e6,
gasPrice: 0x01,
network_id: '*',
},
ropsten: {
//provider: new WalletProvider(privKey, "https://ropsten.infura.io/"+ apiKey),
provider: new WalletProvider(wallet, "https://ropsten.infura.io/"),
network_id: 3,
gas: 4700036,
gasPrice: 130000000000,
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8555,
gas: 0xfffffffffff,
gasPrice: 0x01,
},
},
mocha: {
useColors: true,
slow: 30000,
bail: true,
},
dependencies: {},
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
};
module.exports = config;