From a235a9c91755e0616c4f98f8d356bc758fe9bd74 Mon Sep 17 00:00:00 2001 From: AndyOsei Date: Thu, 15 Dec 2022 13:53:23 +0000 Subject: [PATCH] Revert "CPROD-1375 add sns token logo" --- package.json | 6 +++++- src/tokens.ts | 9 ++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 5577684..5f0b5a0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,11 @@ "name": "@infinityswapofficial/token-lists", "version": "0.1.1", "description": "InfinitySwap Token Lists specification", - "author": "InfinitySwap (https://infinityswap.one)", + "author": { + "name": "InfinitySwap", + "email": "support@infinityswap.one", + "url": "https://infinityswap.one" + }, "type": "module", "source": "src/index.ts", "exports": { diff --git a/src/tokens.ts b/src/tokens.ts index ff26359..b3c216e 100644 --- a/src/tokens.ts +++ b/src/tokens.ts @@ -26,7 +26,6 @@ export interface TokenProperties { tags?: string[]; index_canister?: string; canisterInfo?: CanisterInfo; - logo?: string; } export type JsonnableToken = TokenProperties; @@ -58,7 +57,6 @@ export class Token { indexCanister?: Principal; tags?: string[]; canisterInfo?: CanisterInfo; - logo?: string; constructor(props: TokenProperties) { this.id = Principal.fromText(props.id); @@ -72,7 +70,6 @@ export class Token { this.indexCanister = props.index_canister ? Principal.fromText(props.index_canister) : undefined; - this.logo = props.logo; } get wasmHash() { @@ -116,8 +113,7 @@ export class Token { standard: this.standard, tags: this.tags, index_canister: this.indexCanister?.toText(), - canisterInfo: this.canisterInfo, - logo: this.logo + canisterInfo: this.canisterInfo }; } } @@ -188,8 +184,7 @@ export class TokenList { agent }); - const [snsMeta, snsTokenMeta] = await snsWrapper.metadata({}); - tokenMeta.logo = snsMeta.logo[0]; + const [, snsTokenMeta] = await snsWrapper.metadata({}); snsTokenMeta.forEach(([key, val]) => { if (key.includes('decimals') && 'Nat' in val) { tokenMeta.decimals = Number(val.Nat);