Skip to main content

Frontend

Documentation for the 4626 frontend application.

Who this is for: Frontend developers and integrators.


Overview

The frontend is a React application built with:

  • Vite for bundling
  • Wagmi for wallet connections
  • Privy for authentication
  • TanStack Query for data fetching

Key features

FeatureDescription
Vault dashboardView and manage creator vaults
Deposit/withdrawERC-4626 compliant interactions
Account abstraction1-click operations via smart wallets
Cross-chainLayerZero OFT transfers

Directory structure

frontend/src/
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
├── config/ # Configuration files
├── pages/ # Route pages
└── types/ # TypeScript types

Configuration

Contract addresses are configured in frontend/src/config/contracts.ts.

See the API Reference for auto-generated TypeScript documentation.


Key components

ComponentPurpose
LaunchVaultAA1-click vault activation
CompleteAuctionAuction graduation flow
VaultDashboardVault overview and stats
DepositWithdrawERC-4626 deposit/withdraw UI

Hooks

HookPurpose
useVaultVault data and operations
useTokenMetadataToken information
useSiweAuthSign-in with Ethereum
useVaultGaugeVotingGovernance voting

See Frontend API for complete documentation.