File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ require ( "dotenv" ) . config ( { path : "./.env" } )
2
+ const HDWalletProvider = require ( "@truffle/hdwallet-provider" )
3
+
4
+ // const fs = require('fs');
5
+ // const mnemonic = fs.readFileSync(".secret").toString().trim();
6
+
7
+ module . exports = {
8
+ networks : {
9
+ development : {
10
+ host : "127.0.0.1" , // Localhost (default: none)
11
+ port : 7545 , // Standard Ethereum port (default: none)
12
+ network_id : "5777" , // Any network (default: none)
13
+ } ,
14
+ bsc : {
15
+ provider : ( ) =>
16
+ new HDWalletProvider (
17
+ process . env . MNEMONIC ,
18
+ "wss://data-seed-prebsc-1-s1.binance.org:8545"
19
+ ) ,
20
+ gas : 9900000 ,
21
+ network_id : 97 ,
22
+ confirmations : 10 ,
23
+ timeoutBlocks : 200 ,
24
+ skipDryRun : true ,
25
+ } ,
26
+ } ,
27
+ compilers : {
28
+ solc : {
29
+ version : "0.8.6" , // Fetch exact version from solc-bin (default: truffle's version)
30
+ settings : {
31
+ optimizer : {
32
+ enabled : true ,
33
+ runs : 200 ,
34
+ } ,
35
+ } ,
36
+ } ,
37
+ } ,
38
+ chai : {
39
+ enableTimeouts : false ,
40
+ } ,
41
+ }
You can’t perform that action at this time.
0 commit comments