fix(ts-sdk): map hosted order provenance fields#1137
Conversation
|
Focused validation passed:
CI generated-sync blockers appear unrelated to this focused mapper change: the failed diffs are in generated client methods/API reference ( |
PR Review: PASS (NOT VERIFIED)What This DoesAdds TypeScript hosted-v0 order mapper coverage for provenance/fill fields ( Blast RadiusTypeScript SDK hosted trading mapper only: Consumer VerificationBefore (base branch): After (PR branch): {"filled_shares":"19","fee_rate_bps":"100","tx_hash":"0xabc123","chain":"polygon","block_number":"12345678"}maps to: I did not hit the live hosted API because this review environment does not have hosted PMXT credentials. Test Results
FindingsNo blocking findings. PMXT Pipeline Check
Semver Impactpatch -- fixes TypeScript SDK field preservation for hosted order objects. RiskNot live-verified against hosted PMXT, so this confirms mapper behavior but not that every upstream hosted order endpoint currently emits these fields with exactly these snake/camel spellings. |
Summary
Orderobject.filled_shares,fee_rate_bps,tx_hash,chain, andblock_number, with camelCase fallbacks for already-normalized payloads.Fixes #1122
Test Plan
npm test --workspace=pmxtjs -- --runTestsByPath tests/hosted-mappers.test.ts --runInBandgit diff --checkBlocked/local environment note:
npm run build --workspace=pmxtjscurrently fails before this change is typechecked because this focused checkout does not include generated TypeScript artifacts atsdks/typescript/generated/src/index.js.