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
oronTransaction
oronMessage
- pass them into our Range.init() function
- define the necessary caller 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)