Skip to content
devbox-zero-opsPublic

About

Trustless tUSD8 Invoice Payments & Confirmation-of-Payee Escrow on QDay Aevum Testnet (Chain ID 44005). Built for Aevum Builder Challenge #1.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

AevumPay — Trustless tUSD8 Invoice Payments & Confirmation-of-Payee Escrow

Built for Aevum Builder Challenge #1 (DoraHacks) on the QDay Aevum Testnet (Chain ID 44005).

Problem Solved

Freelancers, agencies, and B2B contractors settling invoices in stablecoins face two recurring operational risks:

  1. Wrong-Recipient Transfers: Copy-pasting an EVM address offers zero name verification.
  2. Delivery vs. Payment Trust Gap: Payers hesitate to prepay 100%, while freelancers risk non-payment after delivery.

Architecture & Key Features

flowchart LR
    Issuer["Invoice Issuer"] -->|"1. createInvoice (tUSD8 + keccak256 Payee Hash)"| Escrow["AevumInvoiceEscrow.sol (Chain 44005)"]
    Payer["Client / Payer"] -->|"2. Confirm Payee Name + approve tUSD8"| Escrow
    Escrow -->|"Instant Mode"| Issuer
    Escrow -->|"Escrow Mode -> 3. releaseEscrow / refundEscrow"| Issuer
    Escrow -->|"Verifiable Tx Hash"| Receipt["Watermark-Free A4 PDF Receipt"]
Loading
  • On-Chain Confirmation of Payee: Every invoice commits keccak256(normalizedPayeeName). payInvoice() reverts with PAYEE_MISMATCH unless the payer explicitly confirms the matching legal/studio name.
  • Dual Settlement Modes: Supports both instant tUSD8 settlement and trustless milestone escrow (releaseEscrow by payer, voluntary refundEscrow by issuer, cancelInvoice before payment).
  • Reentrancy-Guarded Solidity 0.8.20: Compiled cleanly with solc 0.8.20 (optimizer 200 runs, 0 warnings); ABI & bytecode committed under artifacts/AevumInvoiceEscrow.json.
  • Zero-Backend Client-Side UI: Auto-adds QDay Aevum Testnet (44005) to MetaMask/Rabby, reads live block height & tUSD8 balance directly from https://rpc-test.qday.info, supports one-click contract deployment, and prints clean A4 PDF on-chain receipts.

Local Build & Verification

npm install
node scripts_compile.mjs

About

Trustless tUSD8 Invoice Payments & Confirmation-of-Payee Escrow on QDay Aevum Testnet (Chain ID 44005). Built for Aevum Builder Challenge #1.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages