-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
77 lines (75 loc) · 1.73 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
const HDWalletProvider = require('@truffle/hdwallet-provider')
require('dotenv').config()
module.exports = {
networks: {
develop: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
rinkebyFork: {
host: "127.0.0.1",
port: 8545,
network_id: 4
},
goerliFork: {
host: "127.0.0.1",
port: 8545,
network_id: 5
},
mumbaiFork: {
host: "127.0.0.1",
port: 8545,
network_id: 80001
},
bscTestnetFork: {
host: "127.0.0.1",
port: 8545,
network_id: 97
},
ropsten: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.INFURA_ROPSTEN),
network_id: 3
},
goerli: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, process.env.INFURA_GOERLI),
network_id: 5
},
mumbai: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://rpc-mumbai.matic.today`),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skyDryRun: true
},
bscMainnet: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://bsc-dataseed1.binance.org`),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
bscTestnet: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://data-seed-prebsc-1-s2.binance.org:8545/`),
network_id: 97,
confirmations: 2,
timeoutBlocks: 2000,
skipDryRun: true,
gas: 5000000,
gasPrice: 25000000000,
},
},
mocha: {
},
compilers: {
solc: {
version: "0.8.0"
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: process.env.ETHERSCAN_API
}
};