@pythnetwork/pyth-sui-js 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -21,14 +21,14 @@ $ yarn add @pythnetwork/pyth-sui-js
21
21
  Pyth stores prices off-chain to minimize gas fees, which allows us to offer a wider selection of products and faster update times.
22
22
  See [On-Demand Updates](https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand) for more information about this approach.
23
23
  Typically, to use Pyth prices on chain,
24
- they must be fetched from an off-chain price service. The `SuiPriceServiceConnection` class can be used to interact with these services,
24
+ they must be fetched from an off-chain Hermes instance. The `SuiPriceServiceConnection` class can be used to interact with these services,
25
25
  providing a way to fetch these prices directly in your code. The following example wraps an existing RPC provider and shows how to obtain
26
26
  Pyth prices and submit them to the network:
27
27
 
28
28
  ```typescript
29
29
  const connection = new SuiPriceServiceConnection(
30
30
  "https://hermes-beta.pyth.network"
31
- ); // See Price Service endpoints section below for other endpoints
31
+ ); // See Hermes endpoints section below for other endpoints
32
32
 
33
33
  const priceIds = [
34
34
  // You can find the ids of prices at https://pyth.network/developers/price-feed-ids#sui-testnet
@@ -99,7 +99,7 @@ Now in your contract you can consume the price by calling `pyth::get_price` or o
99
99
 
100
100
  [This example](./src/examples/SuiRelay.ts) shows how to update prices on an Sui network. It does the following:
101
101
 
102
- 1. Fetches update data from the Price Service for the given price feeds.
102
+ 1. Fetches update data from Hermes for the given price feeds.
103
103
  2. Calls the Pyth Sui contract with the update data.
104
104
 
105
105
  You can run this example with `npm run example-relay`. A full command that updates prices on Sui testnet looks like:
@@ -148,4 +148,6 @@ setTimeout(() => {
148
148
  }, 60000);
149
149
  ```
150
150
 
151
- ## [Price Service endpoints](https://docs.pyth.network/documentation/pythnet-price-feeds/price-service#public-endpoints)
151
+ ## Hermes endpoints
152
+
153
+ You can find the list of Hermes public endpoints [here](https://docs.pyth.network/documentation/pythnet-price-feeds/hermes#public-endpoints).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pythnetwork/pyth-sui-js",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Pyth Network Sui Utilities",
5
5
  "homepage": "https://pyth.network",
6
6
  "author": {
@@ -57,5 +57,5 @@
57
57
  "@pythnetwork/price-service-client": "*",
58
58
  "buffer": "^6.0.3"
59
59
  },
60
- "gitHead": "061f6a028d152ce586c9f9ea237fccdb68144328"
60
+ "gitHead": "44ebfbaf5512acd96a12b3cdf361b47e64802dbf"
61
61
  }