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 15.0.0
Added
Add Lighter as a perps venue (initial implementation, disabled by default) (#9889, #10015)
BREAKING:PerpsProviderType gains 'lighter'. Consumers with exhaustive provider switches must handle the new value. Enablement requires client opt-in: providerCredentials.lighter.enabled, or the perpsLighterProviderEnabled remote feature flag combined with a client-supplied providerCredentials.lighter.signerBridge (without a bridge the provider is read-only). Lighter follows the global network toggle on both testnet and mainnet (reads and writes).
The client-supplied signer bridge owns venue-key creation and persistence; Core never derives or receives the venue-key seed/private key. Lighter deposits are not advertised until the provider can build the required approval plus bridge-deposit call.
New Lighter types/constants exports, KeyringController:signPersonalMessage in the allowed messenger actions (type-only), and durable-settlement surfacing on the controller: getPendingManualRecoveries, getRecoveredDispatches, acknowledgeRecoveredDispatch actions with PerpsPendingManualRecovery / PerpsRecoveredDispatch exported types and OrderResult.partialState.
LiquidationPriceParams and MaintenanceMarginParams gain an optional providerId, and getMaxLeverage accepts the same optional route, so aggregated calculations use the provider that owns the market or position.
Fixed
Preserve accepted HyperLiquid Scale orders when part of a batch is rejected (#9989)