{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "crypto35",
  "title": "Contract Address List",
  "description": "Smart contract addresses with copy-to-clipboard and explorer link buttons. Verified badge indicator, chain name, and truncated addresses with monospace font.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/crypto35/crypto35.tsx",
      "content": "\"use client\";\n\nimport { Check, Code, Copy, ExternalLink, Shield } from \"lucide-react\";\n\nimport { Button } from \"@/components/ui/button\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\nimport { useState } from \"react\";\n\ninterface Contract {\n  name: string;\n  address: string;\n  chain: string;\n  verified: boolean;\n  explorerUrl: string;\n}\n\ninterface Crypto35Props {\n  badge?: string;\n  heading?: string;\n  description?: string;\n  contracts?: Contract[];\n  labels?: {\n    verified?: string;\n    warning?: string;\n  };\n  className?: string;\n}\n\nfunction shortenAddress(address: string): string {\n  return `${address.slice(0, 10)}...${address.slice(-8)}`;\n}\n\nfunction CopyButton({ text }: { text: string }) {\n  const [copied, setCopied] = useState(false);\n\n  const handleCopy = async () => {\n    await navigator.clipboard.writeText(text);\n    setCopied(true);\n    setTimeout(() => setCopied(false), 2000);\n  };\n\n  return (\n    <Button variant=\"outline\" size=\"icon\" onClick={handleCopy}>\n      {copied ? (\n        <Check className=\"size-4 text-emerald-500\" />\n      ) : (\n        <Copy className=\"size-4\" />\n      )}\n    </Button>\n  );\n}\n\nexport const crypto35Demo: Crypto35Props = {\n  badge: \"Contracts\",\n  heading: \"Smart Contract Addresses\",\n  description: \"All verified contract addresses for our protocol deployments.\",\n  contracts: [\n    {\n      name: \"Token Contract\",\n      address: \"0x1234567890abcdef1234567890abcdef12345678\",\n      chain: \"Ethereum\",\n      verified: true,\n      explorerUrl: \"https://beste.co\",\n    },\n    {\n      name: \"Staking Contract\",\n      address: \"0xabcdef1234567890abcdef1234567890abcdef12\",\n      chain: \"Ethereum\",\n      verified: true,\n      explorerUrl: \"https://beste.co\",\n    },\n    {\n      name: \"Governance Contract\",\n      address: \"0x567890abcdef1234567890abcdef123456789012\",\n      chain: \"Ethereum\",\n      verified: true,\n      explorerUrl: \"https://beste.co\",\n    },\n    {\n      name: \"Treasury Contract\",\n      address: \"0x890abcdef1234567890abcdef12345678901234\",\n      chain: \"Ethereum\",\n      verified: false,\n      explorerUrl: \"https://beste.co\",\n    },\n    {\n      name: \"Bridge Contract\",\n      address: \"0xcdef1234567890abcdef1234567890abcdef1234\",\n      chain: \"Arbitrum\",\n      verified: true,\n      explorerUrl: \"https://beste.co\",\n    },\n  ],\n  labels: {\n    verified: \"Verified\",\n    warning:\n      \"Always verify contract addresses before interacting. Only use official sources.\",\n  },\n};\n\nexport function Crypto35({\n  badge,\n  heading,\n  description,\n  contracts = [],\n  labels = {},\n  className,\n}: Crypto35Props) {\n  const { verified: verifiedLabel, warning: warningLabel } = labels;\n\n  if (contracts.length === 0) return null;\n\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-3xl px-4\">\n        {/* Header */}\n        <div className=\"mb-10 text-center\">\n          <div className=\"mb-4 inline-flex items-center gap-2 rounded-full bg-muted px-4 py-2 text-sm font-medium text-foreground\">\n            <Code className=\"size-4\" />\n            {badge}\n          </div>\n          <h2 className=\"mb-3 text-3xl font-bold tracking-tight text-foreground md:text-4xl\">\n            {heading}\n          </h2>\n          <p className=\"text-muted-foreground\">{description}</p>\n        </div>\n\n        {/* Contracts List */}\n        <div className=\"space-y-3\">\n          {contracts.map((contract, index) => (\n            <div\n              key={index}\n              className=\"rounded-xl border bg-card p-4 transition-colors hover:bg-muted/30\"\n            >\n              <div className=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4\">\n                <div className=\"flex items-center gap-3\">\n                  <div className=\"flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted\">\n                    <Code className=\"size-5 text-foreground\" />\n                  </div>\n                  <div>\n                    <div className=\"flex items-center gap-2\">\n                      <h3 className=\"font-medium text-foreground\">\n                        {contract.name}\n                      </h3>\n                      {contract.verified && (\n                        <span className=\"inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-xs font-medium text-emerald-500\">\n                          <Shield className=\"size-3\" />\n                          {verifiedLabel}\n                        </span>\n                      )}\n                    </div>\n                    <p className=\"text-sm text-muted-foreground\">\n                      {contract.chain}\n                    </p>\n                  </div>\n                </div>\n\n                <div className=\"flex items-center gap-2\">\n                  <code className=\"flex-1 truncate rounded-lg bg-muted px-3 py-2 font-mono text-sm text-foreground sm:flex-none\">\n                    {shortenAddress(contract.address)}\n                  </code>\n                  <CopyButton text={contract.address} />\n                  <Button variant=\"outline\" size=\"icon\" asChild>\n                    <Link href={contract.explorerUrl}>\n                      <ExternalLink className=\"size-4\" />\n                    </Link>\n                  </Button>\n                </div>\n              </div>\n            </div>\n          ))}\n        </div>\n\n        {/* Warning */}\n        <div className=\"mt-6 rounded-xl border border-foreground/10 bg-muted/50 p-4\">\n          <p className=\"text-center text-sm text-muted-foreground\">\n            {warningLabel}\n          </p>\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/crypto35.tsx"
    }
  ],
  "type": "registry:block"
}