@silvana-one/orderbook 1.1.14 → 1.1.15
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 +103 -105
- package/dist/node/index.cjs +4 -20
- package/dist/node/news.d.ts +3 -2
- package/dist/node/news.js +1 -5
- package/dist/node/news.js.map +1 -1
- package/dist/node/orderbook.d.ts +3 -2
- package/dist/node/orderbook.js +1 -5
- package/dist/node/orderbook.js.map +1 -1
- package/dist/node/pricing.d.ts +3 -2
- package/dist/node/pricing.js +1 -5
- package/dist/node/pricing.js.map +1 -1
- package/dist/node/settlement.d.ts +3 -2
- package/dist/node/settlement.js +1 -5
- package/dist/node/settlement.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/news.d.ts +3 -2
- package/dist/web/news.js +1 -5
- package/dist/web/news.js.map +1 -1
- package/dist/web/orderbook.d.ts +3 -2
- package/dist/web/orderbook.js +1 -5
- package/dist/web/orderbook.js.map +1 -1
- package/dist/web/pricing.d.ts +3 -2
- package/dist/web/pricing.js +1 -5
- package/dist/web/pricing.js.map +1 -1
- package/dist/web/settlement.d.ts +3 -2
- package/dist/web/settlement.js +1 -5
- package/dist/web/settlement.js.map +1 -1
- package/package.json +14 -3
- package/src/news.ts +4 -8
- package/src/orderbook.ts +4 -8
- package/src/pricing.ts +4 -8
- package/src/settlement.ts +4 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settlement.js","sourceRoot":"","sources":["../../src/settlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"settlement.js","sourceRoot":"","sources":["../../src/settlement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,gEAAgE;AAChE,cAAc,g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AAC,mBAAmB,CAAC,MAIzB;QACC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE;YACpC,MAAM,OAAO,GAAG,MAAM,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC;YACjE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC,EAAE,qBAAqB,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,mBAAmB,CAAC,MAGzB;QACC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE;YACpC,MAAM,OAAO,GAAG,MAAM,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC;YACjE,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC,EAAE,qBAAqB,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,qBAAqB,CAAC,MAG3B;QACC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE;YACpC,MAAM,OAAO,GAAG,MAAM,CAAC,kCAAkC,EAAE,MAAM,CAAC,CAAC;YACnE,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QACnD,CAAC,EAAE,uBAAuB,CAAC,CAAC;IAC9B,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silvana-one/orderbook",
|
|
3
3
|
"description": "Silvana Orderbook Client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.15",
|
|
5
5
|
"author": "DFST",
|
|
6
6
|
"bugs": "https://github.com/SilvanaOne/silvana-lib/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@bufbuild/protobuf": "^2.10.1",
|
|
9
|
-
"@connectrpc/connect": "^2.1.1"
|
|
10
|
-
|
|
9
|
+
"@connectrpc/connect": "^2.1.1"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"@connectrpc/connect-node": "^2.1.1",
|
|
13
|
+
"@connectrpc/connect-web": "^2.1.1"
|
|
14
|
+
},
|
|
15
|
+
"peerDependenciesMeta": {
|
|
16
|
+
"@connectrpc/connect-node": {
|
|
17
|
+
"optional": true
|
|
18
|
+
},
|
|
19
|
+
"@connectrpc/connect-web": {
|
|
20
|
+
"optional": true
|
|
21
|
+
}
|
|
11
22
|
},
|
|
12
23
|
"devDependencies": {
|
|
13
24
|
"@noble/ed25519": "^3.0.0",
|
package/src/news.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createGrpcTransport } from "@connectrpc/connect-node";
|
|
2
1
|
import { createClient, ConnectError } from "@connectrpc/connect";
|
|
2
|
+
import type { Transport } from "@connectrpc/connect";
|
|
3
3
|
import { create } from "@bufbuild/protobuf";
|
|
4
4
|
|
|
5
5
|
// Export all types and schemas from the generated protobuf file
|
|
@@ -30,8 +30,8 @@ export class NewsError extends Error {
|
|
|
30
30
|
* News client configuration
|
|
31
31
|
*/
|
|
32
32
|
export interface NewsClientConfig {
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/** Transport instance (create with @connectrpc/connect-node or @connectrpc/connect-web) */
|
|
34
|
+
transport: Transport;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -45,11 +45,7 @@ export class NewsClient {
|
|
|
45
45
|
* @param config Client configuration
|
|
46
46
|
*/
|
|
47
47
|
constructor(config: NewsClientConfig) {
|
|
48
|
-
|
|
49
|
-
baseUrl: config.baseUrl,
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
this.client = createClient(NewsService, transport);
|
|
48
|
+
this.client = createClient(NewsService, config.transport);
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
/**
|
package/src/orderbook.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createGrpcTransport } from "@connectrpc/connect-node";
|
|
2
1
|
import { createClient, ConnectError } from "@connectrpc/connect";
|
|
2
|
+
import type { Transport } from "@connectrpc/connect";
|
|
3
3
|
import { create } from "@bufbuild/protobuf";
|
|
4
4
|
import { TimestampSchema } from "@bufbuild/protobuf/wkt";
|
|
5
5
|
|
|
@@ -87,8 +87,8 @@ export class OrderbookError extends Error {
|
|
|
87
87
|
* Orderbook client configuration
|
|
88
88
|
*/
|
|
89
89
|
export interface OrderbookClientConfig {
|
|
90
|
-
/**
|
|
91
|
-
|
|
90
|
+
/** Transport instance (create with @connectrpc/connect-node or @connectrpc/connect-web) */
|
|
91
|
+
transport: Transport;
|
|
92
92
|
/** JWT token for authentication */
|
|
93
93
|
token: string;
|
|
94
94
|
}
|
|
@@ -105,11 +105,7 @@ export class OrderbookClient {
|
|
|
105
105
|
* @param config Client configuration
|
|
106
106
|
*/
|
|
107
107
|
constructor(config: OrderbookClientConfig) {
|
|
108
|
-
|
|
109
|
-
baseUrl: config.baseUrl,
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
this.client = createClient(OrderbookService, transport);
|
|
108
|
+
this.client = createClient(OrderbookService, config.transport);
|
|
113
109
|
this.token = config.token;
|
|
114
110
|
}
|
|
115
111
|
|
package/src/pricing.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createGrpcTransport } from "@connectrpc/connect-node";
|
|
2
1
|
import { createClient, ConnectError } from "@connectrpc/connect";
|
|
2
|
+
import type { Transport } from "@connectrpc/connect";
|
|
3
3
|
import { create } from "@bufbuild/protobuf";
|
|
4
4
|
import { TimestampSchema } from "@bufbuild/protobuf/wkt";
|
|
5
5
|
|
|
@@ -48,8 +48,8 @@ export class PricingError extends Error {
|
|
|
48
48
|
* Pricing client configuration
|
|
49
49
|
*/
|
|
50
50
|
export interface PricingClientConfig {
|
|
51
|
-
/**
|
|
52
|
-
|
|
51
|
+
/** Transport instance (create with @connectrpc/connect-node or @connectrpc/connect-web) */
|
|
52
|
+
transport: Transport;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -63,11 +63,7 @@ export class PricingClient {
|
|
|
63
63
|
* @param config Client configuration
|
|
64
64
|
*/
|
|
65
65
|
constructor(config: PricingClientConfig) {
|
|
66
|
-
|
|
67
|
-
baseUrl: config.baseUrl,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
this.client = createClient(PricingService, transport);
|
|
66
|
+
this.client = createClient(PricingService, config.transport);
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
/**
|
package/src/settlement.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createGrpcTransport } from "@connectrpc/connect-node";
|
|
2
1
|
import { createClient, ConnectError } from "@connectrpc/connect";
|
|
2
|
+
import type { Transport } from "@connectrpc/connect";
|
|
3
3
|
import { create } from "@bufbuild/protobuf";
|
|
4
4
|
|
|
5
5
|
// Export all types and schemas from the generated protobuf file
|
|
@@ -36,8 +36,8 @@ export class SettlementError extends Error {
|
|
|
36
36
|
* Settlement client configuration
|
|
37
37
|
*/
|
|
38
38
|
export interface SettlementClientConfig {
|
|
39
|
-
/**
|
|
40
|
-
|
|
39
|
+
/** Transport instance (create with @connectrpc/connect-node or @connectrpc/connect-web) */
|
|
40
|
+
transport: Transport;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -51,11 +51,7 @@ export class SettlementClient {
|
|
|
51
51
|
* @param config Client configuration
|
|
52
52
|
*/
|
|
53
53
|
constructor(config: SettlementClientConfig) {
|
|
54
|
-
|
|
55
|
-
baseUrl: config.baseUrl,
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
this.client = createClient(SettlementService, transport);
|
|
54
|
+
this.client = createClient(SettlementService, config.transport);
|
|
59
55
|
}
|
|
60
56
|
|
|
61
57
|
/**
|