{"id":33084948,"url":"https://github.com/astapchikartem/invobase","last_synced_at":"2026-05-14T22:04:56.658Z","repository":{"id":327580022,"uuid":"1099076002","full_name":"astapchikartem/InvoBase","owner":"astapchikartem","description":"On‑chain invoicing rail for Base where every invoice is an NFT with lifecycle, escrowed payments and Base Pay bridging.","archived":false,"fork":false,"pushed_at":"2025-12-13T15:56:37.000Z","size":216,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"test","last_synced_at":"2025-12-15T06:27:17.146Z","etag":null,"topics":["base","base-network","base-pay","billing","erc721","escrow","foundry","invoices","l2","onchain-accounting","solidity","uups"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astapchikartem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T14:31:21.000Z","updated_at":"2025-12-13T15:56:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/astapchikartem/InvoBase","commit_stats":null,"previous_names":["astapchikartem/invobase"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astapchikartem/InvoBase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astapchikartem%2FInvoBase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astapchikartem%2FInvoBase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astapchikartem%2FInvoBase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astapchikartem%2FInvoBase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astapchikartem","download_url":"https://codeload.github.com/astapchikartem/InvoBase/tar.gz/refs/heads/test","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astapchikartem%2FInvoBase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base","base-network","base-pay","billing","erc721","escrow","foundry","invoices","l2","onchain-accounting","solidity","uups"],"created_at":"2025-11-14T14:01:07.138Z","updated_at":"2026-05-14T22:04:56.646Z","avatar_url":"https://github.com/astapchikartem.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InvoBase V2\n\nOn-chain invoicing protocol with real payment processing on Base network. Each invoice is represented as an NFT with full lifecycle management, escrow-based payments, shareable payment links, and UUPS upgradeability.\n\n## Overview\n\nInvoBase V2 enables freelancers, teams, DAOs, and businesses to issue, track, and settle invoices with **real payment processing** entirely on-chain using Base network. Invoices are minted as non-transferable NFTs, with funds held in escrow until confirmed, ensuring tamper-proof records and transparent payment history.\n\n## Architecture\n\n```\n┌──────────────────────────────────────────────────────────┐\n│                    InvoiceNFT V2                         │\n│                  (UUPS Upgradeable)                      │\n├──────────────────────────────────────────────────────────┤\n│  Lifecycle: Draft → Issued → Paid → Cancelled            │\n│  • mint(payer, amount, dueDate)                          │\n│  • mintWithToken(payer, amount, dueDate, token, memo)    │\n│  • issue(tokenId)                                        │\n│  • cancel(tokenId)                                       │\n│  • pay(tokenId) / payWithToken(tokenId, amount)          │\n│  • getPaymentStatus(tokenId)                             │\n└────────────┬─────────────────────────────────────────────┘\n             │\n             │ integrates with\n             ▼\n┌──────────────────────────────────────────────────────────┐\n│                  InvoicePayment                          │\n│            (Escrow Contract - UUPS Upgradeable)          │\n├──────────────────────────────────────────────────────────┤\n│  Payment Processing:                                     │\n│  • payInvoice(invoiceId) - ETH payment                   │\n│  • payInvoiceToken(invoiceId, token, amount)             │\n│  • payInvoicePartial(invoiceId, amount)                  │\n│  • releasePayment(invoiceId) - issuer claims funds       │\n│  • refund(invoiceId) - refund if cancelled               │\n│  • recordExternalPayment(invoiceId, ref)                 │\n│                                                          │\n│  Escrow Model:                                           │\n│  • Funds held in contract until release/refund           │\n│  • Automatic status updates on payment                   │\n│  • Support for ETH and ERC20 tokens (USDC)               │\n└────────────┬─────────────────────────────────────────────┘\n             │\n             │ used by\n             ▼\n┌──────────────────────────────────────────────────────────┐\n│                    PaymentLink                           │\n│        (Shareable Payment URLs - UUPS Upgradeable)       │\n├──────────────────────────────────────────────────────────┤\n│  Link Management:                                        │\n│  • generateLink(invoiceId, expiry) → linkId              │\n│  • payViaLink(linkId) - pay with ETH                     │\n│  • payViaLinkToken(linkId, token, amount)                │\n│  • isLinkValid(linkId)                                   │\n│                                                          │\n│  Features:                                               │\n│  • Expiry-based validation                               │\n│  • One-time use enforcement                              │\n│  • Pay from any address                                  │\n└──────────────────────────────────────────────────────────┘\n```\n\n## Core Features\n\n**Invoice-as-NFT Architecture**\n- Each invoice is a unique ERC721 token with embedded metadata\n- Non-transferable to prevent invoice trading or manipulation\n- Full lifecycle tracking: Draft → Issued → Paid → Cancelled\n- Token-specific invoices with memos\n\n**Real Payment Processing (NEW in V2)**\n- Escrow-based payments: funds held in contract until release\n- Support for ETH and ERC20 tokens (USDC on Base)\n- Partial payment tracking\n- Automatic status updates on payment\n- Issuer releases funds after confirmation\n- Full refund capability for cancelled invoices\n\n**Shareable Payment Links (NEW in V2)**\n- Generate unique payment links with expiry dates\n- Pay from any address (not just designated payer)\n- One-time use enforcement\n- Support ETH and token payments\n- Perfect for sharing invoices via email/social\n\n**External Payment Recording**\n- Record off-chain payments (e.g., Base Pay)\n- Link external payment references to invoices\n- Maintain complete payment audit trail\n\n**Upgradeable Infrastructure**\n- UUPS proxy pattern for all contracts (InvoiceNFT, InvoicePayment, PaymentLink)\n- Storage-safe upgrades with OpenZeppelin contracts\n- Modular architecture with separate payment contracts\n\n## Contract Addresses\n\n### Base Mainnet (V2 - Live)\n- **InvoiceNFT V2 Proxy:** `0xab5B5Be29048339De2Bf79c51c1634adC987deFb` [↗](https://basescan.org/address/0xab5B5Be29048339De2Bf79c51c1634adC987deFb)\n- **InvoicePayment Proxy:** `0x9a4F17a4dE62be11738d15b39bb0Dfba88cA9B74` [↗](https://basescan.org/address/0x9a4F17a4dE62be11738d15b39bb0Dfba88cA9B74)\n- **PaymentLink Proxy:** `0xDe9aD4eD1909204319AF94605d40CA5886fB97f8` [↗](https://basescan.org/address/0xDe9aD4eD1909204319AF94605d40CA5886fB97f8)\n- **USDC Token:** `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`\n\n### Base Sepolia (V2 - Testnet)\n- **InvoiceNFT V2 Proxy:** `0x8C49fb4c7512A238D7A6fC9B612A0deFFA4890f5` [↗](https://sepolia.basescan.org/address/0x8C49fb4c7512A238D7A6fC9B612A0deFFA4890f5)\n- **InvoicePayment Proxy:** `0x73CBc9E6Ac0b17Ba0b42c9c68Fbb3B9f55485540` [↗](https://sepolia.basescan.org/address/0x73CBc9E6Ac0b17Ba0b42c9c68Fbb3B9f55485540)\n- **PaymentLink Proxy:** `0x5C0D87f9a97eF5592c47D7649668b1a2F9a03DcA` [↗](https://sepolia.basescan.org/address/0x5C0D87f9a97eF5592c47D7649668b1a2F9a03DcA)\n- **USDC Token:** `0x036CbD53842c5426634e7929541eC2318f3dCF7e`\n\n## Use Cases\n\n- **Freelancers:** Issue invoices with real escrow-based payment processing, generate shareable payment links\n- **DAOs:** Pay contributors with automatic escrow and transparent settlement\n- **B2B:** Create invoices with USDC payments, track partial payments, automatic release on confirmation\n- **Platforms:** Issue invoices with payment links, integrate with external payment systems (Base Pay)\n\n## Technical Stack\n\n- **Solidity:** 0.8.24 with IR optimizer\n- **Framework:** Foundry\n- **Network:** Base L2 (Mainnet + Sepolia)\n- **Standards:** ERC721, UUPS (ERC1967)\n- **Dependencies:** OpenZeppelin Contracts Upgradeable v4.9.6\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastapchikartem%2Finvobase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastapchikartem%2Finvobase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastapchikartem%2Finvobase/lists"}