From 78700246b78afa950e413b9f9809e6e4d5089f6a Mon Sep 17 00:00:00 2001 From: konoart Date: Wed, 8 Dec 2021 15:11:43 +0100 Subject: [PATCH 1/2] solana disable tokens --- packages/cryptoassets/src/tokens.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cryptoassets/src/tokens.ts b/packages/cryptoassets/src/tokens.ts index 414bbf397..002e8621c 100644 --- a/packages/cryptoassets/src/tokens.ts +++ b/packages/cryptoassets/src/tokens.ts @@ -6,7 +6,7 @@ import trc20tokens from "../data/trc20"; import bep20tokens from "../data/bep20"; import polygonTokens from "../data/polygon-erc20"; import asatokens from "../data/asa"; -import spltokens from "../data/spl"; +//import spltokens from "../data/spl"; const emptyArray = []; const tokensArray: TokenCurrency[] = []; const tokensArrayWithDelisted: TokenCurrency[] = []; @@ -22,7 +22,7 @@ addTokens(trc10tokens.map(convertTRONTokens("trc10"))); addTokens(trc20tokens.map(convertTRONTokens("trc20"))); addTokens(bep20tokens.map(convertBEP20)); addTokens(asatokens.map(convertAlgorandASATokens)); -addTokens(spltokens.map(convertSplTokens)); +//addTokens(spltokens.map(convertSplTokens)); type TokensListOptions = { withDelisted: boolean; }; @@ -307,6 +307,7 @@ function convertTRONTokens(type: "trc10" | "trc20") { }); } +/* eslint-disable-next-line @typescript-eslint/no-unused-vars */ function convertSplTokens([ chainId, name, From c891ed2c1939a380d96e7a7fb79b0410dc57e871 Mon Sep 17 00:00:00 2001 From: konoart Date: Thu, 9 Dec 2021 09:31:20 +0100 Subject: [PATCH 2/2] update snapshot --- packages/cryptoassets/src/__snapshots__/currencies.test.ts.snap | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/cryptoassets/src/__snapshots__/currencies.test.ts.snap b/packages/cryptoassets/src/__snapshots__/currencies.test.ts.snap index 2761f5fb2..2f6a168d4 100644 --- a/packages/cryptoassets/src/__snapshots__/currencies.test.ts.snap +++ b/packages/cryptoassets/src/__snapshots__/currencies.test.ts.snap @@ -5,7 +5,6 @@ Array [ "algorand/asa/312769", "ethereum/erc20/usd_tether__erc20_", "polygon/erc20/(pos)_tether_usd", - "solana/spl/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "tron/trc20/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", ] `;