From 9eb677112376dc35d49c1c7da641397b04e75132 Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Tue, 29 Jul 2025 13:05:21 -0600 Subject: [PATCH 1/3] feat: bump drift common --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index 55975ac..b2751c8 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit 55975ac61a2369c201b3b8cbe046b9a101de75e3 +Subproject commit b2751c84a158e82420ac3709292cd9b4dd485687 From b987718f57b356fa250a5b8820eff6724f0de44c Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Tue, 29 Jul 2025 15:39:02 -0600 Subject: [PATCH 2/3] feat: use new ws v2 subscriber --- src/publishers/dlobPublisher.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index aead36e..7416f71 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -9,7 +9,6 @@ import { UserMap, Wallet, BulkAccountLoader, - OrderSubscriber, SlotSource, DriftClientSubscriptionConfig, SlotSubscriber, @@ -18,10 +17,9 @@ import { PerpMarketConfig, SpotMarketConfig, PhoenixSubscriber, - MarketType, - OraclePriceData, - ONE, decodeName, + WebSocketAccountSubscriberV2, + ONE, } from '@drift-labs/sdk'; import { RedisClient, RedisClientPrefix } from '@drift/common/clients'; @@ -29,7 +27,6 @@ import { logger, setLogLevel } from '../utils/logger'; import { SubscriberLookup, getOpenbookSubscriber, - l2WithBNToStrings, parsePositiveIntArray, sleep, } from '../utils/utils'; @@ -391,6 +388,7 @@ const main = async () => { commitment: stateCommitment, resubTimeoutMs: 30_000, logResubMessages: true, + accountSubscriber: WebSocketAccountSubscriberV2, }; slotSubscriber = new SlotSubscriber(connection, { resubTimeoutMs: 10_000, From faddfbb8ecc170abe282fbd792d003103c55163a Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Wed, 30 Jul 2025 14:17:49 -0600 Subject: [PATCH 3/3] chore: bump common --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index b2751c8..8f94c37 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit b2751c84a158e82420ac3709292cd9b4dd485687 +Subproject commit 8f94c374ad4de9e81b2e8ca197945b1ab36e7a2c