Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Design: owner limits for x402 "upto" (Permit2) and "batch" (payment channels) schemes

Aperta
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

This is a design question, and the payload names no source files or tests. Read the linked mcpc README and the x402.cow.fi openapi to understand the upto and batch schemes. The open question is what owner limits to enforce before either scheme is signed. Done means a written design agreed in the thread, not code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The SDK signs only exact (EIP-3009). Two other schemes are now live, and both need owner-side limits defined before we sign them:

  • upto (Permit2 PermitWitnessTransferFrom). Apify's mcpc uses it. The agent signs a max cap and the facilitator settles accumulated usage later. mcpc's first use grants USDC.approve(PERMIT2, MAX_UINT256) (mcpc README).
  • batch (payment channels). CoW Protocol's quote API at x402.cow.fi uses it: a deposit or top-up, then cumulative vouchers per request (openapi).

What Agent Safe would need to enforce:

  • upto: a pinned spender and payee, a max per-signature cap no larger than maxPerTx, and no unlimited ERC-20 approvals (approve exactly what the plan allows, or use per-permit amounts).
  • batch: a pinned receiver, a deposit cap counted against the plan and the period budget when deposited (not when vouchers are signed), cumulative-voucher monotonicity, and a cap on total voucher value per channel.

Out of scope until the design is agreed: signing either scheme. Input from people running these schemes is welcome.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
3h 51m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeepFirstHQ/deepfirstsearch

Tutte le issue di DeepFirstHQ/deepfirstsearch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.