RSS3-Network / Node

In the vast RSS3 Network, the RSS3 Node delivers Open Information with efficiency, it is a steadfast cruiser in the byte-filled sea.
MIT License
22 stars 3 forks source link

Simplify worker development logic #337

Open HenryQW opened 2 months ago

HenryQW commented 2 months ago

What feature is it?

Greatly simplify the development process for adding a new worker.

What problem does this feature solve?

Currently, adding a new worker may require thousands of lines of code, which is not great for attracting developers. We may need to restructure the relevant logic to reduce the amount of work required to add a new worker. Some possible ways:

  1. a CLI (TUI https://github.com/charmbracelet/bubbletea) to scaffold everything necessary for a worker, from folder directory to abigen, funcs to be implemented etc.
  2. decouple as much as logic possible from the current engine.Worker interface.

Additional description

No response

This is not a duplicated feature request or new worker proposal