From 4d16b2fcc5ce59df23ca966f2ebb710cb5ccb0a4 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 17 Feb 2021 23:00:12 +0800 Subject: [PATCH] explorer: Add upgradeable loader to search results (#15373) --- explorer/src/components/SearchBar.tsx | 6 +++++- explorer/src/utils/tx.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/explorer/src/components/SearchBar.tsx b/explorer/src/components/SearchBar.tsx index c23866f079..292c11fedd 100644 --- a/explorer/src/components/SearchBar.tsx +++ b/explorer/src/components/SearchBar.tsx @@ -87,7 +87,11 @@ function buildProgramOptions(search: string) { } } -const SEARCHABLE_LOADERS: LoaderName[] = ["BPF Loader", "BPF Loader 2"]; +const SEARCHABLE_LOADERS: LoaderName[] = [ + "BPF Loader", + "BPF Loader 2", + "BPF Upgradeable Loader", +]; function buildLoaderOptions(search: string) { const matchedLoaders = Object.entries(LOADER_IDS).filter( diff --git a/explorer/src/utils/tx.ts b/explorer/src/utils/tx.ts index 96ae8f46c3..c0ce6356c7 100644 --- a/explorer/src/utils/tx.ts +++ b/explorer/src/utils/tx.ts @@ -78,6 +78,7 @@ export const LOADER_IDS = { NativeLoader1111111111111111111111111111111: "Native Loader", [BPF_LOADER_DEPRECATED_PROGRAM_ID.toBase58()]: "BPF Loader", [BPF_LOADER_PROGRAM_ID.toBase58()]: "BPF Loader 2", + BPFLoaderUpgradeab1e11111111111111111111111: "BPF Upgradeable Loader", } as const; const SYSVAR_ID: { [key: string]: string } = {