explorer: make wrapped sol available through search (#12003)

* make wrapped sol available through search

* fix formatting

* remove existing wrapped sol constant from utils/tx
This commit is contained in:
Josh 2020-09-03 10:38:49 -07:00 committed by GitHub
parent b22de369b7
commit 28cf896a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -63,4 +63,8 @@ const MAINNET_TOKENS: { [key: string]: TokenDetails } = {
symbol: "USDC", symbol: "USDC",
name: "Wrapped USDC", name: "Wrapped USDC",
}, },
So11111111111111111111111111111111111111112: {
symbol: "SOL",
name: "Wrapped SOL",
},
}; };

View File

@ -49,10 +49,6 @@ const SYSVAR_ID: { [key: string]: string } = {
Sysvar1111111111111111111111111111111111111: "SYSVAR", Sysvar1111111111111111111111111111111111111: "SYSVAR",
}; };
const WRAPPED_SOL: { [key: string]: string } = {
So11111111111111111111111111111111111111112: "Wrapped SOL",
};
export const SYSVAR_IDS = { export const SYSVAR_IDS = {
[SYSVAR_CLOCK_PUBKEY.toBase58()]: "SYSVAR_CLOCK", [SYSVAR_CLOCK_PUBKEY.toBase58()]: "SYSVAR_CLOCK",
SysvarEpochSchedu1e111111111111111111111111: "SYSVAR_EPOCH_SCHEDULE", SysvarEpochSchedu1e111111111111111111111111: "SYSVAR_EPOCH_SCHEDULE",
@ -74,7 +70,6 @@ export function addressLabel(
LOADER_IDS[address] || LOADER_IDS[address] ||
SYSVAR_IDS[address] || SYSVAR_IDS[address] ||
SYSVAR_ID[address] || SYSVAR_ID[address] ||
WRAPPED_SOL[address] ||
TokenRegistry.get(address, cluster)?.name TokenRegistry.get(address, cluster)?.name
); );
} }