Skip to main content

Graphene blockchains management tools

Project description

BitShares delegate tools

The BTS Tools will help you build, run and monitor any Graphene-based client (currently BitShares, Steem, Muse, PeerPlays).

There are 2 tools currently provided:

  • command line utility allowing to quickly build and run any graphene-based client

  • web application allowing to monitor a running instance of the client and send an email or push notification on failure

If you like these tools, please vote for witness wackou on the Steem, BitShares and Muse networks. Thanks!

Documentation

The main documentation for the tools, as well as a tutorial, can be found on ReadTheDocs.

Command-line client

just run the bts script with the command you want to execute:

$ bts -h
usage: bts [-h] [-p PIDFILE] [-f]
           {version,clean_homedir,clean,build,build_gui,run,run_cli,run_gui,list,monitor,deploy,deploy_node}
           [environment] [args [args ...]]

following commands are available:
  - version                : show version of the tools
  - clean_homedir          : clean home directory. WARNING: this will delete your wallet!
  - save_blockchain_dir    : save a snapshot of the current state of the blockchain
  - restore_blockchain_dir : restore a snapshot of the current state of the blockchain
  - clean                  : clean build directory
  - build                  : update and build bts client
  - build_gui              : update and build bts gui client
  - run                    : run latest compiled bts client, or the one with the given hash or tag
  - run_cli                : run latest compiled bts cli wallet
  - run_gui                : run latest compiled bts gui client
  - list                   : list installed bts client binaries
  - monitor                : run the monitoring web app
  - deploy                 : deploy built binaries to a remote server
  - deploy_node            : full deploy of a seed or witness node on given ip address. Needs ssh root access

Examples:
  $ bts build                 # build the latest bts client by default
  $ bts build v0.4.27         # build specific version
  $ bts build ppy-dev v0.1.8  # build a specific client/version
  $ bts run                   # run the latest compiled client by default
  $ bts run seed-test         # clients are defined in the config.yaml file

  $ bts build_gui   # FIXME: broken...
  $ bts run_gui     # FIXME: broken...



positional arguments:
  {version,clean_homedir,clean,build,build_gui,run,run_cli,run_gui,list,monitor,deploy,deploy_node}
                        the command to run
  environment           the build/run environment (bts, steem, ...)
  args                  additional arguments to be passed to the given command

optional arguments:
  -h, --help            show this help message and exit
  -p PIDFILE, --pidfile PIDFILE
                        filename in which to write PID of child process
  -f, --forward-signals
                        forward unix signals to spawned witness client child process

You should also look into ~/.bts_tools/config.yaml to tune it to your liking.

Monitoring web app

To run the debug/development monitoring web app, just do the following:

$ bts monitor

and it will launch on localhost:5000.

For production deployments, it is recommended to put it behind a WSGI server, in which case the entry point is bts_tools.wsgi:application.

Do not forget to edit the ~/.bts_tools/config.yaml file to configure it to suit your needs.

Screenshots

You can see a live instance of the bts tools monitoring the state of the seed nodes I am making available for the BitShares, Muse and Steem networks here: http://seed.steemnodes.com

History

0.5.3 (2017-12-09)

  • [bts] fixed feed publishing for bit20

  • [bts] enable feed publishing for all markets by default, no more black-swanned markets

0.5.2 (2017-12-04)

  • [bts] added Uphold and Binance feed providers

  • refactored feed providers plugin system to be more easily extended

0.5.1 (2017-11-20)

  • fixed issue when no BitcoinAverage credentials are provided

  • fixed issue with feeds being published every time they are checked

0.5.0 (2017-11-19)

  • API CHANGE: config.yaml has changed substantially and previous versions will NOT work

    documentation is at: https://bts-tools.readthedocs.io/en/latest/config_yaml.html

  • finalized port to generic graphene code, full support for the following chains: bts, bts-testnet, steem, ppy, ppy-testnet, muse

  • general code improvements and optimizations, documentation update

  • [bts] added Fixer, CurrencyLayer, Quandl, AEX, ZB, Livecoin as feed providers

0.4.14 (2017-05-29)

  • [ppy] new default p2p port for PeerPlays

0.4.13 (2017-05-29)

  • [ppy] added preliminary support for PeerPlays testnet

0.4.12 (2017-05-10)

  • [bts] publish feed price for HERO asset

0.4.11 (2017-05-01)

  • [bts] when no BTS/CNY markets are available, go BTS/BTC and BTC/CNY to get a feed price for CNY

  • [bts] fixed seemingly random market parameters when published

0.4.10 (2017-04-25)

  • [bts] refactored how feeds that need published are specified. New fields in config.yaml:

    “enabled_assets” and “disabled_assets” allow to specify non-standard assets

  • [bts] added feed publishing for RUBLE (needs to be enabled explicitly)

0.4.9 (2017-03-22)

  • [bts] updated location of BitShares git repository

  • [bts] fix bug in bit20 market parameters not being fetched after new composition has been published

  • [bts] do not try to publish CASH.BTC feed price anymore (black swan)

0.4.8 (2017-02-04)

  • [bts] fix bug in bit20 feed publishing with non-default market parameters

0.4.7 (2017-01-29)

  • [bts] read market parameters for bit20 feed from the blockchain

0.4.6 (2017-01-07)

  • [bts] fetch correct silver price from Yahoo

0.4.5 (2017-01-02)

  • [bts] fetch correct gold price from Yahoo

0.4.4 (2016-12-30)

  • [all] added Telegram notification plugin

  • [all] better subprocess management

  • [bts] properly authenticate bit20 feed publication on the blockchain

0.4.3 (2016-10-30)

  • [steem] new config var ‘steem_dollar_adjustment’ to help maintain SD stability,

    price is published so that bias shows properly on steemd.com

  • [steem] added Poloniex feed price provider for Steem

  • [bts] new asset feeds: BTWTY, GRIDCOIN (currently disabled due to black swan)

  • [bts] fixed precision bug when publishing feed price for expensive assets (eg: BTWTY, GOLD, …)

  • [all] updated seed nodes list, faster page rendering (cache seed nodes status)

  • [all] general cleanup fixes, deploy script WIP

0.4.2 (2016-08-09)

  • [all] pre-release of “bts deploy_node” command: complete setup of a

    fresh VPS node, with bts/muse/steem client, nginx/uwsgi, supervisor, etc.

  • [all] added view for seed nodes of BTS, MUSE and STEEM networks

  • [all] added world map view of connected peers and seed nodes along with

    country detection (requires geoip2 account)

  • [bts] added ARS (Argentine peso) market pegged asset

  • [bts] reactivated GOLD and SILVER (Yahoo issue only temporary)

  • [bts] removed Yunbi and CCEDK as feed providers for BTS/BTC

  • [all] internal cleanups and refactoring, innumerable minor bug fixes

0.4.1 (2016-06-30)

  • deactivated GOLD and SILVER feed publishing (issue with Yahoo)

0.4 (2016-05-01)

  • API CHANGE: complete rework of the configuration system, please delete your old config.yaml file if you have any

  • added full support for Steem, including feed publishing

  • added feed publishing for BTS assets: TUSD, CASH.USD, CASH.BTC, ALTCAP

  • added monitoring plugin that checks on the amount of free disk space

  • fixed missed block notification for Graphene clients

  • logs are now also present as rotating logfiles in the ~/.bts_tools folder

0.3.4 (2015-12-21)

0.3.3 (2015-12-10)

  • NOTE: requires the latest version (v2.0.151209) of the BitShares witness client

  • better integration with the websocket event loop

  • network views available again

  • overall lots of minor fixes and general stability improvements

0.3.2 (2015-12-06)

  • interim release that fixes feed for CNY markets

0.3.1 (2015-11-01)

  • support for Muse clients

  • better feeds script. Process is now the following: - get the BTS/BTC valuation from Poloniex, CCEDK, Bter, Btc38 (configurable) - get the BTC/USD valuation from BitcoinAverage, with fallback on Bitfinex and Bitstamp - get the BTS valuation in other fiat currencies using Yahoo forex rates - get market indices using Yahoo, Google, Bloomberg (configurable)

  • can specify ‘boost_root’ option in build environment in config.yaml

  • minor bugfixes everywhere

0.3 (2015-10-27)

  • first release with support for BitShares 2 clients (and graphene-based in general) use: bts2 build, bts2 run, bts2 run_cli, bts2 monitor, etc…

  • a lot of functionality still missing… Here be dragons!!

0.2.11 (2015-09-26)

  • fix issue with BitShares 0.9.3 client

  • build environments can now specify the “debug” flag to produce debug builds

  • extremely preliminary support for graphene clients, only for the brave

0.2.10 (2015-09-03)

  • added support for managing backbone nodes

  • new view in menu “network > backbone status” that shows the configured backbone nodes and whether we are connected to them or not

  • added monitoring plugins: - ‘voted_in’: monitors when a delegate is voted in or out - ‘wallet_state’: monitors when a wallet is opened/closed and locked/unlocked - ‘fork’: tries to detect when the client is being on a fork and/or out-of-sync

  • simplified config yaml file: there are now wildcards monitoring plugins you can use for most common tasks:

    • for delegate:

      • ‘delegate’: used to monitor an active delegate. This will activate the ‘missed’, ‘network_connections’, ‘voted_in’, ‘wallet_state’, ‘fork’, ‘version’ and ‘feeds’ monitoring plugins

      • ‘watcher_delegate’: used to monitor a watcher delegate, i.e. without publishing any info (version, feeds) to the blockchain. This will activate the ‘missed’, ‘network_connections’, ‘voted_in’, ‘wallet_state’ and ‘fork’ monitoring plugins

    • for seed nodes and delegate nodes, you don’t have to specify required command-line args or monitoring plugins any longer, it is added automatically in function of the node type

  • added “bts deploy” command to copy built binary to specified ssh host(s)

0.2.9 (2015-06-19)

  • feeds for composite indices are now priced in BTS

  • active feed providers can be configured in the config.yaml file

0.2.8 (2015-06-10)

  • more robust feed monitoring

0.2.7 (2015-06-09)

  • feeds for market indices are now fetched from Yahoo, Google and Bloomberg

  • added Poloniex feed provider for BTS/BTC

  • fixed monitoring of DACPLAY instances on linux

0.2.6 (2015-06-05)

  • workaround for 0.2.5 not being installable from pypi

0.2.5 (2015-06-05)

  • added feed for SHANGHAI market-pegged asset

0.2.4 (2015-06-03)

  • added feed for NASDAQC, NIKKEI, HANGSENG market-pegged assets

  • list of visible feeds can be configured in config.yaml file

0.2.3 (2015-06-02)

  • added feed for SHENZHEN market-pegged asset

  • fixed payroll plugin (contributed by @ThomasFreedman)

0.2.2 (2015-05-04)

  • fixed slate publishing for BTS >= 0.9.0

0.2.1 (2015-04-22)

  • fixed feeds publishing for BTS >= 0.9.0

0.2 (2015-04-14)

  • now requires python3.4

  • API CHANGE: format of the config.yaml file has changed, and you will need to update it. Run “bts list” and it should tell you what to fix in your config file. For more details, see: http://bts-tools.readthedocs.io/en/latest/config_format.html#nodes-list

  • added support for building DVS and BTS client >= 0.9.0

  • added support for building PLAY client (pls)

  • internal refactoring and modularization of the monitoring plugins

0.1.10 (2015-03-23)

  • modularized monitoring to make it easier to write monitoring plugins

  • more robust feed checking

  • added payroll distribution system, contributed by user Thom

  • general fixes and enhancements

0.1.9 (2015-02-19)

  • allow to pass additional args to “bts run”, eg: “bts run –rebuild-index”

  • fixed feeds due to bter being down

  • completed (for now) documentation and tutorial

  • tools display their version in footer of web pages, or using “bts version”

0.1.8 (2015-02-11)

  • fixed minor quirks and annoyances

  • enhanced documentation and tutorial

0.1.7 (2015-02-05)

  • fixed bugs

  • more documentation

0.1.6 (2015-01-26)

  • started writing reference doc and tutorial

  • full support for DevShares

  • fixed issue with new naming of tags (bts/X.X.X and dvs/X.X.X)

  • include slate for btstools.digitalgaia as an example slate

  • send notifications grouped by clients (for multiple delegates in same wallet)

  • fixed tools for new API in 0.6.0 (blockchain_get_delegate_slot_records)

0.1.5 (2015-01-06)

  • smarter caching of some RPC calls (improves CPU usage of the client a lot!)

  • automatically publish version of the client if not up-to-date

  • added pts command-line tool that defaults to building/running PTS binaries

  • new publish_slate command for the command-line tool

  • bugfixes / small enhancements

0.1.4 (2014-12-21)

  • now publishes feeds for BitBTC, BitGold, BitSilver + all fiat BitAssets

  • full support for building and monitoring PTS-DPOS clients

  • preliminary support for building Sparkle clients

  • the usual bugfixes

0.1.3 (2014-11-16)

  • renamed project from bitshares_delegate_tools to bts_tools

  • some fixes, up-to-date as of release date (bts: 0.4.24)

0.1.2 (2014-11-09)

  • updated for building following rebranding BitSharesX -> BitShares (0.4.24 and above)

0.1.1 (2014-11-03)

  • added view for connected peers and potential peers

0.1 (2014-10-28)

  • first public release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bts_tools-0.5.3.tar.gz (523.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page