Skip to content

Commit

Permalink
Merge pull request #34 from drift-labs/master
Browse files Browse the repository at this point in the history
push
  • Loading branch information
NourAlharithi authored Feb 17, 2025
2 parents 5b6d214 + 679b25b commit 8ff2cb4
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 76 deletions.
2 changes: 1 addition & 1 deletion drift-common
Submodule drift-common updated 64 files
+2 −1 .github/workflows/deploy-on-sdk-update.yml
+ common-ts/bun.lockb
+1 −1 common-ts/package.json
+12 −6 common-ts/src/EnvironmentConstants.ts
+6 −0 common-ts/src/clients/redisClient.ts
+120 −43 common-ts/src/common-ui-utils/commonUiUtils.ts
+8 −1 common-ts/src/common-ui-utils/order.ts
+39 −4 common-ts/src/common-ui-utils/user.ts
+3 −0 common-ts/src/constants/misc.ts
+21 −0 common-ts/src/constants/orders.ts
+1 −0 common-ts/src/index.ts
+522 −181 common-ts/src/serializableTypes.ts
+12 −1 common-ts/src/types/index.ts
+14 −5 common-ts/src/utils/index.ts
+88 −0 common-ts/src/utils/orderbook/index.ts
+6 −3 common-ts/src/utils/s3Buckets.ts
+2 −2 common-ts/tests/utils/enumUtils.test.ts
+192 −20 common-ts/tests/utils/orders.test.ts
+23 −0 common-ts/tests/utils/stringUtils.test.ts
+140 −124 common-ts/yarn.lock
+ icons/bun.lockb
+2 −2 icons/package.json
+34 −0 icons/src/icons/components/Gas.tsx
+1 −0 icons/src/icons/index.ts
+595 −597 icons/yarn.lock
+1 −1 protocol
+ react/bun.lockb
+60 −49 react/package.json
+54 −0 react/src/components/Charts/ActiveDot.tsx
+1 −0 react/src/components/Charts/index.ts
+18 −0 react/src/components/Loaders/InlineLoadingBar.tsx
+22 −0 react/src/components/Loaders/ProgressBarThreeColor.tsx
+2 −0 react/src/components/Loaders/index.ts
+8 −0 react/src/components/Loaders/inlineLoading.css
+35 −0 react/src/components/Tables/BodyCell.tsx
+53 −0 react/src/components/Tables/BodyCellWrapper.tsx
+36 −0 react/src/components/Tables/BodyRow.tsx
+14 −0 react/src/components/Tables/BodyRowWrapper.tsx
+17 −0 react/src/components/Tables/HeaderCell.tsx
+24 −0 react/src/components/Tables/HeaderCellWrapper.tsx
+34 −0 react/src/components/Tables/HeaderRow.tsx
+25 −0 react/src/components/Tables/SummaryRow.tsx
+48 −0 react/src/components/Tables/TableCellCardValue.tsx
+51 −0 react/src/components/Tables/TableRowWrapper.tsx
+51 −0 react/src/components/Tables/TableSkeleton.tsx
+11 −0 react/src/components/Tables/index.tsx
+51 −0 react/src/components/Tags/Tag.tsx
+1 −0 react/src/components/Tags/index.tsx
+107 −0 react/src/components/Utils/CentreFillScroller.tsx
+1 −0 react/src/components/Utils/index.tsx
+4 −0 react/src/components/index.ts
+18 −0 react/src/constants/charts.ts
+1 −0 react/src/constants/index.ts
+97 −0 react/src/hooks/charts/useGroupHistoricalPricesByAverage.ts
+1 −0 react/src/hooks/index.ts
+3 −2 react/src/hooks/priorityFees/usePriorityFeeSubscriber.ts
+2 −1 react/src/hooks/useImmediateInterval.ts
+4 −3 react/src/index.ts
+0 −1 react/src/stores/useCommonDriftStore.tsx
+92 −0 react/src/utils/graph.tsx
+2 −0 react/src/utils/index.ts
+7 −0 react/src/utils/ui.ts
+2,199 −2,091 react/yarn.lock
+282 −2,261 yarn.lock
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export class GrpcEventSubscriber {
event.data.txSigIndex = runningEventIndex;

const eventType = event.name as EventType;
if (eventType === "SwiftOrderRecord") {
if (eventType === "SignedMsgOrderRecord") {
const hash = event.data.hash;
console.log(`SwiftOrderRecord hash: ${hash}`);
console.log(`SignedMsgOrderRecord hash: ${hash}`);
this.redisClient.setExpiring(
`swift-hashes::${hash}`,
"whats good",
event.data.userOrderId,
60 * 3,
);
continue;
Expand Down
Loading

0 comments on commit 8ff2cb4

Please sign in to comment.