Sync with latest Hyperliquid API (Aug 2026 drop) + transport improvements - #112
Merged
Conversation
- order: raise priority grouping cap to 1e8 (#99) - widen OrderProcessingStatus, twapHistory status, FrontendOpenOrder.orderType; type TwapState.trigger (#100) - borrowLendUserState: widen health states and healthFactor (#101) - userFees stakingLink discriminated union; UserFill feeTrialEscrow, optional liquidatedUser (#102) - spotClearinghouseState/outcomeMeta/settledOutcome/subAccounts2/legalCheck response drift (#103)
…104-#106) - info.outcomeTemplates (role union + keyword formats verified against live testnet) - info.usdcRouting (#106) - exchange.activateOutcomeDeployer + spotDeploy outcome sub-actions; validatorL1Votes variants (#104) - twapOrder.details (trigger/stop), reserveRequestWeight.destination, marginTable.dex (#105)
…g info endpoints (#109)
…d keep-alive Red on main since 40c8bef: the mock never answered keep-alive pings, so the watchdog force-reconnected mid-burst and rejected in-flight subscribes; and paced sends (30 ms/msg) spread the 500-frame burst past the 10 s request timeout. The mock now pongs pings, the scenario disables the timeout it is not measuring, and echoes wait for the full burst to reach the wire.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the SDK with the Aug-2026 Hyperliquid API drop (HIP-4 outcome templates) and lands transport improvements. All changes verified against upstream nktkas/hyperliquid v0.33.3 schemas, live testnet probes, and the full offline gate (format/lint/docs/types/jsdoc/export/imports + 2034 tests, 0 fail).
Commits
info.outcomeTemplates(widened beyond upstream after live testnet probes:questionOutcome/"question"roles,uDecimal/uInt/shortStringkeywords),info.usdcRouting,exchange.activateOutcomeDeployer, spotDeploy outcome sub-actions,twapOrder.details,reserveRequestWeight.destination,marginTable.dex.retryOnRateLimitoption honoringRetry-After; exchangeWeight bills longest array at any depth (settles rate-limiter weight table: confirm protocol-exact batch keys + surcharge coverage #49 semantics).Issues
Closes #98, closes #99, closes #100, closes #101, closes #102, closes #103, closes #104, closes #105, closes #106, closes #107, closes #108, closes #109, closes #110, closes #111.
Notes
docs/reference/known-drift.mdentry 11 — official gitbook docs haven't caught up; reconcile when they publish.