Releases: Someguy123/hivefeed-js
v4.4.0
What's Changed
- Add more exchange sources by @techcoderx in #32
New Contributors
- @techcoderx made their first contribution in #32
Full Changelog: v4.3.3...v4.4.0
v4.3.3
v4.3.2
v4.3.1
v4.3.0 Testnet Support
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
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
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
More features and improvements - added run.sh and improved Dockerfile
-
Improved Dockerfile
-
Docker's
onbuild
images are seemingly deprecated. Now manually runningnpm install
and copying required files to the image. -
Updated from NodeJS version
8.11.4-onbuild
to12.16.1-alpine3.11
-
config.json
is now a volume inside the container, allowing it to be updated with a simplerestart
instead of rebuilding the container
-
-
Added
publishonce
feature, which causes the script to publish a feed update immediately, then exit. -
Added
repository
topackage.json
to silencenpm
errors. -
Created
run.sh
management script, which will make it much simpler to use the dockerizedsteemfeed-js
. Large portion of the run.sh code is based on https://github.com/Someguy123/steem-dockerrun.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 appropriatedocker run
flags. -
./run.sh publish
uses thepublishonce
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 ensuresnode_modules/
,.env
andconfig.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
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 usesconfig.base_symbol
andconfig.quote_symbol
instead of hardcodedSTEEM
/SBD
-
Refactored the hardcoded
steem
/usd
default exchange pair lookup into config optionsconfig.ex_symbol
andconfig.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 pricingex_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 toexchanges_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 containsBaseAdapter
- an example adapter with comment blocks explaining how you should layout a new exchange adapter. -
Added
has_pair
method to all exchange adapters, and addedhas_pair
check in allget_pair
methods. -
Added
code
attribute to all exchange adapters, a unique short string used as the "ID" for the adapter. -
Added
available_adapters
list tolib/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 :)