Skip to content

Releases: Someguy123/hivefeed-js

v4.4.0

23 Jan 01:20
3b26760
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.3.3...v4.4.0

v4.3.3

20 Oct 23:31
Compare
Choose a tag to compare

Updates hive-js to 2.0.5 to support Node18. Changes dockerfile to node18.

v4.3.2

11 Sep 18:33
Compare
Choose a tag to compare

Implements #22

v4.3.1

01 Jun 22:20
c6c20a6
Compare
Choose a tag to compare

Fixes address prefix for mainnet misspelling.

v4.3.0 Testnet Support

27 May 23:20
ee6ef33
Compare
Choose a tag to compare

Support's hive's long term testnet as well as adding chain_id and address_prefix to config which lets user specify other chain ids and prefixes if they choose.

v4.2.0 Signing Key Support

01 May 16:24
8d979ce
Compare
Choose a tag to compare

Signing key support has been added. To use it, just add:

"signing_keys" : {
    "Public Signing Key" : "Private Signing Key"
    }

to your config file. This can be used in place of your active key or alongside it. Signing key will be attempted to used first, and if none of the provided keys work, it will resort to the active key. Multiple keys can be provided or just a single key.

v4.1.0 Alternate Nodes

09 Nov 07:09
8810d08
Compare
Choose a tag to compare

Allows user to specify more nodes, and if theres a problem with the one that they provided, it will switch to one of the alternate provided nodes.

Nodes are specified in config under alternate_nodes, with usage being as follows:
"alternate_nodes" : ["https://api.deathwing.me", "https://api.hive.blog"],

The default provided alternate nodes are deathwing's(https://api.deathwing.me) and hive.blog's(https://api.hive.blog). If user doesn't specify the alternate_nodes, it will use those as alternate. Node will switch on error with get_account or error on posting.

v4.0.1

21 Oct 15:22
754cb42
Compare
Choose a tag to compare

Just fixed a minor bug in logging.

More features and improvements - added run.sh and improved Dockerfile

22 Mar 05:13
Compare
Choose a tag to compare
  • Improved Dockerfile

    • Docker's onbuild images are seemingly deprecated. Now manually running npm install and copying required files to the image.

    • Updated from NodeJS version 8.11.4-onbuild to 12.16.1-alpine3.11

    • config.json is now a volume inside the container, allowing it to be updated with a simple restart instead of rebuilding the container

  • Added publishonce feature, which causes the script to publish a feed update immediately, then exit.

  • Added repository to package.json to silence npm errors.

  • Created run.sh management script, which will make it much simpler to use the dockerized steemfeed-js. Large portion of the run.sh code is based on https://github.com/Someguy123/steem-docker run.sh

  • Easy install docker with ./run.sh install_docker

    • ./run.sh start intelligently builds the docker image if it doesn't already exist, then creates and runs the container with the appropriate docker run flags.

    • ./run.sh publish uses the publishonce steemfeed-js feature, combined with a docker container which is auto-removed after it finishes - no mess to cleanup :)

    • Various other features (see README.md and ./run.sh help)

  • Added a .dockerignore file, which ensures node_modules/, .env and config.json never get sent to Docker's context. Speeding up the build, and preventing active keys etc. being stored inside of an image.

  • Updated README with new run.sh instructions for managing dockerized steemfeed

Major updates - Hive Support + flexible exchange configuration

22 Mar 03:15
Compare
Choose a tag to compare

Not everything is listed below, since there has been a lot of refactoring to make steemfeed-js more flexible,
and there has also been lots of small changes such as cleaning up syntax to make lines more readable.

Overall, this is a major update to steemfeed-js, making the system more flexible, potentially usable across forks of Steem, and cleaner code making it easier to understand and develop steemfeed-js.

New Exchange Adapter

  • Added IonomyAdapter.js, allowing price feeds to include prices from ionomy.com

Various Improvements

  • Refactored handling of config defaults and parsing CLI options into lib/settings.py

  • publish_feed now uses config.base_symbol and config.quote_symbol instead of hardcoded STEEM / SBD

  • Refactored the hardcoded steem / usd default exchange pair lookup into config options config.ex_symbol and config.ex_compare

  • Tons of refactoring to lib/exchange.js to improve the adapter initialisation process.

New Additions

  • New config options

    • ex_symbol - The symbol we're obtaining the price of. Default: steem

    • ex_compare - The symbol we're pricing ex_symbol with (i.e. the other half of the exchange pair). Default: usd

    • base_symbol - The symbol used for the "base": "0.512 SBD" part of the feed. Default: SBD

    • quote_symbol - The symbol used for the "quote": "1.000 STEEM" part of the feed. Default: STEEM

    • disable_exchanges which allows the user to disable one or more exchanges if they're down, or returning bad data.

    • exchanges_no_provide - allowing the user to disable individual coin pairs from being used, per each exchange.

    • exchanges_provide - works similarly to exchanges_no_provide, except it allows new coin pairs to be added to existing exchanges, instead of removing them.

    • network - allows Steemfeed-JS to work with forks, such as Hive

  • Created lib/adapters/base.js, which contains BaseAdapter - an example adapter with comment blocks explaining how you should layout a new exchange adapter.

  • Added has_pair method to all exchange adapters, and added has_pair check in all get_pair methods.

  • Added code attribute to all exchange adapters, a unique short string used as the "ID" for the adapter.

  • Added available_adapters list to lib/exchange.js, allowing adapters to be programatically enabled/disabled etc.

Using Steemfeed-JS with Hive?

Open up your config.json and remove any existing Steem "node" config line. (or change it to https://anyx.io)

Add the config line "network": "hive"

Stop, re-build, and start steemfeed-js, and you'll be broadcasting a Hive feed :)