← Back to home

Aurora

Your app is a Web3-native community platform, functioning as a decentralized version of Discord

Problem Statement

Aurora is a decentralized community platform ("Web3 Discord") that enables users to join and participate in communities by staking tokens across multiple blockchain networks. Built on Avail Nexus SDK, Aurora demonstrates true cross-chain interoperability by allowing users to stake assets from one chain (e.g., Ethereum Sepolia) to gain membership access verified on another chain.The platform solves a key problem in decentralized communities: fragmented liquidity and chain-specific barriers to entry. With Avail Nexus's unified balance aggregation and cross-chain intent execution, users can stake tokens from any supported chain without manual bridging, while community membership is automatically verified across networks.Key Features:Cross-chain staking via Avail Nexus SDK intent systemUnified balance view aggregating assets across multiple chainsReal-time membership verification using on-chain smart contractsBeautiful Discord-like UI for seamless Web3 social experienceGasless cross-chain operations through Nexus solver networkAurora showcases Avail Nexus's core capabilities: unified liquidity pools, cross-chain intent creation, and automated bridge-and-execute functionality. Users connect their wallet, view their unified balance across Ethereum, Polygon, Base, and Arbitrum, and stake tokens to join communities—all with a single transaction that's automatically routed through Avail's infrastructure.The demo includes deployed smart contracts on Sepolia testnet for token staking and membership registry, with full transaction verification available on Etherscan. This project demonstrates how Avail Nexus can power the next generation of chain-agnostic social platforms.

Solution

Aurora is built using Avail Nexus SDK as the core cross-chain infrastructure layer, integrated with a modern React/TypeScript frontend and Solidity smart contracts.Frontend Architecture:React 18 + Vite for fast development and optimal performanceWagmi v2 + Viem for Ethereum wallet integration and contract interactionsTanStack Query for efficient data fetching and cachingTailwind CSS + shadcn/ui for the Discord-inspired UI componentsAvail Nexus SDK for cross-chain intent creation and unified balance queriesSmart Contract Layer:CommunityStaking.sol: Manages token staking and membership on Sepolia testnetMockUSDT.sol: ERC20 test token with faucet functionality for demo purposesContracts deployed and verified on Sepolia Etherscan for transparencyImplements security best practices: ReentrancyGuard, proper access controlsAvail Nexus Integration:The project deeply integrates Avail Nexus SDK through custom React hooks (useNexusClient, useStakeToJoin) that:Initialize Nexus client with user's wallet connectionQuery unified balances across multiple chains (Ethereum, Polygon, Base, Arbitrum)Create cross-chain intents when users stake to join communitiesMonitor intent execution status through Nexus's solver networkDisplay real-time transaction confirmations with Etherscan linksNotable Technical Choices:Used Nexus's intent-based architecture instead of traditional bridging for better UXImplemented optimistic UI updates while waiting for cross-chain confirmationsCreated a mock Nexus client for demo purposes that simulates real SDK behaviorLeveraged Wagmi's useReadContract and useWriteContract hooks for type-safe blockchain interactionsBuilt responsive state management to handle multi-step staking flow (approve → stake → verify)Challenges & Solutions:Challenge: Simulating cross-chain behavior without full Nexus testnet deployment Solution: Created mock Nexus client that demonstrates SDK patterns and can be swapped for production SDKChallenge: Managing complex async flows (wallet connection → balance check → approval → staking) Solution: Implemented status-driven UI with clear loading states and error handlingChallenge: Making blockchain interactions feel instant in a social app Solution: Used optimistic updates and visual feedback while transactions processThe project showcases how Avail Nexus SDK can abstract away blockchain complexity, enabling developers to build chain-agnostic applications where users don't need to think about which network they're on.

Hackathon

ETHOnline 2025

2025

Contributors