@usherlabs/cex-broker 0.1.20 → 0.2.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 +80 -32
- package/dist/commands/cli.js +22092 -193
- package/dist/index.d.ts +6 -1
- package/dist/index.js +11572 -193
- package/dist/index.js.map +220 -11
- package/dist/proto/node.descriptor.ts +2 -1
- package/dist/proto/node.proto +1 -0
- package/dist/server.d.ts +2 -1
- package/dist/types.d.ts +5 -25
- package/package.json +18 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { type OtelConfig } from "./helpers/otel";
|
|
1
2
|
import { type ExchangeCredentials, type PolicyConfig } from "./types";
|
|
3
|
+
export type { PolicyConfig } from "./types";
|
|
2
4
|
export default class CEXBroker {
|
|
3
5
|
#private;
|
|
4
6
|
port: number;
|
|
@@ -7,6 +9,8 @@ export default class CEXBroker {
|
|
|
7
9
|
private whitelistIps;
|
|
8
10
|
private server;
|
|
9
11
|
private useVerity;
|
|
12
|
+
private otelMetrics?;
|
|
13
|
+
private otelLogs?;
|
|
10
14
|
/**
|
|
11
15
|
* Loads environment variables prefixed with CEX_BROKER_
|
|
12
16
|
* Expected format:
|
|
@@ -23,6 +27,7 @@ export default class CEXBroker {
|
|
|
23
27
|
whitelistIps?: string[];
|
|
24
28
|
useVerity?: boolean;
|
|
25
29
|
verityProverUrl?: string;
|
|
30
|
+
otelConfig?: OtelConfig;
|
|
26
31
|
});
|
|
27
32
|
/**
|
|
28
33
|
* Watches the policy JSON file for changes, reloads policies, and reruns broker.
|
|
@@ -32,7 +37,7 @@ export default class CEXBroker {
|
|
|
32
37
|
/**
|
|
33
38
|
* Stops Server and Stop watching the policy file, if applicable.
|
|
34
39
|
*/
|
|
35
|
-
stop(): void
|
|
40
|
+
stop(): Promise<void>;
|
|
36
41
|
/**
|
|
37
42
|
* Starts the broker, applying policies then running appropriate tasks.
|
|
38
43
|
*/
|