Files
gridpilot.gg/apps/website/lib/services/payments/WalletService.ts
2026-01-16 01:00:03 +01:00

17 lines
526 B
TypeScript

import { Result } from '@/lib/contracts/Result';
import { DomainError, Service } from '@/lib/contracts/services/Service';
/**
* Wallet Service - DTO Only
*
* Returns raw API DTOs. No ViewModels or UX logic.
* All client-side presentation logic must be handled by hooks/components.
*/
export class WalletService implements Service {
constructor() {}
async getWalletBalance(_: string): Promise<Result<{ balance: number; currency: string }, DomainError>> {
return Result.ok({ balance: 0, currency: 'USD' });
}
}