Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
env:
NEXT_PUBLIC_OPENCHAIN_API_URL: ${{ vars.NEXT_PUBLIC_OPENCHAIN_API_URL }}
NEXT_PUBLIC_UMAMI_WEBSITE_ID: ${{ vars.NEXT_PUBLIC_UMAMI_WEBSITE_ID }}
NEXT_PUBLIC_ENVIRONMENT: ${{ env.NEXT_PUBLIC_ENVIRONMENT }}

- name: "setup-gcloud"
uses: "google-github-actions/setup-gcloud@v2"
Expand Down
13 changes: 12 additions & 1 deletion src/app/import/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"use client";

import { useState } from "react";
import { FaUpload } from "react-icons/fa";
import { FaUpload, FaArrowLeft } from "react-icons/fa";
import { ethers } from "ethers";
import Link from "next/link";

// Example data
const examples = {
Expand Down Expand Up @@ -320,6 +321,16 @@ export default function ImportPage() {
<div className="min-h-screen">
{/* Main Content */}
<main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
{/* Back Button */}
<div className="mb-6">
<Link
href="/"
className="inline-flex items-center gap-2 text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium"
>
<FaArrowLeft className="w-4 h-4" />
Back to Search
</Link>
</div>
{/* Alert Messages */}
{alertMessage && (
<div className="mb-6 bg-green-50 border border-green-200 rounded-lg p-4">
Expand Down
8 changes: 4 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ function SearchInterface() {
/>
</div>
<div className="space-y-1">
{stats.function !== undefined && <div>{stats.function.toLocaleString()} functions</div>}
{stats.event !== undefined && <div>{stats.event.toLocaleString()} events</div>}
{stats.error !== undefined && <div>{stats.error.toLocaleString()} errors</div>}
{stats.function !== undefined && <div>{stats.function.toLocaleString()} function sigs</div>}
{stats.event !== undefined && <div>{stats.event.toLocaleString()} event sigs</div>}
{stats.error !== undefined && <div>{stats.error.toLocaleString()} error sigs</div>}
Comment thread
kuzdogan marked this conversation as resolved.
Outdated
</div>
</div>
<div className="bg-white border border-gray-200 rounded-lg p-4 text-center hover:border-cerulean-blue-400 hover:shadow-md transition-all duration-200">
Expand Down Expand Up @@ -489,7 +489,7 @@ function SearchInterface() {
<FaBan
className="w-4 h-4 text-gray-400 cursor-help flex-shrink-0"
data-tooltip-id="spam-badge-tooltip"
data-tooltip-content="This signature has been flagged as potential spam"
data-tooltip-content="This signature is a hash collision and flagged as potential spam"
/>
)}
<span
Expand Down
113 changes: 59 additions & 54 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,68 +72,73 @@ export default function Header() {
<div className="bg-cerulean-blue-600 text-white py-3 px-4 text-center">
<div className="max-w-[100rem] mx-auto">
<p className="text-sm md:text-base">
📢 <strong>Migration Notice:</strong> Sourcify is overtaking openchain.xyz and its APIs.
Please switch to <strong>api.4byte.sourcify.dev</strong> domain (same API endpoints).
📢 <strong>Migration Notice:</strong> Sourcify is taking over{" "}
<a
href="https://openchain.xyz"
target="_blank"
rel="noopener noreferrer"
className="text-white hover:text-cerulean-blue-200 underline"
>
openchain.xyz
</a>{" "}
API . Please switch to <strong>api.4byte.sourcify.dev</strong> (same API).
</p>
</div>
</div>

<header className="shadow-sm relative">
<div className="mx-auto py-4 flex items-center justify-between w-full max-w-[100rem] px-6 md:px-12 lg:px-12 xl:px-24">
<Link href="/" className="flex items-center">
<Image src="/sourcify.png" alt="Sourcify Logo" className="h-10 w-auto mr-3" width={32} height={32} />
<span className="text-gray-700 font-vt323 text-2xl">sourcify.eth</span>
</Link>

{/* Desktop Menu */}
<div className="hidden md:flex items-center gap-8">
<Link
href="/import"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium"
>
Import/Submit Signatures
</Link>
<Link
href="https://sourcify.dev"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
sourcify.dev
<FiExternalLink className="w-3 h-3" />
</Link>
<Link
href="https://docs.sourcify.dev/docs/api/"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
API
<FiExternalLink className="w-3 h-3" />
<Link href="https://sourcify.dev" target="_blank" rel="noopener" className="flex items-center">
<Image src="/sourcify.png" alt="Sourcify Logo" className="h-10 w-auto mr-3" width={32} height={32} />
<span className="text-gray-700 font-vt323 text-2xl">sourcify.eth</span>
</Link>
<Link
href="https://docs.sourcify.dev/docs/repository/signature-database"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
Docs
<FiExternalLink className="w-3 h-3" />
</Link>
<Link
href="https://github.com/sourcifyeth/4byte.sourcify.dev"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors"
>
<FaGithub className="w-6 h-6" />
</Link>
</div>

{/* Mobile Menu */}
<MobileMenu />
</div>
</header>
{/* Desktop Menu */}
<div className="hidden md:flex items-center gap-8">
<Link href="/import" className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium">
Import/Submit Signatures
</Link>
<Link
href="https://sourcify.dev"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
sourcify.dev
<FiExternalLink className="w-3 h-3" />
</Link>
<Link
href="https://docs.sourcify.dev/docs/api/"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
API
<FiExternalLink className="w-3 h-3" />
</Link>
<Link
href="https://docs.sourcify.dev/docs/repository/signature-database"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors font-medium flex items-center gap-1"
>
Docs
<FiExternalLink className="w-3 h-3" />
</Link>
<Link
href="https://github.com/sourcifyeth/4byte.sourcify.dev"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 hover:text-cerulean-blue-400 transition-colors"
>
<FaGithub className="w-6 h-6" />
</Link>
</div>

{/* Mobile Menu */}
<MobileMenu />
</div>
</header>
</>
);
}
Loading