From fe61ea43c09e28b950643a2c2bcb00e6d6bea791 Mon Sep 17 00:00:00 2001 From: redshift <213178690+1ftredsh@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:18:06 +0200 Subject: [PATCH] fix: remove createUsageTracker, use usageTrackingDriver consistently - Removed broken merge artifact with createUsageTracker - Updated createDaemonRequestHandler to use usageTrackingDriver for all usage tracking - Added walletClient to deps type - Removed unused runWalletCommand and parseBalances from deps type - Cleaned up unused imports in daemon/index.ts --- src/daemon/http/index.ts | 3 +-- src/daemon/index.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/daemon/http/index.ts b/src/daemon/http/index.ts index 710e92b..834406e 100644 --- a/src/daemon/http/index.ts +++ b/src/daemon/http/index.ts @@ -267,6 +267,7 @@ export function createDaemonRequestHandler(deps: { provider: string | null; server: { close(cb?: () => void): void }; store: any; + walletClient: CocodClient; walletAdapter: any; storageAdapter: any; providerRegistry: any; @@ -274,8 +275,6 @@ export function createDaemonRequestHandler(deps: { modelManager: any; ensureProvidersBootstrapped: () => Promise; getRoutstr21Models: (forceRefresh?: boolean) => Promise; - runWalletCommand: (args: string[]) => Promise; - parseBalances: (output: string) => Record; mode?: "xcashu" | "apikeys"; usageTrackingDriver: UsageTrackingDriver; }) { diff --git a/src/daemon/index.ts b/src/daemon/index.ts index 62b971b..8f24d4c 100644 --- a/src/daemon/index.ts +++ b/src/daemon/index.ts @@ -15,7 +15,7 @@ import { createBunSqliteDriver, createBunSqliteUsageTrackingDriver, } from "@routstr/sdk/storage"; -import { createWalletAdapter, parseBalances, runWalletCommand } from "./wallet"; +import { createWalletAdapter } from "./wallet"; import { createCocodClient } from "./wallet/cocod-client"; import { createModelService } from "./models"; import { createDaemonRequestHandler } from "./http";