-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
71 lines (68 loc) · 1.99 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
var HDWalletProvider = require('truffle-hdwallet-provider')
const LedgerWalletProvider = require('@deconet/truffle-ledger-provider');
// matching address is 0x648d692e5c507c233d0f9d9fea062429003b3144
let mnemonic = process.env.DECONET_BLOCKCHAIN_ROPSTEN_MNEMONIC
const ledgerOptions = {
networkId: 1,
path: "44'/60'/0'/0",
askConfirm: false,
accountsLength: 1,
accountsOffset: 0,
};
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
},
ropsten: {
provider: function () {
// return new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/JTdaA5dJvlwfCfdgT5Cm')
// local GETH which supports debug
// return new HDWalletProvider(mnemonic, 'http://127.0.0.1:8549')
// remote GETH
return new HDWalletProvider(mnemonic, process.env.DECONET_ROPSTEN_NODE_URL)
// ledger testing
// return new LedgerWalletProvider(ledgerOptions, "https://ropsten.infura.io/JTdaA5dJvlwfCfdgT5Cm")
},
network_id: 3,
gas: 4700000
},
rinkby: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/JTdaA5dJvlwfCfdgT5Cm')
},
network_id: 4,
gas: 4700000
},
mainnet: {
provider: function() {
// return new LedgerWalletProvider(ledgerOptions, 'http://18.208.64.51:8545')
// return new LedgerWalletProvider(ledgerOptions, "https://rapidly-renewed-buzzard.quiknode.io")
return new LedgerWalletProvider(ledgerOptions, "https://mainnet.infura.io/JTdaA5dJvlwfCfdgT5Cm")
},
network_id: 1,
gas: 6000000,
gasPrice: 10000000000 // 10 gwei
},
coverage: {
host: "127.0.0.1",
network_id: "*",
port: 8997,
gas: 0xfffffffffff,
gasPrice: 0x1
}
},
compilers: {
solc: {
version: "0.4.25",
settings: {
optimizer: {
enabled: false,
runs: 200
}
}
}
}
}