-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
47 lines (45 loc) · 1.33 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
const HDWalletProvider = require('@truffle/hdwallet-provider')
require('dotenv').config()
const mnemonic = process.env.MNEMONIC
const infuraURL = process.env.RPC_URL
module.exports = {
networks: {
cldev: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*',
},
binance_testnet: {
provider: () => new HDWalletProvider(mnemonic, 'https://data-seed-prebsc-1-s1.binance.org:8545'),
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
kovan: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: mnemonic
},
providerOrUrl: infuraURL,
numberOfAddresses: 1,
shareNonce: true,
}),
network_id: '42',
networkCheckTimeout: 10000000,
// skipDryRun: - true if you don't want to test run the migration locally before the actual migration (default is false)
skipDryRun: true
}
},
compilers: {
solc: {
version: '0.6.6',
},
},
}