refactor(service): remove obsolete sdkClient and printAllRelays methods to enhance code clarity and streamline Services class

This commit is contained in:
NicolasCantu 2025-12-03 21:23:35 +01:00
parent 633fd57793
commit 87168dffd8

View File

@ -130,12 +130,6 @@ export default class Services {
return await this.coreWorker.getDevice2Ready(); return await this.coreWorker.getDevice2Ready();
} }
// NOTE: getSdkClient renvoie null car l'objet WASM n'est pas transférable hors du worker.
// Toute la logique utilisant le client doit être dans le worker.
public get sdkClient() {
return null;
}
public async setProcessId(id: string | null) { public async setProcessId(id: string | null) {
return await this.coreWorker.setProcessId(id); return await this.coreWorker.setProcessId(id);
} }
@ -170,11 +164,6 @@ export default class Services {
public getSpAddress(url: string) { public getSpAddress(url: string) {
return this.networkService.getAllRelays()[url]; return this.networkService.getAllRelays()[url];
} }
// Délégation directe au NetworkService
public printAllRelays() {
// Si NetworkService ne l'expose pas directement dans sa version proxy, on l'ajoute ou on log ici
console.log("Relays:", this.networkService.getAllRelays());
}
// ========================================== // ==========================================
// PROXY - WALLET // PROXY - WALLET