Summary
Both methods in TridentClient throw "not yet implemented". They need real HTTP calls to the Go REST API.
Acceptance Criteria
queryEvents(params: QueryEventsParams)
getEventById(params: GetEventByIdParams)
Error handling
Files
sdk/typescript/src/index.ts, sdk/typescript/src/errors.ts (new)
Summary
Both methods in
TridentClientthrow"not yet implemented". They need real HTTP calls to the Go REST API.Acceptance Criteria
queryEvents(params: QueryEventsParams)contractId,topic0,topic1,ledgerFrom,ledgerTo,cursor,limit)GET {apiUrl}/v1/eventswithX-API-KeyheaderSorobanEventZod schemaPaginatedEventswithevents[]andnextCursorgetEventById(params: GetEventByIdParams)GET {apiUrl}/v1/events/{id}withX-API-KeyheaderSorobanEventTridentErrorwithNOT_FOUNDcode on 404Error handling
TridentErrorclass:code(NOT_FOUND, UNAUTHORIZED, RATE_LIMITED, INTERNAL),message, optionalcauseTridentErrorFiles
sdk/typescript/src/index.ts,sdk/typescript/src/errors.ts(new)