-
Notifications
You must be signed in to change notification settings - Fork 16
/
truffle-config.js
98 lines (92 loc) · 2.25 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const path = require("path");
const { mnemonic, infuraProjectId, moralisId, etherscanApiKey, bscscanApiKey } = require('./secrets.json');
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
develop: {
host: "localhost",
port: 8545,
network_id: "*"
},
// Ethereum
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `wss://ropsten.infura.io/ws/v3/${infuraProjectId}`),
websockets: true,
network_id: 3,
gasPrice: 10e9,
skipDryRun: true
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, `wss://rinkeby.infura.io/ws/v3/${infuraProjectId}`),
websockets: true,
network_id: 4,
gasPrice: 10e9,
gas: 10e6,
skipDryRun: true
},
kovan: {
provider: () => new HDWalletProvider(mnemonic, `wss://kovan.infura.io/ws/v3/${infuraProjectId}`),
websockets: true,
network_id: 42,
gasPrice: 10e9,
gas: 10e6,
skipDryRun: true
},
goerli: {
provider: () => new HDWalletProvider(mnemonic, `wss://goerli.infura.io/ws/v3/${infuraProjectId}`),
websockets: true,
network_id: 5,
gasPrice: 10e9,
gas: 10e6,
skipDryRun: true
},
mainnet: {
provider: () => new HDWalletProvider(mnemonic, `wss://mainnet.infura.io/ws/v3/${infuraProjectId}`),
websockets: true,
network_id: 1,
gasPrice: 30e9,
gas: 10e6,
skipDryRun: true
},
// BSC
chapel: {
provider: () => new HDWalletProvider(mnemonic, 'https://data-seed-prebsc-2-s1.binance.org:8545/'),
websockets: true,
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
bsc: {
provider: () => new HDWalletProvider(mnemonic, 'https://bscrpc.com'),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
},
mocha: {
timeout: 200000
},
compilers: {
solc: {
version: "^0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: etherscanApiKey,
bscscan: bscscanApiKey
},
db: {
enabled: false
}
};