-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
executable file
·62 lines (58 loc) · 1.81 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider'); // @notice - Should use new module.
const mnemonic = process.env.MNEMONIC;
module.exports = {
networks: {
bsc_testnet: { /// This is used for deployment and truffle test
provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s2.binance.org:8545`), /// [Note]: New RPC Endpoint
//provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-2-s1.binance.org:8545`), /// [Note]: 503 eror
network_id: 97,
networkCheckTimeout: 9999,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
bsc_mainnet: { /// Binance Smart Chain mainnet
provider: () => new HDWalletProvider(mnemonic, `https://bsc-dataseed1.binance.org`),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/' + process.env.INFURA_KEY),
network_id: '3',
gas: 4712388,
//gas: 4465030, // Original
//gasPrice: 5000000000, // 5 gwei (Original)
//gasPrice: 10000000000, // 10 gwei
gasPrice: 100000000000, // 100 gwei
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets)
},
local: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
skipDryRun: true,
gasPrice: 5000000000
},
test: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
skipDryRun: true,
gasPrice: 5000000000
}
},
compilers: {
solc: {
version: "0.6.12", /// Final version of solidity-v0.6.x
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}