Skip to content

Commit 35194bf

Browse files
authored
update(sui): use new dependency versions and package ids (#204)
* update(sui): use new dependency versions and package ids * update(sui): address comments
1 parent 03dc9b0 commit 35194bf

File tree

1 file changed

+28
-11
lines changed
  • pages/price-feeds/use-real-time-data

1 file changed

+28
-11
lines changed

pages/price-feeds/use-real-time-data/sui.mdx

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,25 @@ Now in your contract you can consume the price by calling `pyth::get_price` or o
110110

111111
### Pyth Dependency
112112

113-
Use the following dependency in your `Move.toml` file to use the latest Pyth Sui package.
113+
Use the following dependency in your `Move.toml` file to use the latest Pyth Sui package and its dependencies.
114114

115115
Mainnet:
116116

117117
```sh copy
118118
[dependencies.Pyth]
119119
git = "https://github.com/pyth-network/pyth-crosschain.git"
120120
subdir = "target_chains/sui/contracts"
121-
rev = "sui-contract-v.0.0.2-mainnet"
121+
rev = "sui-contract-v0.0.2-mainnet-sui-1.19.1"
122+
123+
[dependencies.Wormhole]
124+
git = "https://github.com/wormhole-foundation/wormhole.git"
125+
subdir = "sui/wormhole"
126+
rev = "sui-upgrade-mainnet"
127+
128+
[dependencies.Sui]
129+
git = "https://github.com/MystenLabs/sui.git"
130+
subdir = "crates/sui-framework/packages/sui-framework"
131+
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
122132
```
123133

124134
Testnet:
@@ -127,7 +137,17 @@ Testnet:
127137
[dependencies.Pyth]
128138
git = "https://github.com/pyth-network/pyth-crosschain.git"
129139
subdir = "target_chains/sui/contracts"
130-
rev = "sui-contract-v.0.0.2-testnet"
140+
rev = "sui-contract-v0.0.2-testnet-sui-1.19.1"
141+
142+
[dependencies.Wormhole]
143+
git = "https://github.com/wormhole-foundation/wormhole.git"
144+
subdir = "sui/wormhole"
145+
rev = "sui-upgrade-testnet"
146+
147+
[dependencies.Sui]
148+
git = "https://github.com/MystenLabs/sui.git"
149+
subdir = "crates/sui-framework/packages/sui-framework"
150+
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
131151
```
132152

133153
### CLI Example
@@ -192,20 +212,17 @@ Please consult [Sui Contract Addresses](../contract-addresses/sui) to find the p
192212

193213
## Common Questions on How to Integrate with Pyth on Sui
194214

195-
### What is up with the "sui rev"? (`09b2081498366df936abae26eea4b2d5cafb2788`). Why does it point to a specific commit hash instead of "main" or "devnet"?
215+
### What is up with the "sui rev"? Why does it point to a specific commit hash instead of "main" or "devnet"?
196216

197-
Our Pyth `Move.toml` file contains the following dependencies. It depends on specific versions of the [Sui Framework](https://github.com/MystenLabs/sui) as well as [Wormhole](https://github.com/wormhole-foundation/wormhole). To make your Sui package compatible, you must also specify the following dependencies verbatim in your `Move.toml` file. We are locked in to this specific `rev` because our package depends on Wormhole, which [uses the `rev` `09b2081498366df936abae26eea4b2d5cafb2788`](https://github.com/wormhole-foundation/wormhole/blob/main/sui/wormhole/Move.mainnet.toml).
217+
Our Pyth `Move.toml` depends on specific versions of the [Sui Framework](https://github.com/MystenLabs/sui) as well as [Wormhole](https://github.com/wormhole-foundation/wormhole).
218+
To make your Sui package compatible, you must also specify the following dependencies verbatim in your `Move.toml` file. We are locked in to this specific `rev` because our package depends on Wormhole and it is pinned to this
219+
version.
198220

199221
```sh copy
200222
[dependencies.Sui]
201223
git = "https://github.com/MystenLabs/sui.git"
202224
subdir = "crates/sui-framework/packages/sui-framework"
203-
rev = "09b2081498366df936abae26eea4b2d5cafb2788"
204-
205-
[dependencies.Wormhole]
206-
git = "https://github.com/wormhole-foundation/wormhole.git"
207-
subdir = "sui/wormhole"
208-
rev = "d050ad1d67a5b7da9fb65030aad12ef5d774ccad"
225+
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
209226
```
210227

211228
### How do I find the Sui Object ID of a PriceInfoObject for a Pyth Price Feed?

0 commit comments

Comments
 (0)