Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#34 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript

调研方向

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 (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.

主要语言
TypeScript
星标
0
派生
0
平均合并
3 小时 51 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DeepFirstHQ/deepfirstsearch 的其他 Issue

查看 DeepFirstHQ/deepfirstsearch 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。