File
|
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;
}