Design: owner limits for x402 "upto" (Permit2) and "batch" (payment channels) schemes
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- blockchain, payments
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 3 小时 51 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeepFirstHQ/deepfirstsearch 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
DeepFirstHQ/deepfirstsearch#40 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
-
难度 2/5 1-3 小时 新手友好度 42/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 15/100
查看 DeepFirstHQ/deepfirstsearch 的全部 Issue
相似的 Issue
-
status: needs-triage
难度 2/5 1-3 小时 新手友好度 83/100
a2ui-project/a2ui#3158 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
hemilabs/ui-monorepo#2475 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 82/100
lingdojo/kana-dojo#32279 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
code-quality refactoring
难度 2/5 1-3 小时 新手友好度 77/100
github/gh-aw-firewall#9879 ·
维护者通常 1 天内回复
-
[Bug]: Arrow-key cursor movement in combined diff view doesn't scroll to keep the cursor visible未关闭os:macos
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复