@electrum-cash/network 4.1.4-development.11641455551 → 4.1.4-development.12704171077

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 DELETED
@@ -1,413 +0,0 @@
1
- import { EventEmitter } from "eventemitter3";
2
- type RPCParameter = string | number | boolean | object | null;
3
- type RCPIdentifier = number | string | null;
4
- interface RPCBase {
5
- jsonrpc: string;
6
- }
7
- interface RPCNotification extends RPCBase {
8
- method: string;
9
- params?: RPCParameter[];
10
- }
11
- interface RPCStatement extends RPCBase {
12
- id: RCPIdentifier;
13
- result: string;
14
- }
15
- interface RPCError {
16
- code: number;
17
- message: string;
18
- data?: any;
19
- }
20
- interface RPCErrorResponse extends RPCBase {
21
- id: RCPIdentifier;
22
- error: RPCError;
23
- }
24
- type RPCResponse = RPCErrorResponse | RPCStatement | RPCNotification;
25
- /**
26
- * Optional settings that change the default behavior of the network connection.
27
- */
28
- export interface ElectrumNetworkOptions {
29
- /** If set to true, numbers that can safely be parsed as integers will be `BigInt` rather than `Number`. */
30
- useBigInt?: boolean;
31
- /** When connected, send a keep-alive Ping message this often. */
32
- sendKeepAliveIntervalInMilliSeconds?: number;
33
- /** When disconnected, attempt to reconnect after this amount of time. */
34
- reconnectAfterMilliSeconds?: number;
35
- /** After every send, verify that we have received data after this amount of time. */
36
- verifyConnectionTimeoutInMilliSeconds?: number;
37
- /** Turn off automatic handling of browser visibility, which disconnects when application is not visible to be consistent across browsers. */
38
- disableBrowserVisibilityHandling?: boolean;
39
- /** Turn off automatic handling of browser connectivity. */
40
- disableBrowserConnectivityHandling?: boolean;
41
- }
42
- /**
43
- * List of events emitted by the ElectrumSocket.
44
- * @event
45
- * @ignore
46
- */
47
- export interface ElectrumSocketEvents {
48
- /**
49
- * Emitted when data has been received over the socket.
50
- * @eventProperty
51
- */
52
- 'data': [string];
53
- /**
54
- * Emitted when a socket connects.
55
- * @eventProperty
56
- */
57
- 'connected': [];
58
- /**
59
- * Emitted when a socket disconnects.
60
- * @eventProperty
61
- */
62
- 'disconnected': [];
63
- /**
64
- * Emitted when the socket has failed in some way.
65
- * @eventProperty
66
- */
67
- 'error': [Error];
68
- }
69
- /**
70
- * Abstract socket used when communicating with Electrum servers.
71
- */
72
- export interface ElectrumSocket extends EventEmitter<ElectrumSocketEvents>, ElectrumSocketEvents {
73
- /**
74
- * Utility function to provide a human accessible host identifier.
75
- */
76
- get hostIdentifier(): string;
77
- /**
78
- * Fully qualified domain name or IP address of the host
79
- */
80
- host: string;
81
- /**
82
- * Network port for the host to connect to, defaults to the standard TLS port
83
- */
84
- port: number;
85
- /**
86
- * If false, uses an unencrypted connection instead of the default on TLS
87
- */
88
- encrypted: boolean;
89
- /**
90
- * If no connection is established after `timeout` ms, the connection is terminated
91
- */
92
- timeout: number;
93
- /**
94
- * Connects to an Electrum server using the socket.
95
- */
96
- connect(): void;
97
- /**
98
- * Disconnects from the Electrum server from the socket.
99
- */
100
- disconnect(): void;
101
- /**
102
- * Write data to the Electrum server on the socket.
103
- *
104
- * @param data - Data to be written to the socket
105
- * @param callback - Callback function to be called when the write has completed
106
- */
107
- write(data: Uint8Array | string, callback?: (err?: Error) => void): boolean;
108
- }
109
- /**
110
- * @ignore
111
- */
112
- export interface VersionRejected {
113
- error: RPCError;
114
- }
115
- /**
116
- * @ignore
117
- */
118
- export interface VersionNegotiated {
119
- software: string;
120
- protocol: string;
121
- }
122
- /**
123
- * @ignore
124
- */
125
- export type VersionNegotiationResponse = VersionNegotiated | VersionRejected;
126
- /**
127
- * List of events emitted by the ElectrumConnection.
128
- * @event
129
- * @ignore
130
- */
131
- export interface ElectrumConnectionEvents {
132
- /**
133
- * Emitted when any data has been received over the network.
134
- * @eventProperty
135
- */
136
- 'received': [];
137
- /**
138
- * Emitted when a complete electrum message has been received over the network.
139
- * @eventProperty
140
- */
141
- 'response': [RPCResponse];
142
- /**
143
- * Emitted when the connection has completed version negotiation.
144
- * @eventProperty
145
- */
146
- 'version': [VersionNegotiationResponse];
147
- /**
148
- * Emitted when a network connection is initiated.
149
- * @eventProperty
150
- */
151
- 'connecting': [];
152
- /**
153
- * Emitted when a network connection is successful.
154
- * @eventProperty
155
- */
156
- 'connected': [];
157
- /**
158
- * Emitted when a network disconnection is initiated.
159
- * @eventProperty
160
- */
161
- 'disconnecting': [];
162
- /**
163
- * Emitted when a network disconnection is successful.
164
- * @eventProperty
165
- */
166
- 'disconnected': [];
167
- /**
168
- * Emitted when a network connect attempts to automatically reconnect.
169
- * @eventProperty
170
- */
171
- 'reconnecting': [];
172
- /**
173
- * Emitted when the network has failed in some way.
174
- * @eventProperty
175
- */
176
- 'error': [Error];
177
- }
178
- /**
179
- * List of events emitted by the ElectrumClient.
180
- * @event
181
- * @ignore
182
- */
183
- export interface ElectrumClientEvents {
184
- /**
185
- * Emitted when an electrum subscription statement has been received over the network.
186
- * @eventProperty
187
- */
188
- 'notification': [RPCNotification];
189
- /**
190
- * Emitted when a network connection is initiated.
191
- * @eventProperty
192
- */
193
- 'connecting': [];
194
- /**
195
- * Emitted when a network connection is successful.
196
- * @eventProperty
197
- */
198
- 'connected': [];
199
- /**
200
- * Emitted when a network disconnection is initiated.
201
- * @eventProperty
202
- */
203
- 'disconnecting': [];
204
- /**
205
- * Emitted when a network disconnection is successful.
206
- * @eventProperty
207
- */
208
- 'disconnected': [];
209
- /**
210
- * Emitted when a network connect attempts to automatically reconnect.
211
- * @eventProperty
212
- */
213
- 'reconnecting': [];
214
- /**
215
- * Emitted when the network has failed in some way.
216
- * @eventProperty
217
- */
218
- 'error': [Error];
219
- }
220
- /**
221
- * A list of possible responses to requests.
222
- * @ignore
223
- */
224
- export type RequestResponse = RPCParameter | RPCParameter[];
225
- /**
226
- * Request resolvers are used to process the response of a request. This takes either
227
- * an error object or any stringified data, while the other parameter is omitted.
228
- * @ignore
229
- */
230
- export type RequestResolver = (error?: Error, data?: string) => void;
231
- /**
232
- * Typing for promise resolution.
233
- * @ignore
234
- */
235
- export type ResolveFunction<T> = (value: T | PromiseLike<T>) => void;
236
- /**
237
- * Typing for promise rejection.
238
- * @ignore
239
- */
240
- export type RejectFunction = (reason?: any) => void;
241
- /**
242
- * @ignore
243
- */
244
- export const isVersionRejected: (object: any) => object is VersionRejected;
245
- /**
246
- * @ignore
247
- */
248
- export const isVersionNegotiated: (object: any) => object is VersionNegotiated;
249
- /**
250
- * Enum that denotes the connection status of an ElectrumConnection.
251
- * @enum {number}
252
- * @property {0} DISCONNECTED The connection is disconnected.
253
- * @property {1} AVAILABLE The connection is connected.
254
- * @property {2} DISCONNECTING The connection is disconnecting.
255
- * @property {3} CONNECTING The connection is connecting.
256
- * @property {4} RECONNECTING The connection is restarting.
257
- */
258
- export enum ConnectionStatus {
259
- DISCONNECTED = 0,
260
- CONNECTED = 1,
261
- DISCONNECTING = 2,
262
- CONNECTING = 3,
263
- RECONNECTING = 4
264
- }
265
- /**
266
- * High-level Electrum client that lets applications send requests and subscribe to notification events from a server.
267
- */
268
- export class ElectrumClient<ElectrumEvents extends ElectrumClientEvents> extends EventEmitter<ElectrumClientEvents | ElectrumEvents> implements ElectrumClientEvents {
269
- application: string;
270
- version: string;
271
- socketOrHostname: ElectrumSocket | string;
272
- options: ElectrumNetworkOptions;
273
- /**
274
- * The name and version of the server software indexing the blockchain.
275
- */
276
- software: string;
277
- /**
278
- * The genesis hash of the blockchain indexed by the server.
279
- * @remarks This is only available after a 'server.features' call.
280
- */
281
- genesisHash: string;
282
- /**
283
- * The chain height of the blockchain indexed by the server.
284
- * @remarks This is only available after a 'blockchain.headers.subscribe' call.
285
- */
286
- chainHeight: number;
287
- /**
288
- * Timestamp of when we last received data from the server indexing the blockchain.
289
- */
290
- lastReceivedTimestamp: number;
291
- /**
292
- * Number corresponding to the underlying connection status.
293
- */
294
- get status(): ConnectionStatus;
295
- /**
296
- * Initializes an Electrum client.
297
- *
298
- * @param application - your application name, used to identify to the electrum host.
299
- * @param version - protocol version to use with the host.
300
- * @param socketOrHostname - pre-configured electrum socket or fully qualified domain name or IP number of the host
301
- * @param options - ...
302
- *
303
- * @throws {Error} if `version` is not a valid version string.
304
- */
305
- constructor(application: string, version: string, socketOrHostname: ElectrumSocket | string, options?: ElectrumNetworkOptions);
306
- get hostIdentifier(): string;
307
- get encrypted(): boolean;
308
- /**
309
- * Connects to the remote server.
310
- *
311
- * @throws {Error} if the socket connection fails.
312
- * @returns a promise resolving when the connection is established.
313
- */
314
- connect(): Promise<void>;
315
- /**
316
- * Disconnects from the remote server and removes all event listeners/subscriptions and open requests.
317
- *
318
- * @param force - disconnect even if the connection has not been fully established yet.
319
- * @param retainSubscriptions - retain subscription data so they will be restored on reconnection.
320
- *
321
- * @returns true if successfully disconnected, or false if there was no connection.
322
- */
323
- disconnect(force?: boolean, retainSubscriptions?: boolean): Promise<boolean>;
324
- /**
325
- * Calls a method on the remote server with the supplied parameters.
326
- *
327
- * @param method - name of the method to call.
328
- * @param parameters - one or more parameters for the method.
329
- *
330
- * @throws {Error} if the client is disconnected.
331
- * @returns a promise that resolves with the result of the method or an Error.
332
- */
333
- request(method: string, ...parameters: RPCParameter[]): Promise<Error | RequestResponse>;
334
- /**
335
- * Subscribes to the method and payload at the server.
336
- *
337
- * @remarks the response for the subscription request is issued as a notification event.
338
- *
339
- * @param method - one of the subscribable methods the server supports.
340
- * @param parameters - one or more parameters for the method.
341
- *
342
- * @throws {Error} if the client is disconnected.
343
- * @returns a promise resolving when the subscription is established.
344
- */
345
- subscribe(method: string, ...parameters: RPCParameter[]): Promise<void>;
346
- /**
347
- * Unsubscribes to the method at the server and removes any callback functions
348
- * when there are no more subscriptions for the method.
349
- *
350
- * @param method - a previously subscribed to method.
351
- * @param parameters - one or more parameters for the method.
352
- *
353
- * @throws {Error} if no subscriptions exist for the combination of the provided `method` and `parameters.
354
- * @throws {Error} if the client is disconnected.
355
- * @returns a promise resolving when the subscription is removed.
356
- */
357
- unsubscribe(method: string, ...parameters: RPCParameter[]): Promise<void>;
358
- /**
359
- * Parser messages from the remote server to resolve request promises and emit subscription events.
360
- *
361
- * @param message - the response message
362
- *
363
- * @throws {Error} if the message ID does not match an existing request.
364
- * @ignore
365
- */
366
- response(message: RPCResponse): void;
367
- /**
368
- * Callback function that is called when connection to the Electrum server is lost.
369
- * Aborts all active requests with an error message indicating that connection was lost.
370
- *
371
- * @ignore
372
- */
373
- onConnectionDisconnect(): Promise<void>;
374
- /**
375
- * Stores the server provider software version field on successful version negotiation.
376
- *
377
- * @ignore
378
- */
379
- storeSoftwareVersion(versionStatement: any): Promise<void>;
380
- /**
381
- * Updates the last received timestamp.
382
- *
383
- * @ignore
384
- */
385
- updateLastReceivedTimestamp(): Promise<void>;
386
- /**
387
- * Checks if the provided message is a response to a headers subscription,
388
- * and if so updates the locally stored chain height value for this client.
389
- *
390
- * @ignore
391
- */
392
- updateChainHeightFromHeadersNotifications(message: any): Promise<void>;
393
- /**
394
- * Checks if the provided message is a response to a server.features request,
395
- * and if so stores the genesis hash for this client locally.
396
- *
397
- * @ignore
398
- */
399
- storeGenesisHashFromFeaturesResponse(message: any): Promise<void>;
400
- /**
401
- * Helper function to synchronize state and events with the underlying connection.
402
- */
403
- handleConnectionStatusChanges(eventName: any): Promise<void>;
404
- readonly connecting: [];
405
- readonly connected: [];
406
- readonly disconnecting: [];
407
- readonly disconnected: [];
408
- readonly reconnecting: [];
409
- readonly notification: [RPCNotification];
410
- readonly error: [Error];
411
- }
412
-
413
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";AACA,oBAA2B,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAGrE,qBAA4B,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAGnD;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,sBAA8B,SAAQ,OAAO;IAE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YAAY,EAAE,EAAE,CAAC;IACjC,SAAgB,YAAY,EAAE,EAAE,CAAC;IACjC,SAAgB,YAAY,EAAE,CAAE,eAAe,CAAE,CAAC;IAClD,SAAgB,KAAK,EAAE,CAAE,KAAK,CAAE,CAAC;CACjC","sources":["source/source/rpc-interfaces.ts","source/source/electrum-protocol.ts","source/source/interfaces.ts","source/source/enums.ts","source/source/electrum-connection.ts","source/source/constants.ts","source/source/electrum-client.ts","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,"export { default as ElectrumClient } from './electrum-client';\n\nexport * from './interfaces';\nexport * from './enums';\n"],"names":[],"version":3,"file":"index.d.ts.map"}