From c76cba465dacfef41d2ecd27220e63791d28ffca Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 19 Nov 2020 14:06:24 -0800 Subject: [PATCH] explorer: Rename SYSVARs to Title Case (#13679) --- .../account/SysvarAccountSection.tsx | 18 +++++++++--------- explorer/src/utils/tx.ts | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/explorer/src/components/account/SysvarAccountSection.tsx b/explorer/src/components/account/SysvarAccountSection.tsx index a16bfe7b18..88babaab7b 100644 --- a/explorer/src/components/account/SysvarAccountSection.tsx +++ b/explorer/src/components/account/SysvarAccountSection.tsx @@ -105,7 +105,7 @@ function SysvarAccountRecentBlockhashesCard({ return (
refresh(account.pubkey)} /> @@ -127,7 +127,7 @@ function SysvarAccountSlotHashes({ return (
refresh(account.pubkey)} /> @@ -156,7 +156,7 @@ function SysvarAccountSlotHistory({ return (
refresh(account.pubkey)} /> @@ -192,7 +192,7 @@ function SysvarAccountStakeHistory({ return (
refresh(account.pubkey)} /> @@ -215,7 +215,7 @@ function SysvarAccountFeesCard({ return (
refresh(account.pubkey)} /> @@ -245,7 +245,7 @@ function SysvarAccountEpochScheduleCard({ return (
refresh(account.pubkey)} /> @@ -301,7 +301,7 @@ function SysvarAccountClockCard({ return (
refresh(account.pubkey)} /> @@ -350,7 +350,7 @@ function SysvarAccountRentCard({ return (
refresh(account.pubkey)} /> @@ -399,7 +399,7 @@ function SysvarAccountRewardsCard({ return (
refresh(account.pubkey)} /> diff --git a/explorer/src/utils/tx.ts b/explorer/src/utils/tx.ts index f2e76e2319..1d3311559f 100644 --- a/explorer/src/utils/tx.ts +++ b/explorer/src/utils/tx.ts @@ -47,15 +47,15 @@ const SYSVAR_ID: { [key: string]: string } = { }; export const SYSVAR_IDS = { - [SYSVAR_CLOCK_PUBKEY.toBase58()]: "SYSVAR_CLOCK", - SysvarEpochSchedu1e111111111111111111111111: "SYSVAR_EPOCH_SCHEDULE", - SysvarFees111111111111111111111111111111111: "SYSVAR_FEES", - SysvarRecentB1ockHashes11111111111111111111: "SYSVAR_RECENT_BLOCKHASHES", - [SYSVAR_RENT_PUBKEY.toBase58()]: "SYSVAR_RENT", - [SYSVAR_REWARDS_PUBKEY.toBase58()]: "SYSVAR_REWARDS", - SysvarS1otHashes111111111111111111111111111: "SYSVAR_SLOT_HASHES", - SysvarS1otHistory11111111111111111111111111: "SYSVAR_SLOT_HISTORY", - [SYSVAR_STAKE_HISTORY_PUBKEY.toBase58()]: "SYSVAR_STAKE_HISTORY", + [SYSVAR_CLOCK_PUBKEY.toBase58()]: "Sysvar: Clock", + SysvarEpochSchedu1e111111111111111111111111: "Sysvar: Epoch Schedule", + SysvarFees111111111111111111111111111111111: "Sysvar: Fees", + SysvarRecentB1ockHashes11111111111111111111: "Sysvar: Recent Blockhashes", + [SYSVAR_RENT_PUBKEY.toBase58()]: "Sysvar: Rent", + [SYSVAR_REWARDS_PUBKEY.toBase58()]: "Sysvar: Rewards", + SysvarS1otHashes111111111111111111111111111: "Sysvar: Slot Hashes", + SysvarS1otHistory11111111111111111111111111: "Sysvar: Slot History", + [SYSVAR_STAKE_HISTORY_PUBKEY.toBase58()]: "Sysvar: Stake History", }; export function addressLabel(