forked from BabyMikaProject/BabyMika-BEP20
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
67 lines (64 loc) · 1.48 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
61
62
63
64
65
66
67
require('dotenv').config();
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
mocha: {
enableTimeouts: false,
},
networks: {
develop: {
host: "127.0.0.1",
port: 8545,
network_id: "1",
gasPrice: 0,
gas: 6000000,
},
test: {
host: "127.0.0.1",
port: 7545,
network_id: "2"
},
bsctestnet: {
provider: () => new HDWalletProvider( process.env.HDWALLET_MNEMONIC, 'https://data-seed-prebsc-1-s1.binance.org:8545' ),
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
ropsten: {
provider: function() {
return new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
process.env.ROPSTEN_URL,
0,
10)
},
network_id: "3",
gas: 8000000,
},
bsc: {
provider: () => new HDWalletProvider( process.env.HDWALLET_MNEMONIC, 'https://bsc-dataseed1.binance.org'),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
bscscan: process.env.APIKEY,
etherscan: process.env.ETHERSCAN_APIKEY
},
compilers: {
solc: {
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
};