BTSDEX v0.5.0

@scientistnik · 2018-09-16 13:13 · utopian-io

BTSDEX.png This version is still in development, but I would like to talk about this and possibly get feedback.

Interactive mode

Added interactive mode to the package. Now when you install the package globally, it becomes available from the command line:

$ npm i -g btsdex
$ btsdex
> |

In fact, this is a conventional REPL-console with pre-defined variables: - BitShares, the main class of the package; - login, the equivalent of BitShares.login - generateKeys, a function for generating keys - accounts, the equivalent of BitShares.accounts - assets, the equivalent of BitShares.assets - db, the equivalent of BitShares.db - history, analogue of BitShares.hostory - network, the equivalent of BitShares.network - fees, the equivalent of BitShares.fees

For example:

$ btsdex
> fees
Fees {
  transfer: 0.1042,
  limit_order_create: 0.00578,
  limit_order_cancel: 0.00057,
  call_order_update: 0.00578,
  ...}
>

When you start btsdex, it tries to connect to the main network. If you want to connect to the testnet:

$ btsdex --testnet

Browserify

Added generation of files for inclusion in the browser through the tag