diff --git a/packages/explorer/src/components/account-select.tsx b/packages/explorer/src/components/account-select.tsx
deleted file mode 100644
index 67aa0fb342..0000000000
--- a/packages/explorer/src/components/account-select.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { formatEther } from "viem";
-import { useEffect } from "react";
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue,
-} from "@/components/ui/select";
-import { ACCOUNTS } from "@/consts";
-import { useStore } from "@/store";
-
-export function AccountSelect() {
- const { account, setAccount, balances, fetchBalances } = useStore();
-
- useEffect(() => {
- fetchBalances();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
- return (
-
- );
-}
diff --git a/packages/explorer/src/components/account.tsx b/packages/explorer/src/components/account.tsx
deleted file mode 100644
index 286e8baf90..0000000000
--- a/packages/explorer/src/components/account.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import { useAccount, useDisconnect, useEnsAvatar, useEnsName } from "wagmi";
-
-export function Account() {
- const { address } = useAccount();
- const { disconnect } = useDisconnect();
- const { data: ensName } = useEnsName({ address });
- const { data: ensAvatar } = useEnsAvatar({ name: ensName! });
-
- return (
-
- {ensAvatar &&
}
- {address &&
{ensName ? `${ensName} (${address})` : address}
}
-
-
- );
-}
diff --git a/packages/explorer/src/components/connect-wallet.tsx b/packages/explorer/src/components/connect-wallet.tsx
deleted file mode 100644
index dd497be4b8..0000000000
--- a/packages/explorer/src/components/connect-wallet.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-"use client";
-
-import { useAccount } from "wagmi";
-import { Account } from "@/components/account";
-import { WalletOptions } from "@/components/wallet-options";
-
-export function ConnectWallet() {
- const { isConnected } = useAccount();
- if (isConnected) return ;
- return ;
-}
diff --git a/packages/explorer/src/components/latest-block.tsx b/packages/explorer/src/components/latest-block.tsx
deleted file mode 100644
index a7520ee485..0000000000
--- a/packages/explorer/src/components/latest-block.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { useBlockNumber } from "wagmi";
-
-export function LatestBlock() {
- const { data: block } = useBlockNumber({
- watch: true,
- });
-
- if (block === undefined || block === BigInt(0)) {
- return;
- }
-
- return (
-
-
-
- {block.toString()}
-
-
- );
-}
diff --git a/packages/explorer/src/components/navigation.tsx b/packages/explorer/src/components/navigation.tsx
deleted file mode 100644
index d1dc846cec..0000000000
--- a/packages/explorer/src/components/navigation.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { usePathname } from "next/navigation";
-import { LatestBlock } from "@/components/latest-block";
-import { cn } from "@/lib/utils";
-import { AccountSelect } from "./account-select";
-import { Separator } from "./ui/separator";
-
-export function Navigation() {
- const pathname = usePathname();
-
- return (
-
-
-
-
- Data explorer
-
-
-
- Interact
-
-
-
-
-
-
-
-
- );
-}
diff --git a/packages/explorer/src/components/ui/button.tsx b/packages/explorer/src/components/ui/button.tsx
deleted file mode 100644
index 52b598fdec..0000000000
--- a/packages/explorer/src/components/ui/button.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import { type VariantProps, cva } from "class-variance-authority";
-import * as React from "react";
-import { Slot } from "@radix-ui/react-slot";
-import { cn } from "@/lib/utils";
-
-const buttonVariants = cva(
- // eslint-disable-next-line max-len
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
- {
- variants: {
- variant: {
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
- destructive:
- "bg-destructive text-destructive-foreground hover:bg-destructive/90",
- outline:
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
- secondary:
- "bg-secondary text-secondary-foreground hover:bg-secondary/80",
- ghost: "hover:bg-accent hover:text-accent-foreground",
- link: "text-primary underline-offset-4 hover:underline",
- },
- size: {
- default: "h-10 px-4 py-2",
- sm: "h-9 rounded-md px-3",
- lg: "h-11 rounded-md px-8",
- icon: "h-10 w-10",
- },
- },
- defaultVariants: {
- variant: "default",
- size: "default",
- },
- },
-);
-
-export interface ButtonProps
- extends React.ButtonHTMLAttributes,
- VariantProps {
- asChild?: boolean;
-}
-
-const Button = React.forwardRef(
- ({ className, variant, size, asChild = false, ...props }, ref) => {
- const Comp = asChild ? Slot : "button";
- return (
-
- );
- },
-);
-Button.displayName = "Button";
-
-export { Button, buttonVariants };
diff --git a/packages/explorer/src/components/ui/checkbox.tsx b/packages/explorer/src/components/ui/checkbox.tsx
deleted file mode 100644
index 592d5d2aa3..0000000000
--- a/packages/explorer/src/components/ui/checkbox.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client";
-
-import { Check } from "lucide-react";
-import * as React from "react";
-import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
-import { cn } from "@/lib/utils";
-
-const Checkbox = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-
-
-
-
-));
-Checkbox.displayName = CheckboxPrimitive.Root.displayName;
-
-export { Checkbox };
diff --git a/packages/explorer/src/components/ui/dropdown-menu.tsx b/packages/explorer/src/components/ui/dropdown-menu.tsx
deleted file mode 100644
index f36bd7f8dd..0000000000
--- a/packages/explorer/src/components/ui/dropdown-menu.tsx
+++ /dev/null
@@ -1,204 +0,0 @@
-"use client";
-
-import { Check, ChevronRight, Circle } from "lucide-react";
-import * as React from "react";
-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
-import { cn } from "@/lib/utils";
-
-const DropdownMenu = DropdownMenuPrimitive.Root;
-
-const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
-
-const DropdownMenuGroup = DropdownMenuPrimitive.Group;
-
-const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
-
-const DropdownMenuSub = DropdownMenuPrimitive.Sub;
-
-const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
-
-const DropdownMenuSubTrigger = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef & {
- inset?: boolean;
- }
->(({ className, inset, children, ...props }, ref) => (
-
- {children}
-
-
-));
-DropdownMenuSubTrigger.displayName =
- DropdownMenuPrimitive.SubTrigger.displayName;
-
-const DropdownMenuSubContent = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-));
-DropdownMenuSubContent.displayName =
- DropdownMenuPrimitive.SubContent.displayName;
-
-const DropdownMenuContent = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, sideOffset = 4, ...props }, ref) => (
-
-
-
-));
-DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
-
-const DropdownMenuItem = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef & {
- inset?: boolean;
- }
->(({ className, inset, ...props }, ref) => (
-
-));
-DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
-
-const DropdownMenuCheckboxItem = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, children, checked, ...props }, ref) => (
-
-
-
-
-
-
- {children}
-
-));
-DropdownMenuCheckboxItem.displayName =
- DropdownMenuPrimitive.CheckboxItem.displayName;
-
-const DropdownMenuRadioItem = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, children, ...props }, ref) => (
-
-
-
-
-
-
- {children}
-
-));
-DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
-
-const DropdownMenuLabel = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef & {
- inset?: boolean;
- }
->(({ className, inset, ...props }, ref) => (
-
-));
-DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
-
-const DropdownMenuSeparator = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-));
-DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
-
-const DropdownMenuShortcut = ({
- className,
- ...props
-}: React.HTMLAttributes) => {
- return (
-
- );
-};
-DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
-
-export {
- DropdownMenu,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuCheckboxItem,
- DropdownMenuRadioItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuShortcut,
- DropdownMenuGroup,
- DropdownMenuPortal,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuRadioGroup,
-};
diff --git a/packages/explorer/src/components/ui/form.tsx b/packages/explorer/src/components/ui/form.tsx
deleted file mode 100644
index df4699cfa0..0000000000
--- a/packages/explorer/src/components/ui/form.tsx
+++ /dev/null
@@ -1,178 +0,0 @@
-"use client";
-
-import * as React from "react";
-import {
- Controller,
- ControllerProps,
- FieldPath,
- FieldValues,
- FormProvider,
- useFormContext,
-} from "react-hook-form";
-import * as LabelPrimitive from "@radix-ui/react-label";
-import { Slot } from "@radix-ui/react-slot";
-import { Label } from "@/components/ui/label";
-import { cn } from "@/lib/utils";
-
-const Form = FormProvider;
-
-type FormFieldContextValue<
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath = FieldPath,
-> = {
- name: TName;
-};
-
-const FormFieldContext = React.createContext(
- {} as FormFieldContextValue,
-);
-
-const FormField = <
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath = FieldPath,
->({
- ...props
-}: ControllerProps) => {
- return (
-
-
-
- );
-};
-
-const useFormField = () => {
- const fieldContext = React.useContext(FormFieldContext);
- const itemContext = React.useContext(FormItemContext);
- const { getFieldState, formState } = useFormContext();
-
- const fieldState = getFieldState(fieldContext.name, formState);
-
- if (!fieldContext) {
- throw new Error("useFormField should be used within ");
- }
-
- const { id } = itemContext;
-
- return {
- id,
- name: fieldContext.name,
- formItemId: `${id}-form-item`,
- formDescriptionId: `${id}-form-item-description`,
- formMessageId: `${id}-form-item-message`,
- ...fieldState,
- };
-};
-
-type FormItemContextValue = {
- id: string;
-};
-
-const FormItemContext = React.createContext(
- {} as FormItemContextValue,
-);
-
-const FormItem = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => {
- const id = React.useId();
-
- return (
-
-
-
- );
-});
-FormItem.displayName = "FormItem";
-
-const FormLabel = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => {
- const { error, formItemId } = useFormField();
-
- return (
-
- );
-});
-FormLabel.displayName = "FormLabel";
-
-const FormControl = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ ...props }, ref) => {
- const { error, formItemId, formDescriptionId, formMessageId } =
- useFormField();
-
- return (
-
- );
-});
-FormControl.displayName = "FormControl";
-
-const FormDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => {
- const { formDescriptionId } = useFormField();
-
- return (
-
- );
-});
-FormDescription.displayName = "FormDescription";
-
-const FormMessage = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes
->(({ className, children, ...props }, ref) => {
- const { error, formMessageId } = useFormField();
- const body = error ? String(error?.message) : children;
-
- if (!body) {
- return null;
- }
-
- return (
-
- {body}
-
- );
-});
-FormMessage.displayName = "FormMessage";
-
-export {
- useFormField,
- Form,
- FormItem,
- FormLabel,
- FormControl,
- FormDescription,
- FormMessage,
- FormField,
-};
diff --git a/packages/explorer/src/components/ui/input.tsx b/packages/explorer/src/components/ui/input.tsx
deleted file mode 100644
index dfb40fbb48..0000000000
--- a/packages/explorer/src/components/ui/input.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import * as React from "react";
-import { cn } from "@/lib/utils";
-
-export interface InputProps
- extends React.InputHTMLAttributes {}
-
-const Input = React.forwardRef(
- ({ className, type, ...props }, ref) => {
- return (
-
- );
- },
-);
-Input.displayName = "Input";
-
-export { Input };
diff --git a/packages/explorer/src/components/ui/label.tsx b/packages/explorer/src/components/ui/label.tsx
deleted file mode 100644
index 8765a2ee91..0000000000
--- a/packages/explorer/src/components/ui/label.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-"use client";
-
-import { type VariantProps, cva } from "class-variance-authority";
-import * as React from "react";
-import * as LabelPrimitive from "@radix-ui/react-label";
-import { cn } from "@/lib/utils";
-
-const labelVariants = cva(
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
-);
-
-const Label = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef &
- VariantProps
->(({ className, ...props }, ref) => (
-
-));
-Label.displayName = LabelPrimitive.Root.displayName;
-
-export { Label };
diff --git a/packages/explorer/src/components/ui/select.tsx b/packages/explorer/src/components/ui/select.tsx
deleted file mode 100644
index 1bc1c24ce7..0000000000
--- a/packages/explorer/src/components/ui/select.tsx
+++ /dev/null
@@ -1,162 +0,0 @@
-"use client";
-
-import { Check, ChevronDown, ChevronUp } from "lucide-react";
-import * as React from "react";
-import * as SelectPrimitive from "@radix-ui/react-select";
-import { cn } from "@/lib/utils";
-
-const Select = SelectPrimitive.Root;
-
-const SelectGroup = SelectPrimitive.Group;
-
-const SelectValue = SelectPrimitive.Value;
-
-const SelectTrigger = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, children, ...props }, ref) => (
- span]:line-clamp-1",
- className,
- )}
- {...props}
- >
- {children}
-
-
-
-
-));
-SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
-
-const SelectScrollUpButton = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-
-
-));
-SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
-
-const SelectScrollDownButton = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-
-
-));
-SelectScrollDownButton.displayName =
- SelectPrimitive.ScrollDownButton.displayName;
-
-const SelectContent = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, children, position = "popper", ...props }, ref) => (
-
-
-
-
- {children}
-
-
-
-
-));
-SelectContent.displayName = SelectPrimitive.Content.displayName;
-
-const SelectLabel = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-));
-SelectLabel.displayName = SelectPrimitive.Label.displayName;
-
-const SelectItem = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, children, ...props }, ref) => (
-
-
-
-
-
-
-
- {children}
-
-));
-SelectItem.displayName = SelectPrimitive.Item.displayName;
-
-const SelectSeparator = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
-
-));
-SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
-
-export {
- Select,
- SelectGroup,
- SelectValue,
- SelectTrigger,
- SelectContent,
- SelectLabel,
- SelectItem,
- SelectSeparator,
- SelectScrollUpButton,
- SelectScrollDownButton,
-};
diff --git a/packages/explorer/src/components/ui/separator.tsx b/packages/explorer/src/components/ui/separator.tsx
deleted file mode 100644
index 7cafe0cb08..0000000000
--- a/packages/explorer/src/components/ui/separator.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-"use client";
-
-import * as React from "react";
-import * as SeparatorPrimitive from "@radix-ui/react-separator";
-import { cn } from "@/lib/utils";
-
-const Separator = React.forwardRef<
- React.ElementRef,
- React.ComponentPropsWithoutRef
->(
- (
- { className, orientation = "horizontal", decorative = true, ...props },
- ref,
- ) => (
-
- ),
-);
-Separator.displayName = SeparatorPrimitive.Root.displayName;
-
-export { Separator };
diff --git a/packages/explorer/src/components/ui/table.tsx b/packages/explorer/src/components/ui/table.tsx
deleted file mode 100644
index 95b43b8cf0..0000000000
--- a/packages/explorer/src/components/ui/table.tsx
+++ /dev/null
@@ -1,116 +0,0 @@
-import * as React from "react";
-import { cn } from "@/lib/utils";
-
-const Table = React.forwardRef<
- HTMLTableElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-));
-Table.displayName = "Table";
-
-const TableHeader = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-));
-TableHeader.displayName = "TableHeader";
-
-const TableBody = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-));
-TableBody.displayName = "TableBody";
-
-const TableFooter = React.forwardRef<
- HTMLTableSectionElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
- tr]:last:border-b-0",
- className,
- )}
- {...props}
- />
-));
-TableFooter.displayName = "TableFooter";
-
-const TableRow = React.forwardRef<
- HTMLTableRowElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-));
-TableRow.displayName = "TableRow";
-
-const TableHead = React.forwardRef<
- HTMLTableCellElement,
- React.ThHTMLAttributes
->(({ className, ...props }, ref) => (
- |
-));
-TableHead.displayName = "TableHead";
-
-const TableCell = React.forwardRef<
- HTMLTableCellElement,
- React.TdHTMLAttributes
->(({ className, ...props }, ref) => (
- |
-));
-TableCell.displayName = "TableCell";
-
-const TableCaption = React.forwardRef<
- HTMLTableCaptionElement,
- React.HTMLAttributes
->(({ className, ...props }, ref) => (
-
-));
-TableCaption.displayName = "TableCaption";
-
-export {
- Table,
- TableHeader,
- TableBody,
- TableFooter,
- TableHead,
- TableRow,
- TableCell,
- TableCaption,
-};
diff --git a/packages/explorer/src/components/wallet-options.tsx b/packages/explorer/src/components/wallet-options.tsx
deleted file mode 100644
index 7b7cdf80c0..0000000000
--- a/packages/explorer/src/components/wallet-options.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Connector, useConnect } from "wagmi";
-import * as React from "react";
-
-export function WalletOptions() {
- const { connectors, connect } = useConnect();
-
- return connectors.map((connector) => (
- connect({ connector })}
- />
- ));
-}
-
-function WalletOption({
- connector,
- onClick,
-}: {
- connector: Connector;
- onClick: () => void;
-}) {
- const [ready, setReady] = React.useState(false);
-
- React.useEffect(() => {
- (async () => {
- const provider = await connector.getProvider();
- setReady(!!provider);
- })();
- }, [connector]);
-
- return (
-
- );
-}