Skip to content

Commit

Permalink
Fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
hwray committed Nov 22, 2024
1 parent 4d02a9e commit 038d3ff
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ export async function expectNoOrdersExistForSubaccountClobPairId({
clobPairId: string,
}): Promise<void> {
const ordersFromDatabase: OrderFromDatabase[] = await
OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId);
OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId);
expect(ordersFromDatabase).toHaveLength(0);
}

Expand Down Expand Up @@ -637,7 +637,7 @@ export async function expectOrderInDatabase({
}): Promise<void> {
const orderId: string = OrderTable.uuid(subaccountId, clientId, clobPairId, orderFlags);
const orderFromDatabase: OrderFromDatabase | undefined = await
OrderTable.findById(orderId);
OrderTable.findById(orderId);

expect(orderFromDatabase).not.toEqual(undefined);
expect(orderFromDatabase).toEqual(expect.objectContaining({
Expand Down Expand Up @@ -675,12 +675,12 @@ export async function expectFillSubaccountKafkaMessageFromLiquidationEvent(
fill,
position,
]: [
FillFromDatabase | undefined,
PerpetualPositionFromDatabase | undefined,
] = await Promise.all([
FillTable.findById(fillId),
PerpetualPositionTable.findById(positionId),
]);
FillFromDatabase | undefined,
PerpetualPositionFromDatabase | undefined,
] = await Promise.all([
FillTable.findById(fillId),
PerpetualPositionTable.findById(positionId),
]);
expect(fill).toBeDefined();
expect(position).toBeDefined();

Expand Down Expand Up @@ -790,14 +790,14 @@ export async function expectOrderFillAndPositionSubaccountKafkaMessageFromIds(
fill,
position,
]: [
OrderFromDatabase | undefined,
FillFromDatabase | undefined,
PerpetualPositionFromDatabase | undefined,
] = await Promise.all([
OrderTable.findById(orderId),
FillTable.findById(fillId),
PerpetualPositionTable.findById(positionId),
]);
OrderFromDatabase | undefined,
FillFromDatabase | undefined,
PerpetualPositionFromDatabase | undefined,
] = await Promise.all([
OrderTable.findById(orderId),
FillTable.findById(fillId),
PerpetualPositionTable.findById(positionId),
]);

const perpetualMarket: PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable
.findById(
Expand Down Expand Up @@ -896,9 +896,9 @@ export async function expectPerpetualPosition(
},
) {
const perpetualPosition:
PerpetualPositionFromDatabase | undefined = await PerpetualPositionTable.findById(
perpetualPositionId,
);
PerpetualPositionFromDatabase | undefined = await PerpetualPositionTable.findById(
perpetualPositionId,
);

expect(perpetualPosition).toBeDefined();

Expand Down Expand Up @@ -971,7 +971,7 @@ export function expectPerpetualMarketV2(
}));
}

function eventPerpetualMarketTypeToIndexerPerpetualMarketType(
export function eventPerpetualMarketTypeToIndexerPerpetualMarketType(
perpetualMarketType: PerpetualMarketType,
): string {
switch (perpetualMarketType) {
Expand Down

0 comments on commit 038d3ff

Please sign in to comment.