-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle.js
35 lines (32 loc) · 905 Bytes
/
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
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
var WalletProvider = require("truffle-wallet-provider");
// Read and unlock keystore
// var keystore = require('fs').readFileSync("./naveen_gyan_wallet").toString();
// var pass = "1milLion4"
// var wallet = require('ethereumjs-wallet').fromV3(keystore, pass);
module.exports = {
networks: {
development: {
host: 'localhost',
port: 7545,
network_id: '*' // Match any network id
},
gyaan: {
provider: () => { return new WalletProvider(wallet, "http://gyaan.network:8545") },
gas: "4600000",
network_id: "17"
},
rinkeby: {
provider: () => { return new WalletProvider(wallet, "https://rinkeby.infura.io/8oq8UZYB0lexxrdem244") },
gas: "4600000",
network_id: "*"
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
};