-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
60 lines (58 loc) · 1.55 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
require('babel-register');
require('babel-polyfill');
require('dotenv').config();
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = process.env.MNEMONIC;
var RINKEBY_INFURA= process.env.RINKEBY_INFURA;
var RINKEBY_ALCHEMY= process.env.RINKEBY_ALCHEMY;
var GOERLI_ALCHEMY= process.env.GOERLI_ALCHEMY;
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*", // Match any network id
websockets:true
},
rinkeby_infura: {
networkCheckTimeout:100000,
provider: function() {
return new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/ws/v3/${RINKEBY_INFURA}`);
},
network_id: 4,
gas: 6700000,
gasPrice: 10000000000,
},
rinkeby_alchemy: {
networkCheckTimeout:100000,
provider: function() {
return new HDWalletProvider(mnemonic, `https://eth-rinkeby.alchemyapi.io/v2/${RINKEBY_ALCHEMY}`);
},
network_id: 4,
// gas: 6700000,
// gasPrice: 10000000000,
},
goerli: {
networkCheckTimeout:100000,
provider: function() {
return new HDWalletProvider(mnemonic, `https://eth-goerli.alchemyapi.io/v2/${GOERLI_ALCHEMY}`);
},
network_id: 5,
// gas: 6700000,
// gasPrice: 10000000000,
},
},
contracts_directory: './src/contracts/',
contracts_build_directory: './src/abis/',
compilers: {
solc: {
version:"^0.8.0",
settings:{
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}