Files
gridpilot.gg/packages/racing/domain/repositories/ILeagueWalletRepository.ts
2025-12-10 00:38:59 +01:00

16 lines
537 B
TypeScript

/**
* Repository Interface: ILeagueWalletRepository
*
* Defines operations for LeagueWallet aggregate persistence
*/
import type { LeagueWallet } from '../entities/LeagueWallet';
export interface ILeagueWalletRepository {
findById(id: string): Promise<LeagueWallet | null>;
findByLeagueId(leagueId: string): Promise<LeagueWallet | null>;
create(wallet: LeagueWallet): Promise<LeagueWallet>;
update(wallet: LeagueWallet): Promise<LeagueWallet>;
delete(id: string): Promise<void>;
exists(id: string): Promise<boolean>;
}