From c785ce71eeb351ac940490d635011ed1678f65ff Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 16 Sep 2024 20:29:18 -0500 Subject: [PATCH] add chaintype and solana networks to tokenTab --- package-lock.json | 4 ++-- src/server/adminJs/tabs/tokenTab.ts | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index a3a11ed57..d7e750829 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "giveth-graphql-api", - "version": "1.25.3", + "version": "1.25.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "giveth-graphql-api", - "version": "1.25.3", + "version": "1.25.0", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/src/server/adminJs/tabs/tokenTab.ts b/src/server/adminJs/tabs/tokenTab.ts index 9c328557b..129a288a3 100644 --- a/src/server/adminJs/tabs/tokenTab.ts +++ b/src/server/adminJs/tabs/tokenTab.ts @@ -7,6 +7,7 @@ import { AdminJsRequestInterface } from '../adminJs-types'; import { Organization } from '../../../entities/organization'; import { logger } from '../../../utils/logger'; import { findTokenByTokenId } from '../../../repositories/tokenRepository'; +import { ChainType } from '../../../types/network'; // generates orderly permutations and maps then into an array which is later flatten into 1 dimension // Current length is the length of selected items from the total items @@ -210,6 +211,18 @@ export const generateTokenTab = async () => { value: NETWORK_IDS.MORDOR_ETC_TESTNET, label: 'Ethereum Classic Testnet', }, + { + value: NETWORK_IDS.SOLANA_MAINNET, + label: 'SOLANA MAINNET', + }, + { + value: NETWORK_IDS.SOLANA_TESTNET, + label: 'SOLANA TESTNET', + }, + { + value: NETWORK_IDS.SOLANA_DEVNET, + label: 'SOLANA DEVNET', + }, ], }, symbol: { isVisible: true }, @@ -225,6 +238,14 @@ export const generateTokenTab = async () => { filter: true, }, }, + chainType: { + isVisible: true, + availableValues: [ + { value: ChainType.EVM, label: 'EVM' }, + { value: ChainType.SOLANA, label: 'SOLANA' }, + { value: ChainType.STELLAR, label: 'STELLAR' }, + ], + }, coingeckoId: { isVisible: { show: true,