-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
86 lines (83 loc) · 2.18 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
const HDWalletProvider = require('@truffle/hdwallet-provider')
const fs = require('fs')
const mnemonic = fs.readFileSync('.secret').toString().trim()
module.exports = {
plugins: [
'truffle-contract-size'
],
networks: {
development: {
host: '127.0.0.1', // Localhost (default: none)
port: 7545, // Standard BSC port (default: none)
network_id: '*', // Any network (default: none)
},
development_test: {
host: '127.0.0.1', // Localhost (default: none)
port: 7545, // Standard BSC port (default: none)
network_id: '*', // Any network (default: none)
},
testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://data-seed-prebsc-1-s1.binance.org:8545`,
),
network_id: 97,
confirmations: 1,
timeoutBlocks: 2000000,
skipDryRun: true,
networkCheckTimeout: 1000000,
disableConfirmationListener: true,
},
testnet_mubai: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://polygon-mumbai.g.alchemy.com/v2/wzJWxdXWNMUEB8uOtimnWsoiDXI4t6Su`,
),
network_id: 80001,
confirmations: 1,
timeoutBlocks: 20000,
skipDryRun: true,
networkCheckTimeout: 10000000,
disableConfirmationListener: true,
},
bsc: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://data-seed-prebsc-1-s1.binance.org:8545`,
),
network_id: 97,
confirmations: 1,
timeoutBlocks: 200,
skipDryRun: true,
},
coinex_testnet: {
provider: () =>
new HDWalletProvider(mnemonic, `https://testnet-rpc.coinex.net`),
network_id: 53,
confirmations: 2,
timeoutBlocks: 2000,
skipDryRun: true,
networkCheckTimeout: 1000000,
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: '0.8.14', // A version or constraint - Ex. "^0.8.0"
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: 'byzantium',
},
},
},
}