← all projects

Arclear

@aljosamakevic·Aljosa Makevic·13 followers·added 2026-07-25·updated 2026-09-13
0
stars
24k
lines
187
files
0
forks
13
followers
languages
TypeScript 62%Solidity 37%HTML 1%

Arclear is a multilateral obligation-netting clearinghouse on Arc Testnet. Participants post collateral into ClearingHubV3.sol, exchange off-chain EIP-712-signed IOUs, and settle whole groups at once — src/netting.ts sums each party's flows so cyclic obligations (A→B→C→A) cancel and only the net residual moves collateral, executed atomically in one executeRound that verifies a signature from every listed participant. V3 hardens the manifest: each consumed IOU commits as manifestLeafId(id, partyA, partyB) through ConsumedRef[], binding an id to its two parties so redeemIOU non-inclusion recovery against a vanished debtor cannot be poisoned (ManifestMerkle.sol). A two-pass coordinator in demo/coordinator.ts rebuilds rounds when members time out, excluding them and re-netting in a single batch. PvPRouterV3.sol adds atomic payment-versus-payment settlement across the USDC and EURC hubs at an integer-ratio FX rate. A viem-only TypeScript SDK ships as arclear-sdk with an integrator quickstart, and the current V3 hubs are source-verified on Arc Testnet. Foundry fuzzing plus vitest property tests lock TypeScript-to-Solidity digest parity through shared fixtures.

tags
builder bio

Helping hackers @ Canteen | DevRel Engineer | Claude Community Ambassador | Project Manager @ ETH Belgrade

repo description

Obligation-netting clearinghouse primitive for Arc — 100 micropayments, 1 settlement

last pushed 2026-07-28