explorer: Add upgradeable loader to search results (#15373)

This commit is contained in:
Justin Starry 2021-02-17 23:00:12 +08:00 committed by GitHub
parent 3ac7e09de6
commit 4d16b2fcc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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(

View File

@ -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 } = {