A modern web application for tracking staking data for the Wayfinder Protocol.
- Address search functionality
- Leaderboard with filtering options
- Detailed dashboard for individual addresses
- Support for ENS (Ethereum Name Service)
- Responsive design for various screen sizes
- Dynamic OG image generation for social sharing
-
Clone the repository:
git clone https://github.com/yourusername/wayfinder-staking.git cd wayfinder-staking -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up environment variables: Create a
.env.localfile in the root directory and add the following:NEXT_PUBLIC_BASE_URL=https://wayfinder-staking.vercel.app
Run the development server:
npm run devor
yarn devor
pnpm devOpen http://localhost:3000 with your browser to see the result.
app/: Next.js 13 app directoryapi/: API routes for data fetching and OG image generationaddress/: Dynamic routes for individual address pagescomponents/: Reusable React componentslib/: Utility functions and contract interactionsstores/: Global state management (e.g., Zustand stores)
public/: Static assets
Dashboard: Displays detailed staking information for individual addressesLeaderboard: Shows a ranking of addresses based on their staking performanceAddressSearch: Allows users to search for specific addresses or ENS names
/api/data/addresses: Fetches and processes address data/api/og: Generates dynamic OG images for social sharing
The project is set up for easy deployment on Vercel. Connect your GitHub repository to Vercel for automatic deployments on each push to the main branch.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.