@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.
- package/CHANGELOG.md +7 -0
- package/dist/PerpsController-method-action-types.cjs.map +1 -1
- package/dist/PerpsController-method-action-types.d.cts +3 -3
- package/dist/PerpsController-method-action-types.d.mts +3 -3
- package/dist/PerpsController-method-action-types.mjs.map +1 -1
- package/dist/PerpsController.cjs +5 -5
- package/dist/PerpsController.cjs.map +1 -1
- package/dist/PerpsController.d.cts +4 -4
- package/dist/PerpsController.d.mts +4 -4
- package/dist/PerpsController.mjs +5 -5
- package/dist/PerpsController.mjs.map +1 -1
- package/dist/constants/eventNames.cjs +17 -17
- package/dist/constants/eventNames.cjs.map +1 -1
- package/dist/constants/eventNames.mjs +17 -17
- package/dist/constants/eventNames.mjs.map +1 -1
- package/dist/perpsErrorCodes.cjs +4 -0
- package/dist/perpsErrorCodes.cjs.map +1 -1
- package/dist/perpsErrorCodes.d.cts +2 -0
- package/dist/perpsErrorCodes.d.cts.map +1 -1
- package/dist/perpsErrorCodes.d.mts +2 -0
- package/dist/perpsErrorCodes.d.mts.map +1 -1
- package/dist/perpsErrorCodes.mjs +4 -0
- package/dist/perpsErrorCodes.mjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.cjs +76 -25
- package/dist/providers/HyperLiquidProvider.cjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.cts.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.mts.map +1 -1
- package/dist/providers/HyperLiquidProvider.mjs +76 -25
- package/dist/providers/HyperLiquidProvider.mjs.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.cjs +9 -0
- package/dist/services/HyperLiquidSubscriptionService.cjs.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.d.cts +7 -0
- package/dist/services/HyperLiquidSubscriptionService.d.cts.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.d.mts +7 -0
- package/dist/services/HyperLiquidSubscriptionService.d.mts.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.mjs +9 -0
- package/dist/services/HyperLiquidSubscriptionService.mjs.map +1 -1
- package/dist/services/TradingService.cjs +14 -14
- package/dist/services/TradingService.cjs.map +1 -1
- package/dist/services/TradingService.d.cts +2 -2
- package/dist/services/TradingService.d.mts +2 -2
- package/dist/services/TradingService.mjs +14 -14
- package/dist/services/TradingService.mjs.map +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/index.mjs.map +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*
|
package/dist/PerpsController.mjs
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
*
|