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
Copy file name to clipboardexpand all lines: pages/price-feeds/create-your-first-pyth-app/evm/part-1.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This tutorial will cover the following topics:
8
8
- Create a contract that reads the ETH/USD price from Pyth using [pyth-sdk-solidity](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/sdk/solidity)
9
9
- Learn how to update Pyth prices to avoid Stale data.
10
10
- Deploy the contract to OP-sepolia testnet.
11
-
- Update and Fetch price using [pyth-evm-js](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/sdk/js).
11
+
- Update and Fetch price using [hermes-client](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js).
12
12
13
13
This tutorial is divided into two parts: \
14
14
[Part 1:](./part-1) Create a contract and fetch prices from Pyth oracles. \
@@ -535,4 +535,4 @@ contract MyFirstPythContractTest is Test {
535
535
536
536
```
537
537
538
-
Check out [Part 2](./part-2) to learn how to deploy our contract to OP-sepolia testnet and fetch prices using pyth-evm-js.
538
+
Check out [Part 2](./part-2) to learn how to deploy our contract to OP-sepolia testnet and fetch prices using hermes-client.
Copy file name to clipboardexpand all lines: pages/price-feeds/create-your-first-pyth-app/evm/part-2.mdx
+7-11
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This part of the tutorial will conver the following:
8
8
9
9
- Deploy the contract on OP Sepolia testnet.
10
10
- Interact with the contract from the command line.
11
-
- Update and fetch the price from the contract using [pyth-evm-js](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/sdk/js).
11
+
- Update and fetch the price from the contract using [hermes-client](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js).
12
12
13
13
<Callouttype="info"emoji="ℹ️">
14
14
This tutorial is continuation of the [Part 1: Create a Contract](./part-1). If
@@ -262,7 +258,7 @@ Notice: This `abi` variable which represents the interface of our contract and c
262
258
The `run` function does two different things:
263
259
264
260
- First, it instantiates an interface to our contract using the [`viem`](https://viem.sh/) library.
265
-
- Second, it uses `EvmPriceServiceConnection` from [`@pythnetwork/pyth-evm-js`](<(https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/sdk/js)>) to retrieve
261
+
- Second, it uses `HermesClient` from [`@pythnetwork/hermes-client`](<(https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js)>) to retrieve
266
262
267
263
Run this script using:
268
264
@@ -287,7 +283,7 @@ Congratulations! You've built your first app using Pyth price feeds.
287
283
## Conclusion
288
284
289
285
In this tutorial, we created a Solidity contract that updates and reads Pyth prices, tested the contract locally,
290
-
then deployed the contract and interacted with it both via the command line and `pyth-evm-js` sdk.
286
+
then deployed the contract and interacted with it both via the command line and `hermes-client` sdk.
0 commit comments