From a1421764b3148e8a59ebaad2c3924b771b4aee42 Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Tue, 29 Jul 2025 13:05:21 -0600 Subject: [PATCH 1/2] feat: bump drift common --- drift-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drift-common b/drift-common index 8f94c37..b2751c8 160000 --- a/drift-common +++ b/drift-common @@ -1 +1 @@ -Subproject commit 8f94c374ad4de9e81b2e8ca197945b1ab36e7a2c +Subproject commit b2751c84a158e82420ac3709292cd9b4dd485687 From 3179eea5f0b983e9b52733707ae52c4cd9116910 Mon Sep 17 00:00:00 2001 From: Lukas deConantsesznak Date: Tue, 29 Jul 2025 15:39:02 -0600 Subject: [PATCH 2/2] 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,