A modern mobile application built with React Native and Expo that provides real-time analytics and trading capabilities for Token-2022 tokens on the Solana blockchain.
- Transfer Hooks: Programmable token transfers with custom logic
- Confidential Transfers: Private token transfers with encryption
- Metadata Pointers: Dynamic metadata linked to external sources
- Advanced Mint Management: Full control over token creation and management
- Dark Theme UI: Modern black-themed interface with Space Grotesk fonts
- Floating Navigation: Custom animated bottom navigation bar
- Wallet Integration: Seamless wallet connection and management
- Real-time Analytics: Live market data and trading insights
- Portfolio Management: Track and manage Token-2022 assets
- Airdrop Support: Easy SOL airdrop requests for testing
dex2_0/
โโโ app/ # Expo Router app directory
โ โโโ (tabs)/ # Tab navigation screens
โ โ โโโ index.tsx # Home screen
โ โ โโโ portfolio.tsx # Portfolio management
โ โ โโโ search.tsx # Token search
โ โ โโโ settings.tsx # App settings
โ โโโ sign-in.tsx # Wallet connection screen
โ โโโ _layout.tsx # Root layout
โโโ components/ # Reusable UI components
โ โโโ app-theme.tsx # Theme configuration
โ โโโ app-providers.tsx # Context providers
โ โโโ auth/ # Authentication components
โโโ src/
โ โโโ context/
โ โ โโโ AppContext.tsx # Main app context
โ โโโ services/
โ โ โโโ WalletService.ts # Wallet management
โ โ โโโ DEXService.ts # DEX integration
โ โ โโโ Token2022Service.ts # Token-2022 operations
โ โโโ screens/ # Screen components
โโโ programs/
โ โโโ token-2022/ # Solana program
โ โโโ src/
โ โ โโโ lib.rs # Token-2022 smart contract
โ โโโ Cargo.toml # Rust dependencies
โโโ assets/
โ โโโ fonts/ # Space Grotesk fonts
โโโ android/ # Android configuration
- Primary:
#ffffff(White for active elements) - Background:
#000000(Pure black) - Surface:
#1a1a1a(Dark gray for cards) - Text:
#ffffff(White text) - Muted:
#666666(Gray for secondary text) - Success:
#10b981(Green) - Error:
#ef4444(Red) - Warning:
#f59e0b(Orange) - Accent:
#6366f1(Indigo)
- Font Family: Space Grotesk
- Weights: Regular, SemiBold, Bold
- Usage: Consistent typography throughout the app
initialize_mint: Create new Token-2022 mints with advanced featurescreate_account: Create Token-2022 accounts with transfer hook supporttransfer_with_hook: Execute transfers with custom logicenable_confidential_transfers: Enable private transfersconfidential_transfer: Perform encrypted transfersset_metadata_pointer: Configure dynamic metadatamint_to: Mint new tokensburn: Burn tokens
- Transfer Hooks: Custom logic executed on every transfer
- Confidential Transfers: Encrypted token transfers
- Metadata Pointers: Dynamic metadata from external sources
- Event Tracking: Comprehensive event logging
- Error Handling: Robust error management
- Node.js 18+
- Yarn or npm
- Expo CLI
- Rust and Cargo (for smart contract development)
- Solana CLI tools
-
Clone the repository
git clone <repository-url> cd dex2_0
-
Install dependencies
yarn install
-
Install Rust dependencies (for smart contract)
cd programs/token-2022 cargo build cd ../..
-
Start the development server
yarn start
-
Solana Configuration
solana config set --url devnet -
Build the smart contract
anchor build
-
Deploy the program
anchor deploy
- Open the app
- Tap "Connect Demo Wallet" for testing
- Or import a private key for production use
- Request SOL airdrop for testing
- Create Tokens: Initialize new Token-2022 mints
- Transfer Hooks: Set custom transfer logic
- Confidential Transfers: Enable private transfers
- Metadata Management: Configure dynamic metadata
- Portfolio Tracking: Monitor Token-2022 assets
- Home: Market overview and trending tokens
- Search: Find and analyze tokens
- Portfolio: Manage your Token-2022 assets
- Settings: App configuration
- Comprehensive input validation
- Authority checks for all operations
- Secure transfer hook execution
- Confidential transfer encryption
- Event logging for audit trails
- Secure wallet key management
- Encrypted storage for sensitive data
- Network security with HTTPS
- Input sanitization and validation
cd programs/token-2022
cargo testyarn testyarn test:integration-
Build the program
anchor build
-
Deploy to devnet
anchor deploy --provider.cluster devnet
-
Deploy to mainnet
anchor deploy --provider.cluster mainnet
-
Build for production
expo build:android expo build:ios
-
Submit to app stores
expo submit:android expo submit:ios
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new features
- Submit a pull request
- Use TypeScript for type safety
- Follow React Native best practices
- Use Space Grotesk fonts consistently
- Maintain dark theme design
- Add comprehensive error handling
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the repository
- Check the documentation
- Review the smart contract code
- Test with devnet first
- โ Basic Token-2022 integration
- โ Dark theme UI
- โ Wallet connection
- โ Portfolio management
- ๐ Advanced transfer hooks
- ๐ Confidential transfer UI
- ๐ Metadata pointer management
- ๐ Real-time price feeds
- ๐ DEX integration
- ๐ Advanced analytics
- ๐ Social features
- ๐ Cross-chain support
The Token-2022 program is deployed at:
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
This is the official Solana Token-2022 program that provides advanced token features beyond the standard SPL Token program.
Note: This is a demonstration app for Token-2022 analytics and trading. Always test thoroughly on devnet before using on mainnet.
=======
A modern mobile application built with React Native and Expo that provides real-time analytics and trading capabilities for Token-2022 tokens on the Solana blockchain.
- Transfer Hooks: Programmable token transfers with custom logic
- Confidential Transfers: Private token transfers with encryption
- Metadata Pointers: Dynamic metadata linked to external sources
- Advanced Mint Management: Full control over token creation and management
- Dark Theme UI: Modern black-themed interface with Space Grotesk fonts
- Floating Navigation: Custom animated bottom navigation bar
- Wallet Integration: Seamless wallet connection and management
- Real-time Analytics: Live market data and trading insights
- Portfolio Management: Track and manage Token-2022 assets
- Airdrop Support: Easy SOL airdrop requests for testing
dex2_0/
โโโ app/ # Expo Router app directory
โ โโโ (tabs)/ # Tab navigation screens
โ โ โโโ index.tsx # Home screen
โ โ โโโ portfolio.tsx # Portfolio management
โ โ โโโ search.tsx # Token search
โ โ โโโ settings.tsx # App settings
โ โโโ sign-in.tsx # Wallet connection screen
โ โโโ _layout.tsx # Root layout
โโโ components/ # Reusable UI components
โ โโโ app-theme.tsx # Theme configuration
โ โโโ app-providers.tsx # Context providers
โ โโโ auth/ # Authentication components
โโโ src/
โ โโโ context/
โ โ โโโ AppContext.tsx # Main app context
โ โโโ services/
โ โ โโโ WalletService.ts # Wallet management
โ โ โโโ DEXService.ts # DEX integration
โ โ โโโ Token2022Service.ts # Token-2022 operations
โ โโโ screens/ # Screen components
โโโ programs/
โ โโโ token-2022/ # Solana program
โ โโโ src/
โ โ โโโ lib.rs # Token-2022 smart contract
โ โโโ Cargo.toml # Rust dependencies
โโโ assets/
โ โโโ fonts/ # Space Grotesk fonts
โโโ android/ # Android configuration
- Primary:
#ffffff(White for active elements) - Background:
#000000(Pure black) - Surface:
#1a1a1a(Dark gray for cards) - Text:
#ffffff(White text) - Muted:
#666666(Gray for secondary text) - Success:
#10b981(Green) - Error:
#ef4444(Red) - Warning:
#f59e0b(Orange) - Accent:
#6366f1(Indigo)
- Font Family: Space Grotesk
- Weights: Regular, SemiBold, Bold
- Usage: Consistent typography throughout the app
initialize_mint: Create new Token-2022 mints with advanced featurescreate_account: Create Token-2022 accounts with transfer hook supporttransfer_with_hook: Execute transfers with custom logicenable_confidential_transfers: Enable private transfersconfidential_transfer: Perform encrypted transfersset_metadata_pointer: Configure dynamic metadatamint_to: Mint new tokensburn: Burn tokens
- Transfer Hooks: Custom logic executed on every transfer
- Confidential Transfers: Encrypted token transfers
- Metadata Pointers: Dynamic metadata from external sources
- Event Tracking: Comprehensive event logging
- Error Handling: Robust error management
- Node.js 18+
- Yarn or npm
- Expo CLI
- Rust and Cargo (for smart contract development)
- Solana CLI tools
-
Clone the repository
git clone <repository-url> cd dex2_0
-
Install dependencies
yarn install
-
Install Rust dependencies (for smart contract)
cd programs/token-2022 cargo build cd ../..
-
Start the development server
yarn start
-
Solana Configuration
solana config set --url devnet -
Build the smart contract
anchor build
-
Deploy the program
anchor deploy
- Open the app
- Tap "Connect Demo Wallet" for testing
- Or import a private key for production use
- Request SOL airdrop for testing
- Create Tokens: Initialize new Token-2022 mints
- Transfer Hooks: Set custom transfer logic
- Confidential Transfers: Enable private transfers
- Metadata Management: Configure dynamic metadata
- Portfolio Tracking: Monitor Token-2022 assets
- Home: Market overview and trending tokens
- Search: Find and analyze tokens
- Portfolio: Manage your Token-2022 assets
- Settings: App configuration
- Comprehensive input validation
- Authority checks for all operations
- Secure transfer hook execution
- Confidential transfer encryption
- Event logging for audit trails
- Secure wallet key management
- Encrypted storage for sensitive data
- Network security with HTTPS
- Input sanitization and validation
cd programs/token-2022
cargo testyarn testyarn test:integration-
Build the program
anchor build
-
Deploy to devnet
anchor deploy --provider.cluster devnet
-
Deploy to mainnet
anchor deploy --provider.cluster mainnet
-
Build for production
expo build:android expo build:ios
-
Submit to app stores
expo submit:android expo submit:ios
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new features
- Submit a pull request
- Use TypeScript for type safety
- Follow React Native best practices
- Use Space Grotesk fonts consistently
- Maintain dark theme design
- Add comprehensive error handling
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue in the repository
- Check the documentation
- Review the smart contract code
- Test with devnet first
- โ Basic Token-2022 integration
- โ Dark theme UI
- โ Wallet connection
- โ Portfolio management
- ๐ Advanced transfer hooks
- ๐ Confidential transfer UI
- ๐ Metadata pointer management
- ๐ Real-time price feeds
- ๐ DEX integration
- ๐ Advanced analytics
- ๐ Social features
- ๐ Cross-chain support
The Token-2022 program is deployed at:
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
This is the official Solana Token-2022 program that provides advanced token features beyond the standard SPL Token program.
Note: This is a demonstration app for Token-2022 analytics and trading. Always test thoroughly on devnet before using on mainnet.