@metamask-previews/perps-controller 10.0.0-preview-e58fe0640 → 10.0.0-preview-8eb2c7f6e

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/PerpsController-method-action-types.cjs.map +1 -1
  3. package/dist/PerpsController-method-action-types.d.cts +3 -3
  4. package/dist/PerpsController-method-action-types.d.mts +3 -3
  5. package/dist/PerpsController-method-action-types.mjs.map +1 -1
  6. package/dist/PerpsController.cjs +5 -5
  7. package/dist/PerpsController.cjs.map +1 -1
  8. package/dist/PerpsController.d.cts +4 -4
  9. package/dist/PerpsController.d.mts +4 -4
  10. package/dist/PerpsController.mjs +5 -5
  11. package/dist/PerpsController.mjs.map +1 -1
  12. package/dist/constants/eventNames.cjs +17 -17
  13. package/dist/constants/eventNames.cjs.map +1 -1
  14. package/dist/constants/eventNames.mjs +17 -17
  15. package/dist/constants/eventNames.mjs.map +1 -1
  16. package/dist/perpsErrorCodes.cjs +4 -0
  17. package/dist/perpsErrorCodes.cjs.map +1 -1
  18. package/dist/perpsErrorCodes.d.cts +2 -0
  19. package/dist/perpsErrorCodes.d.cts.map +1 -1
  20. package/dist/perpsErrorCodes.d.mts +2 -0
  21. package/dist/perpsErrorCodes.d.mts.map +1 -1
  22. package/dist/perpsErrorCodes.mjs +4 -0
  23. package/dist/perpsErrorCodes.mjs.map +1 -1
  24. package/dist/providers/HyperLiquidProvider.cjs +76 -25
  25. package/dist/providers/HyperLiquidProvider.cjs.map +1 -1
  26. package/dist/providers/HyperLiquidProvider.d.cts.map +1 -1
  27. package/dist/providers/HyperLiquidProvider.d.mts.map +1 -1
  28. package/dist/providers/HyperLiquidProvider.mjs +76 -25
  29. package/dist/providers/HyperLiquidProvider.mjs.map +1 -1
  30. package/dist/services/HyperLiquidSubscriptionService.cjs +9 -0
  31. package/dist/services/HyperLiquidSubscriptionService.cjs.map +1 -1
  32. package/dist/services/HyperLiquidSubscriptionService.d.cts +7 -0
  33. package/dist/services/HyperLiquidSubscriptionService.d.cts.map +1 -1
  34. package/dist/services/HyperLiquidSubscriptionService.d.mts +7 -0
  35. package/dist/services/HyperLiquidSubscriptionService.d.mts.map +1 -1
  36. package/dist/services/HyperLiquidSubscriptionService.mjs +9 -0
  37. package/dist/services/HyperLiquidSubscriptionService.mjs.map +1 -1
  38. package/dist/services/TradingService.cjs +14 -14
  39. package/dist/services/TradingService.cjs.map +1 -1
  40. package/dist/services/TradingService.d.cts +2 -2
  41. package/dist/services/TradingService.d.mts +2 -2
  42. package/dist/services/TradingService.mjs +14 -14
  43. package/dist/services/TradingService.mjs.map +1 -1
  44. package/dist/types/index.cjs +1 -1
  45. package/dist/types/index.cjs.map +1 -1
  46. package/dist/types/index.d.cts +2 -2
  47. package/dist/types/index.d.mts +2 -2
  48. package/dist/types/index.mjs +1 -1
  49. package/dist/types/index.mjs.map +1 -1
  50. package/package.json +1 -1
@@ -730,25 +730,25 @@ export declare class PerpsController extends BaseController<'PerpsController', P
730
730
  */
731
731
  getWithdrawalRoutes(): AssetRoute[];
732
732
  /**
733
- * Set the transient UTM / discovery attribution context (TAT-3133, TAT-3140).
733
+ * Set the transient UTM / discovery attribution context.
734
734
  * Replaces any previously set context. Held in-memory only — not persisted.
735
735
  *
736
736
  * @param context - The attribution context (UTM fields) to store.
737
737
  */
738
738
  setAttributionContext(context: PerpsAttributionContext): void;
739
739
  /**
740
- * Get a copy of the current attribution context (TAT-3133, TAT-3140).
740
+ * Get a copy of the current attribution context.
741
741
  *
742
742
  * @returns A shallow copy of the stored attribution context.
743
743
  */
744
744
  getAttributionContext(): PerpsAttributionContext;
745
745
  /**
746
- * Clear the stored attribution context (TAT-3133, TAT-3140).
746
+ * Clear the stored attribution context.
747
747
  */
748
748
  clearAttributionContext(): void;
749
749
  /**
750
750
  * Merge the stored UTM attribution context into a set of analytics event
751
- * properties (TAT-3133, TAT-3140). Only defined UTM fields are added, mapped
751
+ * properties. Only defined UTM fields are added, mapped
752
752
  * to their canonical PERPS_EVENT_PROPERTY keys. Provided properties take
753
753
  * precedence and are never overwritten.
754
754
  *
@@ -730,25 +730,25 @@ export declare class PerpsController extends BaseController<'PerpsController', P
730
730
  */
731
731
  getWithdrawalRoutes(): AssetRoute[];
732
732
  /**
733
- * Set the transient UTM / discovery attribution context (TAT-3133, TAT-3140).
733
+ * Set the transient UTM / discovery attribution context.
734
734
  * Replaces any previously set context. Held in-memory only — not persisted.
735
735
  *
736
736
  * @param context - The attribution context (UTM fields) to store.
737
737
  */
738
738
  setAttributionContext(context: PerpsAttributionContext): void;
739
739
  /**
740
- * Get a copy of the current attribution context (TAT-3133, TAT-3140).
740
+ * Get a copy of the current attribution context.
741
741
  *
742
742
  * @returns A shallow copy of the stored attribution context.
743
743
  */
744
744
  getAttributionContext(): PerpsAttributionContext;
745
745
  /**
746
- * Clear the stored attribution context (TAT-3133, TAT-3140).
746
+ * Clear the stored attribution context.
747
747
  */
748
748
  clearAttributionContext(): void;
749
749
  /**
750
750
  * Merge the stored UTM attribution context into a set of analytics event
751
- * properties (TAT-3133, TAT-3140). Only defined UTM fields are added, mapped
751
+ * properties. Only defined UTM fields are added, mapped
752
752
  * to their canonical PERPS_EVENT_PROPERTY keys. Provided properties take
753
753
  * precedence and are never overwritten.
754
754
  *
@@ -512,7 +512,7 @@ export class PerpsController extends BaseController {
512
512
  // through to each provider, which applies its own default when this is undefined.
513
513
  _PerpsController_priceDeviationLimit.set(this, void 0);
514
514
  /**
515
- * Transient UTM / discovery attribution context (TAT-3133, TAT-3140).
515
+ * Transient UTM / discovery attribution context.
516
516
  * Held in-memory only (never persisted in PerpsControllerState) and merged
517
517
  * into analytics event properties via {@link mergeAttributionContext}.
518
518
  */
@@ -1969,7 +1969,7 @@ export class PerpsController extends BaseController {
1969
1969
  }
1970
1970
  }
1971
1971
  /**
1972
- * Set the transient UTM / discovery attribution context (TAT-3133, TAT-3140).
1972
+ * Set the transient UTM / discovery attribution context.
1973
1973
  * Replaces any previously set context. Held in-memory only — not persisted.
1974
1974
  *
1975
1975
  * @param context - The attribution context (UTM fields) to store.
@@ -1978,7 +1978,7 @@ export class PerpsController extends BaseController {
1978
1978
  __classPrivateFieldSet(this, _PerpsController_attributionContext, { ...context }, "f");
1979
1979
  }
1980
1980
  /**
1981
- * Get a copy of the current attribution context (TAT-3133, TAT-3140).
1981
+ * Get a copy of the current attribution context.
1982
1982
  *
1983
1983
  * @returns A shallow copy of the stored attribution context.
1984
1984
  */
@@ -1986,14 +1986,14 @@ export class PerpsController extends BaseController {
1986
1986
  return { ...__classPrivateFieldGet(this, _PerpsController_attributionContext, "f") };
1987
1987
  }
1988
1988
  /**
1989
- * Clear the stored attribution context (TAT-3133, TAT-3140).
1989
+ * Clear the stored attribution context.
1990
1990
  */
1991
1991
  clearAttributionContext() {
1992
1992
  __classPrivateFieldSet(this, _PerpsController_attributionContext, {}, "f");
1993
1993
  }
1994
1994
  /**
1995
1995
  * Merge the stored UTM attribution context into a set of analytics event
1996
- * properties (TAT-3133, TAT-3140). Only defined UTM fields are added, mapped
1996
+ * properties. Only defined UTM fields are added, mapped
1997
1997
  * to their canonical PERPS_EVENT_PROPERTY keys. Provided properties take
1998
1998
  * precedence and are never overwritten.
1999
1999
  *