Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#56 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Ambito
payments, testing

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

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.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
3h 51m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DeepFirstHQ/deepfirstsearch

Tutte le issue di DeepFirstHQ/deepfirstsearch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.