You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: pythnet-price-feeds/aptos.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ description: Consume Pyth Network prices in applications on Aptos
4
4
5
5
# Pyth on Aptos
6
6
7
-
Aptos contracts can update and fetch the Pyth prices using the Pyth Aptos Contract, which has been deployed on Mainnet. The documented source code can be found [here](https://github.com/pyth-network/pyth-crosschain/blob/main/aptos/contracts/sources/pyth.move).
7
+
Aptos contracts can update and fetch the Pyth prices using the Pyth Aptos Contract, which has been deployed on Mainnet. The documented source code can be found [here](https://github.com/pyth-network/pyth-crosschain/blob/main/target-chains/aptos/contracts/sources/pyth.move).
8
8
9
9
## Updating Price Feeds
10
10
11
11
The mechanism by which price feeds are updated on Aptos is explained [here](./pythnet-price-feeds.md). The [pyth-aptos-js](https://github.com/pyth-network/pyth-js/tree/main/pyth-aptos-js) package can be used to fetch price feed update data which can be passed to the `pyth::update_price` on-chain function.
12
12
13
13
## Examples
14
-
-[Minimal on-chain contract](https://github.com/pyth-network/pyth-crosschain/blob/main/aptos/examples/fetch_btc_price) which updates and returns the Pyth BTC/USD price.
15
-
-[Full-stack React app and on-chain contract](https://github.com/pyth-network/pyth-crosschain/blob/main/aptos/examples/mint_nft) which uses the [pyth-aptos-js](https://github.com/pyth-network/pyth-js/tree/main/pyth-aptos-js) package to update the price used by the contract.
14
+
-[Minimal on-chain contract](https://github.com/pyth-network/pyth-crosschain/blob/main/target-chains/aptos/examples/fetch_btc_price/sources/example.move) which updates and returns the Pyth BTC/USD price.
15
+
-[Full-stack React app and on-chain contract](https://github.com/pyth-network/pyth-crosschain/tree/main/target-chains/aptos/examples/mint_nft) which uses the [pyth-aptos-js](https://github.com/pyth-network/pyth-js/tree/main/pyth-aptos-js) package to update the price used by the contract.
Copy file name to clipboardExpand all lines: pythnet-price-feeds/bas.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@ description: Consume Pyth Network prices in applications on BNB Application Side
3
3
---
4
4
5
5
# Deployment
6
-
If, as is highly likely, your BAS chain doesn't already have a deployment of Pyth, you will need to deploy the `Pyth2Wormhole` receiver contracts yourself. This is easy to do and will enable contracts deployed on your BAS chain to consume Pyth price feeds from the `PythUpgradable` contract.
6
+
If, as is highly likely, your BAS chain doesn't already have a deployment of Pyth, you will need to deploy the `pyth-crosschain` receiver contracts yourself. This is easy to do and will enable contracts deployed on your BAS chain to consume Pyth price feeds from the `PythUpgradable` contract.
7
7
8
-
To deploy the `Pyth2Wormhole` receiver contracts to your BAS chain:
9
-
- Clone the [pyth2wormhole repo](https://github.com/pyth-network/pyth2wormhole).
8
+
To deploy the `pyth-crosschain` receiver contracts to your BAS chain:
9
+
- Clone the [pyth-crosschain repo](https://github.com/pyth-network/pyth-crosschain).
10
10
11
-
- Add your BAS network details to the [Truffle Networks configuration file](https://github.com/pyth-network/pyth2wormhole/blob/main/ethereum/truffle-config.js). An example using BAS test net is configured as below:
11
+
- Add your BAS network details to the [Truffle Networks configuration file](https://github.com/pyth-network/pyth-crosschain/blob/main/target-chains/ethereum/truffle-config.js). An example using BAS test net is configured as below:
12
12
```json
13
13
my_bas_testnet: {
14
14
provider: () => new HDWalletProvider(
@@ -23,7 +23,7 @@ To deploy the `Pyth2Wormhole` receiver contracts to your BAS chain:
23
23
}
24
24
```
25
25
26
-
- Prepare a `.env.prod.my_bas_testnet` environment file in the `pyth2wormhole/ethereum` directory. Please note if you test the deployment in the test net, you need use the Testnet pyth variable of PYTH_TO_WORMHOLE_EMITTER like below.
26
+
- Prepare a `.env.prod.my_bas_testnet` environment file in the `pyth-crosschain/target-chains/ethereum` directory. Please note if you test the deployment in the test net, you need use the Testnet pyth variable of PYTH_TO_WORMHOLE_EMITTER like below.
27
27
```shell
28
28
# The truffle network name of your BAS chain, defined in the configuration earlier
29
29
MIGRATIONS_NETWORK=my_bas_testnet
@@ -57,9 +57,9 @@ To deploy the `Pyth2Wormhole` receiver contracts to your BAS chain:
57
57
npm install
58
58
```
59
59
60
-
- Now run the Truffle migrations inside [`pyth2wormhole/migrations/prod-receiver`](https://github.com/pyth-network/pyth2wormhole/tree/main/ethereum/migrations/prod-receiver) using the instructions [here](https://github.com/pyth-network/pyth2wormhole/blob/main/ethereum/Deploying.md). Make sure you are deploying using the right environment file and to the correct network.
60
+
- Now run the Truffle migrations inside [`pyth-crosschain/target-chains/ethereum/migrations/prod-receiver/`](https://github.com/pyth-network/pyth-crosschain/tree/main/target-chains/ethereum/migrations/prod-receiver) using the instructions [here](https://github.com/pyth-network/pyth-crosschain/blob/main/target-chains/ethereum/Deploying.md). Make sure you are deploying using the right environment file and to the correct network.
61
61
62
-
- You can verify the contracts have been deployed successfully using the example [here](https://github.com/pyth-network/pyth2wormhole/blob/main/ethereum/Deploying.md#testing).
62
+
- You can verify the contracts have been deployed successfully using the example [here](https://github.com/pyth-network/pyth-crosschain/blob/main/target-chains/ethereum/Deploying.md#testing).
63
63
64
64
# Usage
65
65
After the pyth2wormhole contracts have been deployed to your BAS chain, please refer to the [Pyth on EVM-based chains documentation](evm.md) for how to consume price feeds.
Copy file name to clipboardExpand all lines: pythnet-price-feeds/off-chain.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,11 @@ An example can be found [here](https://github.com/pyth-network/pyth-client-js#ex
15
15
{% endtab %}
16
16
17
17
{% tab title="Rust" %}
18
-
The [pyth-sdk-solana crate](https://crates.io/crates/pyth-sdk-solana) can be used to consume Pyth prices inside your off-chain Rust programs. An example can be found [here](https://github.com/pyth-network/pyth-sdk-rs/blob/main/pyth-sdk-solana/examples/eth\_price.rs).
18
+
The [pyth-sdk-solana crate](https://crates.io/crates/pyth-sdk-solana) can be used to consume Pyth prices inside your off-chain Rust programs. An example can be found [here](https://github.com/pyth-network/pyth-sdk-rs/blob/main/pyth-sdk-solana/examples/eth_price.rs).
19
19
{% endtab %}
20
20
21
21
{% tab title="Python" %}
22
-
The [pyth-client-py](https://github.com/pyth-network/pyth-client-py) Python library can be used to consume Pyth prices inside your off-chain Python programs. An example can be found [here](https://github.com/pyth-network/pyth-client-py/blob/main/examples/read\_one\_price\_feed.py).
22
+
The [pyth-client-py](https://github.com/pyth-network/pyth-client-py) Python library can be used to consume Pyth prices inside your off-chain Python programs. An example can be found [here](https://github.com/pyth-network/pyth-client-py/blob/main/examples/read_one_price_feed.py).
0 commit comments