Built for Aevum Builder Challenge #1 (DoraHacks) on the QDay Aevum Testnet (Chain ID 44005).
- Live Web3 App: https://devbox-zero-ops.github.io/aevumpay/
- Network: QDay Aevum Testnet (
Chain ID: 44005 / 0xabe5, RPC:https://rpc-test.qday.info) - Settlement Token:
tUSD8(0x456569838f1d43009A91ebA4263147Afd7233483, 6 decimals) - Explorer: https://explorer-test.qday.info
Freelancers, agencies, and B2B contractors settling invoices in stablecoins face two recurring operational risks:
- Wrong-Recipient Transfers: Copy-pasting an EVM address offers zero name verification.
- Delivery vs. Payment Trust Gap: Payers hesitate to prepay 100%, while freelancers risk non-payment after delivery.
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"]
- On-Chain Confirmation of Payee: Every invoice commits
keccak256(normalizedPayeeName).payInvoice()reverts withPAYEE_MISMATCHunless the payer explicitly confirms the matching legal/studio name. - Dual Settlement Modes: Supports both instant
tUSD8settlement and trustless milestone escrow (releaseEscrowby payer, voluntaryrefundEscrowby issuer,cancelInvoicebefore payment). - Reentrancy-Guarded Solidity 0.8.20: Compiled cleanly with
solc 0.8.20(optimizer 200 runs, 0 warnings); ABI & bytecode committed underartifacts/AevumInvoiceEscrow.json. - Zero-Backend Client-Side UI: Auto-adds QDay Aevum Testnet (
44005) to MetaMask/Rabby, reads live block height &tUSD8balance directly fromhttps://rpc-test.qday.info, supports one-click contract deployment, and prints clean A4 PDF on-chain receipts.
npm install
node scripts_compile.mjs