Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 3c35680

Browse files
authored
Fix some links now that the sui branch is merged (#168)
* Fix some links now that the sui branch is merged * Fix another link
1 parent 4be480e commit 3c35680

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: pythnet-price-feeds/sui.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Use the hot potato price updates vector to update a price feed.
5252
Note that conventional Pyth price IDs are found [here](https://pyth.network/developers/price-feed-ids#sui-mainnet).
5353
However, instead of passing in a Pyth price feed ID to update the price feed (which is what is done on other chains), one must pass in a `PriceInfoObject` ID instead.
5454

55-
The `PriceInfoObject` IDs are distinct from Pyth price feed IDs, and are stored in a map on-chain (Pyth price feed ID => PriceInfoObject ID). We pulled this map into a local json file [here](./scripts/generated). The `PriceInfoObject` ID can also be queried on-chain by calling the `pyth::state::get_price_info_object_id` found in the Pyth package. See the common questions section below for more info.
55+
The `PriceInfoObject` IDs are distinct from Pyth price feed IDs, and are stored in a map on-chain (Pyth price feed ID => PriceInfoObject ID). We pulled this map into a local json file [here](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/sui/scripts/generated). The `PriceInfoObject` ID can also be queried on-chain by calling the `pyth::state::get_price_info_object_id` found in the Pyth package. See the common questions section below for more info.
5656

5757
```Rust
5858
public fun update_single_price_feed(
@@ -87,7 +87,7 @@ public fun get_price(
8787
# 3. Examples
8888

8989
See the `./scripts` folder for examples of programmable transactions for creating price feeds and updating price feeds.
90-
- [Demo for updating a price feed](https://github.com/pyth-network/pyth-crosschain/blob/sui/hot_potato/target_chains/sui/scripts/pyth/update_price_feeds.ts)
90+
- [Demo for updating a price feed](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/sui/scripts/pyth/update_price_feeds.ts)
9191

9292
To build and test the contracts, run the following
9393
```
@@ -139,7 +139,7 @@ rev = "d050ad1d67a5b7da9fb65030aad12ef5d774ccad"
139139

140140
## 2. How do I find the Sui Object ID of a PriceInfoObject for a Pyth Price Feed?
141141

142-
The mapping of Pyth price feed IDs to `PriceInfoObject` object IDs can be found [here](https://github.com/pyth-network/pyth-crosschain/blob/sui/hot_potato/target_chains/sui/README.md). (Note: this may go out of date as more price feeds are introduced and created over time).
142+
The mapping of Pyth price feed IDs to `PriceInfoObject` object IDs can be found [here](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/sui/README.md). (Note: this may go out of date as more price feeds are introduced and created over time).
143143

144144
This mapping is also stored on-chain, and can be queried on-chain using the getter function `pyth::state::get_price_info_object_id` defined in the Pyth package.
145145

0 commit comments

Comments
 (0)