From 6ff7e933e41f3cb6bc0f1d7928e7fb6f77114435 Mon Sep 17 00:00:00 2001 From: Ryan Soury Date: Thu, 29 Aug 2024 22:00:32 +1000 Subject: [PATCH] added some TODO items --- orchestrator/src/indexer/rooch.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/orchestrator/src/indexer/rooch.ts b/orchestrator/src/indexer/rooch.ts index 295b7af..9e26a7a 100644 --- a/orchestrator/src/indexer/rooch.ts +++ b/orchestrator/src/indexer/rooch.ts @@ -117,6 +117,7 @@ export default class RoochIndexer { try { let request: AxiosResponse; if (isValidJson(data.params.value.headers)) { + // TODO: Replace direct requests via axios with requests via VerityClient TS module request = await axios({ method: data.params.value.method, data: data.params.value.body, @@ -192,11 +193,9 @@ export default class RoochIndexer { const data = await this.processRequestAddedEvent(event.decoded_event_data.value); if (data) { try { - const temp = await this.sendFulfillment( - event.decoded_event_data.value, - data.status, - JSON.stringify(data.message), - ); + await this.sendFulfillment(event.decoded_event_data.value, data.status, JSON.stringify(data.message)); + // TODO: Use the notify parameter to send transaction to the contract and function to marked in the request event + await prismaClient.events.create({ data: { eventHandleId: event.event_id.event_handle_id,