-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
46 lines (43 loc) · 924 Bytes
/
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const fs = require("fs");
const secretMnemonicFile = "./.mnemonic";
let secretMnemonic;
if (fs.existsSync(secretMnemonicFile)) {
secretMnemonic = fs
.readFileSync(secretMnemonicFile, { encoding: "utf8" })
.toString()
.trim();
} else {
console.error("Invalid mnemonic file provided");
}
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: "*",
},
bloxberg: {
provider: function() {
return new HDWalletProvider(
secretMnemonic,
"https://core.bloxberg.org"
);
},
network_id: 8995,
},
},
compilers: {
solc: {
version: "^0.6.2",
// docker: true,
settings: {
optimizer: {
enabled: false,
runs: 200,
},
evmVersion: "istanbul",
},
},
},
};