Skip to content

Commit 6f3a57a

Browse files
committed
chore(price-feeds) Combine lazer push feeds
1 parent e7025f5 commit 6f3a57a

23 files changed

+248
-139
lines changed

components/LazerPriceIdTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const LoadedLazerPriceIdTable = ({
9494
<div>
9595
<input
9696
type="text"
97-
placeholder="Search by symbol, name, description, or pyth lazer id (comma or space separated for multiple)..."
97+
placeholder="Search by symbol, name, description, or pyth pro id (comma or space separated for multiple)..."
9898
value={search}
9999
onChange={updateSearch}
100100
className="w-full p-2 mb-4 border border-gray-300 rounded-md"
@@ -106,7 +106,7 @@ const LoadedLazerPriceIdTable = ({
106106
<th>Description</th>
107107
<th>Name</th>
108108
<th>Symbol</th>
109-
<th>Pyth Lazer Id</th>
109+
<th>Pyth Pro Id</th>
110110
<th>Exponent</th>
111111
</tr>
112112
</thead>

components/icons/ProductIcons.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import {
99
Clock,
1010
ArrowsOutCardinal,
1111
DiceSixIcon,
12+
ListBullets,
13+
Key,
14+
Play,
15+
BookOpen,
16+
MoneyWavy,
1217
} from "@phosphor-icons/react";
1318

1419
export function BarChartIcon() {
@@ -46,3 +51,23 @@ export function MultiChainIcon() {
4651
export function DiceIcon() {
4752
return <DiceSixIcon className="w-5 h-5" weight="regular" />;
4853
}
54+
55+
export function ListIcon() {
56+
return <ListBullets className="w-5 h-5" weight="regular" />;
57+
}
58+
59+
export function KeyIcon() {
60+
return <Key className="w-5 h-5" weight="regular" />;
61+
}
62+
63+
export function PlayIcon() {
64+
return <Play className="w-5 h-5" weight="regular" />;
65+
}
66+
67+
export function BookIcon() {
68+
return <BookOpen className="w-5 h-5" weight="regular" />;
69+
}
70+
71+
export function MoneyWavyIcon() {
72+
return <MoneyWavy className="w-5 h-5" weight="regular" />;
73+
}

next.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ const permanentRedirectArray = [
118118
"/home/oracle-integrity-staking/reward-examples",
119119
],
120120
["/guides", "/price-feeds"],
121+
122+
// Lazer (top-level) to Pyth Pro Redirects - MUST come before general price-feeds redirects
123+
["/lazer", "/price-feeds/pro"],
124+
["/lazer/:path*", "/price-feeds/pro/:path*"],
125+
126+
// Explicitly map legacy lazer paths under /price-feeds to Pro - MUST come before general price-feeds redirects
127+
["/price-feeds/lazer", "/price-feeds/pro"],
128+
["/price-feeds/lazer/:path*", "/price-feeds/pro/:path*"],
129+
130+
["/price-feeds/:path((?!core|pro).*?)", "/price-feeds/core/:path*"],
131+
121132
["/benchmarks", "/price-feeds/use-historic-price-data"],
122133
[
123134
"/benchmarks/how-to-create-tradingview-charts",

pages/price-feeds/_meta.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"price": {
3-
"title": "← Documentation Home",
4-
"href": "/home"
5-
},
6-
"index": {
7-
"title": "Introduction"
8-
},
9-
"pro": {
10-
"title": "Pyth Pro →",
11-
"href": "/price-feeds/pro"
12-
},
13-
"core": {
14-
"title": "Pyth Core →",
15-
"href": "/price-feeds/core"
16-
}
17-
}
2+
"price": {
3+
"title": "← Documentation Home",
4+
"href": "/home"
5+
},
6+
"index": {
7+
"title": "Introduction"
8+
},
9+
"pro": {
10+
"title": "Pyth Pro →",
11+
"href": "/price-feeds/pro"
12+
},
13+
"core": {
14+
"title": "Pyth Core →",
15+
"href": "/price-feeds/core"
16+
}
17+
}

pages/price-feeds/core/contract-addresses/fuel.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import CopyAddress from "../../../components/CopyAddress";
1+
import CopyAddress from "../../../../components/CopyAddress";
22

33
# Price Feed Contract Addresses on Fuel
44

pages/price-feeds/core/price-feeds.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ See [How to Use Real-Time Data on Solana](./use-real-time-data/solana#price-feed
3333

3434
## Feed Ids
3535

36-
Refer to the [Price Feed IDs](/price-feeds/core/price-feeds/price-feed-ids) page for the complete list of price feed IDs.
36+
Refer to the [Price Feed IDs](/price-feeds/core/price-feeds/price-feed-ids) page for the complete list of price feed IDs.

pages/price-feeds/core/price-feeds/price-feed-ids.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ The following table lists the price feed IDs for all the assets supported by Pyt
77

88
<Callout type="info">
99
Pyth Core Price Feed IDs **are different** from Pyth Pro Price Feed IDs.
10-
Please refer to the [Pyth Pro Price Feed IDs](/price-feeds/pro/price-feed-ids) page for
11-
Pyth Pro Price Feed IDs.
10+
Please refer to the [Pyth Pro Price Feed IDs](/price-feeds/pro/price-feed-ids)
11+
page for Pyth Pro Price Feed IDs.
1212
</Callout>
1313

1414
<Callout type="info">

pages/price-feeds/core/schedule-price-updates.mdx

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

55
The following guides explain how to schedule Pyth price updates to occur at regular intervals.
66
As a pull oracle, Pyth's users are typically responsible for updating the state of on-chain feeds.
7-
Please see [What is a Pull Oracle?](/price-feeds/pull-updates) to learn more about pull updates.
7+
Please see [What is a Pull Oracle?](/price-feeds/core/pull-updates) to learn more about pull updates.
88

99
The Pyth Data Association sponsors regular on-chain updates for some price feeds.
10-
See [Sponsored Feeds](/price-feeds/sponsored-feeds) for the current list of feeds and their update parameters.
10+
See [Sponsored Feeds](/price-feeds/core/sponsored-feeds) for the current list of feeds and their update parameters.
1111
If you would like to see additional feeds on this list, please [contact the association via this form](https://tally.so/r/nGz2jj).
1212

1313
There are also three different tools to schedule price updates:

pages/price-feeds/core/use-pyth-for-morpho.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ There are two steps to use Pyth price feeds for Morpho markets:
1616
### Schedule Price Updates
1717

1818
As a pull oracle, Pyth's users are typically responsible for updating the state of on-chain feeds.
19-
Please see [What is a Pull Oracle?](/price-feeds/pull-updates) to learn more about pull updates.
19+
Please see [What is a Pull Oracle?](/price-feeds/core/pull-updates) to learn more about pull updates.
2020

21-
Consult [Schedule Price Updates](/price-feeds/schedule-price-updates) guide for more information.
21+
Consult [Schedule Price Updates](/price-feeds/core/schedule-price-updates) guide for more information.
2222

2323
The Pyth Data Association sponsors regular on-chain updates for some price feeds.
2424
See [Sponsored Feeds](./sponsored-feeds.mdx) for the current list of feeds and their update parameters.

pages/price-feeds/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ Pyth offers two main versions of price feeds, each optimized for different use c
121121
<p className="text-gray-700 dark:text-light mb-4">Sample applications and integration examples.</p>
122122
<a href="https://github.com/pyth-network/pyth-examples" className="text-lightLinks dark:text-darkLinks hover:text-blue-800 dark:hover:text-blue-300 font-medium">View Examples →</a>
123123
</div>
124-
</div>
124+
</div>

0 commit comments

Comments
 (0)