Decentralized invoice factoring on ProbeChain Rydberg Testnet (Chain ID: 8004).
Create invoices, sell to factors at discount, debtors settle, claim payments.
createInvoice(debtor, amount, dueDate, documentHash)-- Create an invoicefactorInvoice(invoiceId, discountBPS)payable -- Factor buys at discountsettleInvoice(invoiceId)payable -- Debtor settles the invoiceclaimPayment()-- Claim accumulated payments
cp .env.example .env
npm install
npx hardhat compile
npx hardhat run scripts/deploy.ts --network rydberg- Chain ID: 8004
- EVM: London
- Solidity: 0.8.24