Plug & Play V2 is now live and using the new PostgreSQL-heavy setup. Since the last update, I've worked on Version 2 of Plug & Play, running multiple tests to ensure stability. The code is pushed to the master branch of the repo.
I'm still ironing out a few issues with Version 2 of Global Notification System (GNS). I will post an update on it soon.
block_numdefs.json for your plugThe Plug & Play repository is now hosted here: https://github.com/FreeBeings-io/haf-plug-play.
I have also deployed a new Podping Plug & Play server.
https://podping.hpp.freebeings.io
Notice the new domain. The domain is for the new umbrella organization I mentioned early this year. More information about the organization and the projects we have planned for Hive will be posted in the near future. I’m in the process of moving all Hive projects to this organization.
With the new Podping deployment, I implemented:
iri instead URLiri and time_since_last_update to the /history/latest/ endpointid, reason, and medium fields to responseEach plug now has a set of functions dedicated to:
The system status endpoint /api now returns:
latest_block_num processed by each plugGOOD | BAD for sync (essential for setting up monitoring and downtime notifications)The README has been updated with:
production and development environmentsFor those who want to create their own plugs to retrieve data from HAF and process it, I wrote some extra documentation with more information.
plug-definitions.md: how to write a valid defs.json for a plug, if you are creating your own plug.
plug-schema.md: how to design your plug's tables and views schema
I'm working on more documentation on how to write valid functions to allow your plug to sync and trigger table updates.
Status: Local testing
I am adding docker support, to make deployment easier. With this, developers can deploy instances of Plug & Play that are either connected to a local HAF database or a remote one. They will also be able to configure how they want to use Plug & Play i.e. which plugs to enable.
Status: Local testing
I am working on "zero-coding" plugs that developers can use to extract specific types of operations from HAF, by simply configuring a plug for the operation type, providing a filter for which operations to save.
An example use-case to extract all HIVE/HBD transfers ever made to the account @imwatsi:
- Choose the transfer_operation zero plug and enable it
- Use filter: {“to”: “imwatsi”}
With the docker support, this can be as easy as running a single docker command.
I successfully created a Plug that parses and stores one action and provides access via an endpoint. The aim was to succeed in this one action and see if the method I used to design the plug scales, before implementing the rest of the actions.
Going forward, I’ll be writing code to:
Thanks for reading. Feel free to leave feedback.
To support my witness node:
Witness name: imwatsi