mirror of
https://github.com/Routstr/routstrd.git
synced 2026-08-09 11:54:38 +00:00
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:
@@ -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
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user