@temple-digital-group/temple-canton-js 2.0.2 → 2.0.3-beta.1
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/README.md +457 -457
- package/index.js +15 -15
- package/package.json +50 -49
- package/src/api/config.d.ts +20 -20
- package/src/api/index.ts +322 -322
- package/src/api/tokenStore.ts +30 -30
- package/src/api/types.ts +196 -196
- package/src/auth0/index.d.ts +1 -1
- package/src/auth0/index.js +50 -50
- package/src/canton/deposits.ts +563 -563
- package/src/canton/helpers.ts +266 -266
- package/src/canton/index.d.ts +41 -41
- package/src/canton/index.js +3301 -3472
- package/src/canton/instrumentCatalog.d.ts +7 -7
- package/src/canton/instrumentCatalog.js +283 -283
- package/src/canton/request_schemas/cancel_orders_amulet.json +77 -77
- package/src/canton/request_schemas/cancel_orders_utility.json +68 -68
- package/src/canton/request_schemas/create_order_proposal_amulet.json +94 -94
- package/src/canton/request_schemas/create_order_proposal_utility.json +121 -121
- package/src/canton/request_schemas/create_utility_credential.json +31 -31
- package/src/canton/request_schemas/execute_transfer_factory.json +43 -43
- package/src/canton/request_schemas/get_allocation_factory.json +21 -21
- package/src/canton/request_schemas/get_amulet_holdings.json +21 -21
- package/src/canton/request_schemas/get_instrument_configurations.json +21 -21
- package/src/canton/request_schemas/get_locked_amulet_holdings.json +21 -21
- package/src/canton/request_schemas/get_order_proposals.json +21 -21
- package/src/canton/request_schemas/get_orders.json +21 -21
- package/src/canton/request_schemas/get_sender_credentials.json +22 -22
- package/src/canton/request_schemas/get_transfer_factory.json +28 -28
- package/src/canton/request_schemas/get_utility_holdings.json +21 -21
- package/src/canton/request_schemas/unlock_amulet.json +38 -38
- package/src/canton/walletAdapter.d.ts +7 -7
- package/src/canton/walletAdapter.js +112 -112
- package/src/canton/withdrawals.ts +511 -511
- package/src/config/index.d.ts +63 -63
- package/src/config/index.js +188 -188
- package/src/websocket/index.ts +341 -341
- package/src/websocket/ws.d.ts +24 -24
package/src/websocket/ws.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
declare module "ws" {
|
|
2
|
-
import { EventEmitter } from "events";
|
|
3
|
-
|
|
4
|
-
class WebSocket extends EventEmitter {
|
|
5
|
-
static readonly CONNECTING: 0;
|
|
6
|
-
static readonly OPEN: 1;
|
|
7
|
-
static readonly CLOSING: 2;
|
|
8
|
-
static readonly CLOSED: 3;
|
|
9
|
-
|
|
10
|
-
readonly readyState: number;
|
|
11
|
-
|
|
12
|
-
constructor(address: string, options?: { headers?: Record<string, string> });
|
|
13
|
-
|
|
14
|
-
close(code?: number, reason?: string): void;
|
|
15
|
-
send(data: string | Buffer): void;
|
|
16
|
-
|
|
17
|
-
onopen: ((event: { target: WebSocket }) => void) | null;
|
|
18
|
-
onclose: ((event: { code: number; reason: string; target: WebSocket }) => void) | null;
|
|
19
|
-
onmessage: ((event: { data: unknown; target: WebSocket }) => void) | null;
|
|
20
|
-
onerror: ((event: { error: unknown; target: WebSocket }) => void) | null;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export default WebSocket;
|
|
24
|
-
}
|
|
1
|
+
declare module "ws" {
|
|
2
|
+
import { EventEmitter } from "events";
|
|
3
|
+
|
|
4
|
+
class WebSocket extends EventEmitter {
|
|
5
|
+
static readonly CONNECTING: 0;
|
|
6
|
+
static readonly OPEN: 1;
|
|
7
|
+
static readonly CLOSING: 2;
|
|
8
|
+
static readonly CLOSED: 3;
|
|
9
|
+
|
|
10
|
+
readonly readyState: number;
|
|
11
|
+
|
|
12
|
+
constructor(address: string, options?: { headers?: Record<string, string> });
|
|
13
|
+
|
|
14
|
+
close(code?: number, reason?: string): void;
|
|
15
|
+
send(data: string | Buffer): void;
|
|
16
|
+
|
|
17
|
+
onopen: ((event: { target: WebSocket }) => void) | null;
|
|
18
|
+
onclose: ((event: { code: number; reason: string; target: WebSocket }) => void) | null;
|
|
19
|
+
onmessage: ((event: { data: unknown; target: WebSocket }) => void) | null;
|
|
20
|
+
onerror: ((event: { error: unknown; target: WebSocket }) => void) | null;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default WebSocket;
|
|
24
|
+
}
|