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