From 162bed7a5bf92f0ad928af9ce8bd6e706837b36c Mon Sep 17 00:00:00 2001 From: Miles Zhang Date: Wed, 13 Mar 2024 22:00:06 +0800 Subject: [PATCH] feat: use isRepatedSymbol to mark omiga inscription's symbol repeated Signed-off-by: Miles Zhang --- src/models/UDT/index.ts | 1 + src/pages/Tokens/index.tsx | 4 ++-- src/pages/UDT/state.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/models/UDT/index.ts b/src/models/UDT/index.ts index 3f6f121af..8612364cf 100644 --- a/src/models/UDT/index.ts +++ b/src/models/UDT/index.ts @@ -34,6 +34,7 @@ export interface OmigaInscriptionCollection extends UDT { expectedSupply: string inscriptionInfoId: string infoTypeHash: string + isRepeatedSymbol: boolean } export function isOmigaInscriptionCollection(udt: UDT): udt is OmigaInscriptionCollection { diff --git a/src/pages/Tokens/index.tsx b/src/pages/Tokens/index.tsx index d1afff0d0..d982c7c6a 100644 --- a/src/pages/Tokens/index.tsx +++ b/src/pages/Tokens/index.tsx @@ -73,7 +73,7 @@ const TokenInfo: FC<{ token: UDT | OmigaInscriptionCollection }> = ({ token }) = return (
- {isOmigaInscriptionCollection(token) && !token.published && ( + {isOmigaInscriptionCollection(token) && token.isRepeatedSymbol && ( @@ -220,7 +220,7 @@ const TokenTable: FC<{ return (
- {isOmigaInscriptionCollection(token) && !token.published && ( + {isOmigaInscriptionCollection(token) && token.isRepeatedSymbol && ( diff --git a/src/pages/UDT/state.ts b/src/pages/UDT/state.ts index a6eb417bd..214065187 100644 --- a/src/pages/UDT/state.ts +++ b/src/pages/UDT/state.ts @@ -28,4 +28,5 @@ export const defaultOmigaInscriptionInfo: OmigaInscriptionCollection = { expectedSupply: '0', inscriptionInfoId: '', infoTypeHash: '', + isRepeatedSymbol: false, }