To help users fully creating and running an off-chain Oracle with just couple config and 1 function implementation.
- Oracle's information :
- Title, Public key, Mnemonic, Node URL
- Endpoint : Name, Curve, broker, md (description about endpoint), query list ( query string accepted and response type)
- Oracle registered if none exists
- Endpoint created if Endpoint name in config has not been created
- Endpoint.json file will be created containing information about query list and endpoint, saved in ipfs and set as Endpoint's params on-chain
- Endpoint.md file will be created, saved in ipfs and set as Provider's params on-chain
- If Endpoint is already initiated, the step 2 will be ignored
- Config.ts : data about your wallet ,ethereum node and your provider's pubkey and title
- Oracle.ts : Template for Create/Manage flow
- Responder.ts : Stub callback function when receive query event and return result
- Configure Config.ts
- Implement function
getResponse
in Responder.ts - Run
npm start
to start create/get Oracle and start listening to queries
- Ensure you have enough ETH in your address for responding to queries