Design: owner limits for x402 "upto" (Permit2) and "batch" (payment channels) schemes
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
- Ambito
- blockchain, payments
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(Permit2PermitWitnessTransferFrom). Apify's mcpc uses it. The agent signs a max cap and the facilitator settles accumulated usage later. mcpc's first use grantsUSDC.approve(PERMIT2, MAX_UINT256)(mcpc README).batch(payment channels). CoW Protocol's quote API atx402.cow.fiuses 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 thanmaxPerTx, 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeepFirstHQ/deepfirstsearch
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
help wanted integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
-
help wanted integration
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
Tutte le issue di DeepFirstHQ/deepfirstsearch
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
siyuan-note/siyuan#20629 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Volume eject does not refuse system, root or /home mountsForse già presa @bernardopg l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
spacedriveapp/spacedrive#3159 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melgarafael/DeskcommCRM#3000 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
callstackincubator/simlock#639 ·
I maintainer di solito rispondono entro 1 giorno