forked from rsksmart/rif-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
83 lines (80 loc) · 2.1 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
72
73
74
75
76
77
78
79
80
81
82
83
require('ts-node/register/transpile-only')
var HDWalletProvider = require('@truffle/hdwallet-provider')
var mnemonic = 'digital unknown jealous mother legal hedgehog save glory december universe spread figure custom found six'
const secretMnemonicFile = './secret_mnemonic'
const fs = require('fs')
let secretMnemonic
if (fs.existsSync(secretMnemonicFile)) {
secretMnemonic = fs.readFileSync(secretMnemonicFile, { encoding: 'utf8' })
}
module.exports = {
networks: {
coverage: { // coverage/trace provider. note that it currently can't run extrnal-process relay.
provider: require('./coverage-prov.js'),
verbose: process.env.VERBOSE,
network_id: '*'
},
development: {
verbose: process.env.VERBOSE,
host: '127.0.0.1',
port: 4444,
network_id: 33,
gas: 6300000,
gasPrice: 60000000 // 0.06 gwei
},
rskdocker: {
verbose: process.env.VERBOSE,
host: 'enveloping-rskj',
port: 4444,
network_id: 33,
gas: 6300000,
gasPrice: 60000000 // 0.06 gwei
},
rsk: {
verbose: process.env.VERBOSE,
host: '127.0.0.1',
port: 4444,
network_id: 33,
gas: 6300000,
gasPrice: 60000000 // 0.06 gwei
},
rsktestnet: {
provider: function () {
return new HDWalletProvider(mnemonic, 'https://public-node.testnet.rsk.co')
},
network_id: 31,
gas: 6300000,
gasPrice: 60000000 // 0.06 gwei
},
rskmainnet: {
provider: function () {
return new HDWalletProvider(secretMnemonic, 'https://public-node.rsk.co')
},
network_id: 30,
gas: 6300000,
gasPrice: 60000000 // 0.06 gwei
}
},
mocha: {
slow: 1000,
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
onlyCalledMethods: true,
showTimeSpent: true,
excludeContracts: []
}
},
compilers: {
solc: {
version: '0.6.12',
settings: {
evmVersion: 'istanbul',
optimizer: {
enabled: true,
runs: 200 // Optimize for how many times you intend to run the code
}
}
}
}
}