This is a Next.js project bootstrapped with create-next-app.
npm ci-
Copy
.env.exampleto.env.local:cp .env.example .env.local
-
Fill in the required environment variables in
.env.local -
Optional: Enable testnet mode for Polygon Amoy:
NEXT_PUBLIC_USE_TESTNET="true"See TESTNET_MODE.md for detailed network configuration.
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
Run the test suite:
npm test # Run all tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage reportSee TESTING.md for detailed testing documentation.
This project supports automatic switching between Polygon Mainnet and Polygon Amoy Testnet.
- Mainnet (default): Set
NEXT_PUBLIC_USE_TESTNET=""or"false" - Testnet: Set
NEXT_PUBLIC_USE_TESTNET="true"
See TESTNET_MODE.md for complete network configuration details.
components/
├── auth/ # Authentication components
├── dao/ # DAO and governance components
├── staking/ # Staking components
├── home/ # Home page sections
├── swap/ # Token swap components
└── shared/ # Shared UI components
config/
└── contracts.js # Network and contract configuration
__tests__/ # Test files