Understanding the Project Structure
Project Overview
Directory Structure
src/
├── assets/ # Static assets (images, fonts, etc.)
│
├── components/ # Reusable UI components
│ ├── Alert/ # Alert component
│ ├── Amount/ # Amount display component
│ ├── Attention/ # Attention/notification component
│ ├── Breadcrumbs/ # Navigation breadcrumbs
│ ├── Button/ # Button components
│ ├── Card/ # Card components
│ ├── CurrencyLogos.tsx # Currency logo component
│ ├── DotsLink/ # Dots link component
│ ├── Dropdown/ # Dropdown components
│ ├── Icon/ # Icon components
│ ├── Info/ # Info display components
│ ├── InfoPanel/ # Info panel components
│ ├── InputBox/ # Input box components
│ ├── LabelItemContainer/ # Label item container
│ ├── Modal/ # Modal components
│ ├── Navigator/ # Navigation components
│ ├── PageHeader/ # Page header components
│ ├── providers/ # Context providers
│ ├── SelectInput/ # Select input components
│ ├── Slider/ # Slider components
│ ├── Spinner/ # Loading spinner
│ ├── Tabs/ # Tab components
│ ├── TextArea/ # Text area components
│ ├── Title/ # Title components
│ ├── ui/ # Basic UI components
│ └── WithdrawWallet/ # Wallet withdrawal components
│
├── features/ # Feature-specific components
│ ├── dAppHub/ # dApp Hub feature
│ │ ├── OADA/ # OADA-specific components
│ │ ├── OptimizLock/ # OptimizLock components
│ │ ├── EpochStakeAuction/ # Epoch Stake Auction components
│ ├── converWallet/ # Wallet conversion feature
│ ├── Topbar/ # Top navigation bar
│ ├── WalletDropdown/ # Wallet dropdown menu
│ ├── Faq/ # FAQ section
│ └── TopLinks/ # Top navigation links
│
├── mainnet/ # Mainnet-specific code
├── oada/ # OADA-specific code
├── preview/ # Preview-related code
├── scripts/ # Build and development scripts
├── store/ # State management
├── types/ # TypeScript type definitions
├── utils/ # Utility functions
│
├── App.tsx # Main application component
├── App.test.tsx # App component tests
├── config.local.ts.example # Example config file
├── index.tsx # Application entry point
├── index.scss # Global styles
├── JsonRpc.ts # JSON-RPC utilities
├── lucid-ext.ts # Lucid extension
├── main.css # Main styles
├── network.ts # Network utilities
├── react-app-env.d.ts # React app type definitions
├── serviceWorker.ts # Service worker
├── setupTests.ts # Test setup
├── tx-recipe.ts # Transaction recipe
├── tx.ts # Transaction utilities
├── utils.ts # General utilities
└── websocket.tsx # WebSocket utilitiesKey Directories Explained
1. components/
components/2. features/
features/3. store/
store/4. utils/
utils/5. types/
types/Development Workflow
2. Adding New Features
3. Working with State
Best Practices
Next Steps
Additional Resources
Last updated