Skip to content

Commit

Permalink
add bitFlags to order serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Feb 28, 2025
1 parent 773fce3 commit 910d15c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common-ts/src/serializableTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export class SerializableOrder implements Order {
@autoserializeAs(Number) auctionDuration: number;
@autoserializeUsing(EnumSerializeAndDeserializeFns) marketType: MarketType;
@autoserializeUsing(BNSerializeAndDeserializeFns) maxTs: BN;
@autoserializeAs(Number) bitFlags: number;
@autoserializeAs(Number) postedSlotTail: number;
}

Expand Down Expand Up @@ -2011,6 +2012,8 @@ export function transformDataApiOrderRecordToUISerializableOrderRecord(
marketType: deserializedV2Record.marketType,
maxTs: new BN(deserializedV2Record.maxTs),
// @ts-ignore
bitFlags: deserializedV2Record.bitFlags,
// @ts-ignore
postedSlotTail: deserializedV2Record.postedSlotTail,
},
};
Expand Down Expand Up @@ -2059,6 +2062,8 @@ export function transformDataApiOrderRecordToSerializableOrderRecord(
marketType: deserializedV2Record.marketType,
maxTs: new BN(deserializedV2Record.maxTs),
// @ts-ignore
bitFlags: deserializedV2Record.bitFlags,
// @ts-ignore
postedSlotTail: deserializedV2Record.postedSlotTail,
},
};
Expand Down

0 comments on commit 910d15c

Please sign in to comment.