forked from smartcontractkit/truffle-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
39 lines (37 loc) · 819 Bytes
/
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
const HDWalletProvider = require('@truffle/hdwallet-provider')
require('dotenv').config()
const mnemonic = process.env.MNEMONIC
const url = 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: () => {
return new HDWalletProvider(mnemonic, url)
},
network_id: '42',
skipDryRun: true
},
},
compilers: {
solc: {
version: '0.6.6',
},
},
}