@metamask-previews/perps-controller 22.3.0-preview-04cf473 → 22.3.0-preview-a2a3d82

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 (36) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/PerpsController-method-action-types.d.ts +19 -1
  3. package/dist/PerpsController-method-action-types.d.ts.map +1 -1
  4. package/dist/PerpsController-method-action-types.js.map +1 -1
  5. package/dist/PerpsController.d.ts +16 -1
  6. package/dist/PerpsController.d.ts.map +1 -1
  7. package/dist/PerpsController.js +32 -0
  8. package/dist/PerpsController.js.map +1 -1
  9. package/dist/constants/perpsConfig.d.ts +16 -0
  10. package/dist/constants/perpsConfig.d.ts.map +1 -1
  11. package/dist/constants/perpsConfig.js +24 -0
  12. package/dist/constants/perpsConfig.js.map +1 -1
  13. package/dist/index.d.ts +4 -4
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/providers/AggregatedPerpsProvider.d.ts +10 -1
  18. package/dist/providers/AggregatedPerpsProvider.d.ts.map +1 -1
  19. package/dist/providers/AggregatedPerpsProvider.js +20 -0
  20. package/dist/providers/AggregatedPerpsProvider.js.map +1 -1
  21. package/dist/providers/HyperLiquidProvider.d.ts +10 -1
  22. package/dist/providers/HyperLiquidProvider.d.ts.map +1 -1
  23. package/dist/providers/HyperLiquidProvider.js +20 -0
  24. package/dist/providers/HyperLiquidProvider.js.map +1 -1
  25. package/dist/services/HyperLiquidSubscriptionService.d.ts +22 -1
  26. package/dist/services/HyperLiquidSubscriptionService.d.ts.map +1 -1
  27. package/dist/services/HyperLiquidSubscriptionService.js +90 -0
  28. package/dist/services/HyperLiquidSubscriptionService.js.map +1 -1
  29. package/dist/types/index.d.ts +43 -0
  30. package/dist/types/index.d.ts.map +1 -1
  31. package/dist/types/index.js.map +1 -1
  32. package/dist/utils/perpsFormatters.d.ts +125 -53
  33. package/dist/utils/perpsFormatters.d.ts.map +1 -1
  34. package/dist/utils/perpsFormatters.js +345 -202
  35. package/dist/utils/perpsFormatters.js.map +1 -1
  36. package/package.json +2 -1
@@ -1,3 +1,40 @@
1
+ /**
2
+ * Locale-bound number formatting the perps rules run on. The `Formatters`
3
+ * returned by `createFormatters({ locale })` from `@metamask/client-utils`
4
+ * satisfy it, with a cached `Intl.NumberFormat` per locale and options.
5
+ */
6
+ export type PerpsIntlFormatters = {
7
+ /** Formats a number with `Intl.NumberFormat` options. */
8
+ formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
9
+ /** Formats a currency amount with `Intl.NumberFormat` options. */
10
+ formatCurrency(value: number, currency: string, options?: Intl.NumberFormatOptions): string;
11
+ };
12
+ /**
13
+ * When a formatter prefixes a sign, using the `Intl.NumberFormat`
14
+ * `signDisplay` names. A value that rounds to zero at the displayed precision
15
+ * counts as zero, so no mode shows `-0.00`.
16
+ *
17
+ * - `auto`: `-` for negative values only.
18
+ * - `always`: `+` for positive values and zero, `-` for negative values.
19
+ * - `exceptZero`: `+` for positive, `-` for negative, nothing for zero.
20
+ * - `never`: no sign.
21
+ */
22
+ export type PerpsSignDisplay = 'auto' | 'always' | 'exceptZero' | 'never';
23
+ /**
24
+ * Options shared by every perps display formatter.
25
+ */
26
+ export type PerpsDisplayFormatOptions = {
27
+ /**
28
+ * Locale-bound formatters from the client, e.g.
29
+ * `createFormatters({ locale })` from `@metamask/client-utils`, built once
30
+ * per locale. Default: `en-US`.
31
+ */
32
+ formatters?: PerpsIntlFormatters;
33
+ /** Fraction digits to show; pass a `PERPS_DISPLAY_PRECISION` value. */
34
+ decimals?: number;
35
+ /** When to show a sign; each formatter documents its default. */
36
+ sign?: PerpsSignDisplay;
37
+ };
1
38
  /**
2
39
  * Price threshold constants for PRICE_RANGES_UNIVERSAL
3
40
  * These define the boundaries between different formatting ranges
@@ -104,101 +141,136 @@ export declare const PRICE_RANGES_MINIMAL_VIEW: FiatRangeConfig[];
104
141
  */
105
142
  export declare const PRICE_RANGES_UNIVERSAL: FiatRangeConfig[];
106
143
  /**
107
- * Formats a balance value as USD currency with appropriate decimal places
108
- *
109
- * @param balance - Raw numeric balance value (e.g., 1234.56, not token minimal denomination)
110
- * @param options - Optional formatting options
111
- * @param options.minimumDecimals - Global minimum decimal places (overrides range configs)
112
- * @param options.maximumDecimals - Global maximum decimal places (overrides range configs)
113
- * @param options.significantDigits - Global significant digits (overrides decimal settings when set)
114
- * @param options.ranges - Custom range configurations (defaults to PRICE_RANGES_MINIMAL_VIEW)
115
- * @param options.currency - Currency code (default: 'USD')
116
- * @param options.locale - Locale for formatting (default: 'en-US')
117
- * @param options.stripTrailingZeros - Strip trailing zeros from output (default: false via PRICE_RANGES_MINIMAL_VIEW). When true, overrides minimumDecimals constraint.
118
- * @returns Formatted currency string with variable decimals based on configured ranges
119
- * @example
120
- * // Using defaults (preserves trailing zeros for fiat)
121
- * formatPerpsFiat(1234.56) => "$1,234.56"
122
- * formatPerpsFiat(1250.00) => "$1,250.00" // Trailing zeros preserved
123
- * formatPerpsFiat(50000) => "$50,000.00" // Trailing zeros preserved
124
- *
125
- * // Stripping trailing zeros when needed (e.g., for crypto)
126
- * formatPerpsFiat(1250, { stripTrailingZeros: true }) => "$1,250"
127
- *
128
- * // With custom ranges
129
- * formatPerpsFiat(0.00001, {
130
- * ranges: [
131
- * { condition: (v) => v < 0.001, minimumDecimals: 6, maximumDecimals: 8 },
132
- * { condition: () => true, minimumDecimals: 2, maximumDecimals: 2 }
133
- * ]
134
- * }) => "$0.00001" // Trailing zero stripped
135
- *
136
- * // With significant digits
137
- * formatPerpsFiat(1234.56789, { significantDigits: 5 }) => "$1,234.6"
138
- * formatPerpsFiat(0.0001234, { significantDigits: 3 }) => "$0.000123"
144
+ * Options for `formatPerpsFiat`.
139
145
  */
140
- export declare const formatPerpsFiat: (balance: string | number, options?: {
146
+ export type PerpsFiatFormatOptions = PerpsDisplayFormatOptions & {
147
+ /** Global minimum decimal places (overrides `decimals` and range configs). */
141
148
  minimumDecimals?: number;
149
+ /** Global maximum decimal places (overrides `decimals` and range configs). */
142
150
  maximumDecimals?: number;
151
+ /** Global significant digits (overrides decimal settings when set). */
143
152
  significantDigits?: number;
153
+ /** Range configurations (default `PRICE_RANGES_MINIMAL_VIEW`). */
144
154
  ranges?: FiatRangeConfig[];
155
+ /** ISO 4217 currency code (default `USD`). */
145
156
  currency?: string;
146
- locale?: string;
157
+ /** Strip trailing zeros; `false` keeps them whatever the range says. */
147
158
  stripTrailingZeros?: boolean;
148
- }) => string;
159
+ /**
160
+ * Locale passed to a range's `customFormat` (default `en-US`). The output
161
+ * locale comes from `formatters`.
162
+ */
163
+ locale?: string;
164
+ };
165
+ /**
166
+ * Formats a fiat value (balance, price, fee, position value) as currency with
167
+ * decimal places chosen by the matching range.
168
+ *
169
+ * @param balance - Raw numeric value (e.g., 1234.56, not token minimal denomination).
170
+ * @param options - Formatting options.
171
+ * @param options.formatters - Locale-bound formatters, e.g. `createFormatters({ locale: 'de' })` from `@metamask/client-utils` (default `en-US`).
172
+ * @param options.decimals - Fixed decimal places (e.g. `PERPS_DISPLAY_PRECISION.Fee`), overriding the range.
173
+ * @param options.sign - Sign display (default `auto`: `-` for negative values only).
174
+ * @param options.minimumDecimals - Global minimum decimal places (overrides `decimals` and range configs).
175
+ * @param options.maximumDecimals - Global maximum decimal places (overrides `decimals` and range configs).
176
+ * @param options.significantDigits - Global significant digits (overrides decimal settings when set).
177
+ * @param options.ranges - Custom range configurations (defaults to PRICE_RANGES_MINIMAL_VIEW).
178
+ * @param options.currency - Currency code (default: 'USD').
179
+ * @param options.stripTrailingZeros - Strip trailing zeros from output. `false` keeps them; otherwise the range decides (default: strip).
180
+ * @param options.locale - Locale passed to a range's `customFormat` only (default `en-US`).
181
+ * @returns Formatted currency string, or `PERPS_CONSTANTS.FallbackPriceDisplay`
182
+ * (`$---`) for a missing value.
183
+ * @example
184
+ * formatPerpsFiat(1234.56) => "$1,234.56"
185
+ * formatPerpsFiat(1250) => "$1,250" // fiat-style stripping of .00
186
+ * formatPerpsFiat(-0.004) => "-<$0.01" // below the range threshold
187
+ * formatPerpsFiat(1234.5, { formatters: createFormatters({ locale: 'de' }) }) => "1.234,50 $"
188
+ * formatPerpsFiat(12345.67, { ranges: PRICE_RANGES_UNIVERSAL }) => "$12,346"
189
+ * formatPerpsFiat(undefined) => "$---"
190
+ */
191
+ export declare const formatPerpsFiat: (balance: string | number | null | undefined, options?: PerpsFiatFormatOptions) => string;
149
192
  /**
150
193
  * Formats position size with variable decimal precision based on magnitude or asset-specific decimals
151
- * Removes trailing zeros to match task requirements
194
+ * Removes trailing zeros and never groups thousands.
152
195
  *
153
196
  * @param size - Raw position size value
154
- * @param szDecimals - Optional asset-specific decimal precision from Hyperliquid metadata (e.g., BTC=5, ETH=4, DOGE=1)
197
+ * @param szDecimalsOrOptions - Asset-specific decimal precision from Hyperliquid metadata
198
+ * (e.g., BTC=5, ETH=4, DOGE=1), or options:
199
+ * `decimals` (the same precision), `formatters` (default `en-US`) and `sign` (default `auto`).
155
200
  * @returns Format varies by size or uses asset-specific decimals, with trailing zeros removed:
156
- * If szDecimals provided: Uses exact decimals (e.g., 0.00009 BTC with szDecimals=5 => "0.00009")
201
+ * If decimals are provided: Uses at most those decimals (e.g., 0.00009 BTC with szDecimals=5 => "0.00009")
157
202
  * Otherwise falls back to magnitude-based logic:
158
203
  * - Size < 0.01: Up to 6 decimals (e.g., "0.00009" not "0.000090")
159
204
  * - Size < 1: Up to 4 decimals (e.g., "0.0024" not "0.002400")
160
205
  * - Size >= 1: Up to 2 decimals (e.g., "44" not "44.00")
206
+ * A missing value returns `PERPS_CONSTANTS.FallbackDataDisplay` (`--`).
161
207
  * @example formatPositionSize(0.00009, 5) => "0.00009" (uses szDecimals)
162
208
  * @example formatPositionSize(44.00, 1) => "44" (uses szDecimals, trailing zeros removed)
163
209
  * @example formatPositionSize(0.0024) => "0.0024" (no szDecimals, uses magnitude logic)
164
- * @example formatPositionSize(44.00) => "44" (no szDecimals, uses magnitude logic)
210
+ * @example formatPositionSize(-1234.5, { decimals: 2, formatters: createFormatters({ locale: 'es' }) }) => "-1234,5"
211
+ * @example formatPositionSize(undefined) => "--"
165
212
  */
166
- export declare const formatPositionSize: (size: string | number, szDecimals?: number) => string;
213
+ export declare const formatPositionSize: (size: string | number | null | undefined, szDecimalsOrOptions?: number | PerpsDisplayFormatOptions) => string;
167
214
  /**
168
- * Formats a PnL (Profit and Loss) value with sign prefix
215
+ * Formats a PnL (Profit and Loss) value as USD with a sign prefix
169
216
  *
170
217
  * @param pnl - Raw numeric PnL value (positive for profit, negative for loss)
171
- * @returns Format: "+$X,XXX.XX" or "-$X,XXX.XX" (always shows sign, 2 decimals)
218
+ * @param options - `formatters` (default `en-US`), `decimals` (default
219
+ * `PERPS_DISPLAY_PRECISION.Pnl`, 2) and `sign` (default `always`).
220
+ * @returns Format: "+$X,XXX.XX" or "-$X,XXX.XX", or
221
+ * `PERPS_CONSTANTS.FallbackPriceDisplay` (`$---`) for a missing value.
172
222
  * @example formatPnl(1234.56) => "+$1,234.56"
173
223
  * @example formatPnl(-500) => "-$500.00"
174
224
  * @example formatPnl(0) => "+$0.00"
225
+ * @example formatPnl(0, { sign: 'exceptZero' }) => "$0.00"
226
+ * @example formatPnl(1234.5, { formatters: createFormatters({ locale: 'es' }) }) => "+1234,50 $"
227
+ * @example formatPnl(undefined) => "$---"
175
228
  */
176
- export declare const formatPnl: (pnl: string | number) => string;
229
+ export declare const formatPnl: (pnl: string | number | null | undefined, options?: PerpsDisplayFormatOptions) => string;
177
230
  /**
178
- * Formats a percentage value with sign prefix
231
+ * Formats a percentage value (change, RoE, fee rate, slippage) with a sign
232
+ * prefix and locale separators. Pick the precision from
233
+ * `PERPS_DISPLAY_PRECISION`.
179
234
  *
180
235
  * @param value - Raw percentage value (e.g., 5.25 for 5.25%, not 0.0525)
181
- * @param decimals - Number of decimal places to show (default: 2)
182
- * @returns Format: "+X.XX%" or "-X.XX%" (always shows sign, 2 decimals)
236
+ * @param decimalsOrOptions - Decimal places (default:
237
+ * `PERPS_DISPLAY_PRECISION.Percentage`, 2), or options: `decimals`,
238
+ * `formatters` (default `en-US`) and `sign` (default `always`).
239
+ * @returns Format: "+X.XX%" or "-X.XX%", or
240
+ * `PERPS_CONSTANTS.FallbackPercentageDisplay` (`--%`) for a missing value.
183
241
  * @example formatPercentage(5.25) => "+5.25%"
184
242
  * @example formatPercentage(-2.75) => "-2.75%"
185
243
  * @example formatPercentage(0) => "+0.00%"
244
+ * @example formatPercentage(10.25, { decimals: PERPS_DISPLAY_PRECISION.RoePercent }) => "+10.3%"
245
+ * @example formatPercentage(0.0021, { decimals: PERPS_DISPLAY_PRECISION.SlippageEstimatePercent, sign: 'never' }) => "0.0021%"
246
+ * @example formatPercentage(-12345.67, { decimals: 1, formatters: createFormatters({ locale: 'es' }) }) => "-12.345,7%"
247
+ * @example formatPercentage(undefined) => "--%"
248
+ */
249
+ export declare const formatPercentage: (value: string | number | null | undefined, decimalsOrOptions?: number | PerpsDisplayFormatOptions) => string;
250
+ /**
251
+ * Options for `formatFundingRate`.
186
252
  */
187
- export declare const formatPercentage: (value: string | number, decimals?: number) => string;
253
+ export type PerpsFundingRateFormatOptions = PerpsDisplayFormatOptions & {
254
+ /** `false` returns an empty string for a missing rate (default `true`). */
255
+ showZero?: boolean;
256
+ };
188
257
  /**
189
258
  * Formats funding rate for display
190
259
  *
191
260
  * @param value - Raw funding rate value (decimal, not percentage)
192
261
  * @param options - Optional formatting options
193
- * @param options.showZero - Whether to return zero display value for zero/undefined (default: true)
194
- * @returns Formatted funding rate as percentage string
262
+ * @param options.showZero - `false` returns an empty string instead of the placeholder for a missing rate (default: true)
263
+ * @param options.formatters - Locale-bound formatters, e.g. `createFormatters({ locale })` from `@metamask/client-utils` (default `en-US`)
264
+ * @param options.decimals - Decimal places (default `PERPS_DISPLAY_PRECISION.FundingRatePercent`, 4)
265
+ * @param options.sign - Sign display (default `auto`: `-` for negative rates only)
266
+ * @returns Formatted funding rate as percentage string, or
267
+ * `PERPS_CONSTANTS.FallbackPercentageDisplay` (`--%`) for a missing rate.
195
268
  * @example formatFundingRate(0.0005) => "0.0500%"
196
269
  * @example formatFundingRate(-0.0001) => "-0.0100%"
197
270
  * @example formatFundingRate(0.000000059) => "<0.0001%"
198
271
  * @example formatFundingRate(-0.000000059) => "-<0.0001%"
199
- * @example formatFundingRate(undefined) => "0.0000%"
272
+ * @example formatFundingRate(0.0005, { sign: 'always', formatters: createFormatters({ locale: 'es' }) }) => "+0,0500%"
273
+ * @example formatFundingRate(undefined) => "--%"
200
274
  */
201
- export declare const formatFundingRate: (value?: number | null, options?: {
202
- showZero?: boolean;
203
- }) => string;
275
+ export declare const formatFundingRate: (value?: string | number | null, options?: PerpsFundingRateFormatOptions) => string;
204
276
  //# sourceMappingURL=perpsFormatters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"perpsFormatters.d.ts","sourceRoot":"","sources":["../../src/utils/perpsFormatters.ts"],"names":[],"mappings":"AAyEA;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,0CAA0C;aAC1C,SAAS,EAAE,MAAO;IAClB,oCAAoC;aACpC,IAAI,EAAE,KAAM;IACZ,oCAAoC;aACpC,KAAK,EAAE,IAAK;IACZ,sCAAsC;aACtC,MAAM,EAAE,GAAG;IACX,yCAAyC;aACzC,UAAU,EAAE,EAAE;IACd,qCAAqC;aACrC,GAAG,EAAE,IAAI;IACT;;;;OAIG;aACH,UAAU,EAAE,QAAQ;CACZ,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,4CAA4C;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,iBAA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