@metamask-previews/core-backend 6.2.2-preview-fe92f4bb3 → 6.2.2-preview-ea54cecca

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CHANGELOG.md +0 -13
  2. package/dist/AccountActivityService-method-action-types.cjs.map +1 -0
  3. package/dist/AccountActivityService-method-action-types.d.cts.map +1 -0
  4. package/dist/AccountActivityService-method-action-types.d.mts.map +1 -0
  5. package/dist/AccountActivityService-method-action-types.mjs.map +1 -0
  6. package/dist/{ws/AccountActivityService.cjs → AccountActivityService.cjs} +1 -1
  7. package/dist/AccountActivityService.cjs.map +1 -0
  8. package/dist/{ws/AccountActivityService.d.cts → AccountActivityService.d.cts} +1 -1
  9. package/dist/AccountActivityService.d.cts.map +1 -0
  10. package/dist/{ws/AccountActivityService.d.mts → AccountActivityService.d.mts} +1 -1
  11. package/dist/AccountActivityService.d.mts.map +1 -0
  12. package/dist/{ws/AccountActivityService.mjs → AccountActivityService.mjs} +1 -1
  13. package/dist/AccountActivityService.mjs.map +1 -0
  14. package/dist/BackendWebSocketService-method-action-types.cjs.map +1 -0
  15. package/dist/BackendWebSocketService-method-action-types.d.cts.map +1 -0
  16. package/dist/BackendWebSocketService-method-action-types.d.mts.map +1 -0
  17. package/dist/BackendWebSocketService-method-action-types.mjs.map +1 -0
  18. package/dist/{ws/BackendWebSocketService.cjs → BackendWebSocketService.cjs} +1 -1
  19. package/dist/BackendWebSocketService.cjs.map +1 -0
  20. package/dist/BackendWebSocketService.d.cts.map +1 -0
  21. package/dist/BackendWebSocketService.d.mts.map +1 -0
  22. package/dist/{ws/BackendWebSocketService.mjs → BackendWebSocketService.mjs} +1 -1
  23. package/dist/BackendWebSocketService.mjs.map +1 -0
  24. package/dist/api/base-client.cjs +3 -5
  25. package/dist/api/base-client.cjs.map +1 -1
  26. package/dist/api/base-client.d.cts +1 -1
  27. package/dist/api/base-client.d.cts.map +1 -1
  28. package/dist/api/base-client.d.mts +1 -1
  29. package/dist/api/base-client.d.mts.map +1 -1
  30. package/dist/api/base-client.mjs +3 -5
  31. package/dist/api/base-client.mjs.map +1 -1
  32. package/dist/index.cjs +3 -10
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.cts +4 -6
  35. package/dist/index.d.cts.map +1 -1
  36. package/dist/index.d.mts +4 -6
  37. package/dist/index.d.mts.map +1 -1
  38. package/dist/index.mjs +2 -6
  39. package/dist/index.mjs.map +1 -1
  40. package/package.json +1 -2
  41. package/dist/ws/AccountActivityService-method-action-types.cjs.map +0 -1
  42. package/dist/ws/AccountActivityService-method-action-types.d.cts.map +0 -1
  43. package/dist/ws/AccountActivityService-method-action-types.d.mts.map +0 -1
  44. package/dist/ws/AccountActivityService-method-action-types.mjs.map +0 -1
  45. package/dist/ws/AccountActivityService.cjs.map +0 -1
  46. package/dist/ws/AccountActivityService.d.cts.map +0 -1
  47. package/dist/ws/AccountActivityService.d.mts.map +0 -1
  48. package/dist/ws/AccountActivityService.mjs.map +0 -1
  49. package/dist/ws/BackendWebSocketService-method-action-types.cjs.map +0 -1
  50. package/dist/ws/BackendWebSocketService-method-action-types.d.cts.map +0 -1
  51. package/dist/ws/BackendWebSocketService-method-action-types.d.mts.map +0 -1
  52. package/dist/ws/BackendWebSocketService-method-action-types.mjs.map +0 -1
  53. package/dist/ws/BackendWebSocketService.cjs.map +0 -1
  54. package/dist/ws/BackendWebSocketService.d.cts.map +0 -1
  55. package/dist/ws/BackendWebSocketService.d.mts.map +0 -1
  56. package/dist/ws/BackendWebSocketService.mjs.map +0 -1
  57. package/dist/ws/ohlcv/OHLCVService-method-action-types.cjs +0 -7
  58. package/dist/ws/ohlcv/OHLCVService-method-action-types.cjs.map +0 -1
  59. package/dist/ws/ohlcv/OHLCVService-method-action-types.d.cts +0 -35
  60. package/dist/ws/ohlcv/OHLCVService-method-action-types.d.cts.map +0 -1
  61. package/dist/ws/ohlcv/OHLCVService-method-action-types.d.mts +0 -35
  62. package/dist/ws/ohlcv/OHLCVService-method-action-types.d.mts.map +0 -1
  63. package/dist/ws/ohlcv/OHLCVService-method-action-types.mjs +0 -6
  64. package/dist/ws/ohlcv/OHLCVService-method-action-types.mjs.map +0 -1
  65. package/dist/ws/ohlcv/OHLCVService.cjs +0 -359
  66. package/dist/ws/ohlcv/OHLCVService.cjs.map +0 -1
  67. package/dist/ws/ohlcv/OHLCVService.d.cts +0 -109
  68. package/dist/ws/ohlcv/OHLCVService.d.cts.map +0 -1
  69. package/dist/ws/ohlcv/OHLCVService.d.mts +0 -109
  70. package/dist/ws/ohlcv/OHLCVService.d.mts.map +0 -1
  71. package/dist/ws/ohlcv/OHLCVService.mjs +0 -355
  72. package/dist/ws/ohlcv/OHLCVService.mjs.map +0 -1
  73. package/dist/ws/ohlcv/index.cjs +0 -9
  74. package/dist/ws/ohlcv/index.cjs.map +0 -1
  75. package/dist/ws/ohlcv/index.d.cts +0 -5
  76. package/dist/ws/ohlcv/index.d.cts.map +0 -1
  77. package/dist/ws/ohlcv/index.d.mts +0 -5
  78. package/dist/ws/ohlcv/index.d.mts.map +0 -1
  79. package/dist/ws/ohlcv/index.mjs +0 -3
  80. package/dist/ws/ohlcv/index.mjs.map +0 -1
  81. package/dist/ws/ohlcv/types.cjs +0 -6
  82. package/dist/ws/ohlcv/types.cjs.map +0 -1
  83. package/dist/ws/ohlcv/types.d.cts +0 -32
  84. package/dist/ws/ohlcv/types.d.cts.map +0 -1
  85. package/dist/ws/ohlcv/types.d.mts +0 -32
  86. package/dist/ws/ohlcv/types.d.mts.map +0 -1
  87. package/dist/ws/ohlcv/types.mjs +0 -5
  88. package/dist/ws/ohlcv/types.mjs.map +0 -1
  89. /package/dist/{ws/AccountActivityService-method-action-types.cjs → AccountActivityService-method-action-types.cjs} +0 -0
  90. /package/dist/{ws/AccountActivityService-method-action-types.d.cts → AccountActivityService-method-action-types.d.cts} +0 -0
  91. /package/dist/{ws/AccountActivityService-method-action-types.d.mts → AccountActivityService-method-action-types.d.mts} +0 -0
  92. /package/dist/{ws/AccountActivityService-method-action-types.mjs → AccountActivityService-method-action-types.mjs} +0 -0
  93. /package/dist/{ws/BackendWebSocketService-method-action-types.cjs → BackendWebSocketService-method-action-types.cjs} +0 -0
  94. /package/dist/{ws/BackendWebSocketService-method-action-types.d.cts → BackendWebSocketService-method-action-types.d.cts} +0 -0
  95. /package/dist/{ws/BackendWebSocketService-method-action-types.d.mts → BackendWebSocketService-method-action-types.d.mts} +0 -0
  96. /package/dist/{ws/BackendWebSocketService-method-action-types.mjs → BackendWebSocketService-method-action-types.mjs} +0 -0
  97. /package/dist/{ws/BackendWebSocketService.d.cts → BackendWebSocketService.d.cts} +0 -0
  98. /package/dist/{ws/BackendWebSocketService.d.mts → BackendWebSocketService.d.mts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"OHLCVService.mjs","sourceRoot":"","sources":["../../../src/ws/ohlcv/OHLCVService.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;;;;;;;;;;;;AAQH,OAAO,EAAE,KAAK,EAAE,oBAAoB;AAEpC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,yBAAqB;AAMjE,OAAO,EAAE,cAAc,EAAE,uCAAmC;AAK5D,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,MAAM,YAAY,GAAG,cAAc,CAAC;AAEpC,MAAM,GAAG,GAAG,kBAAkB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;AAE5D,MAAM,yBAAyB,GAAG,CAAC,WAAW,EAAE,aAAa,CAAU,CAAC;AAExE,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAEhD,MAAM,4BAA4B,GAAG,2BAA2B,sBAAsB,EAAE,CAAC;AAEzF,mFAAmF;AACnF,MAAM,eAAe,GAAG,IAAK,CAAC;AA0C9B,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,iCAAiC;IACjC,2CAA2C;IAC3C,mCAAmC;IACnC,2CAA2C;IAC3C,gDA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C;IAEH,GAAG,CAAC,kCAAkC,IAAI,CAAC,MAAM,EAAE,EAAE;QACnD,MAAM,EAAE,IAAI,CAAC,QAAQ;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM;KACpB,CAAC,CAAC;AACL,CAAC,6CAED,KAAK,mDACH,cAAuC;IAEvC,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IAEjC,IAAI,KAAK,KAAK,cAAc,CAAC,SAAS,EAAE,CAAC;QACvC,MAAM,uBAAA,IAAI,wEAA2B,MAA/B,IAAI,CAA6B,CAAC;IAC1C,CAAC;SAAM,IAAI,KAAK,KAAK,cAAc,CAAC,YAAY,EAAE,CAAC;QACjD,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC,uBAAA,IAAI,8BAAU,CAAC,CAAC;QAEpD,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,uBAAA,IAAI,+BAAW,CAAC,OAAO,CAAC,iCAAiC,EAAE;gBACzD,QAAQ,EAAE,gBAAgB;gBAC1B,MAAM,EAAE,MAAM;gBACd,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC,CAAC;YAEH,GAAG,CACD,mEAAmE,EACnE;gBACE,KAAK,EAAE,gBAAgB,CAAC,MAAM;gBAC9B,MAAM,EAAE,gBAAgB;aACzB,CACF,CAAC;YAEF,uBAAA,IAAI,8BAAU,CAAC,KAAK,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;AACH,CAAC,mEAMa,OAAiC;IAC7C,OAAO,GAAG,sBAAsB,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;AAChG,CAAC","sourcesContent":["/**\n * OHLCV Service for real-time candlestick data streaming via WebSocket.\n *\n * Wraps {@link BackendWebSocketService} through the messenger pattern to\n * provide subscribe/unsubscribe semantics for OHLCV market-data channels.\n * Includes reference counting, grace-period unsubscribe, idempotency checks,\n * chain-status forwarding, and automatic resubscription on reconnect.\n */\n\nimport type {\n TraceCallback,\n TraceContext,\n TraceRequest,\n} from '@metamask/controller-utils';\nimport type { Messenger } from '@metamask/messenger';\nimport { Mutex } from 'async-mutex';\n\nimport { projectLogger, createModuleLogger } from '../../logger';\nimport type {\n WebSocketConnectionInfo,\n BackendWebSocketServiceConnectionStateChangedEvent,\n ServerNotificationMessage,\n} from '../BackendWebSocketService';\nimport { WebSocketState } from '../BackendWebSocketService';\nimport type { BackendWebSocketServiceMethodActions } from '../BackendWebSocketService-method-action-types';\nimport type { OHLCVServiceMethodActions } from './OHLCVService-method-action-types';\nimport type { OHLCVBar, OHLCVSubscriptionOptions } from './types';\n\n// =============================================================================\n// Constants\n// =============================================================================\n\nconst SERVICE_NAME = 'OHLCVService';\n\nconst log = createModuleLogger(projectLogger, SERVICE_NAME);\n\nconst MESSENGER_EXPOSED_METHODS = ['subscribe', 'unsubscribe'] as const;\n\nconst SUBSCRIPTION_NAMESPACE = 'market-data.v1';\n\nconst SYSTEM_NOTIFICATIONS_CHANNEL = `system-notifications.v1.${SUBSCRIPTION_NAMESPACE}`;\n\n/** Delay before actually unsubscribing from a channel after refCount reaches 0. */\nconst GRACE_PERIOD_MS = 3_000;\n\n// =============================================================================\n// Types — Channel Tracking\n// =============================================================================\n\ntype ChannelEntry = {\n refCount: number;\n gracePeriodTimer?: ReturnType<typeof setTimeout>;\n};\n\n// =============================================================================\n// Types — System Notifications\n// =============================================================================\n\n/**\n * System notification data for chain status updates on market-data channels.\n */\nexport type OHLCVSystemNotificationData = {\n chainIds: string[];\n status: 'down' | 'up';\n timestamp?: number;\n};\n\n// =============================================================================\n// Types — Service Options\n// =============================================================================\n\n/**\n * Configuration options for the OHLCV service.\n */\nexport type OHLCVServiceOptions = {\n /** Optional callback to trace performance of OHLCV operations (default: no-op) */\n traceFn?: TraceCallback;\n};\n\n// =============================================================================\n// Action and Event Types\n// =============================================================================\n\nexport type OHLCVServiceActions = OHLCVServiceMethodActions;\n\nexport const OHLCV_SERVICE_ALLOWED_ACTIONS = [\n 'BackendWebSocketService:connect',\n 'BackendWebSocketService:forceReconnection',\n 'BackendWebSocketService:subscribe',\n 'BackendWebSocketService:getConnectionInfo',\n 'BackendWebSocketService:channelHasSubscription',\n 'BackendWebSocketService:getSubscriptionsByChannel',\n 'BackendWebSocketService:findSubscriptionsByChannelPrefix',\n 'BackendWebSocketService:addChannelCallback',\n 'BackendWebSocketService:removeChannelCallback',\n] as const;\n\nexport const OHLCV_SERVICE_ALLOWED_EVENTS = [\n 'BackendWebSocketService:connectionStateChanged',\n] as const;\n\nexport type AllowedActions = BackendWebSocketServiceMethodActions;\n\n// Events published by OHLCVService\n\nexport type OHLCVServiceBarUpdatedEvent = {\n type: `OHLCVService:barUpdated`;\n payload: [{ channel: string; bar: OHLCVBar }];\n};\n\nexport type OHLCVServiceChainStatusChangedEvent = {\n type: `OHLCVService:chainStatusChanged`;\n payload: [{ chainIds: string[]; status: 'up' | 'down'; timestamp?: number }];\n};\n\nexport type OHLCVServiceSubscriptionErrorEvent = {\n type: `OHLCVService:subscriptionError`;\n payload: [{ channel: string; error: string; operation: string }];\n};\n\nexport type OHLCVServiceEvents =\n | OHLCVServiceBarUpdatedEvent\n | OHLCVServiceChainStatusChangedEvent\n | OHLCVServiceSubscriptionErrorEvent;\n\nexport type AllowedEvents = BackendWebSocketServiceConnectionStateChangedEvent;\n\nexport type OHLCVServiceMessenger = Messenger<\n typeof SERVICE_NAME,\n OHLCVServiceActions | AllowedActions,\n OHLCVServiceEvents | AllowedEvents\n>;\n\n// =============================================================================\n// Main Service Class\n// =============================================================================\n\n/**\n * Service for real-time OHLCV candlestick streaming via the backend WebSocket\n * gateway. Communicates with {@link BackendWebSocketService} exclusively\n * through the messenger — no direct import of the class.\n *\n * Features:\n * - Reference counting: multiple UI consumers share one WebSocket subscription\n * - Grace-period unsubscribe: avoids rapid unsub/resub during navigation\n * - Idempotency: duplicate subscribe calls for the same channel are no-ops\n * - Reconnect resilience: resubscribes all active channels on reconnect\n * - Chain-status forwarding: listens to system-notifications for chain up/down\n *\n */\nexport class OHLCVService {\n readonly name = SERVICE_NAME;\n\n readonly #messenger: OHLCVServiceMessenger;\n\n readonly #trace: TraceCallback;\n\n readonly #channels = new Map<string, ChannelEntry>();\n\n readonly #mutex = new Mutex();\n\n readonly #chainsUp = new Set<string>();\n\n // =============================================================================\n // Constructor\n // =============================================================================\n\n constructor(\n options: OHLCVServiceOptions & { messenger: OHLCVServiceMessenger },\n ) {\n this.#messenger = options.messenger;\n\n this.#trace =\n options.traceFn ??\n ((<Result>(\n _request: TraceRequest,\n fn?: (context?: TraceContext) => Result,\n ) => fn?.()) as TraceCallback);\n\n this.#messenger.registerMethodActionHandlers(\n this,\n MESSENGER_EXPOSED_METHODS,\n );\n\n this.#messenger.subscribe(\n 'BackendWebSocketService:connectionStateChanged',\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n (connectionInfo: WebSocketConnectionInfo) =>\n this.#handleWebSocketStateChange(connectionInfo),\n );\n }\n\n /**\n * Register the system-notifications channel callback.\n */\n init(): void {\n log('OHLCV-WS: Initializing — registering system-notifications callback');\n this.#messenger.call('BackendWebSocketService:addChannelCallback', {\n channelName: SYSTEM_NOTIFICATIONS_CHANNEL,\n callback: (notification: ServerNotificationMessage) =>\n this.#handleSystemNotification(notification),\n });\n }\n\n // =============================================================================\n // Public — Subscribe / Unsubscribe\n // =============================================================================\n\n /**\n * Subscribe to an OHLCV channel. If this is the first subscriber for the\n * given asset/interval/currency combination a WebSocket subscription is\n * created. Additional calls for the same combination only bump the reference\n * count.\n *\n * @param options - The subscription parameters.\n * @returns A promise that resolves once the subscription is established.\n */\n async subscribe(options: OHLCVSubscriptionOptions): Promise<void> {\n const channel = this.#buildChannel(options);\n const releaseLock = await this.#mutex.acquire();\n try {\n await this.#subscribeInner(channel);\n } finally {\n releaseLock();\n }\n }\n\n async #subscribeInner(channel: string): Promise<void> {\n const entry = this.#channels.get(channel);\n\n if (entry?.gracePeriodTimer) {\n clearTimeout(entry.gracePeriodTimer);\n entry.gracePeriodTimer = undefined;\n log('OHLCV-WS: Cancelled grace-period unsubscribe', {\n channel,\n });\n\n if (\n this.#messenger.call(\n 'BackendWebSocketService:channelHasSubscription',\n channel,\n )\n ) {\n entry.refCount += 1;\n log('OHLCV-WS: WS subscription still alive, bumped refCount', {\n channel,\n refCount: entry.refCount,\n });\n return;\n }\n // WS subscription was lost (e.g. after disconnect/reconnect) — fall\n // through to recreate it. refCount is bumped only after success below.\n } else if (entry && entry.refCount > 0) {\n entry.refCount += 1;\n return;\n }\n try {\n await this.#messenger.call('BackendWebSocketService:connect');\n\n if (\n this.#messenger.call(\n 'BackendWebSocketService:channelHasSubscription',\n channel,\n )\n ) {\n log(\n 'OHLCV-WS: Channel already has WS subscription (idempotency), skipping',\n {\n channel,\n },\n );\n this.#channels.set(channel, { refCount: 1 });\n return;\n }\n\n await this.#messenger.call('BackendWebSocketService:subscribe', {\n channels: [channel],\n channelType: SUBSCRIPTION_NAMESPACE,\n callback: (notification: ServerNotificationMessage) => {\n this.#handleBarUpdate(channel, notification);\n },\n });\n\n this.#channels.set(channel, { refCount: 1 });\n log('OHLCV-WS: Subscribe succeeded — new WS subscription created', {\n channel,\n });\n } catch (error) {\n log('OHLCV-WS: Subscription failed', { channel, error });\n this.#channels.delete(channel);\n this.#messenger.publish('OHLCVService:subscriptionError', {\n channel,\n error: String(error),\n operation: 'subscribe',\n });\n }\n }\n\n /**\n * Unsubscribe from an OHLCV channel. Decrements the reference count and,\n * when it reaches zero, starts a grace-period timer before actually\n * unsubscribing from the WebSocket to absorb rapid navigation patterns.\n *\n * @param options - The subscription parameters to unsubscribe from.\n * @returns A promise that resolves once the unsubscription is processed.\n */\n async unsubscribe(options: OHLCVSubscriptionOptions): Promise<void> {\n const channel = this.#buildChannel(options);\n const releaseLock = await this.#mutex.acquire();\n try {\n await this.#unsubscribeInner(channel);\n } finally {\n releaseLock();\n }\n }\n\n async #unsubscribeInner(channel: string): Promise<void> {\n const entry = this.#channels.get(channel);\n\n if (!entry || entry.refCount <= 0) {\n return;\n }\n\n entry.refCount -= 1;\n\n if (entry.refCount > 0) {\n return;\n }\n\n entry.gracePeriodTimer = setTimeout(() => {\n entry.gracePeriodTimer = undefined;\n this.#performUnsubscribe(channel).catch(() => {\n // no-op\n });\n }, GRACE_PERIOD_MS);\n }\n\n // =============================================================================\n // Private — WebSocket Subscription Helpers\n // =============================================================================\n\n async #performUnsubscribe(channel: string): Promise<void> {\n const releaseLock = await this.#mutex.acquire();\n try {\n const entry = this.#channels.get(channel);\n if (entry && entry.refCount > 0) {\n log(\n 'OHLCV-WS: Skipping unsubscribe — new subscriber arrived while queued',\n { channel, refCount: entry.refCount },\n );\n return;\n }\n\n log('OHLCV-WS: Grace period expired — performing actual WS unsubscribe', {\n channel,\n });\n this.#channels.delete(channel);\n\n try {\n const subscriptions = this.#messenger.call(\n 'BackendWebSocketService:getSubscriptionsByChannel',\n channel,\n );\n\n for (const sub of subscriptions) {\n await sub.unsubscribe();\n }\n log('OHLCV-WS: WS unsubscribe completed', { channel });\n } catch (error) {\n log('OHLCV-WS: Unsubscription failed', { channel, error });\n this.#messenger.publish('OHLCVService:subscriptionError', {\n channel,\n error: String(error),\n operation: 'unsubscribe',\n });\n }\n } finally {\n releaseLock();\n }\n }\n\n /**\n * Resubscribe all channels that were active before a disconnect.\n * Called when WebSocket transitions to CONNECTED.\n */\n async #resubscribeActiveChannels(): Promise<void> {\n const releaseLock = await this.#mutex.acquire();\n try {\n const channelCount = this.#channels.size;\n log('OHLCV-WS: Resubscribing active channels after reconnect', {\n count: channelCount,\n });\n\n for (const [channel, entry] of this.#channels.entries()) {\n if (entry.refCount === 0) {\n continue;\n }\n\n try {\n if (\n this.#messenger.call(\n 'BackendWebSocketService:channelHasSubscription',\n channel,\n )\n ) {\n log(\n 'OHLCV-WS: Channel already subscribed on server, skipping resubscribe',\n {\n channel,\n },\n );\n continue;\n }\n\n await this.#messenger.call('BackendWebSocketService:subscribe', {\n channels: [channel],\n channelType: SUBSCRIPTION_NAMESPACE,\n callback: (notification: ServerNotificationMessage) => {\n this.#handleBarUpdate(channel, notification);\n },\n });\n log('OHLCV-WS: Resubscription succeeded', { channel });\n } catch (error) {\n log('OHLCV-WS: Resubscription failed for channel', {\n channel,\n error,\n });\n }\n }\n } finally {\n releaseLock();\n }\n }\n\n // =============================================================================\n // Private — Message Handlers\n // =============================================================================\n\n #handleBarUpdate(\n channel: string,\n notification: ServerNotificationMessage,\n ): void {\n const bar = notification.data as OHLCVBar;\n\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.#trace(\n {\n name: `${SERVICE_NAME} Bar Update`,\n data: { channel, timestamp: bar.timestamp },\n tags: { service: SERVICE_NAME },\n },\n () => {\n this.#messenger.publish('OHLCVService:barUpdated', { channel, bar });\n },\n );\n }\n\n #handleSystemNotification(notification: ServerNotificationMessage): void {\n const data = notification.data as OHLCVSystemNotificationData;\n const { timestamp } = notification;\n\n if (!data.chainIds || !Array.isArray(data.chainIds) || !data.status) {\n throw new Error(\n 'Invalid system notification data: missing chainIds or status',\n );\n }\n\n if (data.status === 'up') {\n for (const chainId of data.chainIds) {\n this.#chainsUp.add(chainId);\n }\n } else {\n for (const chainId of data.chainIds) {\n this.#chainsUp.delete(chainId);\n }\n }\n\n this.#messenger.publish('OHLCVService:chainStatusChanged', {\n chainIds: data.chainIds,\n status: data.status,\n timestamp,\n });\n\n log(`OHLCV-WS: Chain status change: ${data.status}`, {\n chains: data.chainIds,\n status: data.status,\n });\n }\n\n async #handleWebSocketStateChange(\n connectionInfo: WebSocketConnectionInfo,\n ): Promise<void> {\n const { state } = connectionInfo;\n\n if (state === WebSocketState.CONNECTED) {\n await this.#resubscribeActiveChannels();\n } else if (state === WebSocketState.DISCONNECTED) {\n const chainsToMarkDown = Array.from(this.#chainsUp);\n\n if (chainsToMarkDown.length > 0) {\n this.#messenger.publish('OHLCVService:chainStatusChanged', {\n chainIds: chainsToMarkDown,\n status: 'down',\n timestamp: Date.now(),\n });\n\n log(\n 'OHLCV-WS: WebSocket disconnection — marked tracked chains as down',\n {\n count: chainsToMarkDown.length,\n chains: chainsToMarkDown,\n },\n );\n\n this.#chainsUp.clear();\n }\n }\n }\n\n // =============================================================================\n // Private — Utility\n // =============================================================================\n\n #buildChannel(options: OHLCVSubscriptionOptions): string {\n return `${SUBSCRIPTION_NAMESPACE}.${options.assetId}.${options.interval}.${options.currency}`;\n }\n\n // =============================================================================\n // Public — Cleanup\n // =============================================================================\n\n /**\n * Destroy the service and clean up all resources.\n */\n destroy(): void {\n for (const entry of this.#channels.values()) {\n if (entry.gracePeriodTimer) {\n clearTimeout(entry.gracePeriodTimer);\n }\n }\n this.#channels.clear();\n this.#chainsUp.clear();\n\n this.#messenger.call(\n 'BackendWebSocketService:removeChannelCallback',\n SYSTEM_NOTIFICATIONS_CHANNEL,\n );\n }\n}\n"]}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OHLCV_SERVICE_ALLOWED_EVENTS = exports.OHLCV_SERVICE_ALLOWED_ACTIONS = exports.OHLCVService = void 0;
4
- var OHLCVService_1 = require("./OHLCVService.cjs");
5
- Object.defineProperty(exports, "OHLCVService", { enumerable: true, get: function () { return OHLCVService_1.OHLCVService; } });
6
- var OHLCVService_2 = require("./OHLCVService.cjs");
7
- Object.defineProperty(exports, "OHLCV_SERVICE_ALLOWED_ACTIONS", { enumerable: true, get: function () { return OHLCVService_2.OHLCV_SERVICE_ALLOWED_ACTIONS; } });
8
- Object.defineProperty(exports, "OHLCV_SERVICE_ALLOWED_EVENTS", { enumerable: true, get: function () { return OHLCVService_2.OHLCV_SERVICE_ALLOWED_EVENTS; } });
9
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/ws/ohlcv/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,mDAGwB;AAFtB,6HAAA,6BAA6B,OAAA;AAC7B,4HAAA,4BAA4B,OAAA","sourcesContent":["export { OHLCVService } from './OHLCVService';\nexport {\n OHLCV_SERVICE_ALLOWED_ACTIONS,\n OHLCV_SERVICE_ALLOWED_EVENTS,\n} from './OHLCVService';\nexport type {\n OHLCVSystemNotificationData,\n OHLCVServiceOptions,\n OHLCVServiceActions,\n AllowedActions as OHLCVServiceAllowedActions,\n OHLCVServiceBarUpdatedEvent,\n OHLCVServiceChainStatusChangedEvent,\n OHLCVServiceSubscriptionErrorEvent,\n OHLCVServiceEvents,\n AllowedEvents as OHLCVServiceAllowedEvents,\n OHLCVServiceMessenger,\n} from './OHLCVService';\nexport type { OHLCVBar, OHLCVSubscriptionOptions } from './types';\n"]}
@@ -1,5 +0,0 @@
1
- export { OHLCVService } from "./OHLCVService.cjs";
2
- export { OHLCV_SERVICE_ALLOWED_ACTIONS, OHLCV_SERVICE_ALLOWED_EVENTS, } from "./OHLCVService.cjs";
3
- export type { OHLCVSystemNotificationData, OHLCVServiceOptions, OHLCVServiceActions, AllowedActions as OHLCVServiceAllowedActions, OHLCVServiceBarUpdatedEvent, OHLCVServiceChainStatusChangedEvent, OHLCVServiceSubscriptionErrorEvent, OHLCVServiceEvents, AllowedEvents as OHLCVServiceAllowedEvents, OHLCVServiceMessenger, } from "./OHLCVService.cjs";
4
- export type { OHLCVBar, OHLCVSubscriptionOptions } from "./types.cjs";
5
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/ws/ohlcv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,GAC7B,2BAAuB;AACxB,YAAY,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,IAAI,0BAA0B,EAC5C,2BAA2B,EAC3B,mCAAmC,EACnC,kCAAkC,EAClC,kBAAkB,EAClB,aAAa,IAAI,yBAAyB,EAC1C,qBAAqB,GACtB,2BAAuB;AACxB,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,oBAAgB"}
@@ -1,5 +0,0 @@
1
- export { OHLCVService } from "./OHLCVService.mjs";
2
- export { OHLCV_SERVICE_ALLOWED_ACTIONS, OHLCV_SERVICE_ALLOWED_EVENTS, } from "./OHLCVService.mjs";
3
- export type { OHLCVSystemNotificationData, OHLCVServiceOptions, OHLCVServiceActions, AllowedActions as OHLCVServiceAllowedActions, OHLCVServiceBarUpdatedEvent, OHLCVServiceChainStatusChangedEvent, OHLCVServiceSubscriptionErrorEvent, OHLCVServiceEvents, AllowedEvents as OHLCVServiceAllowedEvents, OHLCVServiceMessenger, } from "./OHLCVService.mjs";
4
- export type { OHLCVBar, OHLCVSubscriptionOptions } from "./types.mjs";
5
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/ws/ohlcv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,GAC7B,2BAAuB;AACxB,YAAY,EACV,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,IAAI,0BAA0B,EAC5C,2BAA2B,EAC3B,mCAAmC,EACnC,kCAAkC,EAClC,kBAAkB,EAClB,aAAa,IAAI,yBAAyB,EAC1C,qBAAqB,GACtB,2BAAuB;AACxB,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,oBAAgB"}
@@ -1,3 +0,0 @@
1
- export { OHLCVService } from "./OHLCVService.mjs";
2
- export { OHLCV_SERVICE_ALLOWED_ACTIONS, OHLCV_SERVICE_ALLOWED_EVENTS } from "./OHLCVService.mjs";
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/ws/ohlcv/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,2BAAuB;AAC9C,OAAO,EACL,6BAA6B,EAC7B,4BAA4B,EAC7B,2BAAuB","sourcesContent":["export { OHLCVService } from './OHLCVService';\nexport {\n OHLCV_SERVICE_ALLOWED_ACTIONS,\n OHLCV_SERVICE_ALLOWED_EVENTS,\n} from './OHLCVService';\nexport type {\n OHLCVSystemNotificationData,\n OHLCVServiceOptions,\n OHLCVServiceActions,\n AllowedActions as OHLCVServiceAllowedActions,\n OHLCVServiceBarUpdatedEvent,\n OHLCVServiceChainStatusChangedEvent,\n OHLCVServiceSubscriptionErrorEvent,\n OHLCVServiceEvents,\n AllowedEvents as OHLCVServiceAllowedEvents,\n OHLCVServiceMessenger,\n} from './OHLCVService';\nexport type { OHLCVBar, OHLCVSubscriptionOptions } from './types';\n"]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * OHLCV WebSocket streaming types for real-time candlestick data.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- //# sourceMappingURL=types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../../src/ws/ohlcv/types.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * OHLCV WebSocket streaming types for real-time candlestick data.\n */\n\n/**\n * A single OHLCV candlestick bar received from the market-data WebSocket stream.\n */\nexport type OHLCVBar = {\n /** Unix timestamp (seconds) of the candle open */\n timestamp: number;\n /** Opening price */\n open: number;\n /** Highest price during the candle period */\n high: number;\n /** Lowest price during the candle period */\n low: number;\n /** Closing price (latest) */\n close: number;\n /** Trading volume during the candle period */\n volume: number;\n};\n\n/**\n * Options for subscribing to an OHLCV channel.\n */\nexport type OHLCVSubscriptionOptions = {\n /** CAIP-19 asset identifier, e.g. \"eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\" */\n assetId: string;\n /** Candle interval, e.g. \"1m\", \"5m\", \"15m\", \"1h\", \"4h\", \"1d\" */\n interval: string;\n /** Fiat currency code, e.g. \"usd\", \"eur\" */\n currency: string;\n};\n"]}
@@ -1,32 +0,0 @@
1
- /**
2
- * OHLCV WebSocket streaming types for real-time candlestick data.
3
- */
4
- /**
5
- * A single OHLCV candlestick bar received from the market-data WebSocket stream.
6
- */
7
- export type OHLCVBar = {
8
- /** Unix timestamp (seconds) of the candle open */
9
- timestamp: number;
10
- /** Opening price */
11
- open: number;
12
- /** Highest price during the candle period */
13
- high: number;
14
- /** Lowest price during the candle period */
15
- low: number;
16
- /** Closing price (latest) */
17
- close: number;
18
- /** Trading volume during the candle period */
19
- volume: number;
20
- };
21
- /**
22
- * Options for subscribing to an OHLCV channel.
23
- */
24
- export type OHLCVSubscriptionOptions = {
25
- /** CAIP-19 asset identifier, e.g. "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" */
26
- assetId: string;
27
- /** Candle interval, e.g. "1m", "5m", "15m", "1h", "4h", "1d" */
28
- interval: string;
29
- /** Fiat currency code, e.g. "usd", "eur" */
30
- currency: string;
31
- };
32
- //# sourceMappingURL=types.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/ws/ohlcv/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,oGAAoG;IACpG,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- * OHLCV WebSocket streaming types for real-time candlestick data.
3
- */
4
- /**
5
- * A single OHLCV candlestick bar received from the market-data WebSocket stream.
6
- */
7
- export type OHLCVBar = {
8
- /** Unix timestamp (seconds) of the candle open */
9
- timestamp: number;
10
- /** Opening price */
11
- open: number;
12
- /** Highest price during the candle period */
13
- high: number;
14
- /** Lowest price during the candle period */
15
- low: number;
16
- /** Closing price (latest) */
17
- close: number;
18
- /** Trading volume during the candle period */
19
- volume: number;
20
- };
21
- /**
22
- * Options for subscribing to an OHLCV channel.
23
- */
24
- export type OHLCVSubscriptionOptions = {
25
- /** CAIP-19 asset identifier, e.g. "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" */
26
- assetId: string;
27
- /** Candle interval, e.g. "1m", "5m", "15m", "1h", "4h", "1d" */
28
- interval: string;
29
- /** Fiat currency code, e.g. "usd", "eur" */
30
- currency: string;
31
- };
32
- //# sourceMappingURL=types.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../src/ws/ohlcv/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,oGAAoG;IACpG,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * OHLCV WebSocket streaming types for real-time candlestick data.
3
- */
4
- export {};
5
- //# sourceMappingURL=types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../../src/ws/ohlcv/types.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * OHLCV WebSocket streaming types for real-time candlestick data.\n */\n\n/**\n * A single OHLCV candlestick bar received from the market-data WebSocket stream.\n */\nexport type OHLCVBar = {\n /** Unix timestamp (seconds) of the candle open */\n timestamp: number;\n /** Opening price */\n open: number;\n /** Highest price during the candle period */\n high: number;\n /** Lowest price during the candle period */\n low: number;\n /** Closing price (latest) */\n close: number;\n /** Trading volume during the candle period */\n volume: number;\n};\n\n/**\n * Options for subscribing to an OHLCV channel.\n */\nexport type OHLCVSubscriptionOptions = {\n /** CAIP-19 asset identifier, e.g. \"eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\" */\n assetId: string;\n /** Candle interval, e.g. \"1m\", \"5m\", \"15m\", \"1h\", \"4h\", \"1d\" */\n interval: string;\n /** Fiat currency code, e.g. \"usd\", \"eur\" */\n currency: string;\n};\n"]}