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

sdk: a shared regression for 402-declared decimals across every entry point

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
payments, testing

調査の方向性

Start from test/declared-decimals.test.ts (commit 26875a5) to see how a 402 that declares extra.decimals: 18 is checked against the pins through dryRun, createAgentPay and agentSafeGuard. Build the shared mock route with startMockServer from @deepfirstsearch/agent-pay/testing, then add one test each in integrations/ai-sdk, integrations/langchain, integrations/agentkit and integrations/mcp. Done means each CI job is green and every test asserts the same over_cap result with zero signatures.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue

test/declared-decimals.test.ts (added in 26875a5) checks that a 402 declaring extra.decimals: 18 can't make a large USDC amount slip past the pins, through dryRun, createAgentPay and agentSafeGuard. The same guarantee should also hold through the framework integrations, which are where most agents actually call us.

What: a small shared fixture (a mock route that declares its own decimals) reused by one test in each of integrations/ai-sdk, integrations/langchain, integrations/agentkit and integrations/mcp: the paid tool refuses the oversized amount and signs nothing.

Done when: each integration has the test, green in its CI job, and the assertion is the same across all four (over_cap / amount above the pin, zero signatures). Reuse startMockServer from @deepfirstsearch/agent-pay/testing; no new dependency.

主要言語
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 を短くまとめたダイジェスト。