@metamask-previews/perps-controller 2.0.0-preview-6b4f746 → 3.0.0-preview-6e596eb
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 +7 -2
- package/dist/PerpsController.cjs +5 -1
- package/dist/PerpsController.cjs.map +1 -1
- package/dist/PerpsController.d.cts.map +1 -1
- package/dist/PerpsController.d.mts.map +1 -1
- package/dist/PerpsController.mjs +5 -1
- package/dist/PerpsController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.0.0]
|
|
11
|
+
|
|
10
12
|
### Added
|
|
11
13
|
|
|
12
14
|
- Export `PerpsControllerGetStateAction` type ([#8352](https://github.com/MetaMask/core/pull/8352))
|
|
@@ -61,12 +63,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
61
63
|
- `PerpsController:validateOrder`
|
|
62
64
|
- `PerpsController:validateWithdrawal`
|
|
63
65
|
- Corresponding action types are available as well.
|
|
64
|
-
- Refactor pending withdraw/deposit tracking to FIFO queue design ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
65
66
|
- Add `completeWithdrawalFromHistory` method for FIFO-based withdrawal completion matching ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
66
67
|
- Add `lastCompletedWithdrawalTimestamp` and `lastCompletedWithdrawalTxHashes` state fields ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
67
68
|
|
|
68
69
|
### Changed
|
|
69
70
|
|
|
71
|
+
- Refactor pending withdraw/deposit tracking to FIFO queue design ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
72
|
+
|
|
70
73
|
- Centralize Arbitrum network check in deposit hooks to prevent missing network errors ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
71
74
|
- Provider credentials, builder fee injection, and env var centralization ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
72
75
|
- Reduce max order amount by 0.5% buffer to avoid insufficient margin rejections ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
@@ -87,6 +90,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
87
90
|
|
|
88
91
|
### Fixed
|
|
89
92
|
|
|
93
|
+
- Preserve `/* webpackIgnore: true */` magic comment in built dist files by using a variable for the MYXProvider dynamic import path, preventing ts-bridge from rewriting the AST node and stripping the comment ([#8424](https://github.com/MetaMask/core/pull/8424))
|
|
90
94
|
- Fix incorrect fee estimate when flipping a position ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
91
95
|
- Fix incorrect PnL and order size displayed after SL execution ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
92
96
|
- Fix stop loss not showing up in recent activity ([#8333](https://github.com/MetaMask/core/pull/8333))
|
|
@@ -169,7 +173,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
169
173
|
|
|
170
174
|
- Bump `@metamask/controller-utils` from `^11.18.0` to `^11.19.0` ([#7995](https://github.com/MetaMask/core/pull/7995))
|
|
171
175
|
|
|
172
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@
|
|
176
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@3.0.0...HEAD
|
|
177
|
+
[3.0.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@2.0.0...@metamask/perps-controller@3.0.0
|
|
173
178
|
[2.0.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@1.3.0...@metamask/perps-controller@2.0.0
|
|
174
179
|
[1.3.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@1.2.0...@metamask/perps-controller@1.3.0
|
|
175
180
|
[1.2.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@1.1.0...@metamask/perps-controller@1.2.0
|
package/dist/PerpsController.cjs
CHANGED
|
@@ -3227,7 +3227,11 @@ async function _PerpsController_performInitialization() {
|
|
|
3227
3227
|
// IMPORTANT: Must use import() — NOT require() — for core/extension tree-shaking.
|
|
3228
3228
|
// require() is synchronous and bundlers include it in the main bundle.
|
|
3229
3229
|
// import() enables true code splitting so MYX is excluded when not enabled.
|
|
3230
|
-
|
|
3230
|
+
// NOTE: Uses a variable so ts-bridge does not rewrite the import
|
|
3231
|
+
// specifier (which would strip the webpackIgnore magic comment).
|
|
3232
|
+
const myxModulePath = './providers/MYXProvider';
|
|
3233
|
+
__classPrivateFieldSet(this, _PerpsController_myxRegistrationPromise, import(
|
|
3234
|
+
/* webpackIgnore: true */ myxModulePath)
|
|
3231
3235
|
.then(({ MYXProvider }) => {
|
|
3232
3236
|
this.registerMYXProvider(MYXProvider);
|
|
3233
3237
|
return undefined;
|