Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DeepFirstHQ/deepfirstsearch のほかの issue

DeepFirstHQ/deepfirstsearch の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。