sdk: a shared regression for 402-declared decimals across every entry point
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 3h 51m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeepFirstHQ/deepfirstsearch
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
help wanted integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
help wanted integration
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
-
enhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
-
good first issue integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di DeepFirstHQ/deepfirstsearch
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
QuantumNous/new-api#7839 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
bug p2 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getpaseo/paseo#7071 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
test: make the #3408 Claude OAuth token fixture obviously fake so secret scanners stop flagging itAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
code-yeongyu/senpi#3436 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
lingdojo/kana-dojo#32505 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno