@arca-network/sdk 1.11.0 → 1.12.0
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/dist/arca.d.ts +59 -5
- package/dist/arca.d.ts.map +1 -1
- package/dist/arca.js +111 -7
- package/dist/arca.js.map +1 -1
- package/dist/client.d.ts +20 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +64 -9
- package/dist/client.js.map +1 -1
- package/dist/cosign.d.ts +42 -3
- package/dist/cosign.d.ts.map +1 -1
- package/dist/cosign.js +51 -2
- package/dist/cosign.js.map +1 -1
- package/dist/errors.d.ts +22 -3
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +31 -7
- package/dist/errors.js.map +1 -1
- package/dist/fixtures/cosign-vectors.json +33 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/streams.d.ts +19 -3
- package/dist/streams.d.ts.map +1 -1
- package/dist/streams.js +35 -3
- package/dist/streams.js.map +1 -1
- package/dist/types.d.ts +195 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +17 -0
- package/dist/types.js.map +1 -1
- package/dist/websocket.d.ts +182 -5
- package/dist/websocket.d.ts.map +1 -1
- package/dist/websocket.js +593 -25
- package/dist/websocket.js.map +1 -1
- package/package.json +1 -1
package/dist/websocket.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import { AgentEvent, ArcaObject, CandleInterval, CandleEvent, OIEvent, EventCallback, EventConnectionStatus, EventType, RealmEvent, Operation, ArcaEvent, ExchangeState, ObjectValuation, PathAggregation, SimFill, Fill, FundingPayment, Realm, ExplorerSummary, WatchSnapshot, TradeEvent } from './types';
|
|
1
|
+
import { AgentEvent, ArcaObject, CandleInterval, CandleEvent, OIEvent, EventCallback, EventConnectionStatus, EventType, RealmEvent, Operation, ArcaEvent, ExchangeState, ObjectValuation, PathAggregation, SimFill, Fill, FundingPayment, Realm, ExplorerSummary, FrameEvent, WatchSnapshot, TradeEvent, Watermark } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Context for a delivery-sequence gap.
|
|
4
|
+
*
|
|
5
|
+
* `resumable` is the field that matters. When it is true the connection
|
|
6
|
+
* holds a fold position for the affected scopes, so the missed updates
|
|
7
|
+
* are recoverable by resuming from that position — which the SDK does
|
|
8
|
+
* automatically on the next reconnect — and a REST refetch would only
|
|
9
|
+
* duplicate work the stream is already going to do.
|
|
10
|
+
*
|
|
11
|
+
* When it is false there is no position to resume from (an unflipped
|
|
12
|
+
* realm, or an ambient stream like mids and candles that has no ledger
|
|
13
|
+
* position at all) and a refetch is still the only way to close the hole.
|
|
14
|
+
*/
|
|
15
|
+
export interface GapInfo {
|
|
16
|
+
missed: number;
|
|
17
|
+
resumable: boolean;
|
|
18
|
+
watermark?: Watermark;
|
|
19
|
+
}
|
|
20
|
+
export type GapCallback = (missed: number, info: GapInfo) => void;
|
|
2
21
|
export interface WebSocketManagerConfig {
|
|
3
22
|
baseUrl: string;
|
|
4
23
|
credential: string;
|
|
@@ -8,6 +27,21 @@ export interface WebSocketManagerConfig {
|
|
|
8
27
|
getToken?: () => Promise<string>;
|
|
9
28
|
maxReconnectDelay?: number;
|
|
10
29
|
maxReconnectAttempts?: number;
|
|
30
|
+
/**
|
|
31
|
+
* How long a single socket may live before the manager replaces it with a
|
|
32
|
+
* fresh one, in ms. Set `0` to disable.
|
|
33
|
+
*
|
|
34
|
+
* Infrastructure in front of the server caps how long any socket may stay
|
|
35
|
+
* open — for a load balancer this is a maximum lifetime, not an idle
|
|
36
|
+
* timeout, so a perfectly busy connection is severed on schedule. Reaching
|
|
37
|
+
* that cap means an unplanned reconnect: backoff, TCP, TLS, auth, then a
|
|
38
|
+
* resubscribe before data resumes. Rotating first turns the same event into
|
|
39
|
+
* a handoff between two live sockets, which costs nothing observable.
|
|
40
|
+
*
|
|
41
|
+
* The server's own limit takes precedence when it reports one during auth,
|
|
42
|
+
* so this value is the floor for deployments whose server is silent.
|
|
43
|
+
*/
|
|
44
|
+
connectionLifetimeMs?: number;
|
|
11
45
|
}
|
|
12
46
|
type ErrorCallback = (error: {
|
|
13
47
|
message: string;
|
|
@@ -15,6 +49,7 @@ type ErrorCallback = (error: {
|
|
|
15
49
|
export declare class WebSocketManager {
|
|
16
50
|
private config;
|
|
17
51
|
private ws;
|
|
52
|
+
private handoffWs;
|
|
18
53
|
private reconnectTimer;
|
|
19
54
|
private reconnectAttempt;
|
|
20
55
|
private readonly maxReconnectDelay;
|
|
@@ -46,13 +81,31 @@ export declare class WebSocketManager {
|
|
|
46
81
|
private static readonly STALE_THRESHOLD_MS;
|
|
47
82
|
private static readonly RESUME_HIDDEN_THRESHOLD_MS;
|
|
48
83
|
private static readonly RESUME_PING_TIMEOUT_MS;
|
|
84
|
+
private static readonly DEFAULT_CONNECTION_LIFETIME_MS;
|
|
85
|
+
private static readonly ROTATE_AT;
|
|
86
|
+
private static readonly ROTATE_JITTER;
|
|
87
|
+
private static readonly HANDOFF_TIMEOUT_MS;
|
|
88
|
+
private static readonly HANDOFF_RETRY_MS;
|
|
89
|
+
private static readonly PROMOTE_RETRY_MS;
|
|
90
|
+
private static readonly PROMOTE_MAX_ATTEMPTS;
|
|
49
91
|
private pingTimer;
|
|
50
92
|
private lastMessageAt;
|
|
51
93
|
private messageCounter;
|
|
52
94
|
private lastDeliverySeq;
|
|
53
95
|
private gapCallbacks;
|
|
96
|
+
private pathWatermarks;
|
|
97
|
+
private watchWatermarks;
|
|
98
|
+
private connectionWatermark;
|
|
99
|
+
private pendingResumes;
|
|
54
100
|
private resumeCallbacks;
|
|
55
101
|
private authenticatedCallbacks;
|
|
102
|
+
private rotatedCallbacks;
|
|
103
|
+
private rotationTimer;
|
|
104
|
+
private handoffTimer;
|
|
105
|
+
private promoteTimer;
|
|
106
|
+
private promoteAttempt;
|
|
107
|
+
private serverLifetimeMs;
|
|
108
|
+
private readonly connectionLifetimeMs;
|
|
56
109
|
private hiddenAt;
|
|
57
110
|
private removeVisibilityListener;
|
|
58
111
|
private resumePingTimer;
|
|
@@ -143,7 +196,53 @@ export declare class WebSocketManager {
|
|
|
143
196
|
* Rejects after `timeoutMs` (default 15 s).
|
|
144
197
|
*/
|
|
145
198
|
waitForConnected(timeoutMs?: number): Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* Open a socket.
|
|
201
|
+
*
|
|
202
|
+
* In `handoff` mode the existing socket is left untouched and serving; the
|
|
203
|
+
* new one warms up alongside it and only takes over once it is fully
|
|
204
|
+
* subscribed (see `beginHandoff`). Every other caller replaces the current
|
|
205
|
+
* socket outright, which is the correct behaviour when it is already gone.
|
|
206
|
+
*/
|
|
146
207
|
private doConnect;
|
|
208
|
+
/**
|
|
209
|
+
* Replace the current socket with a fresh one without interrupting delivery.
|
|
210
|
+
*
|
|
211
|
+
* The replacement authenticates and re-issues every subscription while the
|
|
212
|
+
* current socket keeps streaming. Only once the server confirms those
|
|
213
|
+
* subscriptions are live does it take over, and only then does the old
|
|
214
|
+
* socket close — so there is no window in which nothing is subscribed. A
|
|
215
|
+
* failure anywhere along the way leaves the current socket untouched and
|
|
216
|
+
* serving, which makes the worst case "nothing happened".
|
|
217
|
+
*
|
|
218
|
+
* Returns false when there is no healthy socket to hand off from, or when a
|
|
219
|
+
* handoff is already under way.
|
|
220
|
+
*/
|
|
221
|
+
rotateConnection(): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Hand delivery over to the warmed socket and retire the current one.
|
|
224
|
+
*/
|
|
225
|
+
private promoteHandoff;
|
|
226
|
+
/** Abandon a warming socket. The live socket is left exactly as it was. */
|
|
227
|
+
private abortHandoff;
|
|
228
|
+
/**
|
|
229
|
+
* Arm the next rotation. `delayMs` overrides the schedule, which is how a
|
|
230
|
+
* failed handoff retries before the lifetime it is racing runs out.
|
|
231
|
+
*/
|
|
232
|
+
private scheduleRotation;
|
|
233
|
+
private cancelRotation;
|
|
234
|
+
private clearHandoffTimeout;
|
|
235
|
+
private clearPromoteTimer;
|
|
236
|
+
/**
|
|
237
|
+
* Adopt the socket lifetime the server reports at auth.
|
|
238
|
+
*
|
|
239
|
+
* The server sits behind the proxy that enforces the cap, so it is the only
|
|
240
|
+
* party that knows the real figure. Taking it from the wire means retuning
|
|
241
|
+
* the cap is a server config change rather than an SDK release — otherwise
|
|
242
|
+
* every deployed client keeps rotating against a number that silently went
|
|
243
|
+
* stale.
|
|
244
|
+
*/
|
|
245
|
+
private readServerLifetime;
|
|
147
246
|
private subscribeMids;
|
|
148
247
|
private unsubscribeMids;
|
|
149
248
|
private subscribeCandles;
|
|
@@ -173,13 +272,25 @@ export declare class WebSocketManager {
|
|
|
173
272
|
* `event.twapId === target` or use {@link Arca.watchTwap}.
|
|
174
273
|
*/
|
|
175
274
|
onTwapEvent(cb: (event: import('./types').TwapEvent) => void): () => void;
|
|
275
|
+
/**
|
|
276
|
+
* Create a standalone aggregation watch.
|
|
277
|
+
*
|
|
278
|
+
* The second parameter accepts either the bare `flowsSince` string it
|
|
279
|
+
* has always taken or an options object; the string form is kept
|
|
280
|
+
* because it is public API and silently changing its meaning would
|
|
281
|
+
* break callers with no compile error.
|
|
282
|
+
*/
|
|
176
283
|
createAggregationWatch(sources: Array<{
|
|
177
284
|
type: string;
|
|
178
285
|
value?: string;
|
|
179
286
|
paths?: string[];
|
|
180
|
-
}>,
|
|
287
|
+
}>, options?: string | {
|
|
288
|
+
flowsSince?: string;
|
|
289
|
+
fromRseq?: number;
|
|
290
|
+
}): Promise<{
|
|
181
291
|
watchId: string;
|
|
182
292
|
aggregation: any;
|
|
293
|
+
watermark?: Watermark;
|
|
183
294
|
}>;
|
|
184
295
|
destroyAggregationWatch(watchId: string): void;
|
|
185
296
|
createChartHistoryWatch(req: {
|
|
@@ -203,6 +314,17 @@ export declare class WebSocketManager {
|
|
|
203
314
|
onOIUpdated(cb: (event: OIEvent) => void): () => void;
|
|
204
315
|
onTradeExecuted(cb: (event: TradeEvent) => void): () => void;
|
|
205
316
|
onAggregationUpdated(cb: (watchId: string, aggregation: PathAggregation | undefined, event: RealmEvent) => void): () => void;
|
|
317
|
+
/**
|
|
318
|
+
* Subscribe to per-transition frames.
|
|
319
|
+
*
|
|
320
|
+
* Optional by design: frames tell you *what moved*, while the
|
|
321
|
+
* `aggregation.updated` / `object.valuation` delivered alongside each
|
|
322
|
+
* one carries the resulting total. Code that only needs totals should
|
|
323
|
+
* ignore frames entirely. Reach for them to drive per-account UI
|
|
324
|
+
* without recomputing, or to attribute a change to the operation that
|
|
325
|
+
* caused it (`operationId` / `opType`).
|
|
326
|
+
*/
|
|
327
|
+
onFrame(cb: (frame: FrameEvent) => void): () => void;
|
|
206
328
|
onChartSnapshotUpdated(cb: (watchId: string, event: RealmEvent) => void): () => void;
|
|
207
329
|
onRealmCreated(cb: (realm: Realm, event: RealmEvent) => void): () => void;
|
|
208
330
|
/**
|
|
@@ -218,10 +340,48 @@ export declare class WebSocketManager {
|
|
|
218
340
|
private emitStatus;
|
|
219
341
|
private checkDeliveryGap;
|
|
220
342
|
/**
|
|
221
|
-
* Register a callback for delivery
|
|
222
|
-
*
|
|
343
|
+
* Register a callback for delivery-sequence gaps.
|
|
344
|
+
*
|
|
345
|
+
* Historically this was the SDK's only repair mechanism: a gap meant
|
|
346
|
+
* "something was lost, go refetch it over REST". On a frame-served
|
|
347
|
+
* realm it is informational — the connection knows the fold position
|
|
348
|
+
* each scope reached, and resuming from it recovers precisely what was
|
|
349
|
+
* missed with no duplicate work. Check `info.resumable` before
|
|
350
|
+
* reaching for a refetch.
|
|
351
|
+
*
|
|
352
|
+
* The first argument is unchanged, so existing callbacks keep working.
|
|
353
|
+
*/
|
|
354
|
+
onGap(cb: GapCallback): () => void;
|
|
355
|
+
/**
|
|
356
|
+
* The furthest fold position this connection has observed, across every
|
|
357
|
+
* scope. Undefined on a realm that is not frame-served.
|
|
223
358
|
*/
|
|
224
|
-
|
|
359
|
+
watermark(): Watermark | undefined;
|
|
360
|
+
/** The fold position a path watch has been delivered up to. */
|
|
361
|
+
watermarkForPath(path: string): Watermark | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* The fold position an aggregation watch has been delivered up to.
|
|
364
|
+
*
|
|
365
|
+
* Read by {@link AggregationWatchStream} before it recreates its watch
|
|
366
|
+
* on reconnect: the new watch resumes from the old one's position, so
|
|
367
|
+
* the recreate stops being a re-snapshot.
|
|
368
|
+
*/
|
|
369
|
+
watermarkForWatch(watchId: string): Watermark | undefined;
|
|
370
|
+
/**
|
|
371
|
+
* Files an observed position under the scopes it belongs to, plus the
|
|
372
|
+
* connection-wide cursor.
|
|
373
|
+
*
|
|
374
|
+
* Positions only ever advance (see {@link advanceWatermark}) and are
|
|
375
|
+
* kept across a disconnect, because the cursor's whole purpose is to
|
|
376
|
+
* survive the outage it is used to repair.
|
|
377
|
+
*/
|
|
378
|
+
private recordWatermark;
|
|
379
|
+
/**
|
|
380
|
+
* Normalizes the wire's flat `rseq` / `priceEpoch` into the structured
|
|
381
|
+
* `watermark` handlers read, leaving the raw fields in place so nothing
|
|
382
|
+
* written against them breaks.
|
|
383
|
+
*/
|
|
384
|
+
private withWatermark;
|
|
225
385
|
/**
|
|
226
386
|
* Register a callback fired when the page returns from a backgrounded /
|
|
227
387
|
* tab-frozen state (visibility transition `hidden -> visible` after at
|
|
@@ -240,6 +400,23 @@ export declare class WebSocketManager {
|
|
|
240
400
|
* than the disconnect callback fires).
|
|
241
401
|
*/
|
|
242
402
|
onAuthenticated(cb: () => void): () => void;
|
|
403
|
+
/**
|
|
404
|
+
* Fires when delivery has moved to a new socket without an outage
|
|
405
|
+
* (see {@link rotateConnection}).
|
|
406
|
+
*
|
|
407
|
+
* This is not a reconnect: no status change is emitted, nothing was missed,
|
|
408
|
+
* and there is no gap to recover. It exists for state the server holds
|
|
409
|
+
* per-connection and therefore cannot survive the swap — a standalone
|
|
410
|
+
* aggregation watch has to be re-created against the new socket, because the
|
|
411
|
+
* old one died with the connection it was registered on. Anything the
|
|
412
|
+
* manager re-issues itself (mids, candles, OI, trades, path watches,
|
|
413
|
+
* chart-history watches) is already handled and needs no hook.
|
|
414
|
+
*
|
|
415
|
+
* Do NOT use this to refetch history or run gap recovery; `onAuthenticated`
|
|
416
|
+
* is the hook for that. Rotations are routine, so a refetch here multiplies
|
|
417
|
+
* into steady background load across every connected client.
|
|
418
|
+
*/
|
|
419
|
+
onRotated(cb: () => void): () => void;
|
|
243
420
|
private installVisibilityListener;
|
|
244
421
|
/**
|
|
245
422
|
* Internal: invoked on a `hidden -> visible` transition after the
|
package/dist/websocket.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../src/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EAEV,cAAc,EACd,WAAW,EACX,OAAO,EAEP,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EAEb,eAAe,EACf,eAAe,EACf,OAAO,EACP,IAAI,EACJ,cAAc,EACd,KAAK,EACL,eAAe,EACf,aAAa,EACb,UAAU,
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../src/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EAEV,cAAc,EACd,WAAW,EACX,OAAO,EAEP,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EAEb,eAAe,EACf,eAAe,EACf,OAAO,EACP,IAAI,EACJ,cAAc,EACd,KAAK,EACL,eAAe,EACf,UAAU,EACV,aAAa,EACb,UAAU,EAEV,SAAS,EACV,MAAM,SAAS,CAAC;AAiFjB;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;CAC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