-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtruffle.js
More file actions
45 lines (39 loc) · 1.16 KB
/
truffle.js
File metadata and controls
45 lines (39 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
'use strict';
// Allows us to use ES6 in our migrations and tests.
require('babel-register');
var Web3 = require("web3")
var web3 = new Web3("https://mainnet.infura.io/QTytc1nasqq4LxVKgSLn")
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonicL = "zebra mistake reward flash fit slam early youth chimney diesel enjoy urge";
var mnemonic = "absurd champion gallery crouch fix floor spatial nation moral width bubble discover";
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*", // Match any network id
},
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/QTytc1nasqq4LxVKgSLn")
},
network_id: 4,
gasPrice: web3.toWei(0.000000005, 'ether'), //5 Gwei
gas: 5000000
},
live: {
provider: function() {
return new HDWalletProvider(mnemonicL, "https://mainnet.infura.io/QTytc1nasqq4LxVKgSLn")
},
network_id: 1,
gasPrice: web3.toWei(0.000000005, 'ether'), //5 Gwei
gas: 5000000
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}