Skip to content

Commit 2b997fb

Browse files
authored
Update aptos address and add note for the old one (#49)
1 parent e19e785 commit 2b997fb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pages/aptos/sdks.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ Aptos contracts can program against the Pyth contract's interface by including i
2323

2424
```toml
2525
[addresses]
26-
pyth = "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"
26+
pyth = "0xbd6d205f2aa288baa71270e66716d3d1bafe173ab9f312de4e9dd761ddef5409"
2727
deployer = "0xb31e712b26fd295357355f6845e77c888298636609e93bc9b05f0f604049f434"
2828
wormhole = "0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"
2929
```
3030

3131
These lines allow you to reference Pyth resources as `pyth` instead of manually writing the contract address.
3232
The contract addresses provided above are for both Aptos mainnet and testnet -- the Pyth contract has the same address in both cases.
3333

34+
An older version of the Pyth contract was deployed at the address `0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387` in both testnet and mainnet.
35+
This version does not include all the latest features and will not be updated in the future.
36+
3437
You can now import the Pyth interfaces in Move code as follows:
3538

3639
```rust copy

pages/documentation/pythnet-price-feeds/aptos.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ When deploying contracts using Pyth, the [named addresses](https://diem.github.i
2626

2727
| Named Address | Value |
2828
| ------------- | -------------------------------------------------------------------- |
29-
| `pyth` | `0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387` |
29+
| `pyth` | `0xbd6d205f2aa288baa71270e66716d3d1bafe173ab9f312de4e9dd761ddef5409` |
3030
| `wormhole` | `0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625` |
3131
| `deployer` | `0xb31e712b26fd295357355f6845e77c888298636609e93bc9b05f0f604049f434` |
3232

3333
`deployer` and `wormhole` are implementation details of the Pyth contract: you will not need to interact with these.
3434

35+
An older version of the Pyth contract was deployed at the address `0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387` in both testnet and mainnet.
36+
This version does not include all the latest features and will not be updated in the future.
37+
3538
## Price Feeds
3639

3740
| Network | Available Price Feeds |

0 commit comments

Comments
 (0)