-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
59 lines (57 loc) · 1.22 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
const { privateKeys, BSCSCANAPIKEY} = require('./secrets.json');
module.exports = {
plugins: [
'truffle-plugin-verify'
],
api_keys: {
bscscan: BSCSCANAPIKEY
},
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
test: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
testnet: {
provider: () => {
return new HDWalletProvider({
privateKeys: privateKeys,
providerOrUrl: `https://data-seed-prebsc-1-s1.binance.org:8545/`,
});
},
network_id: 97,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
bsc: {
provider: () => {
return new HDWalletProvider({
privateKeys: privateKeys,
providerOrUrl: `wss://bsc-mainnet.nodereal.io/ws/v1/64a9df0874fb4a93b9d0a3849de012d3`,
});
},
network_id: 56,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
},
compilers: {
solc: {
version: "0.8.7",
settings: {
optimizer: {
enabled: false,
runs: 200
},
}
}
},
};