Prechádzať zdrojové kódy

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

* test

* update

* update

* update

* update
Aditya Arora 8 mesiacov pred
rodič
commit
ba49373154

+ 4 - 1
target_chains/ethereum/sdk/js/README.md

@@ -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.

+ 1 - 1
target_chains/ethereum/sdk/solidity/PythAggregatorV3.sol

@@ -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);

+ 1 - 1
target_chains/ethereum/sdk/solidity/README.md

@@ -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);