Design: owner limits for x402 "upto" (Permit2) and "batch" (payment channels) schemes
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(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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeepFirstHQ/deepfirstsearch
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DeepFirstHQ/deepfirstsearch#40 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
2xx without a readable receipt: make on-chain confirmation the default when an RPC is availableĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Tất cả issue của DeepFirstHQ/deepfirstsearch
Issue tương tự
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
alunduil/projects-v2-sync#21 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
enhancement minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
testcontainers/testcontainers-node#1539 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
christopher-buss/eslint-plugin-flawless#72 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cleanName keeps a state code that's joined to the word before it (SavannahGa → "Savannah Ga")Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openwatersio/slackwater-database#281 ·
Maintainer thường phản hồi trong vòng 1 ngày