forked from circlefin/stablecoin-evm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle.js
52 lines (51 loc) · 1.68 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
// INFURA Setup - see validate/README.validate.md for more info
var HDWalletProvider = require("truffle-hdwallet-provider"); // These keys will be used only for CALL
var mnemonic = "talisman";
var fs = require('fs');
var access_token = "none";
try {
access_token = fs.readFileSync('./validate/apikey.infura','utf8');
} catch (err) {
console.log("No Infura access token detected. Unit tests will still work. See ./validate/README.validate.md for more details.")
}
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
},
// solidity-coverage looks for a network called 'coverage' and makes one
// identical to this one if it is not found. We want solidity coverage to
// accept this truffle.js file as valid so it will use our custom reporter,
// so we add the 'coverage' network manually here.
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 17592186044415,
gasPrice: 1
},
// network to refer to ganache by name so it works with truffle/ganache in separate docker containers
localTestNet: {
host: "ganache",
port: 8545,
network_id: "*" // Match any network id
},
// INFURA Setup
infura_mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/" + access_token)
},
network_id: 1
}
},
mocha: {
/*
* To disable the spreadsheet verification tool ensure that
* the reporter is set to 'Spec' by commenting/uncommenting the lines below.
*/
reporter: 'Spec',
//reporter: './verification/verification_reporter.js',
},
};