Add serum program to search results (#15703)

This commit is contained in:
Justin Starry 2021-03-04 20:48:54 +08:00 committed by GitHub
parent 1b76c019cb
commit 7bf430b360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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];