@metamask-previews/perps-controller 3.2.0-preview-7a471e191 → 4.0.0-preview-6a2926f
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 +29 -1
- package/dist/PerpsController-method-action-types.cjs.map +1 -1
- package/dist/PerpsController-method-action-types.d.cts +9 -0
- package/dist/PerpsController-method-action-types.d.cts.map +1 -1
- package/dist/PerpsController-method-action-types.d.mts +9 -0
- package/dist/PerpsController-method-action-types.d.mts.map +1 -1
- package/dist/PerpsController-method-action-types.mjs.map +1 -1
- package/dist/PerpsController.cjs +15 -3
- package/dist/PerpsController.cjs.map +1 -1
- package/dist/PerpsController.d.cts +18 -3
- package/dist/PerpsController.d.cts.map +1 -1
- package/dist/PerpsController.d.mts +18 -3
- package/dist/PerpsController.d.mts.map +1 -1
- package/dist/PerpsController.mjs +15 -3
- package/dist/PerpsController.mjs.map +1 -1
- package/dist/constants/perpsConfig.cjs +28 -0
- package/dist/constants/perpsConfig.cjs.map +1 -1
- package/dist/constants/perpsConfig.d.cts +3 -0
- package/dist/constants/perpsConfig.d.cts.map +1 -1
- package/dist/constants/perpsConfig.d.mts +3 -0
- package/dist/constants/perpsConfig.d.mts.map +1 -1
- package/dist/constants/perpsConfig.mjs +28 -0
- package/dist/constants/perpsConfig.mjs.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.cjs +16 -6
- package/dist/providers/AggregatedPerpsProvider.cjs.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.d.cts +12 -4
- package/dist/providers/AggregatedPerpsProvider.d.cts.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.d.mts +12 -4
- package/dist/providers/AggregatedPerpsProvider.d.mts.map +1 -1
- package/dist/providers/AggregatedPerpsProvider.mjs +16 -6
- package/dist/providers/AggregatedPerpsProvider.mjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.cjs +56 -20
- package/dist/providers/HyperLiquidProvider.cjs.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.cts +29 -4
- package/dist/providers/HyperLiquidProvider.d.cts.map +1 -1
- package/dist/providers/HyperLiquidProvider.d.mts +29 -4
- package/dist/providers/HyperLiquidProvider.d.mts.map +1 -1
- package/dist/providers/HyperLiquidProvider.mjs +57 -21
- package/dist/providers/HyperLiquidProvider.mjs.map +1 -1
- package/dist/services/HyperLiquidClientService.cjs +131 -60
- package/dist/services/HyperLiquidClientService.cjs.map +1 -1
- package/dist/services/HyperLiquidClientService.d.cts +23 -0
- package/dist/services/HyperLiquidClientService.d.cts.map +1 -1
- package/dist/services/HyperLiquidClientService.d.mts +23 -0
- package/dist/services/HyperLiquidClientService.d.mts.map +1 -1
- package/dist/services/HyperLiquidClientService.mjs +132 -61
- package/dist/services/HyperLiquidClientService.mjs.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.cjs +193 -11
- package/dist/services/HyperLiquidSubscriptionService.cjs.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.d.cts.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.d.mts.map +1 -1
- package/dist/services/HyperLiquidSubscriptionService.mjs +194 -12
- package/dist/services/HyperLiquidSubscriptionService.mjs.map +1 -1
- package/dist/services/MarketDataService.cjs +89 -6
- package/dist/services/MarketDataService.cjs.map +1 -1
- package/dist/services/MarketDataService.d.cts +19 -0
- package/dist/services/MarketDataService.d.cts.map +1 -1
- package/dist/services/MarketDataService.d.mts +19 -0
- package/dist/services/MarketDataService.d.mts.map +1 -1
- package/dist/services/MarketDataService.mjs +89 -6
- package/dist/services/MarketDataService.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +21 -3
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +21 -3
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/accountUtils.cjs +74 -1
- package/dist/utils/accountUtils.cjs.map +1 -1
- package/dist/utils/accountUtils.d.cts +4 -0
- package/dist/utils/accountUtils.d.cts.map +1 -1
- package/dist/utils/accountUtils.d.mts +4 -0
- package/dist/utils/accountUtils.d.mts.map +1 -1
- package/dist/utils/accountUtils.mjs +70 -0
- package/dist/utils/accountUtils.mjs.map +1 -1
- package/dist/utils/coalescePerpsRestRequest.cjs +71 -0
- package/dist/utils/coalescePerpsRestRequest.cjs.map +1 -0
- package/dist/utils/coalescePerpsRestRequest.d.cts +32 -0
- package/dist/utils/coalescePerpsRestRequest.d.cts.map +1 -0
- package/dist/utils/coalescePerpsRestRequest.d.mts +32 -0
- package/dist/utils/coalescePerpsRestRequest.d.mts.map +1 -0
- package/dist/utils/coalescePerpsRestRequest.mjs +66 -0
- package/dist/utils/coalescePerpsRestRequest.mjs.map +1 -0
- package/dist/utils/hyperLiquidAdapter.cjs +7 -7
- package/dist/utils/hyperLiquidAdapter.cjs.map +1 -1
- package/dist/utils/hyperLiquidAdapter.d.cts +2 -2
- package/dist/utils/hyperLiquidAdapter.d.cts.map +1 -1
- package/dist/utils/hyperLiquidAdapter.d.mts +2 -2
- package/dist/utils/hyperLiquidAdapter.d.mts.map +1 -1
- package/dist/utils/hyperLiquidAdapter.mjs +7 -7
- package/dist/utils/hyperLiquidAdapter.mjs.map +1 -1
- package/dist/utils/perpsFormatters.cjs +5 -1
- package/dist/utils/perpsFormatters.cjs.map +1 -1
- package/dist/utils/perpsFormatters.d.cts.map +1 -1
- package/dist/utils/perpsFormatters.d.mts.map +1 -1
- package/dist/utils/perpsFormatters.mjs +5 -1
- package/dist/utils/perpsFormatters.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.0.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `coalescePerpsRestRequest` utility for deduplicating concurrent REST requests with account-scoped cache keys ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
15
|
+
- Add `accountUtils` helpers for resolving the active perps account id and pinning it to forwarded provider params ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Account-scope the REST cache and guard cache writes so mount load stays cacheable without cross-account bleed ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
20
|
+
- Make `forceRefresh` provider-agnostic and align rate-limit handling with the extension ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
21
|
+
- Regenerate `PerpsController` method action types; shrink rate-limit diff and drop verbose history logs ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
|
|
25
|
+
- **BREAKING:** Drop the dead `spotState` parameter from `adaptAccountStateFromSDK`. Spot balances are layered on by `addSpotBalanceToAccountState`, which enforces the USDC-only policy via `SPOT_COLLATERAL_COINS`; removing the dormant branch keeps one source of truth and prevents a future caller from silently getting ALL-coins behavior ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- HyperLiquid Unified-mode live balance: subscribe to `spotState` WS and compute tradeable/total balance from on-chain math ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
30
|
+
- Complete spot-balance parity with the extension consumer ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
31
|
+
- Preserve integer trailing zeros when `szDecimals=0` in `perpsFormatters` ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
32
|
+
- Preserve candle pagination cancellation and skip coalesce for explicit-`endTime` candle paging to avoid stale pages ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
33
|
+
- Defer account resolution on the non-paginated cache path to prevent race conditions ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
34
|
+
- Force-refresh on activity mount and evict expired coalesce entries so stale promises cannot resolve to cache ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
35
|
+
- Normalize `event.user` to lowercase when caching the spot-state WS address so `#ensureSpotState` hits the cache instead of triggering a redundant REST `spotClearinghouseState` refetch when HyperLiquid returns a checksummed address ([#8560](https://github.com/MetaMask/core/pull/8560))
|
|
36
|
+
|
|
10
37
|
## [3.2.0]
|
|
11
38
|
|
|
12
39
|
### Added
|
|
@@ -218,7 +245,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
218
245
|
|
|
219
246
|
- Bump `@metamask/controller-utils` from `^11.18.0` to `^11.19.0` ([#7995](https://github.com/MetaMask/core/pull/7995))
|
|
220
247
|
|
|
221
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@
|
|
248
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@4.0.0...HEAD
|
|
249
|
+
[4.0.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@3.2.0...@metamask/perps-controller@4.0.0
|
|
222
250
|
[3.2.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@3.1.1...@metamask/perps-controller@3.2.0
|
|
223
251
|
[3.1.1]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@3.1.0...@metamask/perps-controller@3.1.1
|
|
224
252
|
[3.1.0]: https://github.com/MetaMask/core/compare/@metamask/perps-controller@3.0.0...@metamask/perps-controller@3.1.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerpsController-method-action-types.cjs","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PerpsController } from './PerpsController';\n\n/**\n * Read cached market data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists or when cache has expired.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 5-minute TTL check.\n * Used during initial render so disk-hydrated structural data (with\n * placeholder prices) is returned regardless of age.\n * @returns The cached market data array, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedMarketDataForActiveProviderAction = {\n type: `PerpsController:getCachedMarketDataForActiveProvider`;\n handler: PerpsController['getCachedMarketDataForActiveProvider'];\n};\n\n/**\n * Read cached user data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists, cache has expired, or address\n * does not match the currently selected EVM account.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 60s staleness check.\n * Used during initial render so disk-hydrated user data (positions/orders)\n * is returned regardless of age, avoiding a skeleton flash.\n * @returns The cached user data, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedUserDataForActiveProviderAction = {\n type: `PerpsController:getCachedUserDataForActiveProvider`;\n handler: PerpsController['getCachedUserDataForActiveProvider'];\n};\n\n/**\n * Initialize the PerpsController providers\n * Must be called before using any other methods\n * Prevents double initialization with promise caching\n *\n * @returns A promise that resolves when the operation completes.\n */\nexport type PerpsControllerInitAction = {\n type: `PerpsController:init`;\n handler: PerpsController['init'];\n};\n\n/**\n * Get the currently active provider.\n * In aggregated mode, returns AggregatedPerpsProvider which routes to underlying providers.\n * In single provider mode, returns HyperLiquidProvider directly.\n *\n * @returns The active provider (aggregated wrapper or direct provider based on mode)\n * @throws Error if provider is not initialized or reinitializing\n */\nexport type PerpsControllerGetActiveProviderAction = {\n type: `PerpsController:getActiveProvider`;\n handler: PerpsController['getActiveProvider'];\n};\n\n/**\n * Get the currently active provider, returning null if not available\n * Use this method when the caller can gracefully handle a missing provider\n * (e.g., UI components during initialization or reconnection)\n *\n * @returns The active provider, or null if not initialized/reinitializing\n */\nexport type PerpsControllerGetActiveProviderOrNullAction = {\n type: `PerpsController:getActiveProviderOrNull`;\n handler: PerpsController['getActiveProviderOrNull'];\n};\n\n/**\n * Place a new order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result with order ID and status.\n */\nexport type PerpsControllerPlaceOrderAction = {\n type: `PerpsController:placeOrder`;\n handler: PerpsController['placeOrder'];\n};\n\n/**\n * Edit an existing order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The updated order result with order ID and status.\n */\nexport type PerpsControllerEditOrderAction = {\n type: `PerpsController:editOrder`;\n handler: PerpsController['editOrder'];\n};\n\n/**\n * Cancel an existing order\n *\n * @param params - The operation parameters.\n * @returns The cancellation result with status.\n */\nexport type PerpsControllerCancelOrderAction = {\n type: `PerpsController:cancelOrder`;\n handler: PerpsController['cancelOrder'];\n};\n\n/**\n * Cancel multiple orders in parallel\n * Batch version of cancelOrder() that cancels multiple orders simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch cancellation results for each order.\n */\nexport type PerpsControllerCancelOrdersAction = {\n type: `PerpsController:cancelOrders`;\n handler: PerpsController['cancelOrders'];\n};\n\n/**\n * Close a position (partial or full)\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result from the close position request.\n */\nexport type PerpsControllerClosePositionAction = {\n type: `PerpsController:closePosition`;\n handler: PerpsController['closePosition'];\n};\n\n/**\n * Close multiple positions in parallel\n * Batch version of closePosition() that closes multiple positions simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch close results for each position.\n */\nexport type PerpsControllerClosePositionsAction = {\n type: `PerpsController:closePositions`;\n handler: PerpsController['closePositions'];\n};\n\n/**\n * Update TP/SL for an existing position\n *\n * @param params - The operation parameters.\n * @returns The order result from the TP/SL update.\n */\nexport type PerpsControllerUpdatePositionTPSLAction = {\n type: `PerpsController:updatePositionTPSL`;\n handler: PerpsController['updatePositionTPSL'];\n};\n\n/**\n * Update margin for an existing position (add or remove)\n *\n * @param params - The operation parameters.\n * @returns The margin update result.\n */\nexport type PerpsControllerUpdateMarginAction = {\n type: `PerpsController:updateMargin`;\n handler: PerpsController['updateMargin'];\n};\n\n/**\n * Flip position (reverse direction while keeping size and leverage)\n *\n * @param params - The operation parameters.\n * @returns The order result from the position flip.\n */\nexport type PerpsControllerFlipPositionAction = {\n type: `PerpsController:flipPosition`;\n handler: PerpsController['flipPosition'];\n};\n\n/**\n * Simplified deposit method that prepares transaction for confirmation screen\n * No complex state tracking - just sets a loading flag\n *\n * @param params - Parameters for the deposit flow\n * @param params.amount - Optional deposit amount\n * @param params.placeOrder - If true, uses addTransaction instead of submit to avoid navigation\n * @returns An object containing a promise that resolves to the transaction hash.\n */\nexport type PerpsControllerDepositWithConfirmationAction = {\n type: `PerpsController:depositWithConfirmation`;\n handler: PerpsController['depositWithConfirmation'];\n};\n\n/**\n * Same as depositWithConfirmation - prepares transaction for confirmation screen.\n *\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerDepositWithOrderAction = {\n type: `PerpsController:depositWithOrder`;\n handler: PerpsController['depositWithOrder'];\n};\n\n/**\n * Clear the last deposit result after it has been shown to the user\n */\nexport type PerpsControllerClearDepositResultAction = {\n type: `PerpsController:clearDepositResult`;\n handler: PerpsController['clearDepositResult'];\n};\n\nexport type PerpsControllerClearWithdrawResultAction = {\n type: `PerpsController:clearWithdrawResult`;\n handler: PerpsController['clearWithdrawResult'];\n};\n\n/**\n * Update withdrawal request status when it completes, or remove it on failure.\n * This is called when a withdrawal is matched with a completed withdrawal from the API.\n * When status is `failed`, the request is removed from the queue (not retained).\n *\n * @param withdrawalId - The withdrawal transaction ID.\n * @param status - The current status.\n * @param txHash - The transaction hash.\n */\nexport type PerpsControllerUpdateWithdrawalStatusAction = {\n type: `PerpsController:updateWithdrawalStatus`;\n handler: PerpsController['updateWithdrawalStatus'];\n};\n\n/**\n * Complete a specific withdrawal detected via transaction history polling (FIFO queue).\n * Called when a completed withdrawal appears in the transaction history matching a pending request.\n *\n * Uses FIFO matching: oldest pending withdrawal is matched with first completed withdrawal\n * in history that happened after its submission time.\n *\n * @param withdrawalRequestId - The ID of the pending withdrawal request to mark as complete.\n * @param completedWithdrawal - The completed withdrawal data from the history API.\n * @param completedWithdrawal.txHash - The on-chain transaction hash.\n * @param completedWithdrawal.amount - The withdrawal amount.\n * @param completedWithdrawal.timestamp - The completion timestamp from the history API.\n * @param completedWithdrawal.asset - The asset symbol (e.g. USDC).\n */\nexport type PerpsControllerCompleteWithdrawalFromHistoryAction = {\n type: `PerpsController:completeWithdrawalFromHistory`;\n handler: PerpsController['completeWithdrawalFromHistory'];\n};\n\n/**\n * Update withdrawal progress (persistent across navigation)\n *\n * @param progress - The progress indicator.\n * @param activeWithdrawalId - The active withdrawal ID.\n */\nexport type PerpsControllerUpdateWithdrawalProgressAction = {\n type: `PerpsController:updateWithdrawalProgress`;\n handler: PerpsController['updateWithdrawalProgress'];\n};\n\n/**\n * Get current withdrawal progress\n *\n * @returns The withdrawal progress, last update timestamp, and active withdrawal ID.\n */\nexport type PerpsControllerGetWithdrawalProgressAction = {\n type: `PerpsController:getWithdrawalProgress`;\n handler: PerpsController['getWithdrawalProgress'];\n};\n\n/**\n * Withdraw funds from trading account\n *\n * The withdrawal process varies by provider and may involve:\n * - Direct on-chain transfers\n * - Bridge operations\n * - Multi-step validation processes\n *\n * Check the specific provider documentation for detailed withdrawal flows.\n *\n * @param params Withdrawal parameters\n * @returns WithdrawResult with withdrawal ID and tracking info\n */\nexport type PerpsControllerWithdrawAction = {\n type: `PerpsController:withdraw`;\n handler: PerpsController['withdraw'];\n};\n\n/**\n * Get current positions\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow position queries\n * without full perps initialization (e.g., for showing positions on token details page)\n *\n * @param params - The operation parameters.\n * @returns Array of open positions for the active provider.\n */\nexport type PerpsControllerGetPositionsAction = {\n type: `PerpsController:getPositions`;\n handler: PerpsController['getPositions'];\n};\n\n/**\n * Get historical user fills (trade executions)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical trade executions (fills).\n */\nexport type PerpsControllerGetOrderFillsAction = {\n type: `PerpsController:getOrderFills`;\n handler: PerpsController['getOrderFills'];\n};\n\n/**\n * Get historical user orders (order lifecycle)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical orders.\n */\nexport type PerpsControllerGetOrdersAction = {\n type: `PerpsController:getOrders`;\n handler: PerpsController['getOrders'];\n};\n\n/**\n * Get currently open orders (real-time status)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow open order queries\n * without full perps initialization (e.g., for background preloading)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetOpenOrdersAction = {\n type: `PerpsController:getOpenOrders`;\n handler: PerpsController['getOpenOrders'];\n};\n\n/**\n * Get historical user funding history (funding payments)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical funding payments.\n */\nexport type PerpsControllerGetFundingAction = {\n type: `PerpsController:getFunding`;\n handler: PerpsController['getFunding'];\n};\n\n/**\n * Get account state (balances, etc.)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow account state queries\n * without full perps initialization (e.g., for checking if user has perps funds)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetAccountStateAction = {\n type: `PerpsController:getAccountState`;\n handler: PerpsController['getAccountState'];\n};\n\n/**\n * Get historical portfolio data\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns The historical portfolio data points.\n */\nexport type PerpsControllerGetHistoricalPortfolioAction = {\n type: `PerpsController:getHistoricalPortfolio`;\n handler: PerpsController['getHistoricalPortfolio'];\n};\n\n/**\n * Get available markets with optional filtering\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow market discovery\n * without full perps initialization (e.g., for discovery banners on spot screens)\n *\n * @param params - The operation parameters.\n * @returns Array of available markets matching the filter criteria.\n */\nexport type PerpsControllerGetMarketsAction = {\n type: `PerpsController:getMarkets`;\n handler: PerpsController['getMarkets'];\n};\n\n/**\n * Get market data with prices (includes price, volume, 24h change)\n *\n * For standalone mode, bypasses getActiveProvider() to allow market data queries\n * without full perps initialization (e.g., for background preloading on app start)\n *\n * @param params - The operation parameters.\n * @param params.standalone - Whether to use standalone mode.\n * @returns A promise that resolves to the market data.\n */\nexport type PerpsControllerGetMarketDataWithPricesAction = {\n type: `PerpsController:getMarketDataWithPrices`;\n handler: PerpsController['getMarketDataWithPrices'];\n};\n\n/**\n * Start background market data preloading.\n * Fetches market data immediately and refreshes every 5 minutes.\n * Watches for isTestnet and hip3ConfigVersion changes to re-preload.\n */\nexport type PerpsControllerStartMarketDataPreloadAction = {\n type: `PerpsController:startMarketDataPreload`;\n handler: PerpsController['startMarketDataPreload'];\n};\n\n/**\n * Stop background market data preloading.\n */\nexport type PerpsControllerStopMarketDataPreloadAction = {\n type: `PerpsController:stopMarketDataPreload`;\n handler: PerpsController['stopMarketDataPreload'];\n};\n\n/**\n * Get list of available HIP-3 builder-deployed DEXs\n *\n * @param params - Optional parameters for filtering\n * @returns Array of DEX names\n */\nexport type PerpsControllerGetAvailableDexsAction = {\n type: `PerpsController:getAvailableDexs`;\n handler: PerpsController['getAvailableDexs'];\n};\n\n/**\n * Fetch historical candle data\n * Thin delegation to MarketDataService\n *\n * @param options - The configuration options.\n * @param options.symbol - The trading pair symbol.\n * @param options.interval - The candle interval period.\n * @param options.limit - Maximum number of items to fetch.\n * @param options.endTime - End timestamp in milliseconds.\n * @returns The historical candle data for the requested symbol and interval.\n */\nexport type PerpsControllerFetchHistoricalCandlesAction = {\n type: `PerpsController:fetchHistoricalCandles`;\n handler: PerpsController['fetchHistoricalCandles'];\n};\n\n/**\n * Calculate liquidation price for a position\n * Uses provider-specific formulas based on protocol rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerCalculateLiquidationPriceAction = {\n type: `PerpsController:calculateLiquidationPrice`;\n handler: PerpsController['calculateLiquidationPrice'];\n};\n\n/**\n * Calculate maintenance margin for a specific asset\n * Returns a percentage (e.g., 0.0125 for 1.25%)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerCalculateMaintenanceMarginAction = {\n type: `PerpsController:calculateMaintenanceMargin`;\n handler: PerpsController['calculateMaintenanceMargin'];\n};\n\n/**\n * Get maximum leverage allowed for an asset\n *\n * @param asset - The asset identifier.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerGetMaxLeverageAction = {\n type: `PerpsController:getMaxLeverage`;\n handler: PerpsController['getMaxLeverage'];\n};\n\n/**\n * Validate order parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateOrderAction = {\n type: `PerpsController:validateOrder`;\n handler: PerpsController['validateOrder'];\n};\n\n/**\n * Validate close position parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerValidateClosePositionAction = {\n type: `PerpsController:validateClosePosition`;\n handler: PerpsController['validateClosePosition'];\n};\n\n/**\n * Validate withdrawal parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateWithdrawalAction = {\n type: `PerpsController:validateWithdrawal`;\n handler: PerpsController['validateWithdrawal'];\n};\n\n/**\n * Get supported withdrawal routes - returns complete asset and routing information\n *\n * @returns Array of supported asset routes for withdrawals.\n */\nexport type PerpsControllerGetWithdrawalRoutesAction = {\n type: `PerpsController:getWithdrawalRoutes`;\n handler: PerpsController['getWithdrawalRoutes'];\n};\n\n/**\n * Toggle between testnet and mainnet\n *\n * @returns The toggle result with success status and current network mode.\n */\nexport type PerpsControllerToggleTestnetAction = {\n type: `PerpsController:toggleTestnet`;\n handler: PerpsController['toggleTestnet'];\n};\n\n/**\n * Switch to a different provider\n * Uses a full reinit approach: disconnect() → update state → init()\n * This ensures complete state reset including WebSocket connections and caches.\n *\n * @param providerId - The provider identifier.\n * @returns The switch result with success status and active provider.\n */\nexport type PerpsControllerSwitchProviderAction = {\n type: `PerpsController:switchProvider`;\n handler: PerpsController['switchProvider'];\n};\n\n/**\n * Get current network (mainnet/testnet)\n *\n * @returns Either 'mainnet' or 'testnet' based on the current configuration.\n */\nexport type PerpsControllerGetCurrentNetworkAction = {\n type: `PerpsController:getCurrentNetwork`;\n handler: PerpsController['getCurrentNetwork'];\n};\n\n/**\n * Get the current WebSocket connection state from the active provider.\n * Used by the UI to monitor connection health and show notifications.\n *\n * @returns The current WebSocket connection state, or DISCONNECTED if not supported\n */\nexport type PerpsControllerGetWebSocketConnectionStateAction = {\n type: `PerpsController:getWebSocketConnectionState`;\n handler: PerpsController['getWebSocketConnectionState'];\n};\n\n/**\n * Subscribe to WebSocket connection state changes from the active provider.\n * The listener will be called immediately with the current state and whenever the state changes.\n *\n * @param listener - Callback function that receives the new connection state and reconnection attempt\n * @returns Unsubscribe function to remove the listener, or no-op if not supported\n */\nexport type PerpsControllerSubscribeToConnectionStateAction = {\n type: `PerpsController:subscribeToConnectionState`;\n handler: PerpsController['subscribeToConnectionState'];\n};\n\n/**\n * Manually trigger a WebSocket reconnection attempt.\n * Used by the UI retry button when connection is lost.\n */\nexport type PerpsControllerReconnectAction = {\n type: `PerpsController:reconnect`;\n handler: PerpsController['reconnect'];\n};\n\n/**\n * Subscribe to live price updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPricesAction = {\n type: `PerpsController:subscribeToPrices`;\n handler: PerpsController['subscribeToPrices'];\n};\n\n/**\n * Subscribe to live position updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPositionsAction = {\n type: `PerpsController:subscribeToPositions`;\n handler: PerpsController['subscribeToPositions'];\n};\n\n/**\n * Subscribe to live order fill updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderFillsAction = {\n type: `PerpsController:subscribeToOrderFills`;\n handler: PerpsController['subscribeToOrderFills'];\n};\n\n/**\n * Subscribe to live order updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrdersAction = {\n type: `PerpsController:subscribeToOrders`;\n handler: PerpsController['subscribeToOrders'];\n};\n\n/**\n * Subscribe to live account updates.\n * Updates controller state (Redux) when new account data arrives so consumers\n * like usePerpsBalanceTokenFilter (PayWithModal) see the latest balance.\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToAccountAction = {\n type: `PerpsController:subscribeToAccount`;\n handler: PerpsController['subscribeToAccount'];\n};\n\n/**\n * Subscribe to full order book updates with multiple depth levels\n * Creates a dedicated L2Book subscription for real-time order book data\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderBookAction = {\n type: `PerpsController:subscribeToOrderBook`;\n handler: PerpsController['subscribeToOrderBook'];\n};\n\n/**\n * Subscribe to live candle updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToCandlesAction = {\n type: `PerpsController:subscribeToCandles`;\n handler: PerpsController['subscribeToCandles'];\n};\n\n/**\n * Subscribe to open interest cap updates\n * Zero additional network overhead - data comes from existing webData3 subscription\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOICapsAction = {\n type: `PerpsController:subscribeToOICaps`;\n handler: PerpsController['subscribeToOICaps'];\n};\n\n/**\n * Configure live data throttling\n *\n * @param config - The configuration object.\n */\nexport type PerpsControllerSetLiveDataConfigAction = {\n type: `PerpsController:setLiveDataConfig`;\n handler: PerpsController['setLiveDataConfig'];\n};\n\n/**\n * Calculate trading fees for the active provider\n * Each provider implements its own fee structure\n *\n * @param params - The operation parameters.\n * @returns The fee calculation result for the trade.\n */\nexport type PerpsControllerCalculateFeesAction = {\n type: `PerpsController:calculateFees`;\n handler: PerpsController['calculateFees'];\n};\n\n/**\n * Disconnect provider and cleanup subscriptions\n * Call this when navigating away from Perps screens to prevent battery drain\n */\nexport type PerpsControllerDisconnectAction = {\n type: `PerpsController:disconnect`;\n handler: PerpsController['disconnect'];\n};\n\n/**\n * Resume eligibility monitoring after onboarding completes.\n * Clears the deferred flag and triggers an immediate eligibility check\n * using the current remote feature flag state.\n */\nexport type PerpsControllerStartEligibilityMonitoringAction = {\n type: `PerpsController:startEligibilityMonitoring`;\n handler: PerpsController['startEligibilityMonitoring'];\n};\n\n/**\n * Stops geo-blocking eligibility monitoring.\n * Call this when the user disables basic functionality (e.g. useExternalServices becomes false).\n * Prevents geolocation calls until startEligibilityMonitoring() is called again.\n * Safe to call multiple times.\n */\nexport type PerpsControllerStopEligibilityMonitoringAction = {\n type: `PerpsController:stopEligibilityMonitoring`;\n handler: PerpsController['stopEligibilityMonitoring'];\n};\n\nexport type PerpsControllerRefreshEligibilityAction = {\n type: `PerpsController:refreshEligibility`;\n handler: PerpsController['refreshEligibility'];\n};\n\n/**\n * Get block explorer URL for an address or just the base URL\n *\n * @param address - Optional address to append to the base URL\n * @returns Block explorer URL\n */\nexport type PerpsControllerGetBlockExplorerUrlAction = {\n type: `PerpsController:getBlockExplorerUrl`;\n handler: PerpsController['getBlockExplorerUrl'];\n};\n\n/**\n * Check if user is first-time for the current network\n *\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsFirstTimeUserOnCurrentNetworkAction = {\n type: `PerpsController:isFirstTimeUserOnCurrentNetwork`;\n handler: PerpsController['isFirstTimeUserOnCurrentNetwork'];\n};\n\n/**\n * Mark that the user has completed the tutorial/onboarding\n * This prevents the tutorial from showing again\n */\nexport type PerpsControllerMarkTutorialCompletedAction = {\n type: `PerpsController:markTutorialCompleted`;\n handler: PerpsController['markTutorialCompleted'];\n};\n\nexport type PerpsControllerMarkFirstOrderCompletedAction = {\n type: `PerpsController:markFirstOrderCompleted`;\n handler: PerpsController['markFirstOrderCompleted'];\n};\n\n/**\n * Reset first-time user state for both networks\n * This is useful for testing the tutorial flow\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerResetFirstTimeUserStateAction = {\n type: `PerpsController:resetFirstTimeUserState`;\n handler: PerpsController['resetFirstTimeUserState'];\n};\n\n/**\n * Clear pending/bridging withdrawal and deposit requests\n * This is useful when users want to clear stuck pending indicators\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerClearPendingTransactionRequestsAction = {\n type: `PerpsController:clearPendingTransactionRequests`;\n handler: PerpsController['clearPendingTransactionRequests'];\n};\n\n/**\n * Get saved trade configuration for a market\n *\n * @param symbol - The trading pair symbol.\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetTradeConfigurationAction = {\n type: `PerpsController:getTradeConfiguration`;\n handler: PerpsController['getTradeConfiguration'];\n};\n\n/**\n * Save trade configuration for a market\n *\n * @param symbol - Market symbol\n * @param leverage - Leverage value\n */\nexport type PerpsControllerSaveTradeConfigurationAction = {\n type: `PerpsController:saveTradeConfiguration`;\n handler: PerpsController['saveTradeConfiguration'];\n};\n\n/**\n * Save pending trade configuration for a market\n * This is a temporary configuration that expires after 5 minutes\n *\n * @param symbol - Market symbol\n * @param config - Pending trade configuration (includes optional selected payment token from Pay row)\n * @param config.amount - The amount value.\n * @param config.leverage - The leverage multiplier.\n * @param config.takeProfitPrice - The take profit price.\n * @param config.stopLossPrice - The stop loss price.\n * @param config.limitPrice - The limit price.\n * @param config.orderType - The order type.\n * @param config.selectedPaymentToken - The selected payment token.\n */\nexport type PerpsControllerSavePendingTradeConfigurationAction = {\n type: `PerpsController:savePendingTradeConfiguration`;\n handler: PerpsController['savePendingTradeConfiguration'];\n};\n\n/**\n * Get pending trade configuration for a market\n * Returns undefined if config doesn't exist or has expired (more than 5 minutes old)\n *\n * @param symbol - Market symbol\n * @returns Pending trade configuration or undefined\n */\nexport type PerpsControllerGetPendingTradeConfigurationAction = {\n type: `PerpsController:getPendingTradeConfiguration`;\n handler: PerpsController['getPendingTradeConfiguration'];\n};\n\n/**\n * Clear pending trade configuration for a market\n *\n * @param symbol - Market symbol\n */\nexport type PerpsControllerClearPendingTradeConfigurationAction = {\n type: `PerpsController:clearPendingTradeConfiguration`;\n handler: PerpsController['clearPendingTradeConfiguration'];\n};\n\n/**\n * Get saved market filter preferences\n * Handles backward compatibility with legacy string format\n *\n * @returns The saved sort option ID and direction.\n */\nexport type PerpsControllerGetMarketFilterPreferencesAction = {\n type: `PerpsController:getMarketFilterPreferences`;\n handler: PerpsController['getMarketFilterPreferences'];\n};\n\n/**\n * Save market filter preferences\n *\n * @param optionId - Sort/filter option ID\n * @param direction - Sort direction ('asc' or 'desc')\n */\nexport type PerpsControllerSaveMarketFilterPreferencesAction = {\n type: `PerpsController:saveMarketFilterPreferences`;\n handler: PerpsController['saveMarketFilterPreferences'];\n};\n\n/**\n * Set the selected payment token for the Perps order/deposit flow.\n * Pass null or a token with description PERPS_CONSTANTS.PerpsBalanceTokenDescription to select Perps balance.\n * Only required fields (address, chainId) are stored in state; description and symbol are optional.\n *\n * @param token - The token identifier.\n */\nexport type PerpsControllerSetSelectedPaymentTokenAction = {\n type: `PerpsController:setSelectedPaymentToken`;\n handler: PerpsController['setSelectedPaymentToken'];\n};\n\n/**\n * Reset the selected payment token to Perps balance (null).\n * Call when leaving the Perps order view so the next visit defaults to Perps balance.\n */\nexport type PerpsControllerResetSelectedPaymentTokenAction = {\n type: `PerpsController:resetSelectedPaymentToken`;\n handler: PerpsController['resetSelectedPaymentToken'];\n};\n\n/**\n * Get saved order book grouping for a market\n *\n * @param symbol - Market symbol\n * @returns The saved grouping value or undefined if not set\n */\nexport type PerpsControllerGetOrderBookGroupingAction = {\n type: `PerpsController:getOrderBookGrouping`;\n handler: PerpsController['getOrderBookGrouping'];\n};\n\n/**\n * Save order book grouping for a market\n *\n * @param symbol - Market symbol\n * @param grouping - Price grouping value\n */\nexport type PerpsControllerSaveOrderBookGroupingAction = {\n type: `PerpsController:saveOrderBookGrouping`;\n handler: PerpsController['saveOrderBookGrouping'];\n};\n\n/**\n * Toggle watchlist status for a market\n * Watchlist markets are stored per network (testnet/mainnet)\n *\n * @param symbol - The trading pair symbol.\n */\nexport type PerpsControllerToggleWatchlistMarketAction = {\n type: `PerpsController:toggleWatchlistMarket`;\n handler: PerpsController['toggleWatchlistMarket'];\n};\n\n/**\n * Check if a market is in the watchlist on the current network\n *\n * @param symbol - The trading pair symbol.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsWatchlistMarketAction = {\n type: `PerpsController:isWatchlistMarket`;\n handler: PerpsController['isWatchlistMarket'];\n};\n\n/**\n * Get all watchlist markets for the current network\n *\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetWatchlistMarketsAction = {\n type: `PerpsController:getWatchlistMarkets`;\n handler: PerpsController['getWatchlistMarkets'];\n};\n\n/**\n * Check if the controller is currently reinitializing\n *\n * @returns true if providers are being reinitialized\n */\nexport type PerpsControllerIsCurrentlyReinitializingAction = {\n type: `PerpsController:isCurrentlyReinitializing`;\n handler: PerpsController['isCurrentlyReinitializing'];\n};\n\n/**\n * Union of all PerpsController action types.\n */\nexport type PerpsControllerMethodActions =\n | PerpsControllerGetCachedMarketDataForActiveProviderAction\n | PerpsControllerGetCachedUserDataForActiveProviderAction\n | PerpsControllerInitAction\n | PerpsControllerGetActiveProviderAction\n | PerpsControllerGetActiveProviderOrNullAction\n | PerpsControllerPlaceOrderAction\n | PerpsControllerEditOrderAction\n | PerpsControllerCancelOrderAction\n | PerpsControllerCancelOrdersAction\n | PerpsControllerClosePositionAction\n | PerpsControllerClosePositionsAction\n | PerpsControllerUpdatePositionTPSLAction\n | PerpsControllerUpdateMarginAction\n | PerpsControllerFlipPositionAction\n | PerpsControllerDepositWithConfirmationAction\n | PerpsControllerDepositWithOrderAction\n | PerpsControllerClearDepositResultAction\n | PerpsControllerClearWithdrawResultAction\n | PerpsControllerUpdateWithdrawalStatusAction\n | PerpsControllerCompleteWithdrawalFromHistoryAction\n | PerpsControllerUpdateWithdrawalProgressAction\n | PerpsControllerGetWithdrawalProgressAction\n | PerpsControllerWithdrawAction\n | PerpsControllerGetPositionsAction\n | PerpsControllerGetOrderFillsAction\n | PerpsControllerGetOrdersAction\n | PerpsControllerGetOpenOrdersAction\n | PerpsControllerGetFundingAction\n | PerpsControllerGetAccountStateAction\n | PerpsControllerGetHistoricalPortfolioAction\n | PerpsControllerGetMarketsAction\n | PerpsControllerGetMarketDataWithPricesAction\n | PerpsControllerStartMarketDataPreloadAction\n | PerpsControllerStopMarketDataPreloadAction\n | PerpsControllerGetAvailableDexsAction\n | PerpsControllerFetchHistoricalCandlesAction\n | PerpsControllerCalculateLiquidationPriceAction\n | PerpsControllerCalculateMaintenanceMarginAction\n | PerpsControllerGetMaxLeverageAction\n | PerpsControllerValidateOrderAction\n | PerpsControllerValidateClosePositionAction\n | PerpsControllerValidateWithdrawalAction\n | PerpsControllerGetWithdrawalRoutesAction\n | PerpsControllerToggleTestnetAction\n | PerpsControllerSwitchProviderAction\n | PerpsControllerGetCurrentNetworkAction\n | PerpsControllerGetWebSocketConnectionStateAction\n | PerpsControllerSubscribeToConnectionStateAction\n | PerpsControllerReconnectAction\n | PerpsControllerSubscribeToPricesAction\n | PerpsControllerSubscribeToPositionsAction\n | PerpsControllerSubscribeToOrderFillsAction\n | PerpsControllerSubscribeToOrdersAction\n | PerpsControllerSubscribeToAccountAction\n | PerpsControllerSubscribeToOrderBookAction\n | PerpsControllerSubscribeToCandlesAction\n | PerpsControllerSubscribeToOICapsAction\n | PerpsControllerSetLiveDataConfigAction\n | PerpsControllerCalculateFeesAction\n | PerpsControllerDisconnectAction\n | PerpsControllerStartEligibilityMonitoringAction\n | PerpsControllerStopEligibilityMonitoringAction\n | PerpsControllerRefreshEligibilityAction\n | PerpsControllerGetBlockExplorerUrlAction\n | PerpsControllerIsFirstTimeUserOnCurrentNetworkAction\n | PerpsControllerMarkTutorialCompletedAction\n | PerpsControllerMarkFirstOrderCompletedAction\n | PerpsControllerResetFirstTimeUserStateAction\n | PerpsControllerClearPendingTransactionRequestsAction\n | PerpsControllerGetTradeConfigurationAction\n | PerpsControllerSaveTradeConfigurationAction\n | PerpsControllerSavePendingTradeConfigurationAction\n | PerpsControllerGetPendingTradeConfigurationAction\n | PerpsControllerClearPendingTradeConfigurationAction\n | PerpsControllerGetMarketFilterPreferencesAction\n | PerpsControllerSaveMarketFilterPreferencesAction\n | PerpsControllerSetSelectedPaymentTokenAction\n | PerpsControllerResetSelectedPaymentTokenAction\n | PerpsControllerGetOrderBookGroupingAction\n | PerpsControllerSaveOrderBookGroupingAction\n | PerpsControllerToggleWatchlistMarketAction\n | PerpsControllerIsWatchlistMarketAction\n | PerpsControllerGetWatchlistMarketsAction\n | PerpsControllerIsCurrentlyReinitializingAction;\n"]}
|
|
1
|
+
{"version":3,"file":"PerpsController-method-action-types.cjs","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PerpsController } from './PerpsController';\n\n/**\n * Read cached market data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists or when cache has expired.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 5-minute TTL check.\n * Used during initial render so disk-hydrated structural data (with\n * placeholder prices) is returned regardless of age.\n * @returns The cached market data array, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedMarketDataForActiveProviderAction = {\n type: `PerpsController:getCachedMarketDataForActiveProvider`;\n handler: PerpsController['getCachedMarketDataForActiveProvider'];\n};\n\n/**\n * Read cached user data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists, cache has expired, or address\n * does not match the currently selected EVM account.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 60s staleness check.\n * Used during initial render so disk-hydrated user data (positions/orders)\n * is returned regardless of age, avoiding a skeleton flash.\n * @returns The cached user data, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedUserDataForActiveProviderAction = {\n type: `PerpsController:getCachedUserDataForActiveProvider`;\n handler: PerpsController['getCachedUserDataForActiveProvider'];\n};\n\n/**\n * Initialize the PerpsController providers\n * Must be called before using any other methods\n * Prevents double initialization with promise caching\n *\n * @returns A promise that resolves when the operation completes.\n */\nexport type PerpsControllerInitAction = {\n type: `PerpsController:init`;\n handler: PerpsController['init'];\n};\n\n/**\n * Get the currently active provider.\n * In aggregated mode, returns AggregatedPerpsProvider which routes to underlying providers.\n * In single provider mode, returns HyperLiquidProvider directly.\n *\n * @returns The active provider (aggregated wrapper or direct provider based on mode)\n * @throws Error if provider is not initialized or reinitializing\n */\nexport type PerpsControllerGetActiveProviderAction = {\n type: `PerpsController:getActiveProvider`;\n handler: PerpsController['getActiveProvider'];\n};\n\n/**\n * Get the currently active provider, returning null if not available\n * Use this method when the caller can gracefully handle a missing provider\n * (e.g., UI components during initialization or reconnection)\n *\n * @returns The active provider, or null if not initialized/reinitializing\n */\nexport type PerpsControllerGetActiveProviderOrNullAction = {\n type: `PerpsController:getActiveProviderOrNull`;\n handler: PerpsController['getActiveProviderOrNull'];\n};\n\n/**\n * Place a new order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result with order ID and status.\n */\nexport type PerpsControllerPlaceOrderAction = {\n type: `PerpsController:placeOrder`;\n handler: PerpsController['placeOrder'];\n};\n\n/**\n * Edit an existing order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The updated order result with order ID and status.\n */\nexport type PerpsControllerEditOrderAction = {\n type: `PerpsController:editOrder`;\n handler: PerpsController['editOrder'];\n};\n\n/**\n * Cancel an existing order\n *\n * @param params - The operation parameters.\n * @returns The cancellation result with status.\n */\nexport type PerpsControllerCancelOrderAction = {\n type: `PerpsController:cancelOrder`;\n handler: PerpsController['cancelOrder'];\n};\n\n/**\n * Cancel multiple orders in parallel\n * Batch version of cancelOrder() that cancels multiple orders simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch cancellation results for each order.\n */\nexport type PerpsControllerCancelOrdersAction = {\n type: `PerpsController:cancelOrders`;\n handler: PerpsController['cancelOrders'];\n};\n\n/**\n * Close a position (partial or full)\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result from the close position request.\n */\nexport type PerpsControllerClosePositionAction = {\n type: `PerpsController:closePosition`;\n handler: PerpsController['closePosition'];\n};\n\n/**\n * Close multiple positions in parallel\n * Batch version of closePosition() that closes multiple positions simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch close results for each position.\n */\nexport type PerpsControllerClosePositionsAction = {\n type: `PerpsController:closePositions`;\n handler: PerpsController['closePositions'];\n};\n\n/**\n * Update TP/SL for an existing position\n *\n * @param params - The operation parameters.\n * @returns The order result from the TP/SL update.\n */\nexport type PerpsControllerUpdatePositionTPSLAction = {\n type: `PerpsController:updatePositionTPSL`;\n handler: PerpsController['updatePositionTPSL'];\n};\n\n/**\n * Update margin for an existing position (add or remove)\n *\n * @param params - The operation parameters.\n * @returns The margin update result.\n */\nexport type PerpsControllerUpdateMarginAction = {\n type: `PerpsController:updateMargin`;\n handler: PerpsController['updateMargin'];\n};\n\n/**\n * Flip position (reverse direction while keeping size and leverage)\n *\n * @param params - The operation parameters.\n * @returns The order result from the position flip.\n */\nexport type PerpsControllerFlipPositionAction = {\n type: `PerpsController:flipPosition`;\n handler: PerpsController['flipPosition'];\n};\n\n/**\n * Simplified deposit method that prepares transaction for confirmation screen\n * No complex state tracking - just sets a loading flag\n *\n * @param params - Parameters for the deposit flow\n * @param params.amount - Optional deposit amount\n * @param params.placeOrder - If true, uses addTransaction instead of submit to avoid navigation\n * @returns An object containing a promise that resolves to the transaction hash.\n */\nexport type PerpsControllerDepositWithConfirmationAction = {\n type: `PerpsController:depositWithConfirmation`;\n handler: PerpsController['depositWithConfirmation'];\n};\n\n/**\n * Same as depositWithConfirmation - prepares transaction for confirmation screen.\n *\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerDepositWithOrderAction = {\n type: `PerpsController:depositWithOrder`;\n handler: PerpsController['depositWithOrder'];\n};\n\n/**\n * Clear the last deposit result after it has been shown to the user\n */\nexport type PerpsControllerClearDepositResultAction = {\n type: `PerpsController:clearDepositResult`;\n handler: PerpsController['clearDepositResult'];\n};\n\nexport type PerpsControllerClearWithdrawResultAction = {\n type: `PerpsController:clearWithdrawResult`;\n handler: PerpsController['clearWithdrawResult'];\n};\n\n/**\n * Update withdrawal request status when it completes, or remove it on failure.\n * This is called when a withdrawal is matched with a completed withdrawal from the API.\n * When status is `failed`, the request is removed from the queue (not retained).\n *\n * @param withdrawalId - The withdrawal transaction ID.\n * @param status - The current status.\n * @param txHash - The transaction hash.\n */\nexport type PerpsControllerUpdateWithdrawalStatusAction = {\n type: `PerpsController:updateWithdrawalStatus`;\n handler: PerpsController['updateWithdrawalStatus'];\n};\n\n/**\n * Complete a specific withdrawal detected via transaction history polling (FIFO queue).\n * Called when a completed withdrawal appears in the transaction history matching a pending request.\n *\n * Uses FIFO matching: oldest pending withdrawal is matched with first completed withdrawal\n * in history that happened after its submission time.\n *\n * @param withdrawalRequestId - The ID of the pending withdrawal request to mark as complete.\n * @param completedWithdrawal - The completed withdrawal data from the history API.\n * @param completedWithdrawal.txHash - The on-chain transaction hash.\n * @param completedWithdrawal.amount - The withdrawal amount.\n * @param completedWithdrawal.timestamp - The completion timestamp from the history API.\n * @param completedWithdrawal.asset - The asset symbol (e.g. USDC).\n */\nexport type PerpsControllerCompleteWithdrawalFromHistoryAction = {\n type: `PerpsController:completeWithdrawalFromHistory`;\n handler: PerpsController['completeWithdrawalFromHistory'];\n};\n\n/**\n * Update withdrawal progress (persistent across navigation)\n *\n * @param progress - The progress indicator.\n * @param activeWithdrawalId - The active withdrawal ID.\n */\nexport type PerpsControllerUpdateWithdrawalProgressAction = {\n type: `PerpsController:updateWithdrawalProgress`;\n handler: PerpsController['updateWithdrawalProgress'];\n};\n\n/**\n * Get current withdrawal progress\n *\n * @returns The withdrawal progress, last update timestamp, and active withdrawal ID.\n */\nexport type PerpsControllerGetWithdrawalProgressAction = {\n type: `PerpsController:getWithdrawalProgress`;\n handler: PerpsController['getWithdrawalProgress'];\n};\n\n/**\n * Withdraw funds from trading account\n *\n * The withdrawal process varies by provider and may involve:\n * - Direct on-chain transfers\n * - Bridge operations\n * - Multi-step validation processes\n *\n * Check the specific provider documentation for detailed withdrawal flows.\n *\n * @param params Withdrawal parameters\n * @returns WithdrawResult with withdrawal ID and tracking info\n */\nexport type PerpsControllerWithdrawAction = {\n type: `PerpsController:withdraw`;\n handler: PerpsController['withdraw'];\n};\n\n/**\n * Get current positions\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow position queries\n * without full perps initialization (e.g., for showing positions on token details page)\n *\n * @param params - The operation parameters.\n * @returns Array of open positions for the active provider.\n */\nexport type PerpsControllerGetPositionsAction = {\n type: `PerpsController:getPositions`;\n handler: PerpsController['getPositions'];\n};\n\n/**\n * Get historical user fills (trade executions)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical trade executions (fills).\n */\nexport type PerpsControllerGetOrderFillsAction = {\n type: `PerpsController:getOrderFills`;\n handler: PerpsController['getOrderFills'];\n};\n\n/**\n * Get historical user orders (order lifecycle)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical orders.\n */\nexport type PerpsControllerGetOrdersAction = {\n type: `PerpsController:getOrders`;\n handler: PerpsController['getOrders'];\n};\n\n/**\n * Get currently open orders (real-time status)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow open order queries\n * without full perps initialization (e.g., for background preloading)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetOpenOrdersAction = {\n type: `PerpsController:getOpenOrders`;\n handler: PerpsController['getOpenOrders'];\n};\n\n/**\n * Get historical user funding history (funding payments)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical funding payments.\n */\nexport type PerpsControllerGetFundingAction = {\n type: `PerpsController:getFunding`;\n handler: PerpsController['getFunding'];\n};\n\n/**\n * Get account state (balances, etc.)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow account state queries\n * without full perps initialization (e.g., for checking if user has perps funds)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetAccountStateAction = {\n type: `PerpsController:getAccountState`;\n handler: PerpsController['getAccountState'];\n};\n\n/**\n * Get historical portfolio data\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns The historical portfolio data points.\n */\nexport type PerpsControllerGetHistoricalPortfolioAction = {\n type: `PerpsController:getHistoricalPortfolio`;\n handler: PerpsController['getHistoricalPortfolio'];\n};\n\n/**\n * Get available markets with optional filtering\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow market discovery\n * without full perps initialization (e.g., for discovery banners on spot screens)\n *\n * @param params - The operation parameters.\n * @returns Array of available markets matching the filter criteria.\n */\nexport type PerpsControllerGetMarketsAction = {\n type: `PerpsController:getMarkets`;\n handler: PerpsController['getMarkets'];\n};\n\n/**\n * Get market data with prices (includes price, volume, 24h change)\n *\n * For standalone mode, bypasses getActiveProvider() to allow market data queries\n * without full perps initialization (e.g., for background preloading on app start)\n *\n * @param params - The operation parameters.\n * @param params.standalone - Whether to use standalone mode.\n * @returns A promise that resolves to the market data.\n */\nexport type PerpsControllerGetMarketDataWithPricesAction = {\n type: `PerpsController:getMarketDataWithPrices`;\n handler: PerpsController['getMarketDataWithPrices'];\n};\n\n/**\n * Start background market data preloading.\n * Fetches market data immediately and refreshes every 5 minutes.\n * Watches for isTestnet and hip3ConfigVersion changes to re-preload.\n */\nexport type PerpsControllerStartMarketDataPreloadAction = {\n type: `PerpsController:startMarketDataPreload`;\n handler: PerpsController['startMarketDataPreload'];\n};\n\n/**\n * Stop background market data preloading.\n */\nexport type PerpsControllerStopMarketDataPreloadAction = {\n type: `PerpsController:stopMarketDataPreload`;\n handler: PerpsController['stopMarketDataPreload'];\n};\n\n/**\n * Get list of available HIP-3 builder-deployed DEXs\n *\n * @param params - Optional parameters for filtering\n * @returns Array of DEX names\n */\nexport type PerpsControllerGetAvailableDexsAction = {\n type: `PerpsController:getAvailableDexs`;\n handler: PerpsController['getAvailableDexs'];\n};\n\n/**\n * Fetch historical candle data\n * Thin delegation to MarketDataService\n *\n * @param options - The configuration options.\n * @param options.symbol - The trading pair symbol.\n * @param options.interval - The candle interval period.\n * @param options.limit - Maximum number of items to fetch.\n * @param options.endTime - End timestamp in milliseconds.\n * @returns The historical candle data for the requested symbol and interval.\n */\nexport type PerpsControllerFetchHistoricalCandlesAction = {\n type: `PerpsController:fetchHistoricalCandles`;\n handler: PerpsController['fetchHistoricalCandles'];\n};\n\n/**\n * Calculate liquidation price for a position\n * Uses provider-specific formulas based on protocol rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerCalculateLiquidationPriceAction = {\n type: `PerpsController:calculateLiquidationPrice`;\n handler: PerpsController['calculateLiquidationPrice'];\n};\n\n/**\n * Calculate maintenance margin for a specific asset\n * Returns a percentage (e.g., 0.0125 for 1.25%)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerCalculateMaintenanceMarginAction = {\n type: `PerpsController:calculateMaintenanceMargin`;\n handler: PerpsController['calculateMaintenanceMargin'];\n};\n\n/**\n * Get maximum leverage allowed for an asset\n *\n * @param asset - The asset identifier.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerGetMaxLeverageAction = {\n type: `PerpsController:getMaxLeverage`;\n handler: PerpsController['getMaxLeverage'];\n};\n\n/**\n * Validate order parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateOrderAction = {\n type: `PerpsController:validateOrder`;\n handler: PerpsController['validateOrder'];\n};\n\n/**\n * Validate close position parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerValidateClosePositionAction = {\n type: `PerpsController:validateClosePosition`;\n handler: PerpsController['validateClosePosition'];\n};\n\n/**\n * Validate withdrawal parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateWithdrawalAction = {\n type: `PerpsController:validateWithdrawal`;\n handler: PerpsController['validateWithdrawal'];\n};\n\n/**\n * Get supported withdrawal routes - returns complete asset and routing information\n *\n * @returns Array of supported asset routes for withdrawals.\n */\nexport type PerpsControllerGetWithdrawalRoutesAction = {\n type: `PerpsController:getWithdrawalRoutes`;\n handler: PerpsController['getWithdrawalRoutes'];\n};\n\n/**\n * Toggle between testnet and mainnet\n *\n * @returns The toggle result with success status and current network mode.\n */\nexport type PerpsControllerToggleTestnetAction = {\n type: `PerpsController:toggleTestnet`;\n handler: PerpsController['toggleTestnet'];\n};\n\n/**\n * Switch to a different provider\n * Uses a full reinit approach: disconnect() → update state → init()\n * This ensures complete state reset including WebSocket connections and caches.\n *\n * @param providerId - The provider identifier.\n * @returns The switch result with success status and active provider.\n */\nexport type PerpsControllerSwitchProviderAction = {\n type: `PerpsController:switchProvider`;\n handler: PerpsController['switchProvider'];\n};\n\n/**\n * Get current network (mainnet/testnet)\n *\n * @returns Either 'mainnet' or 'testnet' based on the current configuration.\n */\nexport type PerpsControllerGetCurrentNetworkAction = {\n type: `PerpsController:getCurrentNetwork`;\n handler: PerpsController['getCurrentNetwork'];\n};\n\n/**\n * Get the current WebSocket connection state from the active provider.\n * Used by the UI to monitor connection health and show notifications.\n *\n * @returns The current WebSocket connection state, or DISCONNECTED if not supported\n */\nexport type PerpsControllerGetWebSocketConnectionStateAction = {\n type: `PerpsController:getWebSocketConnectionState`;\n handler: PerpsController['getWebSocketConnectionState'];\n};\n\n/**\n * Subscribe to WebSocket connection state changes from the active provider.\n * The listener will be called immediately with the current state and whenever the state changes.\n *\n * @param listener - Callback function that receives the new connection state and reconnection attempt\n * @returns Unsubscribe function to remove the listener, or no-op if not supported\n */\nexport type PerpsControllerSubscribeToConnectionStateAction = {\n type: `PerpsController:subscribeToConnectionState`;\n handler: PerpsController['subscribeToConnectionState'];\n};\n\n/**\n * Manually trigger a WebSocket reconnection attempt.\n * Used by the UI retry button when connection is lost.\n */\nexport type PerpsControllerReconnectAction = {\n type: `PerpsController:reconnect`;\n handler: PerpsController['reconnect'];\n};\n\n/**\n * Subscribe to live price updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPricesAction = {\n type: `PerpsController:subscribeToPrices`;\n handler: PerpsController['subscribeToPrices'];\n};\n\n/**\n * Subscribe to live position updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPositionsAction = {\n type: `PerpsController:subscribeToPositions`;\n handler: PerpsController['subscribeToPositions'];\n};\n\n/**\n * Subscribe to live order fill updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderFillsAction = {\n type: `PerpsController:subscribeToOrderFills`;\n handler: PerpsController['subscribeToOrderFills'];\n};\n\n/**\n * Subscribe to live order updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrdersAction = {\n type: `PerpsController:subscribeToOrders`;\n handler: PerpsController['subscribeToOrders'];\n};\n\n/**\n * Subscribe to live account updates.\n * Updates controller state (Redux) when new account data arrives so consumers\n * like usePerpsBalanceTokenFilter (PayWithModal) see the latest balance.\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToAccountAction = {\n type: `PerpsController:subscribeToAccount`;\n handler: PerpsController['subscribeToAccount'];\n};\n\n/**\n * Subscribe to full order book updates with multiple depth levels\n * Creates a dedicated L2Book subscription for real-time order book data\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderBookAction = {\n type: `PerpsController:subscribeToOrderBook`;\n handler: PerpsController['subscribeToOrderBook'];\n};\n\n/**\n * Subscribe to live candle updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToCandlesAction = {\n type: `PerpsController:subscribeToCandles`;\n handler: PerpsController['subscribeToCandles'];\n};\n\n/**\n * Subscribe to open interest cap updates\n * Zero additional network overhead - data comes from existing webData3 subscription\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOICapsAction = {\n type: `PerpsController:subscribeToOICaps`;\n handler: PerpsController['subscribeToOICaps'];\n};\n\n/**\n * Configure live data throttling\n *\n * @param config - The configuration object.\n */\nexport type PerpsControllerSetLiveDataConfigAction = {\n type: `PerpsController:setLiveDataConfig`;\n handler: PerpsController['setLiveDataConfig'];\n};\n\n/**\n * Calculate trading fees for the active provider\n * Each provider implements its own fee structure\n *\n * @param params - The operation parameters.\n * @returns The fee calculation result for the trade.\n */\nexport type PerpsControllerCalculateFeesAction = {\n type: `PerpsController:calculateFees`;\n handler: PerpsController['calculateFees'];\n};\n\n/**\n * Disconnect provider and cleanup subscriptions\n * Call this when navigating away from Perps screens to prevent battery drain\n */\nexport type PerpsControllerDisconnectAction = {\n type: `PerpsController:disconnect`;\n handler: PerpsController['disconnect'];\n};\n\n/**\n * Resume eligibility monitoring after onboarding completes.\n * Clears the deferred flag and triggers an immediate eligibility check\n * using the current remote feature flag state.\n */\nexport type PerpsControllerStartEligibilityMonitoringAction = {\n type: `PerpsController:startEligibilityMonitoring`;\n handler: PerpsController['startEligibilityMonitoring'];\n};\n\n/**\n * Stops geo-blocking eligibility monitoring.\n * Call this when the user disables basic functionality (e.g. useExternalServices becomes false).\n * Prevents geolocation calls until startEligibilityMonitoring() is called again.\n * Safe to call multiple times.\n */\nexport type PerpsControllerStopEligibilityMonitoringAction = {\n type: `PerpsController:stopEligibilityMonitoring`;\n handler: PerpsController['stopEligibilityMonitoring'];\n};\n\nexport type PerpsControllerRefreshEligibilityAction = {\n type: `PerpsController:refreshEligibility`;\n handler: PerpsController['refreshEligibility'];\n};\n\n/**\n * Get block explorer URL for an address or just the base URL\n *\n * @param address - Optional address to append to the base URL\n * @returns Block explorer URL\n */\nexport type PerpsControllerGetBlockExplorerUrlAction = {\n type: `PerpsController:getBlockExplorerUrl`;\n handler: PerpsController['getBlockExplorerUrl'];\n};\n\n/**\n * Check if user is first-time for the current network\n *\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsFirstTimeUserOnCurrentNetworkAction = {\n type: `PerpsController:isFirstTimeUserOnCurrentNetwork`;\n handler: PerpsController['isFirstTimeUserOnCurrentNetwork'];\n};\n\n/**\n * Mark that the user has completed the tutorial/onboarding\n * This prevents the tutorial from showing again\n */\nexport type PerpsControllerMarkTutorialCompletedAction = {\n type: `PerpsController:markTutorialCompleted`;\n handler: PerpsController['markTutorialCompleted'];\n};\n\nexport type PerpsControllerMarkFirstOrderCompletedAction = {\n type: `PerpsController:markFirstOrderCompleted`;\n handler: PerpsController['markFirstOrderCompleted'];\n};\n\n/**\n * Reset first-time user state for both networks\n * This is useful for testing the tutorial flow\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerResetFirstTimeUserStateAction = {\n type: `PerpsController:resetFirstTimeUserState`;\n handler: PerpsController['resetFirstTimeUserState'];\n};\n\n/**\n * Clear pending/bridging withdrawal and deposit requests\n * This is useful when users want to clear stuck pending indicators\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerClearPendingTransactionRequestsAction = {\n type: `PerpsController:clearPendingTransactionRequests`;\n handler: PerpsController['clearPendingTransactionRequests'];\n};\n\n/**\n * Get saved trade configuration for a market\n *\n * @param symbol - The trading pair symbol.\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetTradeConfigurationAction = {\n type: `PerpsController:getTradeConfiguration`;\n handler: PerpsController['getTradeConfiguration'];\n};\n\n/**\n * Save trade configuration for a market\n *\n * @param symbol - Market symbol\n * @param leverage - Leverage value\n */\nexport type PerpsControllerSaveTradeConfigurationAction = {\n type: `PerpsController:saveTradeConfiguration`;\n handler: PerpsController['saveTradeConfiguration'];\n};\n\n/**\n * Save pending trade configuration for a market\n * This is a temporary configuration that expires after 5 minutes\n *\n * @param symbol - Market symbol\n * @param config - Pending trade configuration (includes optional selected payment token from Pay row)\n * @param config.amount - The amount value.\n * @param config.leverage - The leverage multiplier.\n * @param config.takeProfitPrice - The take profit price.\n * @param config.stopLossPrice - The stop loss price.\n * @param config.limitPrice - The limit price.\n * @param config.orderType - The order type.\n * @param config.selectedPaymentToken - The selected payment token.\n */\nexport type PerpsControllerSavePendingTradeConfigurationAction = {\n type: `PerpsController:savePendingTradeConfiguration`;\n handler: PerpsController['savePendingTradeConfiguration'];\n};\n\n/**\n * Get pending trade configuration for a market\n * Returns undefined if config doesn't exist or has expired (more than 5 minutes old)\n *\n * @param symbol - Market symbol\n * @returns Pending trade configuration or undefined\n */\nexport type PerpsControllerGetPendingTradeConfigurationAction = {\n type: `PerpsController:getPendingTradeConfiguration`;\n handler: PerpsController['getPendingTradeConfiguration'];\n};\n\n/**\n * Clear pending trade configuration for a market\n *\n * @param symbol - Market symbol\n */\nexport type PerpsControllerClearPendingTradeConfigurationAction = {\n type: `PerpsController:clearPendingTradeConfiguration`;\n handler: PerpsController['clearPendingTradeConfiguration'];\n};\n\n/**\n * Get saved market filter preferences\n * Handles backward compatibility with legacy string format\n *\n * @returns The saved sort option ID and direction.\n */\nexport type PerpsControllerGetMarketFilterPreferencesAction = {\n type: `PerpsController:getMarketFilterPreferences`;\n handler: PerpsController['getMarketFilterPreferences'];\n};\n\n/**\n * Save market filter preferences\n *\n * @param optionId - Sort/filter option ID\n * @param direction - Sort direction ('asc' or 'desc')\n */\nexport type PerpsControllerSaveMarketFilterPreferencesAction = {\n type: `PerpsController:saveMarketFilterPreferences`;\n handler: PerpsController['saveMarketFilterPreferences'];\n};\n\n/**\n * Set the selected payment token for the Perps order/deposit flow.\n * Pass null or a token with description PERPS_CONSTANTS.PerpsBalanceTokenDescription to select Perps balance.\n * Only required fields (address, chainId) are stored in state; description and symbol are optional.\n *\n * @param token - The token identifier.\n */\nexport type PerpsControllerSetSelectedPaymentTokenAction = {\n type: `PerpsController:setSelectedPaymentToken`;\n handler: PerpsController['setSelectedPaymentToken'];\n};\n\n/**\n * Reset the selected payment token to Perps balance (null).\n * Call when leaving the Perps order view so the next visit defaults to Perps balance.\n */\nexport type PerpsControllerResetSelectedPaymentTokenAction = {\n type: `PerpsController:resetSelectedPaymentToken`;\n handler: PerpsController['resetSelectedPaymentToken'];\n};\n\n/**\n * Get saved order book grouping for a market\n *\n * @param symbol - Market symbol\n * @returns The saved grouping value or undefined if not set\n */\nexport type PerpsControllerGetOrderBookGroupingAction = {\n type: `PerpsController:getOrderBookGrouping`;\n handler: PerpsController['getOrderBookGrouping'];\n};\n\n/**\n * Save order book grouping for a market\n *\n * @param symbol - Market symbol\n * @param grouping - Price grouping value\n */\nexport type PerpsControllerSaveOrderBookGroupingAction = {\n type: `PerpsController:saveOrderBookGrouping`;\n handler: PerpsController['saveOrderBookGrouping'];\n};\n\n/**\n * Toggle watchlist status for a market\n * Watchlist markets are stored per network (testnet/mainnet)\n *\n * @param symbol - The trading pair symbol.\n */\nexport type PerpsControllerToggleWatchlistMarketAction = {\n type: `PerpsController:toggleWatchlistMarket`;\n handler: PerpsController['toggleWatchlistMarket'];\n};\n\n/**\n * Check if a market is in the watchlist on the current network\n *\n * @param symbol - The trading pair symbol.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsWatchlistMarketAction = {\n type: `PerpsController:isWatchlistMarket`;\n handler: PerpsController['isWatchlistMarket'];\n};\n\n/**\n * Get all watchlist markets for the current network\n *\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetWatchlistMarketsAction = {\n type: `PerpsController:getWatchlistMarkets`;\n handler: PerpsController['getWatchlistMarkets'];\n};\n\n/**\n * Check if the controller is currently reinitializing\n *\n * @returns true if providers are being reinitialized\n */\nexport type PerpsControllerIsCurrentlyReinitializingAction = {\n type: `PerpsController:isCurrentlyReinitializing`;\n handler: PerpsController['isCurrentlyReinitializing'];\n};\n\n/**\n * Union of all PerpsController action types.\n */\nexport type PerpsControllerMethodActions =\n | PerpsControllerGetCachedMarketDataForActiveProviderAction\n | PerpsControllerGetCachedUserDataForActiveProviderAction\n | PerpsControllerInitAction\n | PerpsControllerGetActiveProviderAction\n | PerpsControllerGetActiveProviderOrNullAction\n | PerpsControllerPlaceOrderAction\n | PerpsControllerEditOrderAction\n | PerpsControllerCancelOrderAction\n | PerpsControllerCancelOrdersAction\n | PerpsControllerClosePositionAction\n | PerpsControllerClosePositionsAction\n | PerpsControllerUpdatePositionTPSLAction\n | PerpsControllerUpdateMarginAction\n | PerpsControllerFlipPositionAction\n | PerpsControllerDepositWithConfirmationAction\n | PerpsControllerDepositWithOrderAction\n | PerpsControllerClearDepositResultAction\n | PerpsControllerClearWithdrawResultAction\n | PerpsControllerUpdateWithdrawalStatusAction\n | PerpsControllerCompleteWithdrawalFromHistoryAction\n | PerpsControllerUpdateWithdrawalProgressAction\n | PerpsControllerGetWithdrawalProgressAction\n | PerpsControllerWithdrawAction\n | PerpsControllerGetPositionsAction\n | PerpsControllerGetOrderFillsAction\n | PerpsControllerGetOrdersAction\n | PerpsControllerGetOpenOrdersAction\n | PerpsControllerGetFundingAction\n | PerpsControllerGetAccountStateAction\n | PerpsControllerGetHistoricalPortfolioAction\n | PerpsControllerGetMarketsAction\n | PerpsControllerGetMarketDataWithPricesAction\n | PerpsControllerStartMarketDataPreloadAction\n | PerpsControllerStopMarketDataPreloadAction\n | PerpsControllerGetAvailableDexsAction\n | PerpsControllerFetchHistoricalCandlesAction\n | PerpsControllerCalculateLiquidationPriceAction\n | PerpsControllerCalculateMaintenanceMarginAction\n | PerpsControllerGetMaxLeverageAction\n | PerpsControllerValidateOrderAction\n | PerpsControllerValidateClosePositionAction\n | PerpsControllerValidateWithdrawalAction\n | PerpsControllerGetWithdrawalRoutesAction\n | PerpsControllerToggleTestnetAction\n | PerpsControllerSwitchProviderAction\n | PerpsControllerGetCurrentNetworkAction\n | PerpsControllerGetWebSocketConnectionStateAction\n | PerpsControllerSubscribeToConnectionStateAction\n | PerpsControllerReconnectAction\n | PerpsControllerSubscribeToPricesAction\n | PerpsControllerSubscribeToPositionsAction\n | PerpsControllerSubscribeToOrderFillsAction\n | PerpsControllerSubscribeToOrdersAction\n | PerpsControllerSubscribeToAccountAction\n | PerpsControllerSubscribeToOrderBookAction\n | PerpsControllerSubscribeToCandlesAction\n | PerpsControllerSubscribeToOICapsAction\n | PerpsControllerSetLiveDataConfigAction\n | PerpsControllerCalculateFeesAction\n | PerpsControllerDisconnectAction\n | PerpsControllerStartEligibilityMonitoringAction\n | PerpsControllerStopEligibilityMonitoringAction\n | PerpsControllerRefreshEligibilityAction\n | PerpsControllerGetBlockExplorerUrlAction\n | PerpsControllerIsFirstTimeUserOnCurrentNetworkAction\n | PerpsControllerMarkTutorialCompletedAction\n | PerpsControllerMarkFirstOrderCompletedAction\n | PerpsControllerResetFirstTimeUserStateAction\n | PerpsControllerClearPendingTransactionRequestsAction\n | PerpsControllerGetTradeConfigurationAction\n | PerpsControllerSaveTradeConfigurationAction\n | PerpsControllerSavePendingTradeConfigurationAction\n | PerpsControllerGetPendingTradeConfigurationAction\n | PerpsControllerClearPendingTradeConfigurationAction\n | PerpsControllerGetMarketFilterPreferencesAction\n | PerpsControllerSaveMarketFilterPreferencesAction\n | PerpsControllerSetSelectedPaymentTokenAction\n | PerpsControllerResetSelectedPaymentTokenAction\n | PerpsControllerGetOrderBookGroupingAction\n | PerpsControllerSaveOrderBookGroupingAction\n | PerpsControllerToggleWatchlistMarketAction\n | PerpsControllerIsWatchlistMarketAction\n | PerpsControllerGetWatchlistMarketsAction\n | PerpsControllerIsCurrentlyReinitializingAction;\n"]}
|
|
@@ -280,6 +280,9 @@ export type PerpsControllerGetPositionsAction = {
|
|
|
280
280
|
* Thin delegation to MarketDataService
|
|
281
281
|
*
|
|
282
282
|
* @param params - The operation parameters.
|
|
283
|
+
* @param options - Optional call modifiers.
|
|
284
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
285
|
+
* end-to-end (user-initiated refresh).
|
|
283
286
|
* @returns Array of historical trade executions (fills).
|
|
284
287
|
*/
|
|
285
288
|
export type PerpsControllerGetOrderFillsAction = {
|
|
@@ -291,6 +294,9 @@ export type PerpsControllerGetOrderFillsAction = {
|
|
|
291
294
|
* Thin delegation to MarketDataService
|
|
292
295
|
*
|
|
293
296
|
* @param params - The operation parameters.
|
|
297
|
+
* @param options - Optional call modifiers.
|
|
298
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
299
|
+
* end-to-end (user-initiated refresh).
|
|
294
300
|
* @returns Array of historical orders.
|
|
295
301
|
*/
|
|
296
302
|
export type PerpsControllerGetOrdersAction = {
|
|
@@ -316,6 +322,9 @@ export type PerpsControllerGetOpenOrdersAction = {
|
|
|
316
322
|
* Thin delegation to MarketDataService
|
|
317
323
|
*
|
|
318
324
|
* @param params - The operation parameters.
|
|
325
|
+
* @param options - Optional call modifiers.
|
|
326
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
327
|
+
* end-to-end (user-initiated refresh).
|
|
319
328
|
* @returns Array of historical funding payments.
|
|
320
329
|
*/
|
|
321
330
|
export type PerpsControllerGetFundingAction = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerpsController-method-action-types.d.cts","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,8BAA0B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nC,uCAAuC,GACvC,iCAAiC,GACjC,iCAAiC,GACjC,4CAA4C,GAC5C,qCAAqC,GACrC,uCAAuC,GACvC,wCAAwC,GACxC,2CAA2C,GAC3C,kDAAkD,GAClD,6CAA6C,GAC7C,0CAA0C,GAC1C,6BAA6B,GAC7B,iCAAiC,GACjC,kCAAkC,GAClC,8BAA8B,GAC9B,kCAAkC,GAClC,+BAA+B,GAC/B,oCAAoC,GACpC,2CAA2C,GAC3C,+BAA+B,GAC/B,4CAA4C,GAC5C,2CAA2C,GAC3C,0CAA0C,GAC1C,qCAAqC,GACrC,2CAA2C,GAC3C,8CAA8C,GAC9C,+CAA+C,GAC/C,mCAAmC,GACnC,kCAAkC,GAClC,0CAA0C,GAC1C,uCAAuC,GACvC,wCAAwC,GACxC,kCAAkC,GAClC,mCAAmC,GACnC,sCAAsC,GACtC,gDAAgD,GAChD,+CAA+C,GAC/C,8BAA8B,GAC9B,sCAAsC,GACtC,yCAAyC,GACzC,0CAA0C,GAC1C,sCAAsC,GACtC,uCAAuC,GACvC,yCAAyC,GACzC,uCAAuC,GACvC,sCAAsC,GACtC,sCAAsC,GACtC,kCAAkC,GAClC,+BAA+B,GAC/B,+CAA+C,GAC/C,8CAA8C,GAC9C,uCAAuC,GACvC,wCAAwC,GACxC,oDAAoD,GACpD,0CAA0C,GAC1C,4CAA4C,GAC5C,4CAA4C,GAC5C,oDAAoD,GACpD,0CAA0C,GAC1C,2CAA2C,GAC3C,kDAAkD,GAClD,iDAAiD,GACjD,mDAAmD,GACnD,+CAA+C,GAC/C,gDAAgD,GAChD,4CAA4C,GAC5C,8CAA8C,GAC9C,yCAAyC,GACzC,0CAA0C,GAC1C,0CAA0C,GAC1C,sCAAsC,GACtC,wCAAwC,GACxC,8CAA8C,CAAC"}
|
|
1
|
+
{"version":3,"file":"PerpsController-method-action-types.d.cts","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE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C,kCAAkC,GAClC,mCAAmC,GACnC,uCAAuC,GACvC,iCAAiC,GACjC,iCAAiC,GACjC,4CAA4C,GAC5C,qCAAqC,GACrC,uCAAuC,GACvC,wCAAwC,GACxC,2CAA2C,GAC3C,kDAAkD,GAClD,6CAA6C,GAC7C,0CAA0C,GAC1C,6BAA6B,GAC7B,iCAAiC,GACjC,kCAAkC,GAClC,8BAA8B,GAC9B,kCAAkC,GAClC,+BAA+B,GAC/B,oCAAoC,GACpC,2CAA2C,GAC3C,+BAA+B,GAC/B,4CAA4C,GAC5C,2CAA2C,GAC3C,0CAA0C,GAC1C,qCAAqC,GACrC,2CAA2C,GAC3C,8CAA8C,GAC9C,+CAA+C,GAC/C,mCAAmC,GACnC,kCAAkC,GAClC,0CAA0C,GAC1C,uCAAuC,GACvC,wCAAwC,GACxC,kCAAkC,GAClC,mCAAmC,GACnC,sCAAsC,GACtC,gDAAgD,GAChD,+CAA+C,GAC/C,8BAA8B,GAC9B,sCAAsC,GACtC,yCAAyC,GACzC,0CAA0C,GAC1C,sCAAsC,GACtC,uCAAuC,GACvC,yCAAyC,GACzC,uCAAuC,GACvC,sCAAsC,GACtC,sCAAsC,GACtC,kCAAkC,GAClC,+BAA+B,GAC/B,+CAA+C,GAC/C,8CAA8C,GAC9C,uCAAuC,GACvC,wCAAwC,GACxC,oDAAoD,GACpD,0CAA0C,GAC1C,4CAA4C,GAC5C,4CAA4C,GAC5C,oDAAoD,GACpD,0CAA0C,GAC1C,2CAA2C,GAC3C,kDAAkD,GAClD,iDAAiD,GACjD,mDAAmD,GACnD,+CAA+C,GAC/C,gDAAgD,GAChD,4CAA4C,GAC5C,8CAA8C,GAC9C,yCAAyC,GACzC,0CAA0C,GAC1C,0CAA0C,GAC1C,sCAAsC,GACtC,wCAAwC,GACxC,8CAA8C,CAAC"}
|
|
@@ -280,6 +280,9 @@ export type PerpsControllerGetPositionsAction = {
|
|
|
280
280
|
* Thin delegation to MarketDataService
|
|
281
281
|
*
|
|
282
282
|
* @param params - The operation parameters.
|
|
283
|
+
* @param options - Optional call modifiers.
|
|
284
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
285
|
+
* end-to-end (user-initiated refresh).
|
|
283
286
|
* @returns Array of historical trade executions (fills).
|
|
284
287
|
*/
|
|
285
288
|
export type PerpsControllerGetOrderFillsAction = {
|
|
@@ -291,6 +294,9 @@ export type PerpsControllerGetOrderFillsAction = {
|
|
|
291
294
|
* Thin delegation to MarketDataService
|
|
292
295
|
*
|
|
293
296
|
* @param params - The operation parameters.
|
|
297
|
+
* @param options - Optional call modifiers.
|
|
298
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
299
|
+
* end-to-end (user-initiated refresh).
|
|
294
300
|
* @returns Array of historical orders.
|
|
295
301
|
*/
|
|
296
302
|
export type PerpsControllerGetOrdersAction = {
|
|
@@ -316,6 +322,9 @@ export type PerpsControllerGetOpenOrdersAction = {
|
|
|
316
322
|
* Thin delegation to MarketDataService
|
|
317
323
|
*
|
|
318
324
|
* @param params - The operation parameters.
|
|
325
|
+
* @param options - Optional call modifiers.
|
|
326
|
+
* @param options.forceRefresh - Bypass the request-coalesce cache
|
|
327
|
+
* end-to-end (user-initiated refresh).
|
|
319
328
|
* @returns Array of historical funding payments.
|
|
320
329
|
*/
|
|
321
330
|
export type PerpsControllerGetFundingAction = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerpsController-method-action-types.d.mts","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,8BAA0B;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,eAAe,CAAC,sCAAsC,CAAC,CAAC;CAClE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uDAAuD,GAAG;IACpE,IAAI,EAAE,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C9B,kCAAkC,GAClC,+BAA+B,GAC/B,oCAAoC,GACpC,2CAA2C,GAC3C,+BAA+B,GAC/B,4CAA4C,GAC5C,2CAA2C,GAC3C,0CAA0C,GAC1C,qCAAqC,GACrC,2CAA2C,GAC3C,8CAA8C,GAC9C,+CAA+C,GAC/C,mCAAmC,GACnC,kCAAkC,GAClC,0CAA0C,GAC1C,uCAAuC,GACvC,wCAAwC,GACxC,kCAAkC,GAClC,mCAAmC,GACnC,sCAAsC,GACtC,gDAAgD,GAChD,+CAA+C,GAC/C,8BAA8B,GAC9B,sCAAsC,GACtC,yCAAyC,GACzC,0CAA0C,GAC1C,sCAAsC,GACtC,uCAAuC,GACvC,yCAAyC,GACzC,uCAAuC,GACvC,sCAAsC,GACtC,sCAAsC,GACtC,kCAAkC,GAClC,+BAA+B,GAC/B,+CAA+C,GAC/C,8CAA8C,GAC9C,uCAAuC,GACvC,wCAAwC,GACxC,oDAAoD,GACpD,0CAA0C,GAC1C,4CAA4C,GAC5C,4CAA4C,GAC5C,oDAAoD,GACpD,0CAA0C,GAC1C,2CAA2C,GAC3C,kDAAkD,GAClD,iDAAiD,GACjD,mDAAmD,GACnD,+CAA+C,GAC/C,gDAAgD,GAChD,4CAA4C,GAC5C,8CAA8C,GAC9C,yCAAyC,GACzC,0CAA0C,GAC1C,0CAA0C,GAC1C,sCAAsC,GACtC,wCAAwC,GACxC,8CAA8C,CAAC"}
|
|
1
|
+
{"version":3,"file":"PerpsController-method-action-types.d.mts","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,8BAA0B;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,eAAe,CAAC,sCAAsC,CAAC,CAAC;CAClE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uDAAuD,GAA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C,kCAAkC,GAClC,8BAA8B,GAC9B,kCAAkC,GAClC,+BAA+B,GAC/B,oCAAoC,GACpC,2CAA2C,GAC3C,+BAA+B,GAC/B,4CAA4C,GAC5C,2CAA2C,GAC3C,0CAA0C,GAC1C,qCAAqC,GACrC,2CAA2C,GAC3C,8CAA8C,GAC9C,+CAA+C,GAC/C,mCAAmC,GACnC,kCAAkC,GAClC,0CAA0C,GAC1C,uCAAuC,GACvC,wCAAwC,GACxC,kCAAkC,GAClC,mCAAmC,GACnC,sCAAsC,GACtC,gDAAgD,GAChD,+CAA+C,GAC/C,8BAA8B,GAC9B,sCAAsC,GACtC,yCAAyC,GACzC,0CAA0C,GAC1C,sCAAsC,GACtC,uCAAuC,GACvC,yCAAyC,GACzC,uCAAuC,GACvC,sCAAsC,GACtC,sCAAsC,GACtC,kCAAkC,GAClC,+BAA+B,GAC/B,+CAA+C,GAC/C,8CAA8C,GAC9C,uCAAuC,GACvC,wCAAwC,GACxC,oDAAoD,GACpD,0CAA0C,GAC1C,4CAA4C,GAC5C,4CAA4C,GAC5C,oDAAoD,GACpD,0CAA0C,GAC1C,2CAA2C,GAC3C,kDAAkD,GAClD,iDAAiD,GACjD,mDAAmD,GACnD,+CAA+C,GAC/C,gDAAgD,GAChD,4CAA4C,GAC5C,8CAA8C,GAC9C,yCAAyC,GACzC,0CAA0C,GAC1C,0CAA0C,GAC1C,sCAAsC,GACtC,wCAAwC,GACxC,8CAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerpsController-method-action-types.mjs","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PerpsController } from './PerpsController';\n\n/**\n * Read cached market data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists or when cache has expired.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 5-minute TTL check.\n * Used during initial render so disk-hydrated structural data (with\n * placeholder prices) is returned regardless of age.\n * @returns The cached market data array, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedMarketDataForActiveProviderAction = {\n type: `PerpsController:getCachedMarketDataForActiveProvider`;\n handler: PerpsController['getCachedMarketDataForActiveProvider'];\n};\n\n/**\n * Read cached user data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists, cache has expired, or address\n * does not match the currently selected EVM account.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 60s staleness check.\n * Used during initial render so disk-hydrated user data (positions/orders)\n * is returned regardless of age, avoiding a skeleton flash.\n * @returns The cached user data, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedUserDataForActiveProviderAction = {\n type: `PerpsController:getCachedUserDataForActiveProvider`;\n handler: PerpsController['getCachedUserDataForActiveProvider'];\n};\n\n/**\n * Initialize the PerpsController providers\n * Must be called before using any other methods\n * Prevents double initialization with promise caching\n *\n * @returns A promise that resolves when the operation completes.\n */\nexport type PerpsControllerInitAction = {\n type: `PerpsController:init`;\n handler: PerpsController['init'];\n};\n\n/**\n * Get the currently active provider.\n * In aggregated mode, returns AggregatedPerpsProvider which routes to underlying providers.\n * In single provider mode, returns HyperLiquidProvider directly.\n *\n * @returns The active provider (aggregated wrapper or direct provider based on mode)\n * @throws Error if provider is not initialized or reinitializing\n */\nexport type PerpsControllerGetActiveProviderAction = {\n type: `PerpsController:getActiveProvider`;\n handler: PerpsController['getActiveProvider'];\n};\n\n/**\n * Get the currently active provider, returning null if not available\n * Use this method when the caller can gracefully handle a missing provider\n * (e.g., UI components during initialization or reconnection)\n *\n * @returns The active provider, or null if not initialized/reinitializing\n */\nexport type PerpsControllerGetActiveProviderOrNullAction = {\n type: `PerpsController:getActiveProviderOrNull`;\n handler: PerpsController['getActiveProviderOrNull'];\n};\n\n/**\n * Place a new order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result with order ID and status.\n */\nexport type PerpsControllerPlaceOrderAction = {\n type: `PerpsController:placeOrder`;\n handler: PerpsController['placeOrder'];\n};\n\n/**\n * Edit an existing order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The updated order result with order ID and status.\n */\nexport type PerpsControllerEditOrderAction = {\n type: `PerpsController:editOrder`;\n handler: PerpsController['editOrder'];\n};\n\n/**\n * Cancel an existing order\n *\n * @param params - The operation parameters.\n * @returns The cancellation result with status.\n */\nexport type PerpsControllerCancelOrderAction = {\n type: `PerpsController:cancelOrder`;\n handler: PerpsController['cancelOrder'];\n};\n\n/**\n * Cancel multiple orders in parallel\n * Batch version of cancelOrder() that cancels multiple orders simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch cancellation results for each order.\n */\nexport type PerpsControllerCancelOrdersAction = {\n type: `PerpsController:cancelOrders`;\n handler: PerpsController['cancelOrders'];\n};\n\n/**\n * Close a position (partial or full)\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result from the close position request.\n */\nexport type PerpsControllerClosePositionAction = {\n type: `PerpsController:closePosition`;\n handler: PerpsController['closePosition'];\n};\n\n/**\n * Close multiple positions in parallel\n * Batch version of closePosition() that closes multiple positions simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch close results for each position.\n */\nexport type PerpsControllerClosePositionsAction = {\n type: `PerpsController:closePositions`;\n handler: PerpsController['closePositions'];\n};\n\n/**\n * Update TP/SL for an existing position\n *\n * @param params - The operation parameters.\n * @returns The order result from the TP/SL update.\n */\nexport type PerpsControllerUpdatePositionTPSLAction = {\n type: `PerpsController:updatePositionTPSL`;\n handler: PerpsController['updatePositionTPSL'];\n};\n\n/**\n * Update margin for an existing position (add or remove)\n *\n * @param params - The operation parameters.\n * @returns The margin update result.\n */\nexport type PerpsControllerUpdateMarginAction = {\n type: `PerpsController:updateMargin`;\n handler: PerpsController['updateMargin'];\n};\n\n/**\n * Flip position (reverse direction while keeping size and leverage)\n *\n * @param params - The operation parameters.\n * @returns The order result from the position flip.\n */\nexport type PerpsControllerFlipPositionAction = {\n type: `PerpsController:flipPosition`;\n handler: PerpsController['flipPosition'];\n};\n\n/**\n * Simplified deposit method that prepares transaction for confirmation screen\n * No complex state tracking - just sets a loading flag\n *\n * @param params - Parameters for the deposit flow\n * @param params.amount - Optional deposit amount\n * @param params.placeOrder - If true, uses addTransaction instead of submit to avoid navigation\n * @returns An object containing a promise that resolves to the transaction hash.\n */\nexport type PerpsControllerDepositWithConfirmationAction = {\n type: `PerpsController:depositWithConfirmation`;\n handler: PerpsController['depositWithConfirmation'];\n};\n\n/**\n * Same as depositWithConfirmation - prepares transaction for confirmation screen.\n *\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerDepositWithOrderAction = {\n type: `PerpsController:depositWithOrder`;\n handler: PerpsController['depositWithOrder'];\n};\n\n/**\n * Clear the last deposit result after it has been shown to the user\n */\nexport type PerpsControllerClearDepositResultAction = {\n type: `PerpsController:clearDepositResult`;\n handler: PerpsController['clearDepositResult'];\n};\n\nexport type PerpsControllerClearWithdrawResultAction = {\n type: `PerpsController:clearWithdrawResult`;\n handler: PerpsController['clearWithdrawResult'];\n};\n\n/**\n * Update withdrawal request status when it completes, or remove it on failure.\n * This is called when a withdrawal is matched with a completed withdrawal from the API.\n * When status is `failed`, the request is removed from the queue (not retained).\n *\n * @param withdrawalId - The withdrawal transaction ID.\n * @param status - The current status.\n * @param txHash - The transaction hash.\n */\nexport type PerpsControllerUpdateWithdrawalStatusAction = {\n type: `PerpsController:updateWithdrawalStatus`;\n handler: PerpsController['updateWithdrawalStatus'];\n};\n\n/**\n * Complete a specific withdrawal detected via transaction history polling (FIFO queue).\n * Called when a completed withdrawal appears in the transaction history matching a pending request.\n *\n * Uses FIFO matching: oldest pending withdrawal is matched with first completed withdrawal\n * in history that happened after its submission time.\n *\n * @param withdrawalRequestId - The ID of the pending withdrawal request to mark as complete.\n * @param completedWithdrawal - The completed withdrawal data from the history API.\n * @param completedWithdrawal.txHash - The on-chain transaction hash.\n * @param completedWithdrawal.amount - The withdrawal amount.\n * @param completedWithdrawal.timestamp - The completion timestamp from the history API.\n * @param completedWithdrawal.asset - The asset symbol (e.g. USDC).\n */\nexport type PerpsControllerCompleteWithdrawalFromHistoryAction = {\n type: `PerpsController:completeWithdrawalFromHistory`;\n handler: PerpsController['completeWithdrawalFromHistory'];\n};\n\n/**\n * Update withdrawal progress (persistent across navigation)\n *\n * @param progress - The progress indicator.\n * @param activeWithdrawalId - The active withdrawal ID.\n */\nexport type PerpsControllerUpdateWithdrawalProgressAction = {\n type: `PerpsController:updateWithdrawalProgress`;\n handler: PerpsController['updateWithdrawalProgress'];\n};\n\n/**\n * Get current withdrawal progress\n *\n * @returns The withdrawal progress, last update timestamp, and active withdrawal ID.\n */\nexport type PerpsControllerGetWithdrawalProgressAction = {\n type: `PerpsController:getWithdrawalProgress`;\n handler: PerpsController['getWithdrawalProgress'];\n};\n\n/**\n * Withdraw funds from trading account\n *\n * The withdrawal process varies by provider and may involve:\n * - Direct on-chain transfers\n * - Bridge operations\n * - Multi-step validation processes\n *\n * Check the specific provider documentation for detailed withdrawal flows.\n *\n * @param params Withdrawal parameters\n * @returns WithdrawResult with withdrawal ID and tracking info\n */\nexport type PerpsControllerWithdrawAction = {\n type: `PerpsController:withdraw`;\n handler: PerpsController['withdraw'];\n};\n\n/**\n * Get current positions\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow position queries\n * without full perps initialization (e.g., for showing positions on token details page)\n *\n * @param params - The operation parameters.\n * @returns Array of open positions for the active provider.\n */\nexport type PerpsControllerGetPositionsAction = {\n type: `PerpsController:getPositions`;\n handler: PerpsController['getPositions'];\n};\n\n/**\n * Get historical user fills (trade executions)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical trade executions (fills).\n */\nexport type PerpsControllerGetOrderFillsAction = {\n type: `PerpsController:getOrderFills`;\n handler: PerpsController['getOrderFills'];\n};\n\n/**\n * Get historical user orders (order lifecycle)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical orders.\n */\nexport type PerpsControllerGetOrdersAction = {\n type: `PerpsController:getOrders`;\n handler: PerpsController['getOrders'];\n};\n\n/**\n * Get currently open orders (real-time status)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow open order queries\n * without full perps initialization (e.g., for background preloading)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetOpenOrdersAction = {\n type: `PerpsController:getOpenOrders`;\n handler: PerpsController['getOpenOrders'];\n};\n\n/**\n * Get historical user funding history (funding payments)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns Array of historical funding payments.\n */\nexport type PerpsControllerGetFundingAction = {\n type: `PerpsController:getFunding`;\n handler: PerpsController['getFunding'];\n};\n\n/**\n * Get account state (balances, etc.)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow account state queries\n * without full perps initialization (e.g., for checking if user has perps funds)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetAccountStateAction = {\n type: `PerpsController:getAccountState`;\n handler: PerpsController['getAccountState'];\n};\n\n/**\n * Get historical portfolio data\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns The historical portfolio data points.\n */\nexport type PerpsControllerGetHistoricalPortfolioAction = {\n type: `PerpsController:getHistoricalPortfolio`;\n handler: PerpsController['getHistoricalPortfolio'];\n};\n\n/**\n * Get available markets with optional filtering\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow market discovery\n * without full perps initialization (e.g., for discovery banners on spot screens)\n *\n * @param params - The operation parameters.\n * @returns Array of available markets matching the filter criteria.\n */\nexport type PerpsControllerGetMarketsAction = {\n type: `PerpsController:getMarkets`;\n handler: PerpsController['getMarkets'];\n};\n\n/**\n * Get market data with prices (includes price, volume, 24h change)\n *\n * For standalone mode, bypasses getActiveProvider() to allow market data queries\n * without full perps initialization (e.g., for background preloading on app start)\n *\n * @param params - The operation parameters.\n * @param params.standalone - Whether to use standalone mode.\n * @returns A promise that resolves to the market data.\n */\nexport type PerpsControllerGetMarketDataWithPricesAction = {\n type: `PerpsController:getMarketDataWithPrices`;\n handler: PerpsController['getMarketDataWithPrices'];\n};\n\n/**\n * Start background market data preloading.\n * Fetches market data immediately and refreshes every 5 minutes.\n * Watches for isTestnet and hip3ConfigVersion changes to re-preload.\n */\nexport type PerpsControllerStartMarketDataPreloadAction = {\n type: `PerpsController:startMarketDataPreload`;\n handler: PerpsController['startMarketDataPreload'];\n};\n\n/**\n * Stop background market data preloading.\n */\nexport type PerpsControllerStopMarketDataPreloadAction = {\n type: `PerpsController:stopMarketDataPreload`;\n handler: PerpsController['stopMarketDataPreload'];\n};\n\n/**\n * Get list of available HIP-3 builder-deployed DEXs\n *\n * @param params - Optional parameters for filtering\n * @returns Array of DEX names\n */\nexport type PerpsControllerGetAvailableDexsAction = {\n type: `PerpsController:getAvailableDexs`;\n handler: PerpsController['getAvailableDexs'];\n};\n\n/**\n * Fetch historical candle data\n * Thin delegation to MarketDataService\n *\n * @param options - The configuration options.\n * @param options.symbol - The trading pair symbol.\n * @param options.interval - The candle interval period.\n * @param options.limit - Maximum number of items to fetch.\n * @param options.endTime - End timestamp in milliseconds.\n * @returns The historical candle data for the requested symbol and interval.\n */\nexport type PerpsControllerFetchHistoricalCandlesAction = {\n type: `PerpsController:fetchHistoricalCandles`;\n handler: PerpsController['fetchHistoricalCandles'];\n};\n\n/**\n * Calculate liquidation price for a position\n * Uses provider-specific formulas based on protocol rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerCalculateLiquidationPriceAction = {\n type: `PerpsController:calculateLiquidationPrice`;\n handler: PerpsController['calculateLiquidationPrice'];\n};\n\n/**\n * Calculate maintenance margin for a specific asset\n * Returns a percentage (e.g., 0.0125 for 1.25%)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerCalculateMaintenanceMarginAction = {\n type: `PerpsController:calculateMaintenanceMargin`;\n handler: PerpsController['calculateMaintenanceMargin'];\n};\n\n/**\n * Get maximum leverage allowed for an asset\n *\n * @param asset - The asset identifier.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerGetMaxLeverageAction = {\n type: `PerpsController:getMaxLeverage`;\n handler: PerpsController['getMaxLeverage'];\n};\n\n/**\n * Validate order parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateOrderAction = {\n type: `PerpsController:validateOrder`;\n handler: PerpsController['validateOrder'];\n};\n\n/**\n * Validate close position parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerValidateClosePositionAction = {\n type: `PerpsController:validateClosePosition`;\n handler: PerpsController['validateClosePosition'];\n};\n\n/**\n * Validate withdrawal parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateWithdrawalAction = {\n type: `PerpsController:validateWithdrawal`;\n handler: PerpsController['validateWithdrawal'];\n};\n\n/**\n * Get supported withdrawal routes - returns complete asset and routing information\n *\n * @returns Array of supported asset routes for withdrawals.\n */\nexport type PerpsControllerGetWithdrawalRoutesAction = {\n type: `PerpsController:getWithdrawalRoutes`;\n handler: PerpsController['getWithdrawalRoutes'];\n};\n\n/**\n * Toggle between testnet and mainnet\n *\n * @returns The toggle result with success status and current network mode.\n */\nexport type PerpsControllerToggleTestnetAction = {\n type: `PerpsController:toggleTestnet`;\n handler: PerpsController['toggleTestnet'];\n};\n\n/**\n * Switch to a different provider\n * Uses a full reinit approach: disconnect() → update state → init()\n * This ensures complete state reset including WebSocket connections and caches.\n *\n * @param providerId - The provider identifier.\n * @returns The switch result with success status and active provider.\n */\nexport type PerpsControllerSwitchProviderAction = {\n type: `PerpsController:switchProvider`;\n handler: PerpsController['switchProvider'];\n};\n\n/**\n * Get current network (mainnet/testnet)\n *\n * @returns Either 'mainnet' or 'testnet' based on the current configuration.\n */\nexport type PerpsControllerGetCurrentNetworkAction = {\n type: `PerpsController:getCurrentNetwork`;\n handler: PerpsController['getCurrentNetwork'];\n};\n\n/**\n * Get the current WebSocket connection state from the active provider.\n * Used by the UI to monitor connection health and show notifications.\n *\n * @returns The current WebSocket connection state, or DISCONNECTED if not supported\n */\nexport type PerpsControllerGetWebSocketConnectionStateAction = {\n type: `PerpsController:getWebSocketConnectionState`;\n handler: PerpsController['getWebSocketConnectionState'];\n};\n\n/**\n * Subscribe to WebSocket connection state changes from the active provider.\n * The listener will be called immediately with the current state and whenever the state changes.\n *\n * @param listener - Callback function that receives the new connection state and reconnection attempt\n * @returns Unsubscribe function to remove the listener, or no-op if not supported\n */\nexport type PerpsControllerSubscribeToConnectionStateAction = {\n type: `PerpsController:subscribeToConnectionState`;\n handler: PerpsController['subscribeToConnectionState'];\n};\n\n/**\n * Manually trigger a WebSocket reconnection attempt.\n * Used by the UI retry button when connection is lost.\n */\nexport type PerpsControllerReconnectAction = {\n type: `PerpsController:reconnect`;\n handler: PerpsController['reconnect'];\n};\n\n/**\n * Subscribe to live price updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPricesAction = {\n type: `PerpsController:subscribeToPrices`;\n handler: PerpsController['subscribeToPrices'];\n};\n\n/**\n * Subscribe to live position updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPositionsAction = {\n type: `PerpsController:subscribeToPositions`;\n handler: PerpsController['subscribeToPositions'];\n};\n\n/**\n * Subscribe to live order fill updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderFillsAction = {\n type: `PerpsController:subscribeToOrderFills`;\n handler: PerpsController['subscribeToOrderFills'];\n};\n\n/**\n * Subscribe to live order updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrdersAction = {\n type: `PerpsController:subscribeToOrders`;\n handler: PerpsController['subscribeToOrders'];\n};\n\n/**\n * Subscribe to live account updates.\n * Updates controller state (Redux) when new account data arrives so consumers\n * like usePerpsBalanceTokenFilter (PayWithModal) see the latest balance.\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToAccountAction = {\n type: `PerpsController:subscribeToAccount`;\n handler: PerpsController['subscribeToAccount'];\n};\n\n/**\n * Subscribe to full order book updates with multiple depth levels\n * Creates a dedicated L2Book subscription for real-time order book data\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderBookAction = {\n type: `PerpsController:subscribeToOrderBook`;\n handler: PerpsController['subscribeToOrderBook'];\n};\n\n/**\n * Subscribe to live candle updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToCandlesAction = {\n type: `PerpsController:subscribeToCandles`;\n handler: PerpsController['subscribeToCandles'];\n};\n\n/**\n * Subscribe to open interest cap updates\n * Zero additional network overhead - data comes from existing webData3 subscription\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOICapsAction = {\n type: `PerpsController:subscribeToOICaps`;\n handler: PerpsController['subscribeToOICaps'];\n};\n\n/**\n * Configure live data throttling\n *\n * @param config - The configuration object.\n */\nexport type PerpsControllerSetLiveDataConfigAction = {\n type: `PerpsController:setLiveDataConfig`;\n handler: PerpsController['setLiveDataConfig'];\n};\n\n/**\n * Calculate trading fees for the active provider\n * Each provider implements its own fee structure\n *\n * @param params - The operation parameters.\n * @returns The fee calculation result for the trade.\n */\nexport type PerpsControllerCalculateFeesAction = {\n type: `PerpsController:calculateFees`;\n handler: PerpsController['calculateFees'];\n};\n\n/**\n * Disconnect provider and cleanup subscriptions\n * Call this when navigating away from Perps screens to prevent battery drain\n */\nexport type PerpsControllerDisconnectAction = {\n type: `PerpsController:disconnect`;\n handler: PerpsController['disconnect'];\n};\n\n/**\n * Resume eligibility monitoring after onboarding completes.\n * Clears the deferred flag and triggers an immediate eligibility check\n * using the current remote feature flag state.\n */\nexport type PerpsControllerStartEligibilityMonitoringAction = {\n type: `PerpsController:startEligibilityMonitoring`;\n handler: PerpsController['startEligibilityMonitoring'];\n};\n\n/**\n * Stops geo-blocking eligibility monitoring.\n * Call this when the user disables basic functionality (e.g. useExternalServices becomes false).\n * Prevents geolocation calls until startEligibilityMonitoring() is called again.\n * Safe to call multiple times.\n */\nexport type PerpsControllerStopEligibilityMonitoringAction = {\n type: `PerpsController:stopEligibilityMonitoring`;\n handler: PerpsController['stopEligibilityMonitoring'];\n};\n\nexport type PerpsControllerRefreshEligibilityAction = {\n type: `PerpsController:refreshEligibility`;\n handler: PerpsController['refreshEligibility'];\n};\n\n/**\n * Get block explorer URL for an address or just the base URL\n *\n * @param address - Optional address to append to the base URL\n * @returns Block explorer URL\n */\nexport type PerpsControllerGetBlockExplorerUrlAction = {\n type: `PerpsController:getBlockExplorerUrl`;\n handler: PerpsController['getBlockExplorerUrl'];\n};\n\n/**\n * Check if user is first-time for the current network\n *\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsFirstTimeUserOnCurrentNetworkAction = {\n type: `PerpsController:isFirstTimeUserOnCurrentNetwork`;\n handler: PerpsController['isFirstTimeUserOnCurrentNetwork'];\n};\n\n/**\n * Mark that the user has completed the tutorial/onboarding\n * This prevents the tutorial from showing again\n */\nexport type PerpsControllerMarkTutorialCompletedAction = {\n type: `PerpsController:markTutorialCompleted`;\n handler: PerpsController['markTutorialCompleted'];\n};\n\nexport type PerpsControllerMarkFirstOrderCompletedAction = {\n type: `PerpsController:markFirstOrderCompleted`;\n handler: PerpsController['markFirstOrderCompleted'];\n};\n\n/**\n * Reset first-time user state for both networks\n * This is useful for testing the tutorial flow\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerResetFirstTimeUserStateAction = {\n type: `PerpsController:resetFirstTimeUserState`;\n handler: PerpsController['resetFirstTimeUserState'];\n};\n\n/**\n * Clear pending/bridging withdrawal and deposit requests\n * This is useful when users want to clear stuck pending indicators\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerClearPendingTransactionRequestsAction = {\n type: `PerpsController:clearPendingTransactionRequests`;\n handler: PerpsController['clearPendingTransactionRequests'];\n};\n\n/**\n * Get saved trade configuration for a market\n *\n * @param symbol - The trading pair symbol.\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetTradeConfigurationAction = {\n type: `PerpsController:getTradeConfiguration`;\n handler: PerpsController['getTradeConfiguration'];\n};\n\n/**\n * Save trade configuration for a market\n *\n * @param symbol - Market symbol\n * @param leverage - Leverage value\n */\nexport type PerpsControllerSaveTradeConfigurationAction = {\n type: `PerpsController:saveTradeConfiguration`;\n handler: PerpsController['saveTradeConfiguration'];\n};\n\n/**\n * Save pending trade configuration for a market\n * This is a temporary configuration that expires after 5 minutes\n *\n * @param symbol - Market symbol\n * @param config - Pending trade configuration (includes optional selected payment token from Pay row)\n * @param config.amount - The amount value.\n * @param config.leverage - The leverage multiplier.\n * @param config.takeProfitPrice - The take profit price.\n * @param config.stopLossPrice - The stop loss price.\n * @param config.limitPrice - The limit price.\n * @param config.orderType - The order type.\n * @param config.selectedPaymentToken - The selected payment token.\n */\nexport type PerpsControllerSavePendingTradeConfigurationAction = {\n type: `PerpsController:savePendingTradeConfiguration`;\n handler: PerpsController['savePendingTradeConfiguration'];\n};\n\n/**\n * Get pending trade configuration for a market\n * Returns undefined if config doesn't exist or has expired (more than 5 minutes old)\n *\n * @param symbol - Market symbol\n * @returns Pending trade configuration or undefined\n */\nexport type PerpsControllerGetPendingTradeConfigurationAction = {\n type: `PerpsController:getPendingTradeConfiguration`;\n handler: PerpsController['getPendingTradeConfiguration'];\n};\n\n/**\n * Clear pending trade configuration for a market\n *\n * @param symbol - Market symbol\n */\nexport type PerpsControllerClearPendingTradeConfigurationAction = {\n type: `PerpsController:clearPendingTradeConfiguration`;\n handler: PerpsController['clearPendingTradeConfiguration'];\n};\n\n/**\n * Get saved market filter preferences\n * Handles backward compatibility with legacy string format\n *\n * @returns The saved sort option ID and direction.\n */\nexport type PerpsControllerGetMarketFilterPreferencesAction = {\n type: `PerpsController:getMarketFilterPreferences`;\n handler: PerpsController['getMarketFilterPreferences'];\n};\n\n/**\n * Save market filter preferences\n *\n * @param optionId - Sort/filter option ID\n * @param direction - Sort direction ('asc' or 'desc')\n */\nexport type PerpsControllerSaveMarketFilterPreferencesAction = {\n type: `PerpsController:saveMarketFilterPreferences`;\n handler: PerpsController['saveMarketFilterPreferences'];\n};\n\n/**\n * Set the selected payment token for the Perps order/deposit flow.\n * Pass null or a token with description PERPS_CONSTANTS.PerpsBalanceTokenDescription to select Perps balance.\n * Only required fields (address, chainId) are stored in state; description and symbol are optional.\n *\n * @param token - The token identifier.\n */\nexport type PerpsControllerSetSelectedPaymentTokenAction = {\n type: `PerpsController:setSelectedPaymentToken`;\n handler: PerpsController['setSelectedPaymentToken'];\n};\n\n/**\n * Reset the selected payment token to Perps balance (null).\n * Call when leaving the Perps order view so the next visit defaults to Perps balance.\n */\nexport type PerpsControllerResetSelectedPaymentTokenAction = {\n type: `PerpsController:resetSelectedPaymentToken`;\n handler: PerpsController['resetSelectedPaymentToken'];\n};\n\n/**\n * Get saved order book grouping for a market\n *\n * @param symbol - Market symbol\n * @returns The saved grouping value or undefined if not set\n */\nexport type PerpsControllerGetOrderBookGroupingAction = {\n type: `PerpsController:getOrderBookGrouping`;\n handler: PerpsController['getOrderBookGrouping'];\n};\n\n/**\n * Save order book grouping for a market\n *\n * @param symbol - Market symbol\n * @param grouping - Price grouping value\n */\nexport type PerpsControllerSaveOrderBookGroupingAction = {\n type: `PerpsController:saveOrderBookGrouping`;\n handler: PerpsController['saveOrderBookGrouping'];\n};\n\n/**\n * Toggle watchlist status for a market\n * Watchlist markets are stored per network (testnet/mainnet)\n *\n * @param symbol - The trading pair symbol.\n */\nexport type PerpsControllerToggleWatchlistMarketAction = {\n type: `PerpsController:toggleWatchlistMarket`;\n handler: PerpsController['toggleWatchlistMarket'];\n};\n\n/**\n * Check if a market is in the watchlist on the current network\n *\n * @param symbol - The trading pair symbol.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsWatchlistMarketAction = {\n type: `PerpsController:isWatchlistMarket`;\n handler: PerpsController['isWatchlistMarket'];\n};\n\n/**\n * Get all watchlist markets for the current network\n *\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetWatchlistMarketsAction = {\n type: `PerpsController:getWatchlistMarkets`;\n handler: PerpsController['getWatchlistMarkets'];\n};\n\n/**\n * Check if the controller is currently reinitializing\n *\n * @returns true if providers are being reinitialized\n */\nexport type PerpsControllerIsCurrentlyReinitializingAction = {\n type: `PerpsController:isCurrentlyReinitializing`;\n handler: PerpsController['isCurrentlyReinitializing'];\n};\n\n/**\n * Union of all PerpsController action types.\n */\nexport type PerpsControllerMethodActions =\n | PerpsControllerGetCachedMarketDataForActiveProviderAction\n | PerpsControllerGetCachedUserDataForActiveProviderAction\n | PerpsControllerInitAction\n | PerpsControllerGetActiveProviderAction\n | PerpsControllerGetActiveProviderOrNullAction\n | PerpsControllerPlaceOrderAction\n | PerpsControllerEditOrderAction\n | PerpsControllerCancelOrderAction\n | PerpsControllerCancelOrdersAction\n | PerpsControllerClosePositionAction\n | PerpsControllerClosePositionsAction\n | PerpsControllerUpdatePositionTPSLAction\n | PerpsControllerUpdateMarginAction\n | PerpsControllerFlipPositionAction\n | PerpsControllerDepositWithConfirmationAction\n | PerpsControllerDepositWithOrderAction\n | PerpsControllerClearDepositResultAction\n | PerpsControllerClearWithdrawResultAction\n | PerpsControllerUpdateWithdrawalStatusAction\n | PerpsControllerCompleteWithdrawalFromHistoryAction\n | PerpsControllerUpdateWithdrawalProgressAction\n | PerpsControllerGetWithdrawalProgressAction\n | PerpsControllerWithdrawAction\n | PerpsControllerGetPositionsAction\n | PerpsControllerGetOrderFillsAction\n | PerpsControllerGetOrdersAction\n | PerpsControllerGetOpenOrdersAction\n | PerpsControllerGetFundingAction\n | PerpsControllerGetAccountStateAction\n | PerpsControllerGetHistoricalPortfolioAction\n | PerpsControllerGetMarketsAction\n | PerpsControllerGetMarketDataWithPricesAction\n | PerpsControllerStartMarketDataPreloadAction\n | PerpsControllerStopMarketDataPreloadAction\n | PerpsControllerGetAvailableDexsAction\n | PerpsControllerFetchHistoricalCandlesAction\n | PerpsControllerCalculateLiquidationPriceAction\n | PerpsControllerCalculateMaintenanceMarginAction\n | PerpsControllerGetMaxLeverageAction\n | PerpsControllerValidateOrderAction\n | PerpsControllerValidateClosePositionAction\n | PerpsControllerValidateWithdrawalAction\n | PerpsControllerGetWithdrawalRoutesAction\n | PerpsControllerToggleTestnetAction\n | PerpsControllerSwitchProviderAction\n | PerpsControllerGetCurrentNetworkAction\n | PerpsControllerGetWebSocketConnectionStateAction\n | PerpsControllerSubscribeToConnectionStateAction\n | PerpsControllerReconnectAction\n | PerpsControllerSubscribeToPricesAction\n | PerpsControllerSubscribeToPositionsAction\n | PerpsControllerSubscribeToOrderFillsAction\n | PerpsControllerSubscribeToOrdersAction\n | PerpsControllerSubscribeToAccountAction\n | PerpsControllerSubscribeToOrderBookAction\n | PerpsControllerSubscribeToCandlesAction\n | PerpsControllerSubscribeToOICapsAction\n | PerpsControllerSetLiveDataConfigAction\n | PerpsControllerCalculateFeesAction\n | PerpsControllerDisconnectAction\n | PerpsControllerStartEligibilityMonitoringAction\n | PerpsControllerStopEligibilityMonitoringAction\n | PerpsControllerRefreshEligibilityAction\n | PerpsControllerGetBlockExplorerUrlAction\n | PerpsControllerIsFirstTimeUserOnCurrentNetworkAction\n | PerpsControllerMarkTutorialCompletedAction\n | PerpsControllerMarkFirstOrderCompletedAction\n | PerpsControllerResetFirstTimeUserStateAction\n | PerpsControllerClearPendingTransactionRequestsAction\n | PerpsControllerGetTradeConfigurationAction\n | PerpsControllerSaveTradeConfigurationAction\n | PerpsControllerSavePendingTradeConfigurationAction\n | PerpsControllerGetPendingTradeConfigurationAction\n | PerpsControllerClearPendingTradeConfigurationAction\n | PerpsControllerGetMarketFilterPreferencesAction\n | PerpsControllerSaveMarketFilterPreferencesAction\n | PerpsControllerSetSelectedPaymentTokenAction\n | PerpsControllerResetSelectedPaymentTokenAction\n | PerpsControllerGetOrderBookGroupingAction\n | PerpsControllerSaveOrderBookGroupingAction\n | PerpsControllerToggleWatchlistMarketAction\n | PerpsControllerIsWatchlistMarketAction\n | PerpsControllerGetWatchlistMarketsAction\n | PerpsControllerIsCurrentlyReinitializingAction;\n"]}
|
|
1
|
+
{"version":3,"file":"PerpsController-method-action-types.mjs","sourceRoot":"","sources":["../src/PerpsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PerpsController } from './PerpsController';\n\n/**\n * Read cached market data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists or when cache has expired.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 5-minute TTL check.\n * Used during initial render so disk-hydrated structural data (with\n * placeholder prices) is returned regardless of age.\n * @returns The cached market data array, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedMarketDataForActiveProviderAction = {\n type: `PerpsController:getCachedMarketDataForActiveProvider`;\n handler: PerpsController['getCachedMarketDataForActiveProvider'];\n};\n\n/**\n * Read cached user data for the currently active provider (or aggregated).\n * Returns null when no valid cache exists, cache has expired, or address\n * does not match the currently selected EVM account.\n *\n * @param options - Optional settings.\n * @param options.skipTTL - When true, bypass the 60s staleness check.\n * Used during initial render so disk-hydrated user data (positions/orders)\n * is returned regardless of age, avoiding a skeleton flash.\n * @returns The cached user data, or null if no valid cache.\n */\nexport type PerpsControllerGetCachedUserDataForActiveProviderAction = {\n type: `PerpsController:getCachedUserDataForActiveProvider`;\n handler: PerpsController['getCachedUserDataForActiveProvider'];\n};\n\n/**\n * Initialize the PerpsController providers\n * Must be called before using any other methods\n * Prevents double initialization with promise caching\n *\n * @returns A promise that resolves when the operation completes.\n */\nexport type PerpsControllerInitAction = {\n type: `PerpsController:init`;\n handler: PerpsController['init'];\n};\n\n/**\n * Get the currently active provider.\n * In aggregated mode, returns AggregatedPerpsProvider which routes to underlying providers.\n * In single provider mode, returns HyperLiquidProvider directly.\n *\n * @returns The active provider (aggregated wrapper or direct provider based on mode)\n * @throws Error if provider is not initialized or reinitializing\n */\nexport type PerpsControllerGetActiveProviderAction = {\n type: `PerpsController:getActiveProvider`;\n handler: PerpsController['getActiveProvider'];\n};\n\n/**\n * Get the currently active provider, returning null if not available\n * Use this method when the caller can gracefully handle a missing provider\n * (e.g., UI components during initialization or reconnection)\n *\n * @returns The active provider, or null if not initialized/reinitializing\n */\nexport type PerpsControllerGetActiveProviderOrNullAction = {\n type: `PerpsController:getActiveProviderOrNull`;\n handler: PerpsController['getActiveProviderOrNull'];\n};\n\n/**\n * Place a new order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result with order ID and status.\n */\nexport type PerpsControllerPlaceOrderAction = {\n type: `PerpsController:placeOrder`;\n handler: PerpsController['placeOrder'];\n};\n\n/**\n * Edit an existing order\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The updated order result with order ID and status.\n */\nexport type PerpsControllerEditOrderAction = {\n type: `PerpsController:editOrder`;\n handler: PerpsController['editOrder'];\n};\n\n/**\n * Cancel an existing order\n *\n * @param params - The operation parameters.\n * @returns The cancellation result with status.\n */\nexport type PerpsControllerCancelOrderAction = {\n type: `PerpsController:cancelOrder`;\n handler: PerpsController['cancelOrder'];\n};\n\n/**\n * Cancel multiple orders in parallel\n * Batch version of cancelOrder() that cancels multiple orders simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch cancellation results for each order.\n */\nexport type PerpsControllerCancelOrdersAction = {\n type: `PerpsController:cancelOrders`;\n handler: PerpsController['cancelOrders'];\n};\n\n/**\n * Close a position (partial or full)\n * Thin delegation to TradingService\n *\n * @param params - The operation parameters.\n * @returns The order result from the close position request.\n */\nexport type PerpsControllerClosePositionAction = {\n type: `PerpsController:closePosition`;\n handler: PerpsController['closePosition'];\n};\n\n/**\n * Close multiple positions in parallel\n * Batch version of closePosition() that closes multiple positions simultaneously\n *\n * @param params - The operation parameters.\n * @returns The batch close results for each position.\n */\nexport type PerpsControllerClosePositionsAction = {\n type: `PerpsController:closePositions`;\n handler: PerpsController['closePositions'];\n};\n\n/**\n * Update TP/SL for an existing position\n *\n * @param params - The operation parameters.\n * @returns The order result from the TP/SL update.\n */\nexport type PerpsControllerUpdatePositionTPSLAction = {\n type: `PerpsController:updatePositionTPSL`;\n handler: PerpsController['updatePositionTPSL'];\n};\n\n/**\n * Update margin for an existing position (add or remove)\n *\n * @param params - The operation parameters.\n * @returns The margin update result.\n */\nexport type PerpsControllerUpdateMarginAction = {\n type: `PerpsController:updateMargin`;\n handler: PerpsController['updateMargin'];\n};\n\n/**\n * Flip position (reverse direction while keeping size and leverage)\n *\n * @param params - The operation parameters.\n * @returns The order result from the position flip.\n */\nexport type PerpsControllerFlipPositionAction = {\n type: `PerpsController:flipPosition`;\n handler: PerpsController['flipPosition'];\n};\n\n/**\n * Simplified deposit method that prepares transaction for confirmation screen\n * No complex state tracking - just sets a loading flag\n *\n * @param params - Parameters for the deposit flow\n * @param params.amount - Optional deposit amount\n * @param params.placeOrder - If true, uses addTransaction instead of submit to avoid navigation\n * @returns An object containing a promise that resolves to the transaction hash.\n */\nexport type PerpsControllerDepositWithConfirmationAction = {\n type: `PerpsController:depositWithConfirmation`;\n handler: PerpsController['depositWithConfirmation'];\n};\n\n/**\n * Same as depositWithConfirmation - prepares transaction for confirmation screen.\n *\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerDepositWithOrderAction = {\n type: `PerpsController:depositWithOrder`;\n handler: PerpsController['depositWithOrder'];\n};\n\n/**\n * Clear the last deposit result after it has been shown to the user\n */\nexport type PerpsControllerClearDepositResultAction = {\n type: `PerpsController:clearDepositResult`;\n handler: PerpsController['clearDepositResult'];\n};\n\nexport type PerpsControllerClearWithdrawResultAction = {\n type: `PerpsController:clearWithdrawResult`;\n handler: PerpsController['clearWithdrawResult'];\n};\n\n/**\n * Update withdrawal request status when it completes, or remove it on failure.\n * This is called when a withdrawal is matched with a completed withdrawal from the API.\n * When status is `failed`, the request is removed from the queue (not retained).\n *\n * @param withdrawalId - The withdrawal transaction ID.\n * @param status - The current status.\n * @param txHash - The transaction hash.\n */\nexport type PerpsControllerUpdateWithdrawalStatusAction = {\n type: `PerpsController:updateWithdrawalStatus`;\n handler: PerpsController['updateWithdrawalStatus'];\n};\n\n/**\n * Complete a specific withdrawal detected via transaction history polling (FIFO queue).\n * Called when a completed withdrawal appears in the transaction history matching a pending request.\n *\n * Uses FIFO matching: oldest pending withdrawal is matched with first completed withdrawal\n * in history that happened after its submission time.\n *\n * @param withdrawalRequestId - The ID of the pending withdrawal request to mark as complete.\n * @param completedWithdrawal - The completed withdrawal data from the history API.\n * @param completedWithdrawal.txHash - The on-chain transaction hash.\n * @param completedWithdrawal.amount - The withdrawal amount.\n * @param completedWithdrawal.timestamp - The completion timestamp from the history API.\n * @param completedWithdrawal.asset - The asset symbol (e.g. USDC).\n */\nexport type PerpsControllerCompleteWithdrawalFromHistoryAction = {\n type: `PerpsController:completeWithdrawalFromHistory`;\n handler: PerpsController['completeWithdrawalFromHistory'];\n};\n\n/**\n * Update withdrawal progress (persistent across navigation)\n *\n * @param progress - The progress indicator.\n * @param activeWithdrawalId - The active withdrawal ID.\n */\nexport type PerpsControllerUpdateWithdrawalProgressAction = {\n type: `PerpsController:updateWithdrawalProgress`;\n handler: PerpsController['updateWithdrawalProgress'];\n};\n\n/**\n * Get current withdrawal progress\n *\n * @returns The withdrawal progress, last update timestamp, and active withdrawal ID.\n */\nexport type PerpsControllerGetWithdrawalProgressAction = {\n type: `PerpsController:getWithdrawalProgress`;\n handler: PerpsController['getWithdrawalProgress'];\n};\n\n/**\n * Withdraw funds from trading account\n *\n * The withdrawal process varies by provider and may involve:\n * - Direct on-chain transfers\n * - Bridge operations\n * - Multi-step validation processes\n *\n * Check the specific provider documentation for detailed withdrawal flows.\n *\n * @param params Withdrawal parameters\n * @returns WithdrawResult with withdrawal ID and tracking info\n */\nexport type PerpsControllerWithdrawAction = {\n type: `PerpsController:withdraw`;\n handler: PerpsController['withdraw'];\n};\n\n/**\n * Get current positions\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow position queries\n * without full perps initialization (e.g., for showing positions on token details page)\n *\n * @param params - The operation parameters.\n * @returns Array of open positions for the active provider.\n */\nexport type PerpsControllerGetPositionsAction = {\n type: `PerpsController:getPositions`;\n handler: PerpsController['getPositions'];\n};\n\n/**\n * Get historical user fills (trade executions)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical trade executions (fills).\n */\nexport type PerpsControllerGetOrderFillsAction = {\n type: `PerpsController:getOrderFills`;\n handler: PerpsController['getOrderFills'];\n};\n\n/**\n * Get historical user orders (order lifecycle)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical orders.\n */\nexport type PerpsControllerGetOrdersAction = {\n type: `PerpsController:getOrders`;\n handler: PerpsController['getOrders'];\n};\n\n/**\n * Get currently open orders (real-time status)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow open order queries\n * without full perps initialization (e.g., for background preloading)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetOpenOrdersAction = {\n type: `PerpsController:getOpenOrders`;\n handler: PerpsController['getOpenOrders'];\n};\n\n/**\n * Get historical user funding history (funding payments)\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @param options - Optional call modifiers.\n * @param options.forceRefresh - Bypass the request-coalesce cache\n * end-to-end (user-initiated refresh).\n * @returns Array of historical funding payments.\n */\nexport type PerpsControllerGetFundingAction = {\n type: `PerpsController:getFunding`;\n handler: PerpsController['getFunding'];\n};\n\n/**\n * Get account state (balances, etc.)\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow account state queries\n * without full perps initialization (e.g., for checking if user has perps funds)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerGetAccountStateAction = {\n type: `PerpsController:getAccountState`;\n handler: PerpsController['getAccountState'];\n};\n\n/**\n * Get historical portfolio data\n * Thin delegation to MarketDataService\n *\n * @param params - The operation parameters.\n * @returns The historical portfolio data points.\n */\nexport type PerpsControllerGetHistoricalPortfolioAction = {\n type: `PerpsController:getHistoricalPortfolio`;\n handler: PerpsController['getHistoricalPortfolio'];\n};\n\n/**\n * Get available markets with optional filtering\n * Thin delegation to MarketDataService\n *\n * For standalone mode, bypasses getActiveProvider() to allow market discovery\n * without full perps initialization (e.g., for discovery banners on spot screens)\n *\n * @param params - The operation parameters.\n * @returns Array of available markets matching the filter criteria.\n */\nexport type PerpsControllerGetMarketsAction = {\n type: `PerpsController:getMarkets`;\n handler: PerpsController['getMarkets'];\n};\n\n/**\n * Get market data with prices (includes price, volume, 24h change)\n *\n * For standalone mode, bypasses getActiveProvider() to allow market data queries\n * without full perps initialization (e.g., for background preloading on app start)\n *\n * @param params - The operation parameters.\n * @param params.standalone - Whether to use standalone mode.\n * @returns A promise that resolves to the market data.\n */\nexport type PerpsControllerGetMarketDataWithPricesAction = {\n type: `PerpsController:getMarketDataWithPrices`;\n handler: PerpsController['getMarketDataWithPrices'];\n};\n\n/**\n * Start background market data preloading.\n * Fetches market data immediately and refreshes every 5 minutes.\n * Watches for isTestnet and hip3ConfigVersion changes to re-preload.\n */\nexport type PerpsControllerStartMarketDataPreloadAction = {\n type: `PerpsController:startMarketDataPreload`;\n handler: PerpsController['startMarketDataPreload'];\n};\n\n/**\n * Stop background market data preloading.\n */\nexport type PerpsControllerStopMarketDataPreloadAction = {\n type: `PerpsController:stopMarketDataPreload`;\n handler: PerpsController['stopMarketDataPreload'];\n};\n\n/**\n * Get list of available HIP-3 builder-deployed DEXs\n *\n * @param params - Optional parameters for filtering\n * @returns Array of DEX names\n */\nexport type PerpsControllerGetAvailableDexsAction = {\n type: `PerpsController:getAvailableDexs`;\n handler: PerpsController['getAvailableDexs'];\n};\n\n/**\n * Fetch historical candle data\n * Thin delegation to MarketDataService\n *\n * @param options - The configuration options.\n * @param options.symbol - The trading pair symbol.\n * @param options.interval - The candle interval period.\n * @param options.limit - Maximum number of items to fetch.\n * @param options.endTime - End timestamp in milliseconds.\n * @returns The historical candle data for the requested symbol and interval.\n */\nexport type PerpsControllerFetchHistoricalCandlesAction = {\n type: `PerpsController:fetchHistoricalCandles`;\n handler: PerpsController['fetchHistoricalCandles'];\n};\n\n/**\n * Calculate liquidation price for a position\n * Uses provider-specific formulas based on protocol rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the string result.\n */\nexport type PerpsControllerCalculateLiquidationPriceAction = {\n type: `PerpsController:calculateLiquidationPrice`;\n handler: PerpsController['calculateLiquidationPrice'];\n};\n\n/**\n * Calculate maintenance margin for a specific asset\n * Returns a percentage (e.g., 0.0125 for 1.25%)\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerCalculateMaintenanceMarginAction = {\n type: `PerpsController:calculateMaintenanceMargin`;\n handler: PerpsController['calculateMaintenanceMargin'];\n};\n\n/**\n * Get maximum leverage allowed for an asset\n *\n * @param asset - The asset identifier.\n * @returns A promise that resolves to the numeric result.\n */\nexport type PerpsControllerGetMaxLeverageAction = {\n type: `PerpsController:getMaxLeverage`;\n handler: PerpsController['getMaxLeverage'];\n};\n\n/**\n * Validate order parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateOrderAction = {\n type: `PerpsController:validateOrder`;\n handler: PerpsController['validateOrder'];\n};\n\n/**\n * Validate close position parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns A promise that resolves to the result.\n */\nexport type PerpsControllerValidateClosePositionAction = {\n type: `PerpsController:validateClosePosition`;\n handler: PerpsController['validateClosePosition'];\n};\n\n/**\n * Validate withdrawal parameters according to protocol-specific rules\n *\n * @param params - The operation parameters.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerValidateWithdrawalAction = {\n type: `PerpsController:validateWithdrawal`;\n handler: PerpsController['validateWithdrawal'];\n};\n\n/**\n * Get supported withdrawal routes - returns complete asset and routing information\n *\n * @returns Array of supported asset routes for withdrawals.\n */\nexport type PerpsControllerGetWithdrawalRoutesAction = {\n type: `PerpsController:getWithdrawalRoutes`;\n handler: PerpsController['getWithdrawalRoutes'];\n};\n\n/**\n * Toggle between testnet and mainnet\n *\n * @returns The toggle result with success status and current network mode.\n */\nexport type PerpsControllerToggleTestnetAction = {\n type: `PerpsController:toggleTestnet`;\n handler: PerpsController['toggleTestnet'];\n};\n\n/**\n * Switch to a different provider\n * Uses a full reinit approach: disconnect() → update state → init()\n * This ensures complete state reset including WebSocket connections and caches.\n *\n * @param providerId - The provider identifier.\n * @returns The switch result with success status and active provider.\n */\nexport type PerpsControllerSwitchProviderAction = {\n type: `PerpsController:switchProvider`;\n handler: PerpsController['switchProvider'];\n};\n\n/**\n * Get current network (mainnet/testnet)\n *\n * @returns Either 'mainnet' or 'testnet' based on the current configuration.\n */\nexport type PerpsControllerGetCurrentNetworkAction = {\n type: `PerpsController:getCurrentNetwork`;\n handler: PerpsController['getCurrentNetwork'];\n};\n\n/**\n * Get the current WebSocket connection state from the active provider.\n * Used by the UI to monitor connection health and show notifications.\n *\n * @returns The current WebSocket connection state, or DISCONNECTED if not supported\n */\nexport type PerpsControllerGetWebSocketConnectionStateAction = {\n type: `PerpsController:getWebSocketConnectionState`;\n handler: PerpsController['getWebSocketConnectionState'];\n};\n\n/**\n * Subscribe to WebSocket connection state changes from the active provider.\n * The listener will be called immediately with the current state and whenever the state changes.\n *\n * @param listener - Callback function that receives the new connection state and reconnection attempt\n * @returns Unsubscribe function to remove the listener, or no-op if not supported\n */\nexport type PerpsControllerSubscribeToConnectionStateAction = {\n type: `PerpsController:subscribeToConnectionState`;\n handler: PerpsController['subscribeToConnectionState'];\n};\n\n/**\n * Manually trigger a WebSocket reconnection attempt.\n * Used by the UI retry button when connection is lost.\n */\nexport type PerpsControllerReconnectAction = {\n type: `PerpsController:reconnect`;\n handler: PerpsController['reconnect'];\n};\n\n/**\n * Subscribe to live price updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPricesAction = {\n type: `PerpsController:subscribeToPrices`;\n handler: PerpsController['subscribeToPrices'];\n};\n\n/**\n * Subscribe to live position updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToPositionsAction = {\n type: `PerpsController:subscribeToPositions`;\n handler: PerpsController['subscribeToPositions'];\n};\n\n/**\n * Subscribe to live order fill updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderFillsAction = {\n type: `PerpsController:subscribeToOrderFills`;\n handler: PerpsController['subscribeToOrderFills'];\n};\n\n/**\n * Subscribe to live order updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrdersAction = {\n type: `PerpsController:subscribeToOrders`;\n handler: PerpsController['subscribeToOrders'];\n};\n\n/**\n * Subscribe to live account updates.\n * Updates controller state (Redux) when new account data arrives so consumers\n * like usePerpsBalanceTokenFilter (PayWithModal) see the latest balance.\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToAccountAction = {\n type: `PerpsController:subscribeToAccount`;\n handler: PerpsController['subscribeToAccount'];\n};\n\n/**\n * Subscribe to full order book updates with multiple depth levels\n * Creates a dedicated L2Book subscription for real-time order book data\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOrderBookAction = {\n type: `PerpsController:subscribeToOrderBook`;\n handler: PerpsController['subscribeToOrderBook'];\n};\n\n/**\n * Subscribe to live candle updates\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToCandlesAction = {\n type: `PerpsController:subscribeToCandles`;\n handler: PerpsController['subscribeToCandles'];\n};\n\n/**\n * Subscribe to open interest cap updates\n * Zero additional network overhead - data comes from existing webData3 subscription\n *\n * @param params - The operation parameters.\n * @returns A cleanup function to remove the subscription.\n */\nexport type PerpsControllerSubscribeToOICapsAction = {\n type: `PerpsController:subscribeToOICaps`;\n handler: PerpsController['subscribeToOICaps'];\n};\n\n/**\n * Configure live data throttling\n *\n * @param config - The configuration object.\n */\nexport type PerpsControllerSetLiveDataConfigAction = {\n type: `PerpsController:setLiveDataConfig`;\n handler: PerpsController['setLiveDataConfig'];\n};\n\n/**\n * Calculate trading fees for the active provider\n * Each provider implements its own fee structure\n *\n * @param params - The operation parameters.\n * @returns The fee calculation result for the trade.\n */\nexport type PerpsControllerCalculateFeesAction = {\n type: `PerpsController:calculateFees`;\n handler: PerpsController['calculateFees'];\n};\n\n/**\n * Disconnect provider and cleanup subscriptions\n * Call this when navigating away from Perps screens to prevent battery drain\n */\nexport type PerpsControllerDisconnectAction = {\n type: `PerpsController:disconnect`;\n handler: PerpsController['disconnect'];\n};\n\n/**\n * Resume eligibility monitoring after onboarding completes.\n * Clears the deferred flag and triggers an immediate eligibility check\n * using the current remote feature flag state.\n */\nexport type PerpsControllerStartEligibilityMonitoringAction = {\n type: `PerpsController:startEligibilityMonitoring`;\n handler: PerpsController['startEligibilityMonitoring'];\n};\n\n/**\n * Stops geo-blocking eligibility monitoring.\n * Call this when the user disables basic functionality (e.g. useExternalServices becomes false).\n * Prevents geolocation calls until startEligibilityMonitoring() is called again.\n * Safe to call multiple times.\n */\nexport type PerpsControllerStopEligibilityMonitoringAction = {\n type: `PerpsController:stopEligibilityMonitoring`;\n handler: PerpsController['stopEligibilityMonitoring'];\n};\n\nexport type PerpsControllerRefreshEligibilityAction = {\n type: `PerpsController:refreshEligibility`;\n handler: PerpsController['refreshEligibility'];\n};\n\n/**\n * Get block explorer URL for an address or just the base URL\n *\n * @param address - Optional address to append to the base URL\n * @returns Block explorer URL\n */\nexport type PerpsControllerGetBlockExplorerUrlAction = {\n type: `PerpsController:getBlockExplorerUrl`;\n handler: PerpsController['getBlockExplorerUrl'];\n};\n\n/**\n * Check if user is first-time for the current network\n *\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsFirstTimeUserOnCurrentNetworkAction = {\n type: `PerpsController:isFirstTimeUserOnCurrentNetwork`;\n handler: PerpsController['isFirstTimeUserOnCurrentNetwork'];\n};\n\n/**\n * Mark that the user has completed the tutorial/onboarding\n * This prevents the tutorial from showing again\n */\nexport type PerpsControllerMarkTutorialCompletedAction = {\n type: `PerpsController:markTutorialCompleted`;\n handler: PerpsController['markTutorialCompleted'];\n};\n\nexport type PerpsControllerMarkFirstOrderCompletedAction = {\n type: `PerpsController:markFirstOrderCompleted`;\n handler: PerpsController['markFirstOrderCompleted'];\n};\n\n/**\n * Reset first-time user state for both networks\n * This is useful for testing the tutorial flow\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerResetFirstTimeUserStateAction = {\n type: `PerpsController:resetFirstTimeUserState`;\n handler: PerpsController['resetFirstTimeUserState'];\n};\n\n/**\n * Clear pending/bridging withdrawal and deposit requests\n * This is useful when users want to clear stuck pending indicators\n * Called by Reset Account feature in settings\n */\nexport type PerpsControllerClearPendingTransactionRequestsAction = {\n type: `PerpsController:clearPendingTransactionRequests`;\n handler: PerpsController['clearPendingTransactionRequests'];\n};\n\n/**\n * Get saved trade configuration for a market\n *\n * @param symbol - The trading pair symbol.\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetTradeConfigurationAction = {\n type: `PerpsController:getTradeConfiguration`;\n handler: PerpsController['getTradeConfiguration'];\n};\n\n/**\n * Save trade configuration for a market\n *\n * @param symbol - Market symbol\n * @param leverage - Leverage value\n */\nexport type PerpsControllerSaveTradeConfigurationAction = {\n type: `PerpsController:saveTradeConfiguration`;\n handler: PerpsController['saveTradeConfiguration'];\n};\n\n/**\n * Save pending trade configuration for a market\n * This is a temporary configuration that expires after 5 minutes\n *\n * @param symbol - Market symbol\n * @param config - Pending trade configuration (includes optional selected payment token from Pay row)\n * @param config.amount - The amount value.\n * @param config.leverage - The leverage multiplier.\n * @param config.takeProfitPrice - The take profit price.\n * @param config.stopLossPrice - The stop loss price.\n * @param config.limitPrice - The limit price.\n * @param config.orderType - The order type.\n * @param config.selectedPaymentToken - The selected payment token.\n */\nexport type PerpsControllerSavePendingTradeConfigurationAction = {\n type: `PerpsController:savePendingTradeConfiguration`;\n handler: PerpsController['savePendingTradeConfiguration'];\n};\n\n/**\n * Get pending trade configuration for a market\n * Returns undefined if config doesn't exist or has expired (more than 5 minutes old)\n *\n * @param symbol - Market symbol\n * @returns Pending trade configuration or undefined\n */\nexport type PerpsControllerGetPendingTradeConfigurationAction = {\n type: `PerpsController:getPendingTradeConfiguration`;\n handler: PerpsController['getPendingTradeConfiguration'];\n};\n\n/**\n * Clear pending trade configuration for a market\n *\n * @param symbol - Market symbol\n */\nexport type PerpsControllerClearPendingTradeConfigurationAction = {\n type: `PerpsController:clearPendingTradeConfiguration`;\n handler: PerpsController['clearPendingTradeConfiguration'];\n};\n\n/**\n * Get saved market filter preferences\n * Handles backward compatibility with legacy string format\n *\n * @returns The saved sort option ID and direction.\n */\nexport type PerpsControllerGetMarketFilterPreferencesAction = {\n type: `PerpsController:getMarketFilterPreferences`;\n handler: PerpsController['getMarketFilterPreferences'];\n};\n\n/**\n * Save market filter preferences\n *\n * @param optionId - Sort/filter option ID\n * @param direction - Sort direction ('asc' or 'desc')\n */\nexport type PerpsControllerSaveMarketFilterPreferencesAction = {\n type: `PerpsController:saveMarketFilterPreferences`;\n handler: PerpsController['saveMarketFilterPreferences'];\n};\n\n/**\n * Set the selected payment token for the Perps order/deposit flow.\n * Pass null or a token with description PERPS_CONSTANTS.PerpsBalanceTokenDescription to select Perps balance.\n * Only required fields (address, chainId) are stored in state; description and symbol are optional.\n *\n * @param token - The token identifier.\n */\nexport type PerpsControllerSetSelectedPaymentTokenAction = {\n type: `PerpsController:setSelectedPaymentToken`;\n handler: PerpsController['setSelectedPaymentToken'];\n};\n\n/**\n * Reset the selected payment token to Perps balance (null).\n * Call when leaving the Perps order view so the next visit defaults to Perps balance.\n */\nexport type PerpsControllerResetSelectedPaymentTokenAction = {\n type: `PerpsController:resetSelectedPaymentToken`;\n handler: PerpsController['resetSelectedPaymentToken'];\n};\n\n/**\n * Get saved order book grouping for a market\n *\n * @param symbol - Market symbol\n * @returns The saved grouping value or undefined if not set\n */\nexport type PerpsControllerGetOrderBookGroupingAction = {\n type: `PerpsController:getOrderBookGrouping`;\n handler: PerpsController['getOrderBookGrouping'];\n};\n\n/**\n * Save order book grouping for a market\n *\n * @param symbol - Market symbol\n * @param grouping - Price grouping value\n */\nexport type PerpsControllerSaveOrderBookGroupingAction = {\n type: `PerpsController:saveOrderBookGrouping`;\n handler: PerpsController['saveOrderBookGrouping'];\n};\n\n/**\n * Toggle watchlist status for a market\n * Watchlist markets are stored per network (testnet/mainnet)\n *\n * @param symbol - The trading pair symbol.\n */\nexport type PerpsControllerToggleWatchlistMarketAction = {\n type: `PerpsController:toggleWatchlistMarket`;\n handler: PerpsController['toggleWatchlistMarket'];\n};\n\n/**\n * Check if a market is in the watchlist on the current network\n *\n * @param symbol - The trading pair symbol.\n * @returns True if the condition is met.\n */\nexport type PerpsControllerIsWatchlistMarketAction = {\n type: `PerpsController:isWatchlistMarket`;\n handler: PerpsController['isWatchlistMarket'];\n};\n\n/**\n * Get all watchlist markets for the current network\n *\n * @returns The resulting string value.\n */\nexport type PerpsControllerGetWatchlistMarketsAction = {\n type: `PerpsController:getWatchlistMarkets`;\n handler: PerpsController['getWatchlistMarkets'];\n};\n\n/**\n * Check if the controller is currently reinitializing\n *\n * @returns true if providers are being reinitialized\n */\nexport type PerpsControllerIsCurrentlyReinitializingAction = {\n type: `PerpsController:isCurrentlyReinitializing`;\n handler: PerpsController['isCurrentlyReinitializing'];\n};\n\n/**\n * Union of all PerpsController action types.\n */\nexport type PerpsControllerMethodActions =\n | PerpsControllerGetCachedMarketDataForActiveProviderAction\n | PerpsControllerGetCachedUserDataForActiveProviderAction\n | PerpsControllerInitAction\n | PerpsControllerGetActiveProviderAction\n | PerpsControllerGetActiveProviderOrNullAction\n | PerpsControllerPlaceOrderAction\n | PerpsControllerEditOrderAction\n | PerpsControllerCancelOrderAction\n | PerpsControllerCancelOrdersAction\n | PerpsControllerClosePositionAction\n | PerpsControllerClosePositionsAction\n | PerpsControllerUpdatePositionTPSLAction\n | PerpsControllerUpdateMarginAction\n | PerpsControllerFlipPositionAction\n | PerpsControllerDepositWithConfirmationAction\n | PerpsControllerDepositWithOrderAction\n | PerpsControllerClearDepositResultAction\n | PerpsControllerClearWithdrawResultAction\n | PerpsControllerUpdateWithdrawalStatusAction\n | PerpsControllerCompleteWithdrawalFromHistoryAction\n | PerpsControllerUpdateWithdrawalProgressAction\n | PerpsControllerGetWithdrawalProgressAction\n | PerpsControllerWithdrawAction\n | PerpsControllerGetPositionsAction\n | PerpsControllerGetOrderFillsAction\n | PerpsControllerGetOrdersAction\n | PerpsControllerGetOpenOrdersAction\n | PerpsControllerGetFundingAction\n | PerpsControllerGetAccountStateAction\n | PerpsControllerGetHistoricalPortfolioAction\n | PerpsControllerGetMarketsAction\n | PerpsControllerGetMarketDataWithPricesAction\n | PerpsControllerStartMarketDataPreloadAction\n | PerpsControllerStopMarketDataPreloadAction\n | PerpsControllerGetAvailableDexsAction\n | PerpsControllerFetchHistoricalCandlesAction\n | PerpsControllerCalculateLiquidationPriceAction\n | PerpsControllerCalculateMaintenanceMarginAction\n | PerpsControllerGetMaxLeverageAction\n | PerpsControllerValidateOrderAction\n | PerpsControllerValidateClosePositionAction\n | PerpsControllerValidateWithdrawalAction\n | PerpsControllerGetWithdrawalRoutesAction\n | PerpsControllerToggleTestnetAction\n | PerpsControllerSwitchProviderAction\n | PerpsControllerGetCurrentNetworkAction\n | PerpsControllerGetWebSocketConnectionStateAction\n | PerpsControllerSubscribeToConnectionStateAction\n | PerpsControllerReconnectAction\n | PerpsControllerSubscribeToPricesAction\n | PerpsControllerSubscribeToPositionsAction\n | PerpsControllerSubscribeToOrderFillsAction\n | PerpsControllerSubscribeToOrdersAction\n | PerpsControllerSubscribeToAccountAction\n | PerpsControllerSubscribeToOrderBookAction\n | PerpsControllerSubscribeToCandlesAction\n | PerpsControllerSubscribeToOICapsAction\n | PerpsControllerSetLiveDataConfigAction\n | PerpsControllerCalculateFeesAction\n | PerpsControllerDisconnectAction\n | PerpsControllerStartEligibilityMonitoringAction\n | PerpsControllerStopEligibilityMonitoringAction\n | PerpsControllerRefreshEligibilityAction\n | PerpsControllerGetBlockExplorerUrlAction\n | PerpsControllerIsFirstTimeUserOnCurrentNetworkAction\n | PerpsControllerMarkTutorialCompletedAction\n | PerpsControllerMarkFirstOrderCompletedAction\n | PerpsControllerResetFirstTimeUserStateAction\n | PerpsControllerClearPendingTransactionRequestsAction\n | PerpsControllerGetTradeConfigurationAction\n | PerpsControllerSaveTradeConfigurationAction\n | PerpsControllerSavePendingTradeConfigurationAction\n | PerpsControllerGetPendingTradeConfigurationAction\n | PerpsControllerClearPendingTradeConfigurationAction\n | PerpsControllerGetMarketFilterPreferencesAction\n | PerpsControllerSaveMarketFilterPreferencesAction\n | PerpsControllerSetSelectedPaymentTokenAction\n | PerpsControllerResetSelectedPaymentTokenAction\n | PerpsControllerGetOrderBookGroupingAction\n | PerpsControllerSaveOrderBookGroupingAction\n | PerpsControllerToggleWatchlistMarketAction\n | PerpsControllerIsWatchlistMarketAction\n | PerpsControllerGetWatchlistMarketsAction\n | PerpsControllerIsCurrentlyReinitializingAction;\n"]}
|