Skip to content

aurabnb/aura-stay-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

244 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AURA Stay Dashboard 6

A comprehensive Next.js dashboard for the AURA ecosystem featuring real-time staking, treasury tracking, and community analytics.

πŸš€ Key Features

🏠 Real Estate Integration

  • Volcano House Calculator: Property investment analysis
  • Stay Showcase: Unique property experiences
  • Investment Tracking: Real estate performance metrics

πŸ’° Staking Platform

  • Time-Weighted Staking: Earn rewards based on stake duration
  • Live Blockchain Integration: Real Solana transactions with wallet signatures
  • 30-Day Optimal Lock: Maximum rewards for longer commitments
  • Multi-Token Rewards: SOL and SPL token distributions

πŸ“Š Treasury Management

  • Live Wallet Monitoring: Real-time balance tracking
  • Burn & Redistribution: Token economics management
  • Performance Analytics: Investment return analysis

🎯 Trading Tools

  • Jupiter Integration: Advanced Solana token swapping
  • Portfolio Tracking: Multi-wallet performance monitoring
  • Price Analytics: Real-time market data

πŸ› οΈ Tech Stack

  • Frontend: Next.js 14, React, TypeScript, Tailwind CSS
  • Blockchain: Solana, Anchor Framework, SPL Tokens
  • Wallet: Solana Wallet Adapter
  • Charts: Recharts, D3.js
  • UI: Shadcn/ui, Framer Motion
  • API: Real-time price feeds, Solana RPC

πŸ“‹ Testing Documentation

Comprehensive Test Suite

Smart Contract Testing

  • 16 Contract Functions fully documented and tested
  • 100% Success Rate on automated validation tests
  • Real Blockchain Integration with Solana devnet
  • Security Features validated (replay protection, access control)

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • Solana wallet (Phantom, Solflare, etc.)
  • AURA tokens for staking (test tokens available)

Installation

# Clone the repository
git clone <repository-url>
cd aura-stay-dashboard

# Install dependencies
npm install

# Start development server
npm run dev

Environment Setup

# Copy environment template
cp .env.example .env.local

# Configure your environment variables
NEXT_PUBLIC_SOLANA_NETWORK=devnet
NEXT_PUBLIC_RPC_ENDPOINT=https://api.devnet.solana.com

πŸ§ͺ Testing the Platform

User Testing (Real Blockchain)

  1. Visit: http://localhost:3000/staking
  2. Connect your Solana wallet
  3. Look for green "Live Blockchain Integration" banner
  4. Try staking - you'll get real wallet signature prompts
  5. Monitor transactions on Solana Explorer

Automated Testing

# Run function validation tests
npx tsx scripts/simple-function-test.ts

# Generate manual testing guide
npx tsx scripts/manual-test-guide.ts

πŸ”— Smart Contract Details

Deployed Contract

  • Program ID: 3qbuonQKjYW5XhYWohpHu1trKazvr7UwBYP5xk9hKMF6
  • Network: Solana Devnet
  • Token Mint: 3SPBiVPiJTqnqmrBxxRVnRDEywsqBHeTEDQs34PmXon9

Contract Functions

  • Admin Functions (9): Pool management, distribution control, emergency operations
  • User Functions (4): Stake, unstake, claim rewards
  • Read-Only Functions (3): Pool state, user positions, balances

πŸ“š Project Structure

src/
β”œβ”€β”€ app/                    # Next.js app router pages
β”œβ”€β”€ components/             # React components
β”‚   β”œβ”€β”€ analytics/         # Analytics dashboards
β”‚   β”œβ”€β”€ staking/           # Staking interfaces
β”‚   β”œβ”€β”€ trading/           # Trading tools
β”‚   β”œβ”€β”€ treasury/          # Treasury management
β”‚   └── ui/                # UI components
β”œβ”€β”€ hooks/                 # Custom React hooks
β”œβ”€β”€ lib/                   # Utilities and services
β”‚   β”œβ”€β”€ anchor/           # Solana/Anchor integration
β”‚   └── services/         # API services
└── types/                # TypeScript definitions

scripts/                  # Testing and automation
β”œβ”€β”€ simple-function-test.ts    # Automated validation
β”œβ”€β”€ manual-test-guide.ts       # Test guide generator
└── comprehensive-test.ts      # Full integration tests

programs/                 # Solana smart contracts
└── time-weighted-staking/ # Staking contract source

🎯 Integration Status

βœ… Live Blockchain Features

  • 100% Real Integration: All staking operations use actual blockchain transactions
  • Wallet Signatures: Every transaction requires user approval
  • Real Token Transfers: Actual AURA tokens moved to/from smart contract
  • Live State Reading: Pool and user data read from blockchain
  • Real-Time Prices: Live SOL prices from CoinGecko
  • Network Statistics: Live Solana network data

πŸ”§ Development Features

  • Hot Reload: Instant updates during development
  • TypeScript: Full type safety
  • Responsive Design: Mobile-optimized interface
  • Error Handling: Comprehensive error boundaries
  • Performance Optimized: Lazy loading and code splitting

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Run tests: npm test
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

  • Documentation: Check the /docs directory for detailed guides
  • Issues: Report bugs or request features via GitHub issues
  • Testing: Follow the manual testing guide for validation
  • Community: Join our Discord for support and updates

Built with ❀️ for the AURA ecosystem

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors