You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/perps-controller 13.0.0
Added
Add the public Chase lifecycle API (getChaseOrders and suspendChaseOrders), aggregated-provider routing, retained lifecycle
snapshots, directional max-distance stopping, and idempotent termination of
stale or already-gone child orders. Clients should map the new ORDER_CHASE_MAX_DISTANCE_INVALID validation code when
exposing Chase configuration errors. Adds typed analytics interaction values
for background conversion and termination. An incomplete termination reports termination_pending while its child remains cancellable. Consumers can use
the exported CHASE_ORDER_STATUS values instead of duplicating lifecycle
strings (#9961).
BREAKING: Add persisted selectedOrderType, orderBookPreferences, and visibleCandleCount fields to PerpsControllerState, with controller methods and selectors for updating and reading each preference (#9922)
selectedOrderType is shared across markets, order-book listed-by preferences default to USD totals, and visible candle count defaults to 30 with a supported range of 10–250.
Consumers constructing a full PerpsControllerState must include the new fields; default state, getters, and selectors remain backward-compatible with older persisted state.
Add per-market strategy capabilities, TWAP lifecycle records, recoverable Scale group IDs, and the Chase max-distance event (#9948)
BREAKING: Add ORDER_STRATEGY_ROUTE_UNAVAILABLE, PROVIDER_NOT_FOUND, PROVIDER_LIFECYCLE_STALE, and TPSL_PROTECTION_LOST to PerpsErrorCode (#9948)
Changed
BREAKING: Support strategy orders on HyperLiquid HIP-3, route an optional providerId consistently, return zero MetaMask builder fee for TWAP through a provider-owned fee policy, and use 15-second unbounded Chase defaults (#9961, #9948)
Bound HyperLiquid combined-price debug payloads so large spot-market maps do not stall React Native DevTools and other CDP clients (#9942)
Default DEFAULT_PRO_LAYOUT_PREFERENCES.chartExpanded to true so the chart is visible when a user first enters Pro mode; a persisted chartExpanded value still wins, so users who hid the chart keep it hidden (#9920)
Restore pending trade configurations for 30 seconds instead of five minutes, include the reduceOnly setting, and clear the draft after a successful order while retaining leverage and the selected order type (#9922)
Bump @metamask/transaction-controller from ^69.5.2 to ^69.6.1 (#9960, #9969)
Bump @metamask/network-controller from ^35.0.1 to ^36.0.0 (#9969)
Bump @metamask/remote-feature-flag-controller from ^5.0.0 to ^6.0.0 (#9945)
Bump @metamask/authenticated-user-storage from ^3.0.1 to ^3.0.2 (#9972)
Fixed
Keep selectively allowlisted HIP-3 markets aligned with their volume, open-interest, funding, and previous-price contexts (#9971)
Display tiny nonzero funding rates as <0.0001% or -<0.0001% instead of 0.0000% (#9971)
Harden strategy and TP/SL lifecycles across partial failures, suspension, reconnects, provider changes, and teardown; validation and fee quotes now wait for initialization (#9948)
Ignore missing optional MYX constructors when a consumer excludes the MYX module from its bundle (#9942)
Consume rejected HyperLiquid candle unsubscriptions so cleanup cannot emit an unhandled promise rejection (#9939)
@metamask/social-controllers 2.8.0
Added
Add optional action to Trade and optional isOpen to Position, plus the TradeAction type (#9871)
action is the fill's position-lifecycle stage (opened / added / reduced / closed), computed by the social-api. Unlike intent, it separates a partial exit from a full close.
Both are optional so responses from a social-api deployment that predates them still validate.