Skip to content

Latest commit

Β 

History

History
112 lines (80 loc) Β· 3.02 KB

File metadata and controls

112 lines (80 loc) Β· 3.02 KB

InvoiceX Protocol 🧾

Get paid TODAY for invoices due in 90 days β€” Powered by DeFi liquidity and AI risk scoring on Mantle Network

Foundry License: MIT

πŸ† Mantle Global Hackathon 2025 Submission

Track Participation:

  • 🎯 Primary: RWA / RealFi (Invoice Tokenization)
  • πŸ€– Secondary: AI & Oracles (Credit Scoring)
  • πŸ” Tertiary: ZK & Privacy (Business Verification)
  • πŸ’° Quaternary: DeFi & Composability (Liquidity Pools)

πŸš€ Quick Start

Prerequisites

  • Foundry - Ethereum development toolkit
  • Git - Version control
  • Node.js v18+ (optional, for frontend)

Installation

# Install Foundry (if not already installed)
curl -L https://foundry.paradigm.xyz | bash
foundryup

# Clone the repository
git clone https://github.com/your-team/invoicex.git
cd invoicex

# Install dependencies
forge install

# Copy environment variables
cp .env.example .env
# Edit .env with your configuration

# Build contracts
forge build

# Run tests
forge test -vvv

# Deploy to Mantle Testnet
forge script script/Deploy.s.sol:DeployScript --rpc-url mantle_testnet --broadcast

πŸ“‹ Smart Contracts

# Contract Purpose Status
1 InvoiceToken.sol ERC-721 NFT for tokenized invoices πŸ“ Next
2 BusinessRegistry.sol Verified business management πŸ“ Planned
3 BuyerRegistry.sol Invoice buyers + credit data πŸ“ Planned
4 KYBRegistry.sol Know Your Business compliance πŸ“ Planned
5 CreditOracle.sol AI-powered risk assessment πŸ“ Planned
6 LiquidityPool.sol Tiered investor pools πŸ“ Planned
7 YieldDistributor.sol Payment handling + yield distribution πŸ“ Planned
8 InvoiceXCore.sol Main coordinator contract πŸ“ Planned
9 InsurancePool.sol Default protection πŸ“ Planned
10 InvoiceMarketplace.sol Secondary trading πŸ“ Planned

πŸ§ͺ Testing

# Run all tests
forge test -vvv

# Run with gas report
forge test --gas-report

# Run coverage
forge coverage

# Create snapshot
forge snapshot

πŸ“¦ Deployment

# Mantle Testnet
forge script script/Deploy.s.sol:DeployScript --rpc-url mantle_testnet --broadcast --verify -vvvv

# Mantle Mainnet
forge script script/Deploy.s.sol:DeployScript --rpc-url mantle --broadcast --verify -vvvv

πŸ›  Technology Stack

  • Smart Contracts: Solidity ^0.8.20
  • Framework: Foundry (forge, cast, anvil)
  • Libraries: OpenZeppelin Contracts v5
  • Blockchain: Mantle Network (EVM L2)
  • Stablecoin: USDT (6 decimals)

πŸ“„ License

MIT License - see LICENSE


Built with ❀️ for the Mantle Global Hackathon 2025