import { SeedPhraseService } from '../../services/seed-phrase.service';
import { SeedPhraseInput } from '../../dto/wallet.dto';

export interface SeedPhraseOutput {
  readonly phrase: string;
}

export class GenerateWalletSeedphraseUseCase {
  constructor(private readonly seedPhraseService: SeedPhraseService) {}

  execute(input: SeedPhraseInput): SeedPhraseOutput {
    const phrase = this.seedPhraseService.generate(input.wordCount);
    return { phrase };
  }
}
