Skip to content

Commit

Permalink
Add twitter, telegram and website links
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKolodko committed Dec 4, 2024
1 parent 51ce606 commit 2af2a96
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/dto/metadata.dto.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { ApiProperty } from '@nestjs/swagger';
import {IsString} from 'class-validator';
import {Transform, Type} from "class-transformer";
import {IsOptional, IsString} from 'class-validator';
import {Type} from "class-transformer";

export class AddTokenMetadataDto {
// @ApiProperty({ type: String, required: true })
// @Type(() => String)
// @IsString()
// userAddress: string;

@ApiProperty({ type: String, required: true })
@Type(() => String)
@IsString()
Expand All @@ -27,4 +22,22 @@ export class AddTokenMetadataDto {
@Type(() => String)
@IsString()
image: string;

@ApiProperty({ type: String, required: false })
@Type(() => String)
@IsString()
@IsOptional()
twitterLink: string;

@ApiProperty({ type: String, required: false })
@Type(() => String)
@IsString()
@IsOptional()
telegramLink: string;

@ApiProperty({ type: String, required: false })
@Type(() => String)
@IsString()
@IsOptional()
websiteLink: string;
}
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export interface TokenMetadata {
ticker: string
description: string
image: string
twitterLink: string
telegramLink: string
websiteLink: string
}

export interface Candle {
Expand Down

0 comments on commit 2af2a96

Please sign in to comment.