diff --git a/apps/dashboard/src/@/constants/auth.ts b/apps/dashboard/src/@/constants/auth.ts index 3855755d8..2b9ca9a94 100644 --- a/apps/dashboard/src/@/constants/auth.ts +++ b/apps/dashboard/src/@/constants/auth.ts @@ -6,8 +6,6 @@ const LOGGED_IN_ONLY_PATHS = [ // anything that _starts_ with /cli is logged in only "/cli", "/support", - - // TODO: add any other logged in only paths here ]; export function isLoginRequired(pathname: string) { diff --git a/apps/dashboard/src/app/(dashboard)/contracts/deploy/[compiler_uri]/page.tsx b/apps/dashboard/src/app/(dashboard)/contracts/deploy/[compiler_uri]/page.tsx new file mode 100644 index 000000000..e6d8e2edf --- /dev/null +++ b/apps/dashboard/src/app/(dashboard)/contracts/deploy/[compiler_uri]/page.tsx @@ -0,0 +1,34 @@ +import { setOverrides } from "lib/vercel-utils"; +import { fetchDeployMetadata } from "thirdweb/contract"; +import { thirdwebClient } from "../../../../../@/constants/client"; +import { DeployContractInfo } from "../../../published-contract/components/contract-info"; +import { DeployFormForUri } from "../../../published-contract/components/uri-based-deploy"; + +setOverrides(); + +type DirectDeployPageProps = { + params: { + compiler_uri: string; + }; +}; + +export default async function DirectDeployPage(props: DirectDeployPageProps) { + const metadata = await fetchDeployMetadata({ + client: thirdwebClient, + // force `ipfs://` prefix + uri: props.params.compiler_uri.startsWith("ipfs://") + ? props.params.compiler_uri + : `ipfs://${props.params.compiler_uri}`, + }); + return ( +
- {descriptionShortener(publishedContractData.description)} + {descriptionShortener(params.description)}
)}{props.description}
+{JSON.stringify(contractMetadata, null, 2)}
+ - {new Date(time).toLocaleDateString(undefined, formattingOptions)} -
-- {hoverKey && key !== hoverKey ? ( - `${key}: ` - ) : ( - {key}: - )} - {value.toLocaleString()} -
- ))} -