You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: pythnet-price-feeds/sui.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Use the hot potato price updates vector to update a price feed.
52
52
Note that conventional Pyth price IDs are found [here](https://pyth.network/developers/price-feed-ids#sui-mainnet).
53
53
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.
54
54
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.
56
56
57
57
```Rust
58
58
publicfunupdate_single_price_feed(
@@ -87,7 +87,7 @@ public fun get_price(
87
87
# 3. Examples
88
88
89
89
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)
91
91
92
92
To build and test the contracts, run the following
## 2. How do I find the Sui Object ID of a PriceInfoObject for a Pyth Price Feed?
141
141
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).
143
143
144
144
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.
0 commit comments