Skip to content

Commit a5294b2

Browse files
authored
chore: add iota network (#619)
* chore: add iota network * fix: add code block * fix: fix
1 parent 4c1d546 commit a5294b2

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

pages/price-feeds/contract-addresses/sui.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ Pyth is currently available on the following sui-based chains:
1313
| Wormhole State ID | [`0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c`](https://explorer.sui.io/object/0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c) |
1414
| Wormhole Package ID | [`0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a`](https://explorer.sui.io/object/0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a) |
1515

16+
#### IOTA testnet
17+
18+
| Name | Address |
19+
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
20+
| Pyth State ID | [`0x68dda579251917b3db28e35c4df495c6e664ccc085ede867a9b773c8ebedc2c1`](https://explorer.rebased.iota.org/object/0x68dda579251917b3db28e35c4df495c6e664ccc085ede867a9b773c8ebedc2c1?network=testnet) |
21+
| Pyth Package ID | [`0x23994dd119480ea614f7623520337058dca913cb1bb6e5d8d51c7b067d3ca3bb`](https://explorer.rebased.iota.org/object/0x23994dd119480ea614f7623520337058dca913cb1bb6e5d8d51c7b067d3ca3bb?network=testnet) |
22+
| Wormhole State ID | [`0x8bc490f69520a97ca1b3de864c96aa2265a0cf5d90f5f3f016b2eddf0cf2af2b`](https://explorer.rebased.iota.org/object/0x8bc490f69520a97ca1b3de864c96aa2265a0cf5d90f5f3f016b2eddf0cf2af2b?network=testnet) |
23+
| Wormhole Package ID | [`0xfca58c557f09cddb7930588c4e2a4edbe3cdded1ac1ed2270aa2dfa8d2b9ae0d`](https://explorer.rebased.iota.org/object/0xfca58c557f09cddb7930588c4e2a4edbe3cdded1ac1ed2270aa2dfa8d2b9ae0d?network=testnet) |
24+
1625
### Beta channel
1726

1827
#### Sui Testnet

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

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide explains how to use real-time Pyth data in Sui applications.
88

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

11-
<Tabs items={['Sui Mainnet', 'Sui Testnet']}>
11+
<Tabs items={['Sui Mainnet', 'Sui Testnet', 'IOTA Testnet']}>
1212
<Tabs.Tab>
1313
```sh copy
1414
[dependencies.Pyth]
@@ -49,21 +49,50 @@ subdir = "crates/sui-framework/packages/sui-framework"
4949
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
5050
````
5151
52+
</Tabs.Tab>
53+
<Tabs.Tab>
54+
55+
```sh copy
56+
[dependencies.Pyth]
57+
git = "https://github.com/pyth-network/pyth-crosschain.git"
58+
subdir = "target_chains/sui/contracts"
59+
rev = "sui-contract-iota-testnet"
60+
61+
[dependencies.Wormhole]
62+
git = "https://github.com/pyth-network/pyth-crosschain.git"
63+
subdir = "target_chains/sui/contracts/vendor/wormhole_iota_testnet/wormhole"
64+
rev = "sui-contract-iota-testnet"
65+
66+
[dependencies.Iota]
67+
git = "https://github.com/iotaledger/iota.git"
68+
subdir = "crates/iota-framework/packages/iota-framework"
69+
rev = "751c23caf24efd071463b9ffd07eabcb15f44f31"
70+
```
71+
5272
</Tabs.Tab>
5373
</Tabs>
5474

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

57-
<Tabs items={["npm", "yarn"]}>
77+
<Tabs items={["Sui", "IOTA"]}>
5878
<Tabs.Tab>
59-
```sh copy
79+
```sh
80+
# NPM
6081
npm install --save @pythnetwork/pyth-sui-js
82+
83+
# Yarn
84+
yarn add @pythnetwork/pyth-sui-js
6185
```
86+
6287
</Tabs.Tab>
6388
<Tabs.Tab>
64-
```sh copy
65-
yarn add @pythnetwork/pyth-sui-js
66-
````
89+
```sh
90+
# NPM
91+
npm install --save @pythnetwork/pyth-iota-js
92+
93+
# Yarn
94+
yarn add @pythnetwork/pyth-iota-js
95+
```
6796

6897
</Tabs.Tab>
6998
</Tabs>

0 commit comments

Comments
 (0)