forked from HonestInsurance/Smart-Contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
executable file
·36 lines (32 loc) · 890 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
36
/**
* @description Truffle configuration settings
* @copyright (c) 2017 HIC Limited (NZBN: 9429043400973)
* @author Martin Stellnberger
* @license GPL-3.0
*/
const HDWalletProvider = require('truffle-hdwallet-provider');
const mnemonic = require('./build/mnemonic');
module.exports = {
networks: {
// Local development environment (ganache-cli)
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
// Rinkeby
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic.RINKEBY_MNEMONIC, "https://rinkeby.honestinsurance.net/");
},
network_id: '4',
}
},
// command to download specific version: truffle obtain --solc=0.5.5
compilers: {
solc: {
version: "^0.5.8", // A version or constraint - Ex. "^0.5.0"
optimizer: { enabled: true, runs: 200 }
}
}
};