v4.0.0
This release upgrades to Demux v4.
New Features
- New
StateHistoryPostgresActionReader
that obtains block information from a Postgres database populated by EOSIO/fill-postgresql. - The
MongoActionReader
now utilizes the newsetup
method in Demux v4 to connect to the Mongo database, also also includes new validation that checks if the required collections exist. - New error classes have been created to replace generic inline
Error
instances, for better debugging and error handling capabilities.
Breaking Changes
- All Action Readers now follow the Demux v4 convention of using an options object. You will need to update all instantiations of your
NodeosActionReader
s andMongoActionReader
s to match the new signatures. - The
MongoActionReader#initialize
public method was removed, and its funcitonality was moved tosetup
(as described above). Additionally, it is no longer required that you call this method before callinggetBlock()
, asgetBlock()
will automatically call it if it hasn't been called before.
Block.one makes its contribution on a voluntary basis as a member of the EOSIO community and is not responsible for ensuring the overall performance of the software or any applications related thereto. We make no representation, warranty, guarantee or undertaking in respect of the releases described herein and the related GitHub release or the EOSIO software, whether expressed or implied, and disclaim all liability that may arise from any use of the software for any purpose.