Skip to content

chore: add iota network #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pages/price-feeds/contract-addresses/sui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ Pyth is currently available on the following sui-based chains:
| Wormhole State ID | [`0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c`](https://explorer.sui.io/object/0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c) |
| Wormhole Package ID | [`0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a`](https://explorer.sui.io/object/0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a) |

#### IOTA testnet

| Name | Address |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Pyth State ID | [`0x68dda579251917b3db28e35c4df495c6e664ccc085ede867a9b773c8ebedc2c1`](https://explorer.rebased.iota.org/object/0x68dda579251917b3db28e35c4df495c6e664ccc085ede867a9b773c8ebedc2c1?network=testnet) |
| Pyth Package ID | [`0x23994dd119480ea614f7623520337058dca913cb1bb6e5d8d51c7b067d3ca3bb`](https://explorer.rebased.iota.org/object/0x23994dd119480ea614f7623520337058dca913cb1bb6e5d8d51c7b067d3ca3bb?network=testnet) |
| Wormhole State ID | [`0x8bc490f69520a97ca1b3de864c96aa2265a0cf5d90f5f3f016b2eddf0cf2af2b`](https://explorer.rebased.iota.org/object/0x8bc490f69520a97ca1b3de864c96aa2265a0cf5d90f5f3f016b2eddf0cf2af2b?network=testnet) |
| Wormhole Package ID | [`0xfca58c557f09cddb7930588c4e2a4edbe3cdded1ac1ed2270aa2dfa8d2b9ae0d`](https://explorer.rebased.iota.org/object/0xfca58c557f09cddb7930588c4e2a4edbe3cdded1ac1ed2270aa2dfa8d2b9ae0d?network=testnet) |

### Beta channel

#### Sui Testnet
Expand Down
41 changes: 35 additions & 6 deletions pages/price-feeds/use-real-time-data/sui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This guide explains how to use real-time Pyth data in Sui applications.

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

<Tabs items={['Sui Mainnet', 'Sui Testnet']}>
<Tabs items={['Sui Mainnet', 'Sui Testnet', 'IOTA Testnet']}>
<Tabs.Tab>
```sh copy
[dependencies.Pyth]
Expand Down Expand Up @@ -49,21 +49,50 @@ subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
````

</Tabs.Tab>
<Tabs.Tab>

```sh copy
[dependencies.Pyth]
git = "https://github.com/pyth-network/pyth-crosschain.git"
subdir = "target_chains/sui/contracts"
rev = "sui-contract-iota-testnet"

[dependencies.Wormhole]
git = "https://github.com/pyth-network/pyth-crosschain.git"
subdir = "target_chains/sui/contracts/vendor/wormhole_iota_testnet/wormhole"
rev = "sui-contract-iota-testnet"

[dependencies.Iota]
git = "https://github.com/iotaledger/iota.git"
subdir = "crates/iota-framework/packages/iota-framework"
rev = "751c23caf24efd071463b9ffd07eabcb15f44f31"
```

</Tabs.Tab>
</Tabs>

Pyth also provides a javascript SDK to construct transaction blocks that update price feeds:

<Tabs items={["npm", "yarn"]}>
<Tabs items={["Sui", "IOTA"]}>
<Tabs.Tab>
```sh copy
```sh
# NPM
npm install --save @pythnetwork/pyth-sui-js

# Yarn
yarn add @pythnetwork/pyth-sui-js
```

</Tabs.Tab>
<Tabs.Tab>
```sh copy
yarn add @pythnetwork/pyth-sui-js
````
```sh
# NPM
npm install --save @pythnetwork/pyth-iota-js

# Yarn
yarn add @pythnetwork/pyth-iota-js
```

</Tabs.Tab>
</Tabs>
Expand Down