Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

InvoiceProbe

Decentralized invoice factoring on ProbeChain Rydberg Testnet (Chain ID: 8004).

Contract: InvoiceFactoring.sol

Create invoices, sell to factors at discount, debtors settle, claim payments.

Key Functions

  • createInvoice(debtor, amount, dueDate, documentHash) -- Create an invoice
  • factorInvoice(invoiceId, discountBPS) payable -- Factor buys at discount
  • settleInvoice(invoiceId) payable -- Debtor settles the invoice
  • claimPayment() -- Claim accumulated payments

Deploy

cp .env.example .env
npm install
npx hardhat compile
npx hardhat run scripts/deploy.ts --network rydberg

Network

  • Chain ID: 8004
  • EVM: London
  • Solidity: 0.8.24