@usherlabs/cex-broker 0.2.18 → 0.2.20

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/server.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as grpc from "@grpc/grpc-js";
2
2
  import type { BrokerPoolEntry } from "./helpers";
3
+ import type { BrokerExecutionArchiver } from "./helpers/broker-execution-archive";
3
4
  import type { OtelMetrics } from "./helpers/otel";
4
5
  import type { PolicyConfig } from "./types";
5
- export declare function getServer(policy: PolicyConfig, brokers: Record<string, BrokerPoolEntry>, whitelistIps: string[], useVerity: boolean, verityProverUrl: string, otelMetrics?: OtelMetrics): grpc.Server;
6
+ export declare function getServer(policy: PolicyConfig, brokers: Record<string, BrokerPoolEntry>, whitelistIps: string[], useVerity: boolean, verityProverUrl: string, otelMetrics?: OtelMetrics, brokerArchiver?: BrokerExecutionArchiver): grpc.Server;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usherlabs/cex-broker",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Unified gRPC API to CEXs by Usher Labs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,13 @@
35
35
  "build": "bun run proto-gen && bun run ./build.ts && bun run build:ts && bun run copy:dts && bun run copy:proto",
36
36
  "prepack": "bun run build",
37
37
  "start-broker": "bun run ./src/cli.ts",
38
+ "start-archive-forwarder": "bun run services/archive-forwarder/index.ts",
39
+ "start-archive-watch": "bun run examples/archive-watch-subscribe.ts",
40
+ "start-candle-viewer": "bun run research/candle-viewer/server.ts",
41
+ "dev:candle-viewer": "bunx nodemon --watch research/candle-viewer --ext ts,html --signal SIGTERM --exec \"bun run start-candle-viewer\"",
42
+ "dev:archive-forwarder": "bunx nodemon --watch services/archive-forwarder --watch schema/clickhouse --ext ts,sql --signal SIGTERM --exec \"bun run start-archive-forwarder\"",
43
+ "dev:archive-watch": "bunx nodemon --watch examples --watch src/helpers/market-data-archive --watch src/handlers/subscribe --ext ts --signal SIGTERM --exec \"bun run start-archive-watch\"",
44
+ "dev:research": "bun run dev:candle-viewer",
38
45
  "start-broker-server": "bunx nodemon --watch src --watch policy --ext ts,js,json --exec 'bun run start-broker --policy policy/policy.json --port 8086 --whitelistAll'",
39
46
  "start-broker-server-with-verity": "bunx nodemon --watch src --watch policy --ext ts,js,json --exec 'bun run start-broker --policy policy/policy.json --port 8086 --whitelistAll --verityProverUrl http://verity-prover:8080'",
40
47
  "build:ts": "bunx tsc",
@@ -53,6 +60,7 @@
53
60
  "typescript": "^5"
54
61
  },
55
62
  "dependencies": {
63
+ "@clickhouse/client": "^1.22.0",
56
64
  "@grpc/grpc-js": "^1.13.4",
57
65
  "@grpc/proto-loader": "^0.7.15",
58
66
  "@loglayer/plugin-opentelemetry": "^3.0.2",