Skip to content

Commit

Permalink
LinkedCollectionMetadataDto
Browse files Browse the repository at this point in the history
  • Loading branch information
orman committed Jul 15, 2024
1 parent d7fa49a commit d700b4d
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,24 @@ export interface LinkedTokenMetadata {
vaultAccountId?: string;
}

export interface LinkedContractMetadataDto {
id: string;
blockchainId: string;
baseAssetId: string;
contractAddress: string;
contractTemplateId: string;
vaultAccountId?: string;
}

export interface LinkedCollectionMetadataDto {
fbCollectionId: string;
name?: string;
symbol?: string;
standard?: string;
blockchainDescriptor: string;
contractAddress?: string;
}

export enum TokenLinkStatus {
PENDING = "PENDING",
COMPLETED = "COMPLETED",
Expand All @@ -1870,7 +1888,7 @@ export interface TokenLink {
type?: ContractTemplateType;
refId?: string;
status: TokenLinkStatus;
tokenMetadata?: LinkedTokenMetadata;
tokenMetadata?: LinkedTokenMetadata | LinkedCollectionMetadataDto | LinkedContractMetadataDto;
displayName?: string;
}

Expand All @@ -1882,10 +1900,9 @@ export enum CollectionType {
export interface CollectionLink {
id: string;
type: CollectionType;
refId: string;
status: TokenLinkStatus;
collectionMetadata?: LinkedTokenMetadata;
displayName?: string;
collectionMetadata?: LinkedCollectionMetadataDto;
}

export interface CollectionTokenResponseDto {
Expand Down

0 comments on commit d700b4d

Please sign in to comment.