forked from Consensys/permissioning-smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
executable file
·60 lines (49 loc) · 1.26 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
const path = require("path");
const dotenv = require('dotenv');
dotenv.config();
/* The adress used when sending transactions to the node */
var address = process.env.BESU_NODE_PERM_ACCOUNT;
/* The private key associated with the address above */
var privateKey = process.env.BESU_NODE_PERM_KEY;
/* The endpoint of the Ethereum node */
var endpoint = process.env.BESU_NODE_PERM_ENDPOINT;
const privateKeyProvider = new HDWalletProvider(privateKey, "http://34.139.37.41:4545");
if (endpoint === undefined) {
endpoint = "http://127.0.0.1:8545";
}
module.exports = {
networks: {
development: {
provider: privateKeyProvider,
network_id: "648532",
gasPrice: 0
//from: address
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*',
}
},
contracts_build_directory: path.join(__dirname, "src/chain/abis"),
compilers: {
solc: {
version: "0.5.9",
settings: {
optimizer: {
enabled: false,
runs: 200
},
}
}
},
mocha: {
useColors: true,
reporter: 'mocha-multi-reporters',
reporterOptions: {
configFile: './mocha-reporter-config.json',
},
},
plugins: ['solidity-coverage']
};