← all projects

CiteMint

@OverflowDev·15 followers·added 2026-07-19
1
stars
2.3k
lines
50
files
0
forks
15
followers
languages
TypeScript 76%Solidity 13%JavaScript 10%

CiteMint pays creators per citation. Users deposit Arc Testnet USDC into contracts/CiteMintEscrow.sol, sign a ten-minute EIP-712 authorization bound to their exact question, wallet, budget, and nonce, and let a research agent settle each selected citation on-chain. contracts/CiteMintEscrowV2.sol adds fully payer-authorized settlement, verifying the signed budget voucher on-chain in settleWithAuthorization, with replay protection through unique payment IDs and a hard 10% platform-fee cap. The Next.js app implements the flow in src/lib/agent.ts and src/lib/agent-authorization.ts, ranks registered sources within the signed budget, and records answers with block numbers and Arc transaction hashes in PostgreSQL via Prisma. Source ingestion in src/lib/source-ingest.ts is hardened against SSRF, and API routes are rate-limited per IP.

events
tags
team · solo

1 (Solo) — Adeyemi Adetomiwa

on xx/ade_overflow
repo description

Onchain pay-per-citation research agent on Arc Testnet. Users escrow USDC and sign a single-use, budget-scoped authorization; the agent ranks indexed creator sources and settles each citation on-chain via a CiteMintEscrow contract, attaching an ArcScan receipt to every payment.

last pushed 2026-07-01