Skip to content

Commit fa234c7

Browse files
authored
Merge pull request #3046 from pyth-network/feat/dev-hub
fix(dev-hub): info boxes
2 parents b66668a + c4c72ef commit fa234c7

File tree

18 files changed

+204
-92
lines changed

18 files changed

+204
-92
lines changed

apps/developer-hub/content/docs/entropy/chainlist.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { EntropyTable } from "../../../src/components/EntropyTable";
99
## Mainnets
1010

1111
<InfoBox variant="warning">
12-
The fees for mainnet are dynamically set. Always use the on-chain method
13-
`entropy.getFeeV2()` to get the current fee.
12+
<div>
13+
The fees for mainnet are dynamically set. Always use the on-chain method
14+
`entropy.getFeeV2()` to get the current fee.
15+
</div>
1416
</InfoBox>
1517

1618
The following tables shows the total fees payable when using the **default provider**.
@@ -31,8 +33,10 @@ Entropy callbacks the consumer as part of this transaction.
3133
## Testnets
3234

3335
<InfoBox variant="info">
34-
The fees for testnets kept deliberately low and different from the mainnet
35-
fees.
36+
<div>
37+
The fees for testnets kept deliberately low and different from the mainnet
38+
fees.
39+
</div>
3640
</InfoBox>
3741

3842
The Entropy contract is deployed on the following testnet chains:

apps/developer-hub/content/docs/pyth-core/api-instances-and-providers/hermes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Network:
2424
URL: https://hermes.pyth.network
2525

2626
<InfoBox variant="warning">
27-
For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:
27+
<div>For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:</div>
2828

29-
URL: https://hermes-beta.pyth.network
29+
<div>URL: https://hermes-beta.pyth.network</div>
3030

3131
</InfoBox>
3232

apps/developer-hub/content/docs/pyth-core/contract-addresses/pythnet.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ index: false
1111
# Price Feed Program Addresses on Pythnet
1212

1313
<InfoBox variant="warning">
14-
**Important:** The addresses on this page are for the Pythnet network itself,
15-
which is used to construct and deliver Pyth prices to other blockchains. If
16-
you are building an application on EVM, Solana, SVM, or another chain, you
17-
should use the Pyth program deployed on your target chain instead. Please
18-
refer to the [Contract Addresses](/price-feeds/contract-addresses) page and
19-
select your specific blockchain environment.
14+
<div>
15+
**Important:** The addresses on this page are for the Pythnet network
16+
itself, which is used to construct and deliver Pyth prices to other
17+
blockchains. If you are building an application on EVM, Solana, SVM, or
18+
another chain, you should use the Pyth program deployed on your target chain
19+
instead. Please refer to the [Contract
20+
Addresses](/price-feeds/contract-addresses) page and select your specific
21+
blockchain environment.
22+
</div>
2023
</InfoBox>
2124

2225
The following table contains the addresses of the programs deployed on Pythnet that operate together to construct Pyth prices and deliver them to other blockchains:

apps/developer-hub/content/docs/pyth-core/create-your-first-pyth-app.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ This tutorial walks through creating a complete application that uses Pyth Price
1414
The application includes a smart contract and an off-chain code invoking the contract.
1515

1616
<InfoBox variant="info">
17-
The tutorial is an in-depth walkthrough of contract development; more
18-
experienced developers may want to refer to [Use Real-time Price
19-
Data](./use-real-time-data) for a more concise version.
17+
<div>
18+
The tutorial is an in-depth walkthrough of contract development; more
19+
experienced developers may want to refer to [Use Real-time Price
20+
Data](./use-real-time-data) for a more concise version.
21+
</div>
2022
</InfoBox>
2123

2224
Please choose your environment to get started:

apps/developer-hub/content/docs/pyth-core/create-your-first-pyth-app/evm/part-2.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ This part of the tutorial will conver the following:
1919
- Update and fetch the price from the contract using [hermes-client](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js).
2020

2121
<InfoBox variant="info">
22-
This tutorial is continuation of the [Part 1: Create a Contract](./part-1). If
23-
you haven't completed that part yet, please do so before continuing.
22+
<div>
23+
This tutorial is continuation of the [Part 1: Create a Contract](./part-1).
24+
If you haven't completed that part yet, please do so before continuing.
25+
</div>
2426
</InfoBox>
2527

2628
## Deploy the contract

apps/developer-hub/content/docs/pyth-core/current-fees.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ The following tables shows the total fees payable when updating a price feed.
1313
Please note the fees shown below is the amount paid in `msg.value` per price feed update.
1414

1515
<InfoBox variant="info">
16-
**Note**: The default fee of all chains **not** mentioned below is **1(one)**
17-
unit of the smallest denomination of the blockchain's native token (e.g., **1
18-
wei on Ethereum**).
16+
<div>
17+
**Note**: The default fee of all chains **not** mentioned below is
18+
**1(one)** unit of the smallest denomination of the blockchain's native
19+
token (e.g., **1 wei on Ethereum**).
20+
</div>
1921
</InfoBox>
2022

2123
| **Network** | **Fees** |

apps/developer-hub/content/docs/pyth-core/fetch-price-updates.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ provides three different ways to fetch price updates:
2121
1. [SDK](#sdk)
2222

2323
<InfoBox variant="info">
24-
Fetching a price from Hermes requires a price feed ID. This ID serves as a
25-
unique identifier for each price feed (e.g., BTC/USD). The complete list of
26-
Pyth price feed IDs is available at
27-
https://pyth.network/developers/price-feed-ids
24+
<div>
25+
Fetching a price from Hermes requires a price feed ID. This ID serves as a
26+
unique identifier for each price feed (e.g., BTC/USD). The complete list of
27+
Pyth price feed IDs is available at
28+
https://pyth.network/developers/price-feed-ids
29+
</div>
2830
</InfoBox>
2931

3032
## REST API

apps/developer-hub/content/docs/pyth-core/pythnet-reference/schedule-format.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
3232
- `Timezone` - A human-readable tz database TZ identifier of the market’s local timezone, such as `America/New_York`.
3333
**Full list of identifiers can be found [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)**.
3434
<InfoBox variant="info">
35-
Daylight-saving time is automatically handled by the pyth-agent.
35+
<div>Daylight-saving time is automatically handled by the pyth-agent.</div>
3636
</InfoBox>
3737
- `WeeklySchedule` - A list of seven comma-separated `DaySchedule` entries that define the recurring weekly schedule of a product’s market hours.
3838
Each `DaySchedule` entry corresponds to a day of the week, starting from Monday.
@@ -71,7 +71,7 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
7171
## Weekly Schedule Format (Deprecated)
7272

7373
<InfoBox variant="warning">
74-
This field is deprecated in favor of `schedule`.
74+
<div>This field is deprecated in favor of `schedule`.</div>
7575
</InfoBox>
7676

7777
This document outlines the rules for specifying contents of a new Pyth product metadata field - `weekly_schedule` . The field specifies the recurring weekly schedule of a product’s market hours. It serves as a reference for `pyth-agent` to stop publishing outside the hours specified in the schedule. Notable use cases include:

apps/developer-hub/content/docs/pyth-core/sponsored-feeds.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ The sponsored feeds can vary by network. Please see the relevant section below f
2323
- [Movement](sponsored-feeds/movement)
2424

2525
<InfoBox variant="warning">
26-
DISCLAIMER: While the Pyth Data Association strives to deliver timely updates,
27-
these sponsored feeds may occasionally experience delays in updates caused by
28-
chain halts, gas estimations and other issues. Applications are advised to run
29-
their own scheduler. Find out how you can run your own scheduler
30-
[here](/price-feeds/schedule-price-updates/using-scheduler).
26+
<div>
27+
DISCLAIMER: While the Pyth Data Association strives to deliver timely
28+
updates, these sponsored feeds may occasionally experience delays in updates
29+
caused by chain halts, gas estimations and other issues. Applications are
30+
advised to run their own scheduler. Find out how you can run your own
31+
scheduler [here](/price-feeds/schedule-price-updates/using-scheduler).
32+
</div>
3133
</InfoBox>
3234

3335
If you would like to see additional feeds on this list, please fill in this [form](https://tally.so/r/nGz2jj) to signal your interest.

apps/developer-hub/content/docs/pyth-core/use-real-time-data/aptos.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ module example::example {
6363
```
6464

6565
<InfoBox variant="info">
66-
The `pyth_price_update` argument contains verified prices from Pyth. Calling
67-
`pyth::update_price_feeds` with this value updates the on-chain Pyth price and
68-
ensures your application has recent price data. The pyth_price_update can be
69-
fetched from Hermes; Consult [Fetch Price Updates](../fetch-price-updates) for
70-
more information on how to fetch the `pyth_price_update`.
66+
<div>
67+
The `pyth_price_update` argument contains verified prices from Pyth. Calling
68+
`pyth::update_price_feeds` with this value updates the on-chain Pyth price
69+
and ensures your application has recent price data. The pyth_price_update
70+
can be fetched from Hermes; Consult [Fetch Price
71+
Updates](../fetch-price-updates) for more information on how to fetch the
72+
`pyth_price_update`.
73+
</div>
7174
</InfoBox>
7275

7376
The code snippet above does the following things:

0 commit comments

Comments
 (0)