Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#34 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
blockchain, payments

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
3 giờ 51 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeepFirstHQ/deepfirstsearch

Tất cả issue của DeepFirstHQ/deepfirstsearch

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.