-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtruffle.js
More file actions
41 lines (37 loc) · 884 Bytes
/
truffle.js
File metadata and controls
41 lines (37 loc) · 884 Bytes
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
var LedgerWalletProvider = require("truffle-ledger-provider");
var infuraApiKey = process.env.INFURA_APIKEY;
var kovanLedgerOptions = {
networkId: 42,
accountsOffset: 0
};
var mainnetLedgerOptions = {
networkId: 1,
accountsOffset: 0
};
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
kovan: {
provider: new LedgerWalletProvider(
kovanLedgerOptions,
"https://kovan.infura.io/" + infuraApiKey
),
network_id: kovanLedgerOptions.networkId,
gas: 4600000,
gasPrice: 25000000000
},
mainnet: {
provider: new LedgerWalletProvider(
mainnetLedgerOptions,
"https://mainnet.infura.io/" + infuraApiKey
),
network_id: mainnetLedgerOptions.networkId,
gas: 3525537,
gasPrice: 10000000000
}
}
};