@temple-digital-group/temple-canton-js 2.0.2 → 2.0.3-beta.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/README.md +457 -457
- package/index.js +15 -15
- package/package.json +49 -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 +3472 -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/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Export Canton client functions
|
|
2
|
-
export * from './src/canton/index.js';
|
|
3
|
-
|
|
4
|
-
// Export Auth0 utilities
|
|
5
|
-
export { getJWTToken } from './src/auth0/index.js';
|
|
6
|
-
|
|
7
|
-
// Export configuration
|
|
8
|
-
export * from './src/config/index.js';
|
|
9
|
-
|
|
10
|
-
// Export Temple REST API functions
|
|
11
|
-
export * from './dist/api/index.js';
|
|
12
|
-
|
|
13
|
-
// Export WebSocket client
|
|
14
|
-
export * from './dist/websocket/index.js';
|
|
15
|
-
|
|
1
|
+
// Export Canton client functions
|
|
2
|
+
export * from './src/canton/index.js';
|
|
3
|
+
|
|
4
|
+
// Export Auth0 utilities
|
|
5
|
+
export { getJWTToken } from './src/auth0/index.js';
|
|
6
|
+
|
|
7
|
+
// Export configuration
|
|
8
|
+
export * from './src/config/index.js';
|
|
9
|
+
|
|
10
|
+
// Export Temple REST API functions
|
|
11
|
+
export * from './dist/api/index.js';
|
|
12
|
+
|
|
13
|
+
// Export WebSocket client
|
|
14
|
+
export * from './dist/websocket/index.js';
|
|
15
|
+
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@temple-digital-group/temple-canton-js",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "JavaScript library for interacting with Temple Canton blockchain",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"index.js",
|
|
12
|
-
"src/",
|
|
13
|
-
"dist/"
|
|
14
|
-
],
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/Temple-Digital-Group/temple-canton-js.git"
|
|
18
|
-
},
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
|
-
"author": "kakashigr <augegr@gmail.com>",
|
|
23
|
-
"keywords": [
|
|
24
|
-
"canton",
|
|
25
|
-
"blockchain",
|
|
26
|
-
"daml",
|
|
27
|
-
"splice",
|
|
28
|
-
"amulet",
|
|
29
|
-
"ledger",
|
|
30
|
-
"trading",
|
|
31
|
-
"temple"
|
|
32
|
-
],
|
|
33
|
-
"license": "MIT",
|
|
34
|
-
"scripts": {
|
|
35
|
-
"start": "node index.js",
|
|
36
|
-
"build": "tsc",
|
|
37
|
-
"prepublishOnly": "npm run build"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"axios": "^1.13.1",
|
|
41
|
-
"dotenv": "^17.2.3",
|
|
42
|
-
"ws": "^8.19.0"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/node": "^25.3.3",
|
|
46
|
-
"@types/ws": "^8.18.0",
|
|
47
|
-
"typescript": "^5.9.3"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@temple-digital-group/temple-canton-js",
|
|
3
|
+
"version": "2.0.3-beta.0",
|
|
4
|
+
"description": "JavaScript library for interacting with Temple Canton blockchain",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.js",
|
|
12
|
+
"src/",
|
|
13
|
+
"dist/"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/Temple-Digital-Group/temple-canton-js.git"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"author": "kakashigr <augegr@gmail.com>",
|
|
23
|
+
"keywords": [
|
|
24
|
+
"canton",
|
|
25
|
+
"blockchain",
|
|
26
|
+
"daml",
|
|
27
|
+
"splice",
|
|
28
|
+
"amulet",
|
|
29
|
+
"ledger",
|
|
30
|
+
"trading",
|
|
31
|
+
"temple"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"scripts": {
|
|
35
|
+
"start": "node index.js",
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"prepublishOnly": "npm run build"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"axios": "^1.13.1",
|
|
41
|
+
"dotenv": "^17.2.3",
|
|
42
|
+
"ws": "^8.19.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^25.3.3",
|
|
46
|
+
"@types/ws": "^8.18.0",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/src/api/config.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
declare module "../../src/config/index.js" {
|
|
2
|
-
const config: {
|
|
3
|
-
readonly API_BASE_URL: string;
|
|
4
|
-
readonly API_EMAIL?: string;
|
|
5
|
-
readonly API_PASSWORD?: string;
|
|
6
|
-
readonly API_KEY?: string;
|
|
7
|
-
readonly NETWORK: string;
|
|
8
|
-
readonly VALIDATOR_API_URL: string;
|
|
9
|
-
readonly VALIDATOR_SCAN_API_URL: string;
|
|
10
|
-
readonly JWT_TOKEN: string;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
export default config;
|
|
14
|
-
export function initializeConfig(config: Record<string, unknown>): void;
|
|
15
|
-
export function setJWTToken(token: string): void;
|
|
16
|
-
export function getConfigValue(key: string): string | undefined;
|
|
17
|
-
export function setWalletAdapter(adapter: unknown): void;
|
|
18
|
-
export function getWalletAdapter(): unknown;
|
|
19
|
-
export function getAdapterProvider(): unknown;
|
|
20
|
-
}
|
|
1
|
+
declare module "../../src/config/index.js" {
|
|
2
|
+
const config: {
|
|
3
|
+
readonly API_BASE_URL: string;
|
|
4
|
+
readonly API_EMAIL?: string;
|
|
5
|
+
readonly API_PASSWORD?: string;
|
|
6
|
+
readonly API_KEY?: string;
|
|
7
|
+
readonly NETWORK: string;
|
|
8
|
+
readonly VALIDATOR_API_URL: string;
|
|
9
|
+
readonly VALIDATOR_SCAN_API_URL: string;
|
|
10
|
+
readonly JWT_TOKEN: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export default config;
|
|
14
|
+
export function initializeConfig(config: Record<string, unknown>): void;
|
|
15
|
+
export function setJWTToken(token: string): void;
|
|
16
|
+
export function getConfigValue(key: string): string | undefined;
|
|
17
|
+
export function setWalletAdapter(adapter: unknown): void;
|
|
18
|
+
export function getWalletAdapter(): unknown;
|
|
19
|
+
export function getAdapterProvider(): unknown;
|
|
20
|
+
}
|