Skip to content

Commit d3bbb32

Browse files
committed
feat: remove Callout component and replace with InfoBox
1 parent 0b9ba45 commit d3bbb32

File tree

18 files changed

+46
-255
lines changed

18 files changed

+46
-255
lines changed

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
@@ -23,12 +23,12 @@ Network:
2323

2424
URL: https://hermes.pyth.network
2525

26-
<Callout variant="info" icon="⚠️">
26+
<InfoBox variant="warning">
2727
For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:
2828

2929
URL: https://hermes-beta.pyth.network
3030

31-
</Callout>
31+
</InfoBox>
3232

3333
For production deployments, developers integrating with Pyth Network are **strongly encouraged** to use Node Providers
3434
for maximum resilience and decentralization. Moreover, Hermes is designed to be self-hosted, so developers can run their own

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ index: false
1010

1111
# Price Feed Program Addresses on Pythnet
1212

13-
<Callout variant="warning" icon="⚠️">
13+
<InfoBox variant="warning">
1414
**Important:** The addresses on this page are for the Pythnet network itself,
1515
which is used to construct and deliver Pyth prices to other blockchains. If
1616
you are building an application on EVM, Solana, SVM, or another chain, you
1717
should use the Pyth program deployed on your target chain instead. Please
1818
refer to the [Contract Addresses](/price-feeds/contract-addresses) page and
1919
select your specific blockchain environment.
20-
</Callout>
20+
</InfoBox>
2121

2222
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:
2323

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

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

16-
<Callout variant="info" icon="ℹ️">
16+
<InfoBox variant="info">
1717
The tutorial is an in-depth walkthrough of contract development; more
1818
experienced developers may want to refer to [Use Real-time Price
1919
Data](./use-real-time-data) for a more concise version.
20-
</Callout>
20+
</InfoBox>
2121

2222
Please choose your environment to get started:
2323

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ This part of the tutorial will conver the following:
1818
- Interact with the contract from the command line.
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

21-
<Callout variant="info" icon="ℹ️">
21+
<InfoBox variant="info">
2222
This tutorial is continuation of the [Part 1: Create a Contract](./part-1). If
2323
you haven't completed that part yet, please do so before continuing.
24-
</Callout>
24+
</InfoBox>
2525

2626
## Deploy the contract
2727

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ index: false
1212
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

15-
<Callout variant="info" icon="💡">
15+
<InfoBox variant="info">
1616
**Note**: The default fee of all chains **not** mentioned below is **1(one)**
1717
unit of the smallest denomination of the blockchain's native token (e.g., **1
1818
wei on Ethereum**).
19-
</Callout>
19+
</InfoBox>
2020

2121
| **Network** | **Fees** |
2222
| ----------- | ---------------- |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ provides three different ways to fetch price updates:
2020
1. [Streaming](#streaming)
2121
1. [SDK](#sdk)
2222

23-
<Callout icon="ℹ️">
23+
<InfoBox variant="info">
2424
Fetching a price from Hermes requires a price feed ID. This ID serves as a
2525
unique identifier for each price feed (e.g., BTC/USD). The complete list of
2626
Pyth price feed IDs is available at
2727
https://pyth.network/developers/price-feed-ids
28-
</Callout>
28+
</InfoBox>
2929

3030
## REST API
3131

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
3131

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)**.
34-
<Callout variant="info">
34+
<InfoBox variant="info">
3535
Daylight-saving time is automatically handled by the pyth-agent.
36-
</Callout>
36+
</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.
3939
None of the comma-separated values can be omitted.
@@ -70,9 +70,9 @@ If `weekly_schedule` is also undefined, pyth-agent will default to 24/7 publishi
7070

7171
## Weekly Schedule Format (Deprecated)
7272

73-
<Callout variant="warning" icon="⚠️">
73+
<InfoBox variant="warning">
7474
This field is deprecated in favor of `schedule`.
75-
</Callout>
75+
</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:
7878

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ The sponsored feeds can vary by network. Please see the relevant section below f
2222
- [Sui](sponsored-feeds/sui)
2323
- [Movement](sponsored-feeds/movement)
2424

25-
<Callout variant="info" icon="⚠️">
25+
<InfoBox variant="warning">
2626
DISCLAIMER: While the Pyth Data Association strives to deliver timely updates,
2727
these sponsored feeds may occasionally experience delays in updates caused by
2828
chain halts, gas estimations and other issues. Applications are advised to run
2929
their own scheduler. Find out how you can run your own scheduler
3030
[here](/price-feeds/schedule-price-updates/using-scheduler).
31-
</Callout>
31+
</InfoBox>
3232

3333
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ module example::example {
6262

6363
```
6464

65-
<Callout variant="info" icon="ℹ️">
65+
<InfoBox variant="info">
6666
The `pyth_price_update` argument contains verified prices from Pyth. Calling
6767
`pyth::update_price_feeds` with this value updates the on-chain Pyth price and
6868
ensures your application has recent price data. The pyth_price_update can be
6969
fetched from Hermes; Consult [Fetch Price Updates](../fetch-price-updates) for
7070
more information on how to fetch the `pyth_price_update`.
71-
</Callout>
71+
</InfoBox>
7272

7373
The code snippet above does the following things:
7474

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ The `update_data` argument contains verified prices from Pyth.
8989
Calling `pyth_contract.update_price_feeds` with this value updates the on-chain Pyth price and ensures your application has recent price data.
9090
The `update_data` can be fetched from Hermes; Consult [Fetch Price Updates](https://docs.pyth.network/price-feeds/fetch-price-updates) for more information on how to fetch the `update_data`.
9191

92-
<Callout variant="info" icon="ℹ️">
92+
<InfoBox variant="info">
9393
Regarding the Pyth contract on Fuel, the caller must pay the fee in the base
9494
asset for functions like `update_price_feeds`. The fee is currently set to the
9595
minimum possible value (1 wei).
96-
</Callout>
96+
</InfoBox>
9797

9898
The code snippet above does the following things:
9999

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const result = await wallet.signAndExecuteTransaction(txBlock);
167167

168168
By calling the `updatePriceFeeds` function, the `IotaPythClient` adds the necessary transactions to the transaction block to update the price feeds.
169169

170-
<Callout variant="warning" icon="⚠️">
170+
<InfoBox variant="warning">
171171

172172
Your IOTA Move module **should NOT** have a hard-coded call to `pyth::update_single_price_feed.` In other words, a contract should **never call** the IOTA Pyth `pyth::update_single_price_feed` entry point. Instead, it should be called directly from client code (e.g., Typescript or Rust).
173173

@@ -178,7 +178,7 @@ You can use `IOTAPythClient` to build such transactions and handle all the compl
178178

179179
Consult [Fetch Price Updates](../fetch-price-updates) for more information on how to fetch the `pyth_price_update`.
180180

181-
</Callout>
181+
</InfoBox>
182182

183183
## Additional Resources
184184

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ index: false
1212

1313
This guide explains how to fetch the latest prices and subscribe to real-time price updates in off-chain applications.
1414

15-
<Callout variant="info" icon="💡">
15+
<InfoBox variant="info">
1616
[`price-service-sdk`](https://github.com/pyth-network/pyth-crosschain/tree/main/price_service/client/js) was is deprecated and replaced by the [`hermes-client`](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js).
1717
It can be used for fetching prices for off-chain applications as well as fetching price updates.
1818

1919
Please refer to the [fetch-price-updates](../fetch-price-updates) guide for the details.
2020

21-
</Callout>
21+
</InfoBox>

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Add this crate to the dependencies section of your `Cargo.toml` file:
2626
pyth-solana-receiver-sdk ="x.y.z" # get the latest version from https://crates.io/crates/pyth-solana-receiver-sdk
2727
```
2828

29-
<Callout variant="warning" icon="">
29+
<InfoBox variant="warning">
3030
At the time of writing, [pyth-solana-receiver-sdk](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/pyth_solana_receiver_sdk) is compatible with Anchor `v0.28.0{:js}`, `v0.29.0{:js}`, and `v0.30.1{:js}`.
3131
If you are on `v0.30.0{:js}` or any other version, please move to `v0.30.1{:js}`.
32-
</Callout>
32+
</InfoBox>
3333

3434
### Typescript SDK
3535

@@ -59,11 +59,11 @@ pub struct Sample<'info> {
5959
}
6060
```
6161

62-
<Callout variant="info" icon="ℹ️">
62+
<InfoBox variant="info">
6363
Users must ensure that the account passed to their instruction is owned by the Pyth Pull Oracle program.
6464
Using Anchor with the `Account<'info, PriceUpdateV2>` type will automatically perform this check.
6565
However, it is the developer's responsibility to perform this check if they are not using Anchor.
66-
</Callout>
66+
</InfoBox>
6767

6868
Next, update the instruction logic to read the price from the price update account:
6969

@@ -84,7 +84,7 @@ pub fn sample(ctx: Context<Sample>) -> Result<()> {
8484
}
8585
```
8686

87-
<Callout variant="warning" icon="⚠️">
87+
<InfoBox variant="warning">
8888
Users must validate the price update for the appropriate **price
8989
feed** and **timestamp**. `PriceUpdateV2` guarantees that the account contains
9090
a verified price for _some_ price feed at _some_ point in time. There are
@@ -94,7 +94,7 @@ pub fn sample(ctx: Context<Sample>) -> Result<()> {
9494
If you choose the price feed account integration (see below), you
9595
can use an account address check to validate the price feed ID.
9696

97-
</Callout>
97+
</InfoBox>
9898

9999
## Write Frontend Code
100100

@@ -135,7 +135,7 @@ const solUsdPriceFeedAccount = pythSolanaReceiver
135135
.toBase58();
136136
```
137137

138-
<Callout variant="info" icon="ℹ️">
138+
<InfoBox variant="info" icon="ℹ️">
139139
The Price Feed Accounts integration assumes that an off-chain process is
140140
continuously updating each price feed. The Pyth Data Association sponsors
141141
price updates for a subset of commonly used price feeds on shard 0. Please see
@@ -148,7 +148,7 @@ Scheduler](/price-feeds/schedule-price-updates/using-scheduler) for more
148148
information. Running the scheduler can help with reliability and update
149149
feed/shard pairs that are not part of the default schedule.
150150

151-
</Callout>
151+
</InfoBox>
152152

153153
### Price Update Accounts
154154

@@ -234,7 +234,7 @@ await pythSolanaReceiver.provider.sendAll(
234234

235235
The [SDK documentation](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/solana/sdk/js/pyth_solana_receiver) contains more information about interacting with the Pyth solana receiver contract, including working examples.
236236

237-
<Callout variant="info" icon="ℹ️">
237+
<InfoBox variant="info">
238238
Posting and verifying price updates currently requires multiple transactions
239239
on Solana. If your usecase requires a single transaction, you can reduce the
240240
verification level of the posted price updates by replacing
@@ -243,7 +243,7 @@ The [SDK documentation](https://github.com/pyth-network/pyth-crosschain/tree/mai
243243
[VerificationLevel](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs#L20)
244244
docs to understand more about the data integrity tradeoffs when using
245245
partially verified price updates.
246-
</Callout>
246+
</InfoBox>
247247

248248
## Time-Weighted Average Price (TWAP)
249249

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The pyth_price_update argument contains verified prices from Pyth.
115115
Calling pyth.update_price_feeds with this value updates the on-chain Pyth price and ensures your application has recent price data.
116116
The pyth_price_update can be fetched from Hermes; Consult [Fetch Price Updates](https://docs.pyth.network/price-feeds/fetch-price-updates) for more information on how to fetch the pyth_price_update.
117117

118-
<Callout variant="info" icon="ℹ️">
118+
<InfoBox variant="info">
119119
Unlike Ethereum, there is no native token on Starknet. You cannot pass tokens
120120
implicitly when calling functions. Moreover, there is no concept of a
121121
designated payer account, unlike Solana. In Starknet, all token transfers must
@@ -124,7 +124,7 @@ The pyth_price_update can be fetched from Hermes; Consult [Fetch Price Updates](
124124
transfer before calling `update_price_feeds` or using similar methods. You can
125125
use **STRK** or **ETH** to pay the fee, but STRK is preferred. The fee is
126126
currently set to the minimum possible value (1e-18 STRK, 1 WEI).
127-
</Callout>
127+
</InfoBox>
128128

129129
The code snippet above does the following things:
130130

@@ -158,11 +158,11 @@ const currentPrices = await connection.getLatestPriceFeeds([priceId]);
158158
const pythUpdate = ByteBuffer.fromBase64(currentPrices[0].vaa);
159159
```
160160

161-
<Callout variant="info" icon="ℹ️">
161+
<InfoBox variant="info">
162162
Price updates must be converted to `ByteBuffer` before being passed on to the
163163
Pyth contract on Starknet. Use the `ByteBuffer` type from
164164
`@pythnetwork/pyth-starknet-js` package as shown above.
165-
</Callout>
165+
</InfoBox>
166166

167167
## Additional Resources
168168

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const result = await wallet.signAndExecuteTransactionBlock(txBlock);
167167

168168
By calling the `updatePriceFeeds` function, the `SuiPythClient` adds the necessary transactions to the transaction block to update the price feeds.
169169

170-
<Callout variant="warning" icon="⚠️">
170+
<InfoBox variant="warning">
171171

172172
Your Sui Move module **should NOT** have a hard-coded call to `pyth::update_single_price_feed.` In other words, a contract should **never call** the Sui Pyth `pyth::update_single_price_feed` entry point. Instead, it should be called directly from client code (e.g., Typescript or Rust).
173173

@@ -178,7 +178,7 @@ You can use `SuiPythClient` to build such transactions and handle all the comple
178178

179179
Consult [Fetch Price Updates](../fetch-price-updates) for more information on how to fetch the `pyth_price_update`.
180180

181-
</Callout>
181+
</InfoBox>
182182

183183
## Additional Resources
184184

apps/developer-hub/src/components/Callout/index.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)