← all projects

Splitsy

@qFloppa·Floppa·12 followers·added 2026-08-11
4
stars
34k
lines
228
files
0
forks
12
followers
languages
TypeScript 87%Solidity 13%JavaScript 0%

Splitsy is a mobile-first bill-splitting and shared-obligation settlement app on Arc Testnet where a person's own funded agent can pay their share for them. Social login (X, Discord, Google, or a 6-digit email code via app/api/auth/*) provisions a Circle developer-controlled USDC wallet with no seed phrase, and debts resolve by social handle. On-chain, contracts/BillSplitRegistry.sol is a general escrow — payDebtFor(billId, debtor, amount) lets a third party settle while the DebtPaid event still names the debtor, and authorizeCollect/revokeCollect/collectDebt give revocable debtor-authorized pull payments; contracts/AutopayMandate.sol enforces per-bill and per-day spend caps on-chain, and contracts/RecurringTab.sol with its factory does allowance-based recurring collection. A dependency-free security kit (ReentrancyGuard, SafeERC20) is hardened against four adversarial USDC mocks in contracts/mocks/ (fee-on-transfer, non-standard-return, reentrant, plain), and the suite carries 110 Solidity test functions. The x402 layer in lib/x402/ shares one price table between buyer and seller (lib/x402/pricing.ts), reads payment terms from the facilitator, and gates daily spend; /api/agents/catalog and /api/agents/skill publish a machine-readable registry of eight paid endpoints, three of them stateless and reusable — a netting solver, reputation, and dunning verdict. ERC-8004 reputation in lib/erc8004.ts recomputes every score from the payment it describes (feedbackHash = keccak256("splitsy:<registry>:<tag>:<payTx>")) with three distinct validator, registrar, and auditor wallets keeping the no-self-scoring rule intact, and lib/erc8183.ts encodes ERC-8183 jobs (createJob/setBudget/fund/submit/complete). Circle Smart Contract Platform payments are caught by an event monitor (app/api/webhooks/circle/), and 34 pure-function test files cover netting, autopay, and dunning decisions in base units. Built with Circle developer-controlled wallets, App Kit, CCTP V2, Gateway, and x402-batching.

tags
circle components
on xx/qFloppa
repo description

Split bills & collect payments on Arc Testnet. Social sign-in provisions Circle USDC wallets. Bridge USDC from Avalanche/Base/Ethereum/Arbitrum/Optimism/Polygon via CCTP, or pay directly via Gateway. Autonomous agents: Scout scans receipts over x402, user-funded autopay settles debts as ERC-8183 jobs.

last pushed 2026-08-22