diff --git a/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts b/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts index f11b872721..79b065a428 100644 --- a/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts +++ b/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts @@ -116,9 +116,9 @@ describe('update-perpetual-handler', () => { await onMessage(kafkaMessage); const perpetualMarket: - PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable.findById( - event.id.toString(), - ); + PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable.findById( + event.id.toString(), + ); // TODO new fields expect(perpetualMarket).toEqual(expect.objectContaining({ id: event.id.toString(), diff --git a/indexer/services/ender/__tests__/helpers/constants.ts b/indexer/services/ender/__tests__/helpers/constants.ts index 72a4712ccf..c871f589ba 100644 --- a/indexer/services/ender/__tests__/helpers/constants.ts +++ b/indexer/services/ender/__tests__/helpers/constants.ts @@ -407,7 +407,7 @@ export const defaultTradeMessage: SingleTradeMessage = contentToSingleTradeMessa testConstants.defaultPerpetualMarket.clobPairId, ); export const defaultTradeKafkaEvent: - ConsolidatedKafkaEvent = createConsolidatedKafkaEventFromTrade(defaultTradeMessage); +ConsolidatedKafkaEvent = createConsolidatedKafkaEventFromTrade(defaultTradeMessage); export const defaultStatefulOrderPlacementEvent: StatefulOrderEventV1 = { orderPlace: { diff --git a/indexer/services/ender/src/lib/block-processor.ts b/indexer/services/ender/src/lib/block-processor.ts index f7a784abb7..f00a5cd061 100644 --- a/indexer/services/ender/src/lib/block-processor.ts +++ b/indexer/services/ender/src/lib/block-processor.ts @@ -147,10 +147,10 @@ export class BlockProcessor { const event: IndexerTendermintEvent = this.block.events[i]; const transactionIndex: number = indexerTendermintEventToTransactionIndex(event); const eventProtoWithType: - EventProtoWithTypeAndVersion | undefined = indexerTendermintEventToEventProtoWithType( - i, - event, - ); + EventProtoWithTypeAndVersion | undefined = indexerTendermintEventToEventProtoWithType( + i, + event, + ); if (eventProtoWithType === undefined) { continue; } @@ -193,12 +193,12 @@ export class BlockProcessor { validatorMap: Record, ): void { const Initializer: - ValidatorInitializer | undefined = validatorMap[ + ValidatorInitializer | undefined = validatorMap[ serializeSubtypeAndVersion( eventProto.type, eventProto.version, ) - ]; + ]; if (Initializer === undefined) { const message: string = `cannot process subtype ${eventProto.type} and version ${eventProto.version}`; diff --git a/indexer/services/ender/src/lib/types.ts b/indexer/services/ender/src/lib/types.ts index 7c3a737d3b..8bb0a01e26 100644 --- a/indexer/services/ender/src/lib/types.ts +++ b/indexer/services/ender/src/lib/types.ts @@ -234,7 +234,7 @@ export type FundingEventMessage = { export type SumFields = PerpetualPositionColumns.sumOpen | PerpetualPositionColumns.sumClose; export type PriceFields = PerpetualPositionColumns.entryPrice | - PerpetualPositionColumns.exitPrice; +PerpetualPositionColumns.exitPrice; export type OrderFillEventWithLiquidity = { event: OrderFillEventV1, diff --git a/proto/dydxprotocol/indexer/events/events.proto b/proto/dydxprotocol/indexer/events/events.proto index b59fd01089..3568673e7d 100644 --- a/proto/dydxprotocol/indexer/events/events.proto +++ b/proto/dydxprotocol/indexer/events/events.proto @@ -487,7 +487,7 @@ message UpdateClobPairEventV1 { // UpdatePerpetualEventV1 message contains all the information about an update // to a perpetual on the dYdX chain. // Deprecated. See UpdatePerpetualEventV2 for the most up to date message -// for the event to update a perpetual. +// for the event to update a perpetual. message UpdatePerpetualEventV1 { option deprecated = true; // Unique Perpetual id.