 Since my last post, many new versions have been added. Before I start the version of `v0.5.X` I would like to tell you about the changes in the version `v0.4.X`. Before I start, it is worth noting that third-party developers have joined the development. Someone reported on the found bugs, someone suggested pull-requests. Special thanks would like to express [@technologiespro](https://github.com/technologiespro). Thanks to him the version 0.4.X was enriched with even more functionality. ## Autoreconnect Autoreconnect was added to increase the resilience when the connection to the server was broken for a long time. This can be, for example, if you have an Internet connection disconnected. Auto-reconnect is enabled by default and will try to restore the connection for an infinitely long time. If you do not need this behavior, you should specify this when initializing the `BitShares` class: ```JS const BitShares = require ("btsdex"); BitShares.init ("wss: //bitshares.openledger.info/ws", false, false); ``` ## login and loginFromFile To access your account, many use the login and password or via the `*.bin`-file. This simplifies the interaction: there is no need to remember three different private keys, it is enough to store only one. I decided to add this to the package `btsdex`. If you know only the login and password from your account, just write: ```JS let account = wait for BitShares.login(<login>, <password>); ``` Now in `account` the same object of class `BitShares`, in which the keys `active` and` memo` are put. Another way to get a class object is to use the `loginFromFile` method: ```JS const buffer = fs.readFileSync(<bit-file>); let account = wait for BitShares.loginFromFile(buffer, <password>, <accountName>); ``` ## assetIssue and assetReserve The `BitShares` class is enriched with two operations:` asset_issue` for issue, and `asset_reserve` for burning tokens. To issue tokens: ```JS let account = wait BitShares.login(<account>, <password>) async account.assetIssue(<toName>, <assetSymbol>, <amount>, <memo>)) ``` `memo` is not a required parameter. To burn tokens: ```JS let account = wait BitShares.login(<account>, <password>) async account.assetReserve(<assetSymbol>, <amount>) ``` # Plans for version 0.5.x - It has come to realize that there is very little functionality for adding more than one oeration to a single transaction. How to organize it right is yet to be decided. But I think it will be decided in the next version. - Also, the documentation would like to be made available for editing the community through a pullrequest. Create a separate repository - a bad solution. But the capabilities of the Github page may well come up. - Build packages to connect directly to the browser without compiling. - Some of the functionality of `btsdex` was very useful mainly in the repositories `bitsharesjs-ws` and `bitsharesjs`. One such proposal has already [been approved](https://github.com/bitshares/bitsharesjs-ws/pull/23). If you like what I am doing, put an star in [btsdex](https://github.com/scientistnik/btsdex)!!
author | scientistnik |
---|---|
permlink | btsdex-v-4-x |
category | utopian-io |
json_metadata | {"tags":["utopian-io","bitshares","blockchain"],"image":["https://cdn.steemitimages.com/DQmYf7vDJyxqn2Mic3iWh2XdWSqRf3xwCPsN2dZo7YW8373/BTSDEX.png"],"links":["https://github.com/technologiespro","https://github.com/bitshares/bitsharesjs-ws/pull/23","https://github.com/scientistnik/btsdex"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-09-09 13:04:09 |
last_update | 2018-09-09 13:04:09 |
depth | 0 |
children | 1 |
last_payout | 2018-09-16 13:04:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.556 HBD |
curator_payout_value | 0.129 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,197 |
author_reputation | 748,919,157,653 |
root_title | "BTSDEX v.4.x" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,786,673 |
net_rshares | 644,070,876,257 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
cm-steem | 0 | 565,560,543,175 | 100% | ||
johnsmith | 0 | 10,503,059,792 | 100% | ||
yuxi | 0 | 3,053,474,573 | 10% | ||
scientistnik | 0 | 992,909,865 | 100% | ||
henryjames | 0 | 6,010,248,309 | 100% | ||
tommysnello | 0 | 607,829,996 | 100% | ||
clockwork | 0 | 8,551,562,537 | 100% | ||
steemitag | 0 | 3,326,281,895 | 10% | ||
erikklok | 0 | 12,364,795,107 | 100% | ||
scottyg117 | 0 | 0 | 100% | ||
statsexpert | 0 | 1,369,982,894 | 20% | ||
finforum.net | 0 | 547,465,666 | 100% | ||
instaforex | 0 | 548,624,370 | 100% | ||
alina34 | 0 | 548,873,023 | 100% | ||
selakov.vadim | 0 | 549,558,695 | 100% | ||
natalinatali | 0 | 548,292,118 | 100% | ||
browan4ik | 0 | 547,271,089 | 100% | ||
baejz | 0 | 549,029,399 | 100% | ||
azimiro | 0 | 546,486,147 | 100% | ||
cookiees | 0 | 547,452,824 | 100% | ||
lanemva21 | 0 | 549,325,881 | 100% | ||
upperhonorable | 0 | 547,965,172 | 100% | ||
warnmembrane | 0 | 546,837,505 | 100% | ||
imperfectvital | 0 | 548,053,480 | 100% | ||
portionvolume | 0 | 547,427,698 | 100% | ||
fumespoons | 0 | 547,649,835 | 100% | ||
scudprocessor | 0 | 547,120,493 | 100% | ||
headerharem | 0 | 547,502,866 | 100% | ||
layersand | 0 | 547,996,741 | 100% | ||
wagglergranted | 0 | 546,686,128 | 100% | ||
honeycheek | 0 | 546,881,388 | 100% | ||
katjalirenko | 0 | 547,689,646 | 100% | ||
rakov23 | 0 | 547,979,154 | 100% | ||
piersbell | 0 | 547,131,595 | 100% | ||
odetta199 | 0 | 546,683,144 | 100% | ||
hozainnochi | 0 | 548,530,629 | 100% | ||
normapolice | 0 | 548,868,758 | 100% | ||
dancerant | 0 | 548,789,529 | 100% | ||
altitudetennis | 0 | 548,849,403 | 100% | ||
lowreject | 0 | 548,474,552 | 100% | ||
weakshare | 0 | 548,925,619 | 100% | ||
kindlytwist | 0 | 548,573,109 | 100% | ||
stewedmango | 0 | 547,516,556 | 100% | ||
shamefulhasty | 0 | 548,627,431 | 100% | ||
coalswhirl | 0 | 548,049,975 | 100% | ||
mereflag | 0 | 548,485,270 | 100% | ||
nideecstatic | 0 | 548,726,672 | 100% | ||
crystaleur | 0 | 548,775,033 | 100% | ||
riskhardtofind | 0 | 546,384,721 | 100% | ||
scalarquestion | 0 | 549,423,413 | 100% | ||
akudrin88 | 0 | 549,679,374 | 100% | ||
nbusurev | 0 | 548,788,859 | 100% | ||
vsmirnov3 | 0 | 546,766,018 | 100% | ||
mockingexposure | 0 | 549,414,827 | 100% | ||
bucksumpaypal | 0 | 549,290,867 | 100% | ||
benmopping | 0 | 549,290,867 | 100% | ||
affineclever | 0 | 547,330,839 | 100% | ||
nobeliumforce | 0 | 549,033,970 | 100% | ||
tuilleswine | 0 | 549,487,735 | 100% | ||
tillerthey | 0 | 549,288,106 | 100% | ||
nartemov198 | 0 | 549,290,867 | 100% | ||
sera1995 | 0 | 549,244,644 | 100% | ||
esherob | 0 | 549,244,644 | 100% | ||
gnyumen | 0 | 546,616,143 | 100% | ||
dzheymss | 0 | 546,579,925 | 100% | ||
taras.sergienko | 0 | 549,288,106 | 100% | ||
anester198 | 0 | 549,290,867 | 100% | ||
freef | 0 | 549,290,867 | 100% | ||
ashiknirob | 0 | 479,985,862 | 100% |
Congratulations @scientistnik! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : [](http://steemitboard.com/@scientistnik) Award for the number of upvotes received <sub>_Click on the badge to view your Board of Honor._</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07"><img src="https://steemitimages.com/64x128/http://i.cubeupload.com/7CiQEO.png"></a></td><td><a href="https://steemit.com/steemitboard/@steemitboard/steemitboard-witness-update-2018-09-07">SteemitBoard - Witness Update</a></td></tr><tr><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmawPYDAwfrQM8YU6ejD1f87g64cvsmEFn8RQKHJMs4zxg/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-steemitboard-support-the-travel-reimbursement-fund">SteemFest³ - SteemitBoard support the Travel Reimbursement Fund.</a></td></tr></table> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-scientistnik-20180909t231142000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-09-09 23:11:42 |
last_update | 2018-09-09 23:11:42 |
depth | 1 |
children | 0 |
last_payout | 2018-09-16 23:11:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,554 |
author_reputation | 38,975,615,169,260 |
root_title | "BTSDEX v.4.x" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 70,828,736 |
net_rshares | 0 |