Skip to content

Commit ce3f727

Browse files
committed
lazer -> pro
1 parent edd2340 commit ce3f727

14 files changed

+109
-99
lines changed

components/LazerPriceIdTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const LoadedLazerPriceIdTable = ({
8484
<div>
8585
<input
8686
type="text"
87-
placeholder="Search by symbol, name, description, or pyth lazer id..."
87+
placeholder="Search by symbol, name, description, or pyth pro id..."
8888
value={search}
8989
onChange={updateSearch}
9090
className="w-full p-2 mb-4 border border-gray-300 rounded-md"
@@ -96,7 +96,7 @@ const LoadedLazerPriceIdTable = ({
9696
<th>Description</th>
9797
<th>Name</th>
9898
<th>Symbol</th>
99-
<th>Pyth Lazer Id</th>
99+
<th>Pyth Pro Id</th>
100100
<th>Exponent</th>
101101
</tr>
102102
</thead>

pages/price-feeds/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"title": "Introduction"
88
},
99
"pro": {
10-
"title": "Price Feeds Pro →",
10+
"title": "Pyth Pro →",
1111
"href": "/price-feeds/pro"
1212
},
1313
"core": {
14-
"title": "Price Feeds Core →",
14+
"title": "Pyth Core →",
1515
"href": "/price-feeds/core"
1616
}
1717
}

pages/price-feeds/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Pyth offers two main versions of price feeds, each optimized for different use c
2424
badge="Pro"
2525
badgeColor="bg-blue-600"
2626
icon={<LightningIcon />}
27-
title="Price Feeds Pro"
27+
title="Pyth Pro"
2828
description={<>Next-generation price feeds with ultra-low latency, equities and more. <br /><strong>Previously known as Lazer.</strong></>}
2929
features={[
3030
{ icon: <LightningIcon />, text: "Ultra-low latency" },
@@ -47,7 +47,7 @@ Pyth offers two main versions of price feeds, each optimized for different use c
4747
badge="Core"
4848
badgeColor="bg-green-600"
4949
icon={<BarChartIcon />}
50-
title="Price Feeds Core"
50+
title="Pyth Core"
5151
description="The original Pyth price feeds - stable, secure, and decentralized price data for broad DeFi applications."
5252
features={[
5353
{ icon: <ClockIcon />, text: "400ms update frequency" },

pages/price-feeds/pro/_meta.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"-- Lazer": {
3-
"title": "Lazer",
4-
"type": "separator"
5-
},
62
"index": "Introduction",
73
"getting-started": "Getting Started",
84

@@ -12,7 +8,7 @@
128
},
139

1410
"acquire-access-token": "Acquire an Access Token",
15-
"subscribe-price-updates": "Subscribe to Price Updates",
11+
"subscribe-price-updates": "Subscribe to Prices",
1612
"integrate-as-consumer": "Integrate as a Consumer",
1713
"integrate-as-publisher": "Integrate as a Publisher",
1814

@@ -33,10 +29,10 @@
3329
"href": "https://github.com/pyth-network/pyth-examples/tree/main/lazer",
3430
"newWindow": true
3531
},
36-
"-- Understand Lazer": {
37-
"title": "Understanding Lazer",
32+
"-- Understand Pyth Pro": {
33+
"title": "Understanding Pyth Pro",
3834
"type": "separator"
3935
},
4036

41-
"how-lazer-works": "How Lazer Works"
37+
"how-lazer-works": "How Pyth Pro Works"
4238
}

pages/price-feeds/pro/acquire-access-token.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { Callout } from "nextra/components";
22

33
# Acquire an Access Token
44

5-
This guide explains how to acquire an access token for Pyth Lazer, which is required to authenticate websocket connections and subscribe to price updates.
5+
This guide explains how to acquire an access token for Pyth Pro, which is required to authenticate websocket connections and subscribe to price updates.
66

77
## Request Access Token
88

99
Please fill out [this form](https://tally.so/r/nP2lG5) to contact the Pyth team and get the access token.
1010

1111
<Callout type="info">
12-
Access tokens are required for all Pyth Lazer websocket connections. Make sure
12+
Access tokens are required for all Pyth Pro websocket connections. Make sure
1313
to keep your token secure and do not share it publicly.
1414
</Callout>
1515

@@ -30,4 +30,4 @@ const client = await PythLazerClient.create(
3030

3131
## Next Steps
3232

33-
After acquiring your access token, you can proceed to [subscribe to price updates](./subscribe-price-updates.mdx) using the Pyth Lazer websocket API.
33+
After acquiring your access token, you can proceed to [subscribe to price updates](./subscribe-price-updates.mdx) using the Pyth Pro websocket API.

pages/price-feeds/pro/getting-started.mdx

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Callout, Steps } from "nextra/components";
22

3-
# Getting Started with Pyth Lazer
3+
# Getting Started with Pyth Pro
44

5-
Pyth Lazer is a high-performance, low-latency service that provides real-time financial market data.
6-
This guide will walk you through setting up and running a basic JavaScript example to subscribe to Lazer price feeds.
5+
Pyth Pro is a high-performance, low-latency service that provides real-time financial market data.
6+
This guide will walk you through setting up and running a basic JavaScript example to subscribe to Pyth Pro price feeds.
77

88
## Prerequisites
99

@@ -12,7 +12,7 @@ Before getting started, make sure you have the following installed:
1212
- **Node.js** (version 18 or higher)
1313
- **pnpm** package manager
1414
- **Git** for cloning the examples repository
15-
- A **Lazer Access Token** - see [How to Acquire an Access Token](./acquire-access-token) if you don't have one
15+
- A **Pyth Pro Access Token** - see [How to Acquire an Access Token](./acquire-access-token) if you don't have one
1616

1717
<Steps>
1818

@@ -33,35 +33,39 @@ Install the required dependencies using pnpm:
3333
pnpm install
3434
```
3535

36-
This will install `@pythnetwork/pyth-lazer-sdk`, which is the main Lazer SDK.
36+
This will install `@pythnetwork/pyth-lazer-sdk`, which will be used to subscribe to Pyth Pro prices.
37+
38+
<Callout type="info">
39+
**Pyth Pro was previously known as Pyth Lazer**. The SDK remains the same.
40+
</Callout>
3741

3842
### Configure Your Access Token
3943

40-
Set your Lazer access token as an environment variable:
44+
Set your Pyth Pro access token as an environment variable:
4145

4246
```bash copy
4347
export ACCESS_TOKEN=your_actual_token_here
4448
```
4549

4650
<Callout type="warning" emoji="⚠️">
47-
Replace `your_actual_token_here` with your actual Lazer access token. If you
51+
Replace `your_actual_token_here` with your actual PythPro access token. If you
4852
don't have one, follow the [access token guide](./acquire-access-token) to
4953
obtain it.
5054
</Callout>
5155

5256
### Run the Basic WebSocket Example
5357

54-
Now you can run the basic example that demonstrates connecting to Lazer and receiving price updates:
58+
Now you can run the basic example that demonstrates connecting to Pyth Pro and receiving price updates:
5559

5660
```bash copy
5761
pnpm run start
5862
```
5963

60-
This command will subscribe to Pyth Lazer updates for two price feeds, receiving streaming updates.
64+
This command will subscribe to Pyth Pro updates for two price feeds, receiving streaming updates.
6165
Each update is then printed to the terminal on receipt.
6266
You should see output similar to the following:
6367

64-
```
68+
```bash
6569
got message: {
6670
type: 'json',
6771
value: {
@@ -98,7 +102,7 @@ stream updated for subscription 1 : [
98102
99103
### Understanding the Code
100104
101-
The main example code in `src/index.ts` demonstrates the core Lazer integration pattern:
105+
The main example code in `src/index.ts` demonstrates the core Pyth Pro integration pattern:
102106
103107
```typescript
104108
import { PythLazerClient } from "@pythnetwork/pyth-lazer-sdk";
@@ -127,25 +131,27 @@ client.subscribe({
127131
});
128132
```
129133
134+
NOTE: Every property passed to `client.subscribe` are explained in the [API Reference](./websocket-api-reference).
135+
130136
</Steps>
131137
132138
## What's Next?
133139
134-
Now that you've successfully run the basic Lazer example, you can explore more advanced integration patterns:
140+
Now that you've successfully run the basic Pyth Pro example, you can explore more advanced integration patterns:
135141
136142
### More Information
137143
138-
Explore additional Lazer capabilities:
144+
Explore additional Pyth Pro capabilities:
139145
140146
- **[Subscribe to Price Updates](./subscribe-price-updates)** - Detailed guide on WebSocket subscriptions and message handling
141147
- **[Price Feed IDs](./price-feed-ids)** - Complete list of available price feeds and their identifiers
142148
143149
### Blockchain Integration
144150
145-
Learn how to integrate Lazer price feeds into your smart contracts:
151+
Learn how to integrate Pyth Pro price feeds into your smart contracts:
146152
147-
- **[Solana Integration](./integrate-as-consumer/svm)** - Build SVM smart contracts that consume Lazer price feeds with cryptographic verification
148-
- **[EVM Integration](./integrate-as-consumer/evm)** - Integrate Lazer into Ethereum and other EVM-compatible chains
153+
- **[Solana Integration](./integrate-as-consumer/svm)** - Build SVM smart contracts that consume Pyth Pro price feeds with cryptographic verification
154+
- **[EVM Integration](./integrate-as-consumer/evm)** - Integrate Pyth Pro into Ethereum and other EVM-compatible chains
149155
150156
### Example Applications
151157
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# How Pyth Lazer works
1+
# How Pyth Pro works
22

3-
Pyth Lazer is a permissioned service that provides ultra-low-latency price and market data to highly latency-sensitive users.
3+
Pyth Pro uses the same infrastructure as Pyth Lazer.
4+
It is a permissioned service that provides ultra-low-latency price and market data to highly latency-sensitive users.
45

5-
We are working on writing a detailed technical overview how Lazer works. Details will be added here as they are completed.
6+
We are working on writing a detailed technical overview how Pyth Pro infrastructure works. Details will be added here as they are completed.

pages/price-feeds/pro/index.mdx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import Image from "next/image";
1+
import { Callout } from "nextra/components";
2+
import { Cards, Card } from 'nextra/components';
3+
import { KeyIcon, LightningIcon, BarChartIcon } from "../../../components/icons/ProductIcons";
24

3-
# Pyth Lazer
5+
# Pyth Pro
46

5-
Pyth Lazer is a low latency, highly customizable price oracle.
7+
<Callout type="info">
8+
Pyth Pro was previously known as Pyth Lazer.
9+
</Callout>
10+
11+
Pyth Pro is a low latency, highly customizable price service directly sourced from first-party providers.
612
It offers a customizable set of price feeds, target chains (EVM or Solana) and channels (real time or fixed rate):
713

8-
- Real time channels send updates as frequently as they become available;
9-
- Fixed rate channels send updates at fixed time intervals (you can choose between 50 ms or 200 ms).
14+
---
1015

11-
The table below shows the difference between Pyth Core and Pyth Lazer:
1216

13-
| | **Pyth Core** | **Pyth Lazer** |
14-
| ----------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
15-
| **Solution Type** | Stable, secure, and decentralized price data source for a broad spectrum of DeFi or TradFi applications. | **Permissioned** service focused on **ultra-low-latency** price and market data for highly latency-sensitive users. |
16-
| **Frequency** | 400ms on Pythnet appchain with support for risk mitigation via Benchmarks and confidence intervals. | **1ms** (**real-time**), 50ms, and 200ms channels, **customizable** frequencies, and throttling support to address different needs. |
17-
| **Data Types** | Aggregate price and confidence intervals. | Aggregate price, bid/ask price, and **customizable** market data (market depth and more). |
18-
| **Fees** | On-chain fee per signed cross-chain price update. | On-chain fee per signed cross-chain price update. |
19-
| **Update Costs** | >1,000-byte proofs and complex signature verification. | **100-byte proofs** and simple signature verification. |
20-
| **Integration Process** | Open and permissionless integration for any Web3 or Web2 protocol. | **Specialized** and **permissioned** solution for protocols prioritizing performance over some elements of decentralization. |
17+
<Cards>
18+
<Card icon={<KeyIcon />} title="Get your access token" href="./getting-started" />
19+
<Card icon={<LightningIcon />} title="Subscribe to prices" href="./subscribe-price-updates" />
20+
<Card icon={<BarChartIcon />} title="Pricing" href="./pricing" />
21+
</Cards>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# How to Integrate Pyth Lazer as a Consumer
1+
# How to verify Price Updates as a Consumer on Blockchain
22

3-
The following guides demonstrate how to integrate Pyth Lazer as a consumer in your application.
3+
The following guides demonstrate how to verify price updates as a consumer on blockchain.
44

5-
Lazer is available in Solana, Fogo, and EVM. Please consult the following guides to get started:
5+
Pyth Pro price updates can be verified on Solana, Fogo, and EVM chains. Please consult the following guides to get started:
66

77
- [Solana and Fogo](integrate-as-consumer/svm)
88
- [EVM](integrate-as-consumer/evm)
99

10-
Lazer price feeds can also be used in off-chain applications. See the
10+
Pyth Pro price updates can also be used in off-chain applications. See the
1111
[subscription guide](subscribe-price-updates) and the [Terms of Service](https://bafybeih2re4eaun3nzt5dyyc2bnjprw44kligacriftm24dfrjfik4ocv4.ipfs.w3s.link/250129-terms-of-service-pyth-lazer-final.pdf) for more information.

pages/price-feeds/pro/integrate-as-consumer/evm.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import { Callout, Tabs, Steps } from "nextra/components";
22

3-
# Integrate Pyth Lazer as a Consumer on EVM chains
3+
# Integrate as a Consumer on EVM chains
44

5-
This guide is intended to serve users who wants to consume prices from the Pyth Lazer on **EVM chains**.
5+
This guide is intended to serve users who wants to consume prices from the Pyth Pro on **EVM chains**.
66

7-
Integrating with Pyth Lazer in smart contracts as a consumer is a three-step process:
7+
Integrating with Pyth Pro in smart contracts as a consumer is a three-step process:
88

99
1. **Use** Pyth Lazer SDK in EVM smart contracts to parse the price updates.
10-
2. **Subscribe** to Pyth Lazer websocket to receive price updates on backend or frontend.
10+
2. **Subscribe** to Pyth Pro websocket to receive price updates on backend or frontend.
1111
3. **Include** the price updates into the smart contract transactions.
1212

1313
<Steps>
1414

1515
### Use Pyth Lazer SDK in smart contracts
1616

17-
Pyth Lazer provides a [Solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
17+
Pyth Pro provides a [Solidity SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/contracts/evm), which allows consumers to parse the price updates.
1818

1919
```bash copy
2020
forge install pyth-network/pyth-crosschain
@@ -52,7 +52,7 @@ contract ExampleConsumer {
5252
5353
```
5454

55-
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the Pyth Lazer price udpate:
55+
Add an argument of type `bytes calldata{:solidity}` to the method which will receive the price udpate:
5656

5757
```solidity copy
5858
function updatePrice(bytes calldata priceUpdate) public payable {
@@ -125,11 +125,11 @@ for (uint8 i = 0; i < feedsLen; i++) {
125125
price updates via WebSocket. This will be explained in the next step.
126126
</Callout>
127127

128-
### Subscribe to Pyth Lazer to receive Price Updates
128+
### Subscribe to Pyth Pro to receive Price Updates
129129

130-
Pyth Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
130+
Pyth Pro/Lazer provides a websocket endpoint to receive price updates. Moreover, Pyth Pro/Lazer also provides a [Typescript SDK](https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js) to subscribe to the websocket endpoint.
131131

132-
Consult [How to subscribe to price updates from Pyth Lazer](../subscribe-price-updates.mdx) for a complete step-by-step guide.
132+
Consult [How to subscribe to price updates](../subscribe-price-updates.mdx) for a complete step-by-step guide.
133133

134134
### Include the price updates into smart contract transactions
135135

@@ -139,14 +139,14 @@ Now that you have the price updates, and your smart contract is able to parse th
139139

140140
## Additional Resources
141141

142-
You may find these additional resources helpful for integrating Pyth Lazer into your EVM smart contracts.
142+
You may find these additional resources helpful for consuming prices from Pyth Pro into your EVM smart contracts.
143143

144144
### Price Feed IDs
145145

146-
Pyth Lazer supports a wide range of price feeds. Consult the [Price Feed IDs](../price-feed-ids.mdx) page for a complete list of supported price feeds.
146+
Pyth Pro supports a wide range of price feeds. Consult the [Price Feed IDs](../price-feed-ids.mdx) page for a complete list of supported price feeds.
147147

148148
### Examples
149149

150-
[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.
150+
[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 Pro.
151151

152-
[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.
152+
[pyth-lazer-example-js](https://github.com/pyth-network/pyth-examples/tree/main/lazer/js) is a simple example for subscribing to the Pyth Pro websocket.

0 commit comments

Comments
 (0)