@metamask-previews/perps-controller 10.0.0-preview-e58fe0640 → 10.0.0-preview-ea0a8c22f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -34,7 +34,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
34
34
|
|
|
35
35
|
### Changed
|
|
36
36
|
|
|
37
|
-
- Bump `@metamask/network-controller` from `^35.0.0` to `^35.0.1` ([#9758](https://github.com/MetaMask/core/pull/9758))
|
|
38
37
|
- **BREAKING:** `placeOrder` now rejects `OrderParams.grouping: 'positionTpsl'` (and the equivalent `tpslLinkage: 'position'`) with `ORDER_TPSL_POSITION_LINKAGE_UNSUPPORTED`, where it was previously accepted and passed through to the exchange ([#9674](https://github.com/MetaMask/core/pull/9674))
|
|
39
38
|
- The rejection is not new behaviour so much as an earlier, clearer one: HyperLiquid requires every order in a `positionTpsl` batch to be a trigger, and the parent being placed is an ordinary market or limit order, so the venue rejected the whole batch. This was confirmed against HyperLiquid testnet rather than assumed. A caller that previously sent this combination did not get position-bound TP/SL; it got a failed submission, further from the call site and without a typed error.
|
|
40
39
|
- To bind TP/SL to the position, call `updatePositionTPSL` once the parent has filled — a position must exist before anything can be bound to it. To attach TP/SL to the order itself, use `tpslLinkage: 'order'` (legacy `grouping: 'normalTpsl'`), which is unchanged.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/perps-controller",
|
|
3
|
-
"version": "10.0.0-preview-
|
|
3
|
+
"version": "10.0.0-preview-ea0a8c22f",
|
|
4
4
|
"description": "Controller for perpetual trading functionality in MetaMask",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@metamask/geolocation-controller": "^1.0.0",
|
|
117
117
|
"@metamask/keyring-controller": "^27.1.0",
|
|
118
118
|
"@metamask/keyring-internal-api": "^11.0.2",
|
|
119
|
-
"@metamask/network-controller": "^35.0.
|
|
119
|
+
"@metamask/network-controller": "^35.0.0",
|
|
120
120
|
"@metamask/profile-sync-controller": "^28.3.0",
|
|
121
121
|
"@metamask/remote-feature-flag-controller": "^5.0.0",
|
|
122
122
|
"@metamask/transaction-controller": "^69.4.0",
|