File

src/module-manager/dto/create-ModuleManager.dto.ts

Index

Properties

Properties

abi
Decorators :
@ApiProperty()
@IsNotEmpty()
contractAddress
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
contractName
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
description
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString, MaxLength, MinLength } from "class-validator";

export class CreateModuleManagerDto {
  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  contractName: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  contractAddress: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  description: string;

  @ApiProperty()
  @IsNotEmpty()
  abi: unknown;
}

results matching ""

    No results matching ""