-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathtruffle.js
More file actions
38 lines (36 loc) · 841 Bytes
/
truffle.js
File metadata and controls
38 lines (36 loc) · 841 Bytes
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
require("dotenv").config();
const PrivateKeyProvider = require("truffle-privatekey-provider");
const HDWalletProvider = require("truffle-hdwallet-provider");
const mnemonic =
"hope awesome inherit detect employ busy popular clip olive fork better glare";
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
test: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
rinkeby: {
provider: () =>
new PrivateKeyProvider(
process.env.RINKEBY_KEY,
`https://rinkeby.infura.io/${process.env.INFURA_KEY}`
),
network_id: 15
}
},
compilers: {
solc: {
version: '0.5.2',
optimizer: {
enabled: true, // Default: false
runs: 1000 // Default: 200
}
}
}
};