From c86711fde043126254448a482746467607022a94 Mon Sep 17 00:00:00 2001 From: Aditya Arora Date: Wed, 15 Jan 2025 08:33:36 -0500 Subject: [PATCH 1/3] fix(lazer) fix docs --- pages/lazer/_meta.json | 2 +- pages/lazer/integrate-as-consumer/evm.mdx | 8 -------- pages/lazer/integrate-as-consumer/svm.mdx | 8 -------- pages/lazer/{price-feeds-ids.mdx => price-feed-ids.mdx} | 0 pages/lazer/subscribe-price-updates.mdx | 2 +- 5 files changed, 2 insertions(+), 18 deletions(-) rename pages/lazer/{price-feeds-ids.mdx => price-feed-ids.mdx} (100%) diff --git a/pages/lazer/_meta.json b/pages/lazer/_meta.json index 5c98e5e7..d913535e 100644 --- a/pages/lazer/_meta.json +++ b/pages/lazer/_meta.json @@ -24,7 +24,7 @@ "title": "Reference Material", "type": "separator" }, - "price-feeds-ids": "Price Feed IDs", + "price-feed-ids": "Price Feed IDs", "websocket-api-reference": { "title": "Websocket API Reference ↗", diff --git a/pages/lazer/integrate-as-consumer/evm.mdx b/pages/lazer/integrate-as-consumer/evm.mdx index 77626091..d2adcf84 100644 --- a/pages/lazer/integrate-as-consumer/evm.mdx +++ b/pages/lazer/integrate-as-consumer/evm.mdx @@ -150,11 +150,3 @@ Pyth Lazer supports a wide range of price feeds. Consult the [Price Feed IDs](.. [Pyth-lazer-example-evm](https://github.com/pyth-network/pyth-examples/tree/main/lazer/evm) is a simple example contract that parses and consumes price updates from Pyth Lazer. [pyth-lazer-example-js](https://github.com/pyth-network/pyth-examples/tree/main/lazer/js) is a simple example for subscribing to the Pyth Lazer websocket. - -### API Reference - -TODO: - -### Error Codes - -TODO: Add error codes for EVM. diff --git a/pages/lazer/integrate-as-consumer/svm.mdx b/pages/lazer/integrate-as-consumer/svm.mdx index b103768e..4b5eb74a 100644 --- a/pages/lazer/integrate-as-consumer/svm.mdx +++ b/pages/lazer/integrate-as-consumer/svm.mdx @@ -186,11 +186,3 @@ Pyth Lazer supports a wide range of price feeds. Consult the [Price Feed IDs](.. [pyth-lazer-example-solana](https://github.com/pyth-network/pyth-examples/tree/main/lazer/solana) is a simple example contract that parses and consumes price updates from Pyth Lazer. [pyth-lazer-example-js](https://github.com/pyth-network/pyth-examples/tree/main/lazer/js) is a simple example for subscribing to the Pyth Lazer websocket. - -### API Reference - -TODO: - -### Error Codes - -TODO: Add error codes for Solana. diff --git a/pages/lazer/price-feeds-ids.mdx b/pages/lazer/price-feed-ids.mdx similarity index 100% rename from pages/lazer/price-feeds-ids.mdx rename to pages/lazer/price-feed-ids.mdx diff --git a/pages/lazer/subscribe-price-updates.mdx b/pages/lazer/subscribe-price-updates.mdx index 6c1633c9..65632852 100644 --- a/pages/lazer/subscribe-price-updates.mdx +++ b/pages/lazer/subscribe-price-updates.mdx @@ -38,7 +38,7 @@ client.send({ Here: - `subscriptionId` is an arbitrary numeric identifier one can choose for a subscription. It will be returned back in response by the server. It doesn not affect the signed payload. -- `priceFeedIds` is the list of price feeds one like to receive. Data for all price feeds will be present in the signed price updates generated. Refer to the [Price Feed IDs list](../price-feeds-ids.mdx) for the supported price feeds. +- `priceFeedIds` is the list of price feeds one like to receive. Data for all price feeds will be present in the signed price updates generated. Refer to the [Price Feed IDs list](./price-feed-ids.mdx) for the supported price feeds. - `properties` is the list of properties one can request, such as **price**, **bestBidPrice**, **bestAskPrice**, etc. - `chains` is the list of chains for which one need a signed payload, such as **evm**, **solana**, etc. - `channel` allows to configure the update rate: updates in the **real_time** channel are sent as frequently as possible, while **fixed_rate@200ms** and **fixed_rate@50ms** channels are updated at fixed rates. From e6474fa19e78721f8e8243023deb4d1ec2fff5c8 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Wed, 15 Jan 2025 14:35:22 +0100 Subject: [PATCH 2/3] use main lazer --- components/LazerPriceIdTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/LazerPriceIdTable.tsx b/components/LazerPriceIdTable.tsx index 8d8f0110..f8c937ca 100644 --- a/components/LazerPriceIdTable.tsx +++ b/components/LazerPriceIdTable.tsx @@ -3,7 +3,7 @@ import { StyledTd } from "./Table"; import { Spinner } from "./Spinner"; const fetchLazerPriceIdMetadata = async () => { const response = await fetch( - "https://pyth-lazer-staging.dourolabs.app/history/v1/symbols" + "https://pyth-lazer.dourolabs.app/history/v1/symbols" ); const data = await response.json(); return data; From 6989a61d5716c61c8778b2ad3032719cc805f264 Mon Sep 17 00:00:00 2001 From: Aditya Arora Date: Wed, 15 Jan 2025 08:48:17 -0500 Subject: [PATCH 3/3] update --- components/LazerPriceIdTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/LazerPriceIdTable.tsx b/components/LazerPriceIdTable.tsx index f8c937ca..ad8214d7 100644 --- a/components/LazerPriceIdTable.tsx +++ b/components/LazerPriceIdTable.tsx @@ -3,7 +3,7 @@ import { StyledTd } from "./Table"; import { Spinner } from "./Spinner"; const fetchLazerPriceIdMetadata = async () => { const response = await fetch( - "https://pyth-lazer.dourolabs.app/history/v1/symbols" + "https://history.pyth-lazer.dourolabs.app/history/v1/symbols" ); const data = await response.json(); return data;