From e48182b5348ee5746b481ff7135ad6e5b78f02da Mon Sep 17 00:00:00 2001 From: Noah Gundotra Date: Tue, 19 Nov 2024 22:30:03 -0500 Subject: [PATCH] tmp pull verified build info --- app/address/[address]/layout.tsx | 16 +++++++++------- app/address/[address]/verified-build/page.tsx | 6 ++++-- .../account/UpgradeableLoaderAccountSection.tsx | 7 ++++--- app/utils/verified-builds.tsx | 1 + 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/app/address/[address]/layout.tsx b/app/address/[address]/layout.tsx index 13656727..d58c9fc9 100644 --- a/app/address/[address]/layout.tsx +++ b/app/address/[address]/layout.tsx @@ -70,11 +70,11 @@ const TABS_LOOKUP: { [id: string]: Tab[] } = { slug: 'security', title: 'Security', }, - { - path: 'verified-build', - slug: 'verified-build', - title: 'Verified Build', - }, + // { + // path: 'verified-build', + // slug: 'verified-build', + // title: 'Verified Build', + // }, ], 'nftoken:collection': [ { @@ -563,7 +563,7 @@ export type MoreTabs = | 'entries' | 'concurrent-merkle-tree' | 'compression' - | 'verified-build' + // | 'verified-build' | 'program-multisig'; function MoreSection({ children, tabs }: { children: React.ReactNode; tabs: (JSX.Element | null)[] }) { @@ -710,7 +710,9 @@ function getCustomLinkedTabs(pubkey: PublicKey, account: Account) { ), diff --git a/app/address/[address]/verified-build/page.tsx b/app/address/[address]/verified-build/page.tsx index 530278f0..9730ac0a 100644 --- a/app/address/[address]/verified-build/page.tsx +++ b/app/address/[address]/verified-build/page.tsx @@ -1,7 +1,8 @@ import getReadableTitleFromAddress, { AddressPageMetadataProps } from '@utils/get-readable-title-from-address'; +import { redirect } from 'next/navigation'; import { Metadata } from 'next/types'; -import VerifiedBuildClient from './page-client'; +// import VerifiedBuildClient from './page-client'; export async function generateMetadata(props: AddressPageMetadataProps): Promise { return { @@ -17,5 +18,6 @@ type Props = Readonly<{ }>; export default function VerifiedBuildPage(props: Props) { - return ; + // return ; + throw redirect(`/address/${props.params.address}`); } diff --git a/app/components/account/UpgradeableLoaderAccountSection.tsx b/app/components/account/UpgradeableLoaderAccountSection.tsx index c14a4bdd..c2e044ba 100644 --- a/app/components/account/UpgradeableLoaderAccountSection.tsx +++ b/app/components/account/UpgradeableLoaderAccountSection.tsx @@ -24,7 +24,7 @@ import { useSquadsMultisigLookup } from '@/app/providers/squadsMultisig'; import { Cluster } from '@/app/utils/cluster'; import { useClusterPath } from '@/app/utils/url'; -import { VerifiedProgramBadge } from '../common/VerifiedProgramBadge'; +// import { VerifiedProgramBadge } from '../common/VerifiedProgramBadge'; export function UpgradeableLoaderAccountSection({ account, @@ -119,14 +119,14 @@ export function UpgradeableProgramSection({ Upgradeable {programData.authority !== null ? 'Yes' : 'No'} - + {/* - + */} @@ -183,6 +183,7 @@ function SecurityLabel() { ); } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function VerifiedLabel() { return ( diff --git a/app/utils/verified-builds.tsx b/app/utils/verified-builds.tsx index 378e500a..8151668b 100644 --- a/app/utils/verified-builds.tsx +++ b/app/utils/verified-builds.tsx @@ -10,6 +10,7 @@ import { Cluster } from './cluster'; const OSEC_REGISTRY_URL = 'https://verify.osec.io'; const VERIFY_PROGRAM_ID = 'verifycLy8mB96wd9wqq3WDXQwM4oU6r42Th37Db9fC'; +// eslint-disable-next-line @typescript-eslint/no-unused-vars export enum VerificationStatus { Verified = 'Verified Build', PdaUploaded = 'Not verified Build',