@electrum-cash/network 3.3.0 → 4.0.0-development.6391574314
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/index.d.ts +11 -239
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +213 -599
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -9
- package/dist/index.cjs +0 -1637
- package/dist/index.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import * as net from "net";
|
|
2
|
-
import { WebSocket, MessageEvent, ErrorEvent } from "@monsterbitar/isomorphic-ws";
|
|
3
1
|
import { EventEmitter } from "events";
|
|
4
|
-
import { Mutex } from "async-mutex";
|
|
5
2
|
type RPCParameter = string | number | boolean | null;
|
|
6
3
|
interface RPCBase {
|
|
7
4
|
jsonrpc: string;
|
|
@@ -146,76 +143,6 @@ export const DefaultParameters: {
|
|
|
146
143
|
CLUSTER_ORDER: ClusterOrder;
|
|
147
144
|
USE_BIG_INT: boolean;
|
|
148
145
|
};
|
|
149
|
-
/**
|
|
150
|
-
* Isomorphic Socket interface supporting TCP sockets and WebSockets (Node and browser).
|
|
151
|
-
* The interface is a subset of the TLSSocket interface with some slight modifications.
|
|
152
|
-
* It can be expanded when more socket functionality is needed in the rest of the
|
|
153
|
-
* electrum-cash code. Changes from the TLSSocket interface (besides it being a subset):
|
|
154
|
-
* - Event 'close' -> 'disconnect'
|
|
155
|
-
* - New function socket.disconnect()
|
|
156
|
-
*
|
|
157
|
-
* @ignore
|
|
158
|
-
*/
|
|
159
|
-
declare class ElectrumSocket extends EventEmitter {
|
|
160
|
-
tcpSocket?: net.Socket;
|
|
161
|
-
webSocket?: WebSocket;
|
|
162
|
-
timers: {
|
|
163
|
-
retryConnection?: number;
|
|
164
|
-
disconnect?: number;
|
|
165
|
-
};
|
|
166
|
-
onConnectHasRun: boolean;
|
|
167
|
-
eventForwarders: {
|
|
168
|
-
disconnect: () => boolean;
|
|
169
|
-
tcpData: (data: string) => boolean;
|
|
170
|
-
wsData: (event: MessageEvent) => boolean;
|
|
171
|
-
tcpError: (err: Error) => boolean;
|
|
172
|
-
wsError: (event: ErrorEvent) => boolean;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Connect to host:port using the specified transport
|
|
176
|
-
*
|
|
177
|
-
* @param {string} host Fully qualified domain name or IP address of the host
|
|
178
|
-
* @param {number} port Network port for the host to connect to
|
|
179
|
-
* @param {TransportScheme} scheme Transport scheme to use
|
|
180
|
-
* @param {number} timeout If no connection is established after `timeout` ms, the connection is terminated
|
|
181
|
-
*
|
|
182
|
-
* @throws {Error} if an incorrect transport scheme is specified
|
|
183
|
-
*/
|
|
184
|
-
connect(host: string, port: number, scheme: TransportScheme, timeout: number): void;
|
|
185
|
-
/**
|
|
186
|
-
* Sets up forwarding of events related to the connection.
|
|
187
|
-
*
|
|
188
|
-
* @param {string} connectionType Name of the connection/transport type, used for logging.
|
|
189
|
-
* @param {string} host Fully qualified domain name or IP address of the host
|
|
190
|
-
* @param {number} port Network port for the host to connect to
|
|
191
|
-
*/
|
|
192
|
-
onConnect(connectionType: string, host: string, port: number): void;
|
|
193
|
-
/**
|
|
194
|
-
* Forcibly terminate the connection.
|
|
195
|
-
*
|
|
196
|
-
* @throws {Error} if no connection was found
|
|
197
|
-
*/
|
|
198
|
-
disconnect(): void;
|
|
199
|
-
/**
|
|
200
|
-
* Write data to the socket
|
|
201
|
-
*
|
|
202
|
-
* @param {Uint8Array | string} data Data to be written to the socket
|
|
203
|
-
* @param {function} callback Callback function to be called when the write has completed
|
|
204
|
-
*
|
|
205
|
-
* @throws {Error} if no connection was found
|
|
206
|
-
* @returns true if the message was fully flushed to the socket, false if part of the message
|
|
207
|
-
* is queued in the user memory
|
|
208
|
-
*/
|
|
209
|
-
write(data: Uint8Array | string, callback?: (err?: Error) => void): boolean;
|
|
210
|
-
/**
|
|
211
|
-
* Force a disconnection if no connection is established after `timeout` milliseconds.
|
|
212
|
-
*
|
|
213
|
-
* @param {string} host Host of the connection that timed out
|
|
214
|
-
* @param {number} port Port of the connection that timed out
|
|
215
|
-
* @param {number} timeout Elapsed milliseconds
|
|
216
|
-
*/
|
|
217
|
-
disconnectOnTimeout(host: string, port: number, timeout: number): void;
|
|
218
|
-
}
|
|
219
146
|
/**
|
|
220
147
|
* Wrapper around TLS/WSS sockets that gracefully separates a network stream into Electrum protocol messages.
|
|
221
148
|
*
|
|
@@ -231,15 +158,9 @@ declare class ElectrumConnection extends EventEmitter {
|
|
|
231
158
|
pingInterval: number;
|
|
232
159
|
reconnectInterval: number;
|
|
233
160
|
useBigInt: boolean;
|
|
234
|
-
socket: ElectrumSocket;
|
|
235
|
-
lastReceivedTimestamp: number;
|
|
236
|
-
timers: {
|
|
237
|
-
keepAlive?: number;
|
|
238
|
-
reconnect?: number;
|
|
239
|
-
};
|
|
240
|
-
verifications: Array<number>;
|
|
241
161
|
status: ConnectionStatus;
|
|
242
|
-
|
|
162
|
+
lastReceivedTimestamp: number;
|
|
163
|
+
software: string;
|
|
243
164
|
/**
|
|
244
165
|
* Sets up network configuration for an Electrum client connection.
|
|
245
166
|
*
|
|
@@ -373,13 +294,16 @@ declare class ElectrumConnection extends EventEmitter {
|
|
|
373
294
|
* High-level Electrum client that lets applications send requests and subscribe to notification events from a server.
|
|
374
295
|
*/
|
|
375
296
|
export class ElectrumClient extends EventEmitter {
|
|
297
|
+
application: string;
|
|
298
|
+
version: string;
|
|
299
|
+
host: string;
|
|
300
|
+
port: number;
|
|
301
|
+
scheme: TransportScheme;
|
|
302
|
+
timeout: number;
|
|
303
|
+
pingInterval: number;
|
|
304
|
+
reconnectInterval: number;
|
|
305
|
+
useBigInt: boolean;
|
|
376
306
|
connection: ElectrumConnection;
|
|
377
|
-
subscriptionMethods: Record<string, Set<string>>;
|
|
378
|
-
requestId: number;
|
|
379
|
-
requestResolvers: {
|
|
380
|
-
[index: number]: RequestResolver;
|
|
381
|
-
};
|
|
382
|
-
connectionLock: Mutex;
|
|
383
307
|
/**
|
|
384
308
|
* Initializes an Electrum client.
|
|
385
309
|
*
|
|
@@ -463,157 +387,5 @@ export class ElectrumClient extends EventEmitter {
|
|
|
463
387
|
*/
|
|
464
388
|
onConnectionDisconnect(): void;
|
|
465
389
|
}
|
|
466
|
-
/**
|
|
467
|
-
* Triggers when the cluster connects to enough servers to satisfy both the cluster confidence and distribution policies.
|
|
468
|
-
*
|
|
469
|
-
* @event ElectrumCluster#ready
|
|
470
|
-
* @deprecated
|
|
471
|
-
*/
|
|
472
|
-
/**
|
|
473
|
-
* Triggers when the cluster loses a connection and can no longer satisfy the cluster distribution policy.
|
|
474
|
-
*
|
|
475
|
-
* @event ElectrumCluster#degraded
|
|
476
|
-
* @deprecated
|
|
477
|
-
*/
|
|
478
|
-
/**
|
|
479
|
-
* Triggers when the cluster loses a connection and can no longer satisfy the cluster confidence policy.
|
|
480
|
-
*
|
|
481
|
-
* @event ElectrumCluster#disabled
|
|
482
|
-
* @deprecated
|
|
483
|
-
*/
|
|
484
|
-
/**
|
|
485
|
-
* Triggers when the cluster verifies the integrity of remote server sent data that is not a request responses.
|
|
486
|
-
*
|
|
487
|
-
* @event ElectrumCluster#notification
|
|
488
|
-
* @deprecated
|
|
489
|
-
*/
|
|
490
|
-
/**
|
|
491
|
-
* High-level electrum client that provides transparent load balancing, confidence checking and/or low-latency polling.
|
|
492
|
-
* @deprecated
|
|
493
|
-
*/
|
|
494
|
-
export class ElectrumCluster extends EventEmitter {
|
|
495
|
-
application: string;
|
|
496
|
-
version: string;
|
|
497
|
-
confidence: number;
|
|
498
|
-
distribution: number;
|
|
499
|
-
order: ClusterOrder;
|
|
500
|
-
timeout: number;
|
|
501
|
-
pingInterval: number;
|
|
502
|
-
reconnectInterval: number;
|
|
503
|
-
useBigInt: boolean;
|
|
504
|
-
clients: {
|
|
505
|
-
[index: string]: ClientConfig;
|
|
506
|
-
};
|
|
507
|
-
connections: number;
|
|
508
|
-
notifications: Record<string, Set<string>>;
|
|
509
|
-
status: ClusterStatus;
|
|
510
|
-
requestCounter: number;
|
|
511
|
-
requestPromises: {
|
|
512
|
-
[index: number]: Promise<Error | RequestResponse>[];
|
|
513
|
-
};
|
|
514
|
-
requestLock: Mutex;
|
|
515
|
-
responseLock: Mutex;
|
|
516
|
-
/**
|
|
517
|
-
* @param {string} application your application name, used to identify to the electrum hosts.
|
|
518
|
-
* @param {string} version protocol version to use with the hosts.
|
|
519
|
-
* @param {number} confidence wait for this number of hosts to provide identical results.
|
|
520
|
-
* @param {number} distribution request information from this number of hosts.
|
|
521
|
-
* @param {ClusterOrder} order select hosts to communicate with in this order.
|
|
522
|
-
* @param {number} timeout how long network delays we will wait for before taking action, in milliseconds.
|
|
523
|
-
* @param {number} pingInterval the time between sending pings to the electrum host, in milliseconds.
|
|
524
|
-
* @param {number} reconnectInterval the time between reconnection attempts to the electrum host, in milliseconds.
|
|
525
|
-
* @param {boolean} useBigInt whether to use bigint for numbers in json response.
|
|
526
|
-
*/
|
|
527
|
-
constructor(application: string, version: string, confidence?: number, distribution?: number, order?: ClusterOrder, timeout?: number, pingInterval?: number, reconnectInterval?: number, useBigInt?: boolean);
|
|
528
|
-
/**
|
|
529
|
-
* Adds a server to the cluster.
|
|
530
|
-
* @deprecated
|
|
531
|
-
*
|
|
532
|
-
* @param {string} host fully qualified domain name or IP number of the host.
|
|
533
|
-
* @param {number} port the TCP network port of the host.
|
|
534
|
-
* @param {TransportScheme} scheme the transport scheme to use for connection
|
|
535
|
-
* @param {boolean} autoConnect flag indicating whether the server should automatically connect (default true)
|
|
536
|
-
*
|
|
537
|
-
* @throws {Error} if the cluster's version is not a valid version string.
|
|
538
|
-
* @returns a promise that resolves when the connection has been initiated.
|
|
539
|
-
*/
|
|
540
|
-
addServer(host: string, port?: number, scheme?: TransportScheme, autoConnect?: boolean): Promise<void>;
|
|
541
|
-
/**
|
|
542
|
-
* Calls a method on the remote server with the supplied parameters.
|
|
543
|
-
* @deprecated
|
|
544
|
-
*
|
|
545
|
-
* @param {string} method name of the method to call.
|
|
546
|
-
* @param {...string} parameters one or more parameters for the method.
|
|
547
|
-
*
|
|
548
|
-
* @throws {Error} if not enough clients are connected
|
|
549
|
-
* @throws {Error} if no response is received with sufficient integrity
|
|
550
|
-
* @returns a promise that resolves with the result of the method.
|
|
551
|
-
*/
|
|
552
|
-
request(method: string, ...parameters: RPCParameter[]): Promise<Error | RequestResponse>;
|
|
553
|
-
/**
|
|
554
|
-
* Subscribes to the method at the cluster and attaches the callback function to the event feed.
|
|
555
|
-
* @deprecated
|
|
556
|
-
*
|
|
557
|
-
* @note the response for the subscription request is issued as a notification event.
|
|
558
|
-
*
|
|
559
|
-
* @param {string} method one of the subscribable methods the server supports.
|
|
560
|
-
* @param {...string} parameters one or more parameters for the method.
|
|
561
|
-
*
|
|
562
|
-
* @throws {Error} if not enough clients are connected
|
|
563
|
-
* @throws {Error} if no response is received with sufficient integrity for the initial request
|
|
564
|
-
*/
|
|
565
|
-
subscribe(method: string, ...parameters: RPCParameter[]): Promise<void>;
|
|
566
|
-
/**
|
|
567
|
-
* Unsubscribes to the method at the cluster and removes any callback functions
|
|
568
|
-
* when there are no more subscriptions for the method.
|
|
569
|
-
* @deprecated
|
|
570
|
-
*
|
|
571
|
-
* @param {string} method one of the subscribable methods the server supports.
|
|
572
|
-
* @param {...string} parameters one or more parameters for the method.
|
|
573
|
-
*
|
|
574
|
-
* @throws {Error} if, for any of the clients, no subscriptions exist for the combination of the provided `method` and `parameters.
|
|
575
|
-
*/
|
|
576
|
-
unsubscribe(method: string, ...parameters: RPCParameter[]): Promise<void>;
|
|
577
|
-
/**
|
|
578
|
-
* Define a callback function to validate server notifications and pass them to the subscribe callback.
|
|
579
|
-
* @deprecated
|
|
580
|
-
*
|
|
581
|
-
* @ignore
|
|
582
|
-
*/
|
|
583
|
-
handleSubscriptionNotifications(clientIdentity: string, data: RPCNotification): Promise<void>;
|
|
584
|
-
/**
|
|
585
|
-
* Forgets/Removes notification data for a specific notification.
|
|
586
|
-
*
|
|
587
|
-
* This is required in order to allow future identical notifications to be properly processed and emitted.
|
|
588
|
-
* @deprecated
|
|
589
|
-
*/
|
|
590
|
-
dismissSubscriptionNotification(responseDataIdentifier: any): Promise<void>;
|
|
591
|
-
/**
|
|
592
|
-
* Provides a method to check or wait for the cluster to become ready.
|
|
593
|
-
* @deprecated
|
|
594
|
-
*
|
|
595
|
-
* @returns a promise that resolves when the required servers are available.
|
|
596
|
-
*/
|
|
597
|
-
ready(): Promise<boolean>;
|
|
598
|
-
/**
|
|
599
|
-
* Connects all servers from the cluster and attaches event listeners and handlers
|
|
600
|
-
* for all underlying clients and connections.
|
|
601
|
-
* @deprecated
|
|
602
|
-
*
|
|
603
|
-
* @throws {Error} if the cluster's version is not a valid version string.
|
|
604
|
-
*/
|
|
605
|
-
startup(): Promise<void[]>;
|
|
606
|
-
/**
|
|
607
|
-
* Disconnects all servers from the cluster. Removes all event listeners and
|
|
608
|
-
* handlers from all underlying clients and connections. This includes all
|
|
609
|
-
* active subscriptions, unless retainSubscriptions is set to true.
|
|
610
|
-
* @deprecated
|
|
611
|
-
*
|
|
612
|
-
* @param {boolean} retainSubscriptions retain subscription data so they will be restored on reconnection.
|
|
613
|
-
*
|
|
614
|
-
* @returns a list with the disconnection result for every client
|
|
615
|
-
*/
|
|
616
|
-
shutdown(retainSubscriptions?: boolean): Promise<boolean[]>;
|
|
617
|
-
}
|
|
618
390
|
|
|
619
391
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";ACCA,oBAA2B,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAG5D;IAEC,OAAO,EAAE,MAAM,CAAC;CAChB;AAGD,yBAAiC,SAAQ,OAAO;IAE/C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACxB;AAWD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eAAoD,EAC5D,OAAO,GAAE,MAAkC,EAC3C,YAAY,GAAE,MAAwC,EACtD,iBAAiB,GAAE,MAAoC,EACvD,SAAS,GAAE,OAAuC;IAU1D;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAoC9B;;;;;;;OAOG;IACG,UAAU,CAAC,KAAK,GAAE,OAAe,EAAE,mBAAmB,GAAE,OAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAqChG;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,KAAK,GAAG,eAAe,CAAC;IAgD9F;;;;;;;;;;OAUG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA0B7E;;;;;;;;;;OAUG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA6E/E;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,WAAW,GAAG,IAAI;IAiDtD;;;;;OAKG;IACH,sBAAsB,IAAI,IAAI;CAkB9B","sources":["lib/lib/util.ts","lib/lib/rpc-interfaces.ts","lib/lib/electrum-protocol.ts","lib/lib/enums.ts","lib/lib/interfaces.ts","lib/lib/constants.ts","lib/lib/electrum-socket.ts","lib/lib/electrum-connection.ts","lib/lib/electrum-client.ts","lib/lib/index.ts","lib/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,"export { default as ElectrumClient } from './electrum-client';\n\nexport * from './interfaces';\nexport * from './constants';\nexport * from './enums';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|