Skip to content

Commit e622caa

Browse files
committed
chore: add iota network
1 parent 4c1d546 commit e622caa

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ 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+
25+
_Note: you need to use Pyth's IOTA SDK to interact with the IOTA contract from the client side._
26+
1627
### Beta channel
1728

1829
#### Sui Testnet

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

Lines changed: 24 additions & 9 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]
@@ -50,21 +50,36 @@ rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
5050
````
5151
5252
</Tabs.Tab>
53+
<Tabs.Tab>
54+
[dependencies.Pyth]
55+
git = "https://github.com/pyth-network/pyth-crosschain.git"
56+
subdir = "target_chains/sui/contracts"
57+
rev = "sui-contract-iota-testnet"
58+
59+
[dependencies.Wormhole]
60+
git = "https://github.com/pyth-network/pyth-crosschain.git"
61+
subdir = "target_chains/sui/contracts/vendor/wormhole_iota_testnet/wormhole"
62+
rev = "sui-contract-iota-testnet"
63+
64+
[dependencies.Iota]
65+
git = "https://github.com/iotaledger/iota.git"
66+
subdir = "crates/iota-framework/packages/iota-framework"
67+
rev = "751c23caf24efd071463b9ffd07eabcb15f44f31"
68+
69+
</Tabs.Tab>
70+
5371
</Tabs>
5472
5573
Pyth also provides a javascript SDK to construct transaction blocks that update price feeds:
5674
57-
<Tabs items={["npm", "yarn"]}>
75+
<Tabs items={["Sui", "IOTA"]}>
5876
<Tabs.Tab>
59-
```sh copy
60-
npm install --save @pythnetwork/pyth-sui-js
61-
```
77+
```sh copy # NPM npm install --save @pythnetwork/pyth-sui-js # Yarn yarn add
78+
@pythnetwork/pyth-sui-js ```
6279
</Tabs.Tab>
6380
<Tabs.Tab>
64-
```sh copy
65-
yarn add @pythnetwork/pyth-sui-js
66-
````
67-
81+
```sh copy # NPM npm install --save @pythnetwork/pyth-iota-js # Yarn yarn
82+
add @pythnetwork/pyth-iota-js ````
6883
</Tabs.Tab>
6984
</Tabs>
7085

0 commit comments

Comments
 (0)