forked from sirgawain0x/ethunes-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
59 lines (56 loc) · 1.58 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const RINKEBY = `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`;
const GOERLI = `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`;
const MNEUMONICS = process.env.MNEUMONICS;
function getMnemonic(network) {
// For live deployments use a specific Ephimera key
if (network === 'mainnet') {
return process.env.MAINNET_PK || '';
}
return process.env.PROTOTYPE_PK || '';
};
module.exports = {
compilers: {
solc: {
version: "^0.8.0",
settings: {
optimizer: {
enabled: true, // Default: false
runs: 900, // Number of times you expect the contract to run. Default: 200. TODO: increase this before deploying the stable version.
},
},
},
},
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
},
rinkeby: {
provider: function () {
return new HDWalletProvider(MNEUMONICS, RINKEBY);
},
network_id: 4,
gas: 9278228,
gasPrice: 25000000000, // 25 Gwei. default = 100 gwei = 100000000000
skipDryRun: true,
},
goerli: {
provider: function () {
return new HDWalletProvider(MNEUMONICS, GOERLI);
},
network_id: 5,
gas: 7000000, // default = 4712388
gasPrice: 50000000000, // 25 Gwei. default = 100 gwei = 100000000000
skipDryRun: true,
},
},
// mocha: {
// reporter: 'eth-gas-reporter',
// reportOptions: {
// currency: 'USD',
// }
// }
};