-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
38 lines (35 loc) · 923 Bytes
/
truffle.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
const HDWalletProvider = require("truffle-hdwallet-provider");
const privateKey = ""; // used for testnets only!
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: '127.0.0.1',
port: 9545,
network_id: '*' // Match any network id
},
kovan: {
provider: () => new HDWalletProvider(privateKey, "https://kovan.infura.io/v3/8e01b33727674833a42e0b1157f5ff9b"),
//host: '127.0.0.1',
//port: 8545,
//from: '0x0088BD180722C48602770d355E692D2EBFbA86Ac',
network_id: 42,
gasPrice: 1000000000 // Specified in Wei
},
mainnet: {
network_id: 1,
gasPrice: 10000000000, //
gas: 6300000,
}
},
compilers: {
solc: {
version: '0.5.2',
optimizer: {
enabled: true,
runs: 200
}
}
}
};