stricter types in tradesPublisher

This commit is contained in:
wphan
2024-01-05 15:34:32 -08:00
parent da4f1557a6
commit 8b3e19bdf2

View File

@@ -19,6 +19,8 @@ import {
getVariant,
ZERO,
BN,
OrderActionRecord,
Event,
} from '@drift-labs/sdk';
import { logger, setLogLevel } from '../utils/logger';
@@ -130,7 +132,7 @@ const main = async () => {
event.eventType === 'OrderActionRecord' &&
JSON.stringify(event.action) === JSON.stringify(OrderAction.FILL)
),
map((fill) => {
map((fill: Event<OrderActionRecord>) => {
return {
ts: fill.ts.toNumber(),
marketIndex: fill.marketIndex,