Replies: 3 comments 7 replies
-
I like this proposal, and I can start compiling a list of current and desired apis for the explorer. When you say “a single base code for the Vochain explorer and the Vocdoni node”, you’re referring to the explorer backend only, yes? I think the explorer itself should be hosted separately for the node. I’d propose to create a new repo specifically for the explorer frontend. Possibly to start this could simply be a fork of the current explorer frontend with updated apis, and a simple server for hosting the html + wasm file. And in the mid-long term this could be refactored into react or flutter web, etc. |
Beta Was this translation helpful? Give feedback.
-
We can consider this done :) |
Beta Was this translation helpful? Give feedback.
-
Since vocdoni-node includes badgerhold kv database, the scrutinizer is being converted to a new component named indexer. This renaming is still pending, but the code is already been modified.
There is a new database (different from the blockchain state one) defined here that might be extended: https://github.com/vocdoni/vocdoni-node/blob/master/vochain/scrutinizer/db.go
New calls are already defined and many others might be defined as can be seen on this code snippet: https://github.com/vocdoni/vocdoni-node/blob/master/vochain/scrutinizer/process.go#L59
So the list of steps would be:
With this, we'll have a single basecode for the Vochain explorer and the Vocdoni node (so no more pain on the vocexplorer side when upgrading vocdoni-node module). And we will have a powerful API on the Gateway that will be consumed by the Explorer but it can also be used for third-party integrations.
Beta Was this translation helpful? Give feedback.
All reactions