Skip to content

Commit

Permalink
Working receive
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jan 22, 2025
1 parent 2baf6df commit 80477f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lazer/sdk/js/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { PythLazerClient } from "../src/index.js";

// Ignore debug messages
console.debug = () => {};
console.debug = () => { };

Check failure on line 7 in lazer/sdk/js/examples/index.ts

View workflow job for this annotation

GitHub Actions / test

Do not add spaces between braces

const client = await PythLazerClient.create(
["wss://pyth-lazer.dourolabs.app/v1/stream"],
Expand Down Expand Up @@ -62,7 +62,7 @@ await client.subscribe({
type: "subscribe",
subscriptionId: 2,
priceFeedIds: [1, 2, 3, 4, 5],
properties: ["price"],
properties: ["price", "exponent", "publisherCount"],
chains: ["evm"],
deliveryFormat: "json",
channel: "fixed_rate@200ms",
Expand Down
4 changes: 2 additions & 2 deletions lazer/sdk/js/src/protocol.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type Chain = "evm" | "solana";
export type DeliveryFormat = "json" | "binary";
export type JsonBinaryEncoding = "base64" | "hex";
export type PriceFeedProperty = "price" | "bestBidPrice" | "bestAskPrice";
export type PriceFeedProperty = "price" | "bestBidPrice" | "bestAskPrice" | "exponent" | "publisherCount";
export type Channel = "real_time" | "fixed_rate@50ms" | "fixed_rate@200ms";

export type Request =
Expand All @@ -26,7 +26,7 @@ export type ParsedFeedPayload = {
price?: string | undefined;
bestBidPrice?: string | undefined;
bestAskPrice?: string | undefined;
publisher_count?: number | undefined;
publisherCount?: number | undefined;
exponent?: number | undefined;
};

Expand Down

0 comments on commit 80477f0

Please sign in to comment.