import { IsString, IsArray, ArrayMinSize } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class VerifyMnemonicDto {
  @ApiProperty({
    description: '助记词 (12或24个单词，空格分隔)',
    example: 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about',
  })
  @IsString()
  mnemonic: string;

  @ApiProperty({
    description: '期望的钱包地址列表，用于验证助记词',
    example: [{ chainType: 'KAVA', address: 'kava1abc...' }],
  })
  @IsArray()
  @ArrayMinSize(1)
  expectedAddresses: Array<{
    chainType: string;
    address: string;
  }>;
}
