Skip to content

deprecate(pyth-evm-js): Add deprecation notice #2487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion target_chains/ethereum/sdk/js/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Pyth EVM JS
# Pyth EVM JS (DEPRECATED)

> [!WARNING]
> **DEPRECATION NOTICE:** This package is deprecated and no longer maintained. Please use [hermes-client](https://github.com/pyth-network/pyth-crosschain/tree/main/apps/hermes/client/js) instead.

[Pyth](https://pyth.network/) provides real-time pricing data in a variety of asset classes, including cryptocurrency,
equities, FX and commodities. This library allows you to use these real-time prices on EVM-based networks.
Expand Down
2 changes: 1 addition & 1 deletion target_chains/ethereum/sdk/solidity/PythAggregatorV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract PythAggregatorV3 {
// Wrapper function to update the underlying Pyth price feeds. Not part of the AggregatorV3 interface but useful.
function updateFeeds(bytes[] calldata priceUpdateData) public payable {
// Update the prices to the latest available values and pay the required fee for it. The `priceUpdateData` data
// should be retrieved from our off-chain Price Service API using the `pyth-evm-js` package.
// should be retrieved from our off-chain Price Service API using the `hermes-client` package.
// See section "How Pyth Works on EVM Chains" below for more information.
uint fee = pyth.getUpdateFee(priceUpdateData);
pyth.updatePriceFeeds{value: fee}(priceUpdateData);
Expand Down
2 changes: 1 addition & 1 deletion target_chains/ethereum/sdk/solidity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract ExampleContract {
bytes[] calldata priceUpdateData
) public payable returns (PythStructs.Price memory) {
// Update the prices to the latest available values and pay the required fee for it. The `priceUpdateData` data
// should be retrieved from our off-chain Price Service API using the `pyth-evm-js` package.
// should be retrieved from our off-chain Price Service API using the `hermes-client` package.
// See section "How Pyth Works on EVM Chains" below for more information.
uint fee = pyth.getUpdateFee(priceUpdateData);
pyth.updatePriceFeeds{ value: fee }(priceUpdateData);
Expand Down