-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
61 lines (60 loc) · 1.6 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
61
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const { GSNProvider } = require("@openzeppelin/gsn-provider");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
ganache: {
provider() {
return new HDWalletProvider(`${process.env.GANACHE_KEY}`, `${process.env.GANACHE}`, 0, 5)
},
network_id: '*', // Match any network id
gas: 6500000, // Block Gas Limit same as latest on Mainnet https://ethstats.net/
gasPrice: 100000000
// allowUnlimitedContractSize: true
},
development: {
provider: function () {
return new GSNProvider("http://localhost:8545", {useGSN: false})
},
network_id: "*",
gas: 6500000,
gasPrice: 100000000
},
geth: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 4612388,
gasPrice: 100000000
},
ropsten: {
provider() {
return new HDWalletProvider(`${process.env.METAMASK_KEY}`, `${process.env.INFURA_ROPSTEN}`, 0, 5)
},
network_id: 3,
gas: 8000000
},
rinkleby: {
provider() {
return new HDWalletProvider(`${process.env.METAMASK_KEY}`, `${process.env.INFURA_RINKLEBY}`, 0, 5)
},
network_id: 4,
gas: 8000000
}
},
compilers: {
solc: {
version: '0.5.9',
// docker: false,
// settings: {
// optimizer: {
// enabled: true,
// runs: 200
// },
// evmVersion: 'byzantium'
// }
}
},
};