-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtruffle-config.js
60 lines (58 loc) · 1.35 KB
/
truffle-config.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
require('dotenv').config();
require("@babel/polyfill");
const PrivateKeyProvider = require("truffle-privatekey-provider");
const LedgerWalletProvider = require('truffle-ledger-provider');
//Contract data: Yes
// Browser Support: No
const ledgerOptions = {
networkId: "*", // mainnet
path: "44'/60'/0'/0", // ledger default derivation path
askConfirm: false,
accountsLength: 1,
accountsOffset: 0
}; // use default options
module.exports = {
networks: {
local: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
dev: {
provider: () => new PrivateKeyProvider(process.env.DEV_SCC_PK, process.env.DEV_SCC_HOST),
network_id: "*",
gasPrice: 1000000000,
gas: 6357193,
production: false
},
ledger: {
provider: new LedgerWalletProvider(ledgerOptions, process.env.DEV_SCC_HOST),
network_id: 3,
gas: 4600000
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 0xfffffffffff,
gasPrice: 0x01
}
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
compilers: {
solc: {
version: " 0.5.15",
settings: {
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "constantinople"
}
}
},
plugins: ["solidity-coverage"]
};