Skip to content

Commit

Permalink
Add debug log to show that all the required events get inside the ind…
Browse files Browse the repository at this point in the history
…exer
  • Loading branch information
JasoonS committed Jun 9, 2024
1 parent d559e72 commit 47c0f8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OrderBookHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ OrderBookContract.OrderChangeEvent.loader(({ event, context }) => {
});

OrderBookContract.OrderChangeEvent.handler(({ event, context }) => {
if ("0x97ff915f6783fdba0ed03d8dc0b60f90186c08646ebbe0cd1e25863ee700478d" == event.data.order_id.toLowerCase()) {
context.log.error(`OrderChangeEvent with id: ${event.data.order_id}`);
}

const eventOrder = event.data.order;
const timestamp = tai64ToDate(event.data.timestamp);
const order: spotOrderEntity | null = eventOrder
Expand Down

0 comments on commit 47c0f8b

Please sign in to comment.