Skip to content

Latest commit

 

History

History

indexer-processor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Astro Indexer Processor App

Astro Indexer Processor App is responsible for synchronization real time data from DAO Contracts with the Database. Service depends on Astro Lake Framework.

Sync Algorithm

DAO Updates Sync

  1. Receive receipt from Astro Lake Framework Redis stream.
  2. For each receipt call Transaction Handler to update service Database depending on method name and arguments (If needed sync required data with Near RPC).
  3. If receipt handling failed, store it in the Database and move to next one.

Resolving failed receipts

After starting microservice runs failed receipts resolving:

  1. Get list of failed receipts.
  2. For each receipt call Transaction Handler to update service Database depending on method name and arguments (If needed sync required data with Near RPC).
  3. Mark failed receipts as resolved.

Contracts Sync Flow (includes Indexer Processor App)

Sputnik V2 Aggregation;