Summary
The SDK has no tests and npm run build has not been validated end-to-end. This issue covers test coverage, build output verification, and npm publish readiness.
Acceptance Criteria
Build
Tests (Vitest)
npm publish prep
Files
sdk/typescript/src/, sdk/typescript/tests/ (new), sdk/typescript/package.json
Summary
The SDK has no tests and
npm run buildhas not been validated end-to-end. This issue covers test coverage, build output verification, and npm publish readiness.Acceptance Criteria
Build
npm run buildproduces validdist/index.cjs,dist/index.mjs,dist/index.d.tsTests (Vitest)
queryEventsserialises params correctly and calls the right URLgetEventByIdreturns parsed event on 200TridentErrorwithNOT_FOUNDcodeTridentErrorwithUNAUTHORIZEDcodefetch/ WebSocket in tests (no real network calls)npm publish prep
package.jsonname:@trident-indexer/sdk, version0.1.0"files"field:["dist"]README.mdwith install + usage examplenpm packdry run succeedsFiles
sdk/typescript/src/,sdk/typescript/tests/(new),sdk/typescript/package.json