Skip to content

Repository files navigation

InvoiceX Protocol 🧾

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

FoundryLicense: 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

#ContractPurposeStatus
1InvoiceToken.solERC-721 NFT for tokenized invoices📝 Next
2BusinessRegistry.solVerified business management📝 Planned
3BuyerRegistry.solInvoice buyers + credit data📝 Planned
4KYBRegistry.solKnow Your Business compliance📝 Planned
5CreditOracle.solAI-powered risk assessment📝 Planned
6LiquidityPool.solTiered investor pools📝 Planned
7YieldDistributor.solPayment handling + yield distribution📝 Planned
8InvoiceXCore.solMain coordinator contract📝 Planned
9InsurancePool.solDefault protection📝 Planned
10InvoiceMarketplace.solSecondary 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

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages