forked from bloxberg-org/peer-review-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
45 lines (43 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
const path = require("path");
const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonic = process.env.MNEMONIC;
// Provider engine instantiation can be included but is not necessary when account is unlocked
module.exports = {
networks: {
develop: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
},
bloxberg: {
provider: () =>
new HDWalletProvider(mnemonic, 'https://core.bloxberg.org'),
network_id: '8995',
gas: 8000000, // <--- Twice as much
gasPrice: 4 * 1000000000, // X * gwei's
from: '0xAA6042aa65eb93C6439cDaeBC27B3bd09c5DFe94'
},
bloxbergDev: {
provider: () =>
new HDWalletProvider(mnemonic, 'https://bloxberg.org/eth/'),
network_id: '8995',
from: '0xAA6042aa65eb93C6439cDaeBC27B3bd09c5DFe94'
},
rinkeby: {
provider: () =>
new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/6491efd5b28f48a183d8ab3131fa4012'),
network_id: '4',
from: '0xAA6042aa65eb93C6439cDaeBC27B3bd09c5DFe94',
gas: 3000000,
gasPrice: 10000000000
}
},
compilers: {
solc: {
version: '^0.5.0',
settings: {
evmVersion: 'byzantium' // Default: "petersburg"
}
}
}
}