Monoma is a 100% decentralized, non-custodial platform that enables seamless stablecoin settlement to Arbitrum from multiple networks. Users maintain full control of their funds.
Please Read Main details on Github : https://github.com/cadalt0/MONOMA
demo link : https://drive.google.com/drive/folders/1H0sRb6q_7dsU3lIwBAwCbccQAz2OyDk3?usp=sharing
# Monoma - Cross-Chain Stablecoin Settlement Platform
## π§ How It Works (Complete System Architecture)
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MONOMA PLATFORM β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER AUTHENTICATION β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Google OAuth βββββΆβ Session Store βββββΆβ User Database β β
β β (Frontend) β β (LocalStorage) β β (PostgreSQL) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SMART WALLET CREATION β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β User Input βββββΆβ Factory API βββββΆβ Wallet Address β β
β β (Destination) β β (Backend) β β (Generated) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β ETH Sepolia βββββΆβ Base Sepolia βββββΆβ Avalanche Fuji β β
β β Factory β β Factory β β Factory β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β β β
β βββββββββββββββββββββββββΌββββββββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Source Chain βββββΆβ Arbitrum βββββΆβ Arbitrum Smart β β
β β Smart Wallets β β Factory β β Wallets β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SETTLEMENT REQUEST SYSTEM β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Amount & Desc βββββΆβ Generate ID βββββΆβ Store in DB β β
β β (User Input) β β (Unique PayID) β β (PostgreSQL) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Shareable Link ββββββ Payment URL ββββββ Request Data β β
β β (/pay/[payid]) β β (Generated) β β (Stored) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PAYMENT PROCESSING β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Recipient βββββΆβ MetaMask βββββΆβ Chain Selectionβ β
β β Opens Link β β Connection β β (ETH/Base/AVAX)β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β USDC Transfer ββββββ Gas Estimation ββββββ Network Check β β
β β (ERC-20) β β (Dynamic) β β (Validation) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Transaction βββββΆβ Confirmation βββββΆβ Success State β β
β β Monitoring β β (Real-time) β β (Clean UI) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β POST-PAYMENT BURN PROCESS β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Burn API Call βββββΆβ burnUSDC() βββββΆβ USDC Burned β β
β β (Automatic) β β (Smart Contract)β β (On Source) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Circle API ββββββ Attestation ββββββ Burn TX Hash β β
β β (Fetch Proof) β β (Cryptographic)β β (Submitted) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Message βββββΆβ USDC Minted βββββΆβ Settlement β β
β β Transmitter β β (On Arbitrum) β β Complete β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BLOCKCHAIN NETWORKS β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β ETH Sepolia β β Base Sepolia β β Avalanche Fuji β β
β β (Source) β β (Source) β β (Source) β β
β β Smart Wallets β β Smart Wallets β β Smart Wallets β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β β β
β βββββββββββββββββββββββββΌββββββββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β USDC Contracts βββββΆβ Cross-Chain βββββΆβ Arbitrum β β
β β (Native) β β Bridge β β (Destination) β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
β β Burn Process βββββΆβ Attestation βββββΆβ Arbitrum Smart β β
β β (Source Chain) β β (Circle API) β β Wallets β β
β βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```## π Project Description
**Monoma** is a non-custodial, decentralized platform that enables seamless stablecoin settlement from multiple blockchain networks to Arbitrum. The platform addresses the fragmentation of stablecoin liquidity across different chains by providing a unified interface for cross-chain transfers while maintaining complete user control over funds.
The system operates through a sophisticated multi-layer architecture combining frontend user interfaces, backend smart contract interactions, and cross-chain infrastructure. Users authenticate via Google OAuth and create smart wallets across Ethereum Sepolia, Base Sepolia, and Avalanche Fuji networks through factory contracts deployed on each chain. These factory contracts generate unique wallet addresses tied to a specific destination domain (Arbitrum) and recipient address, enabling seamless cross-chain settlement. The smart wallets created on source chains are specifically designed to receive USDC payments and automatically burn them for cross-chain transfer to Arbitrum smart wallets.
When a user creates a settlement request, the system generates a unique payment ID and stores the request details in a PostgreSQL database. Recipients receive a shareable payment link that displays the amount, description, and available payment chains. Upon payment, users connect their MetaMask wallet, select their preferred chain, and send USDC directly to the requester's smart wallet address. The platform validates network connections, estimates gas fees dynamically, and monitors transactions in real-time.
The most innovative aspect is the post-payment burn mechanism that automatically processes received stablecoins. When a payment is confirmed, the system calls the burn API which executes a `burnUSDC` function on the smart wallet contract, burning the received USDC tokens. This burn transaction is then submitted to Circle's attestation API, which provides cryptographic proof of the burn. Finally, the system uses this attestation to mint equivalent USDC tokens on Arbitrum through the Message Transmitter contract, completing the cross-chain settlement cycle.
Built specifically for the Arbitrum ecosystem, Monoma demonstrates how decentralized applications can provide complex cross-chain functionality while maintaining the core principles of user sovereignty and non-custodial design. The platform showcases seamless integration between traditional web authentication, Web3 wallet interactions, and advanced cross-chain infrastructure, making stablecoin settlement accessible to both crypto-native and mainstream users.
## π― Key Features
- **Non-Custodial Design**: Users maintain full control of their funds and private keys
- **Multi-Chain Support**: Seamless integration with Ethereum, Base, and Avalanche networks
- **Real USDC Transfers**: Actual token transactions using native USDC contracts
- **Smart Wallet Generation**: Automated creation of chain-specific wallet addresses for source chains and Arbitrum destination
- **Burn Mechanism**: Automatic processing of received stablecoins post-payment
- **Google + MetaMask Integration**: Hybrid authentication combining Web2 and Web3
- **Real-Time Monitoring**: Live transaction confirmation and status updates
- **Explorer Integration**: Direct links to blockchain explorers for transaction verification
## π§ Technical Stack
### **Frontend Architecture**- **Next.js 14**: React framework with App Router and TypeScript
- **Tailwind CSS**: Utility-first styling with custom components
- **Framer Motion**: Smooth animations and transitions
- **Shadcn UI**: Modern component library
- **Google Identity Services**: OAuth 2.0 authentication
- **MetaMask Integration**: Web3 wallet connection and transaction signing
### **Backend Infrastructure**- **Express.js Server**: RESTful API endpoints with CORS support
- **PostgreSQL Database**: User and transaction data persistence
- **Ethers.js**: Blockchain interaction and smart contract calls
- **Circle Attestation API**: Cross-chain message verification
- **Retry Logic**: Exponential backoff for network reliability
### **Smart Contract Integration**- **Factory Contracts**: Deployed on ETH, Base, and Avalanche testnets
- **Smart Wallets**: Generated on source chains with burn capabilities
- **Arbitrum Smart Wallets**: Destination wallets for final settlement
- **USDC Contracts**: Native token integration on each chain
- **Message Transmitter**: Arbitrum cross-chain message processing
- **Burn Functions**: Automated USDC burning with attestation
### **Cross-Chain Infrastructure**- **Circle CCTP**: Cross-Chain Transfer Protocol for USDC
- **Attestation System**: Cryptographic proof of burn transactions
- **Message Relay**: Automated minting on destination chain
- **Domain Mapping**: Chain-specific destination domains
## π Innovation Impact
Monoma represents a significant step forward in cross-chain DeFi infrastructure by proving that complex multi-chain operations can be executed in a completely non-custodial manner. The platform eliminates the need for centralized bridges or custodial services while providing users with a seamless experience for stablecoin settlement across different blockchain ecosystems.
1-100
na