-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
78 lines (75 loc) · 2.43 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
/*
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
* function when declaring them. Failure to do so will cause commands to hang. ex:
* ```
* mainnet: {
* provider: function() {
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
* },
* network_id: '1',
* gas: 4500000,
* gasPrice: 10000000000,
* },
*/
var HDWalletProvider = require("@truffle/hdwallet-provider");
const mRopsten = "pottery wage multiply float virus endorse cake ceiling excess light awkward animal"; // 12 word mnemonic
const mMainnet = "";
const mBscTest = "cigar skill quarter flee usage glide clown fish human child light cause";
const mBscMain = "";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: 'localhost',
port: 8545, // if ganache-cli then 8545, else if truffle develop then 9545
network_id: '*'
},
ropsten: {
provider: function () {
return new HDWalletProvider(mRopsten, "https://ropsten.infura.io/v3/0b49da3d2bea48b6bdd8ba70ce3fa506", 0, 10, false, "m/44'/60'/0'/0/");
},
network_id: '3'
},
main: {
provider: function () {
return new HDWalletProvider(mMainnet, "https://mainnet.infura.io/v3/4b46b3400b3f42d89df8b3871b190bcf", 0, 10);
},
network_id: '1',
gas: 8300000,
gasPrice: '40000000000'
},
bsctest: {
provider: function () {
return new HDWalletProvider(mBscTest, "https://data-seed-prebsc-1-s1.binance.org:8545", 0, 10);
},
network_id: '97',
// networkCheckTimeout: 10000000
gas: '3000000',
gasPrice: '36000000000' // wei
},
bscmain: {
provider: function () {
return new HDWalletProvider(mBscMain, "wss://bsc-ws-node.nariox.org:443", 0, 10); //"https://bsc-dataseed.binance.org/", 0, 10);
},
networkCheckTimeout: '10000',
network_id: '56',
gas: '50000000',
gasPrice: '30000000000' // wei
}
},
compilers: {
solc: {
version: "0.4.24",
optimizer: {
enabled: true,
runs: 200
},
// remappings: [":g/github.com/OpenZeppelin/openzeppelin-solidity/=/home/pmt0admin/openzeppelin-solidity/"]
outputSelection: {
"universaltoken.sol": {
"*": ["abi", "evm.deployedBytecode.object"]}
}
}
}
};