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
This commit is contained in:
redshift
2026-04-01 16:18:06 +02:00
parent 243967f7a5
commit fe61ea43c0
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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<void>;
getRoutstr21Models: (forceRefresh?: boolean) => Promise<any[]>;
runWalletCommand: (args: string[]) => Promise<string>;
parseBalances: (output: string) => Record<string, number>;
mode?: "xcashu" | "apikeys";
usageTrackingDriver: UsageTrackingDriver;
}) {
+1 -1
View File
@@ -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";