Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.03 KB

dev.md

File metadata and controls

20 lines (16 loc) · 1.03 KB

Discussion

Plan

We want third parties to run their custom alert rules using our sdk. We are also going to use the sdk for writing our own runners. At some point in time, we are gonna make range-sdk and our alert processors public.

Here is the flow for a third party user:

  • Signup for the sdk and get your unique range-sdk-code
  • Write the code for your worker in TS similar to our template:
    • define the necessary caller function: onBlock or onTransaction or onMessage
    • pass them into our Range.init() function
  • After running the init() function, the worker will listen for incoming block tasks from kafka topics
  • Once a block is received, the worker will process it
  • Any generated events will be sent back to a rabbitmq queue
  • From range-team side:
    • provide wrapped kafka access to authorized users
    • provide wrapped endpoint access to authorized users
    • provide endpoint for accessing certain blocks
    • process generated errors or events(storing them in appdb and sending notifications to defined destinations)