[x] Move all the common state-indexer logic and modules to the new library
[x] Convert state-indexer to use the logic-state-indexer
[x] Convert near-state-indexer to use the logic-state-indexer
Notes
During the implementation I had to make quite significant changes to both logic or workspace members.
After quick chat with @kobayurii we decided to adopt the necessary function from the epoch-indexer crate and delete the crate from the code-base.
While I was trying to make handle_streamer_message more universal for both of the state-indexers, I had to introduce few traits into configuration for state-indexer related structures
Instead of adding a bunch of complexity into the original handle_streamer_message I have converted the optimistic_stream into more universal function that can be reused for either optimistic of final blocks
The next step will be to resolve the conflicts with the database-new and merge my changes with @kobayurii 's
logic-state-indexer
library cratestate-indexer
to use thelogic-state-indexer
near-state-indexer
to use thelogic-state-indexer
Notes
During the implementation I had to make quite significant changes to both logic or workspace members.
epoch-indexer
crate and delete the crate from the code-base.handle_streamer_message
more universal for both of the state-indexers, I had to introduce few traits intoconfiguration
for state-indexer related structureshandle_streamer_message
I have converted theoptimistic_stream
into more universal function that can be reused for either optimistic of final blocksThe next step will be to resolve the conflicts with the
database-new
and merge my changes with @kobayurii 's