From 7bf430b3602dbe99e1129c76185746b76c45a50f Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 4 Mar 2021 20:48:54 +0800 Subject: [PATCH] Add serum program to search results (#15703) --- explorer/src/utils/tx.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/explorer/src/utils/tx.ts b/explorer/src/utils/tx.ts index 0db3a72eb7..1886817dee 100644 --- a/explorer/src/utils/tx.ts +++ b/explorer/src/utils/tx.ts @@ -37,6 +37,8 @@ export enum PROGRAM_NAMES { MEMO_2 = "Memo Program 2", SWAP = "Swap Program", LENDING = "Lending Program", + SERUM_2 = "Serum Program v2", + SERUM_3 = "Serum Program v3", } export const SEARCHABLE_PROGRAMS: ProgramName[] = [ @@ -55,6 +57,8 @@ export const SEARCHABLE_PROGRAMS: ProgramName[] = [ PROGRAM_NAMES.MEMO_2, PROGRAM_NAMES.SWAP, PROGRAM_NAMES.LENDING, + PROGRAM_NAMES.SERUM_2, + PROGRAM_NAMES.SERUM_3, ]; export const PROGRAM_NAME_BY_ID = { @@ -73,6 +77,8 @@ export const PROGRAM_NAME_BY_ID = { MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr: PROGRAM_NAMES.MEMO_2, SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8: PROGRAM_NAMES.SWAP, LendZqTs7gn5CTSJU1jWKhKuVpjJGom45nnwPb2AMTi: PROGRAM_NAMES.LENDING, + EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o: PROGRAM_NAMES.SERUM_2, + "9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin": PROGRAM_NAMES.SERUM_3, } as const; export type LoaderName = typeof LOADER_IDS[keyof typeof LOADER_IDS];