-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
executable file
·54 lines (52 loc) · 1.2 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
development: {
network_id: '*',
host: 'localhost',
port: process.env.PORT
},
main: {
provider: function() {
return new HDWalletProvider(
//private keys array
process.env.MNEMONIC,
//url to ethereum node
process.env.WEB3_PROVIDER_ADDRESS
)
},
network_id: 1,
gas: process.env.GAS,
gasPrice: process.env.GAS_PRICE,
confirmations: 2,
websockets: true
},
kovan: {
provider: function() {
return new HDWalletProvider({
mnemonic: process.env.MNEMONIC,
providerOrUrl: process.env.WEB3_PROVIDER_ADDRESS,
chainId: 42
})
},
network_id: 42,
gas: process.env.GAS,
gasPrice: process.env.GAS_PRICE,
confirmations: 0,
websockets: true,
skipDryRun: true
}
},
compilers: {
solc: {
version: "0.8.0",
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: process.env.ETHERSCAN_API
}
};