Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 0882621

Browse files
authored
Update price service endpoint (#39)
1 parent 1f95337 commit 0882621

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

pyth-evm-js/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Pyth prices and submit them to the network:
2626

2727
```typescript
2828
const connection = new EvmPriceServiceConnection(
29-
"https://prices.testnet.pyth.network"
29+
"https://xc-testnet.pyth.network"
3030
); // See Price Service endpoints section below for other endpoints
3131

3232
const priceIds = [
@@ -97,7 +97,7 @@ There are two examples in [examples](./src/examples/).
9797
[This example](./src/examples/EvmPriceServiceClient.ts) fetches `PriceFeed` updates using both a HTTP-request API and a streaming websocket API. You can run it with `npm run example-client`. A full command that prints BTC and ETH price feeds, in the testnet network, looks like so:
9898

9999
```bash
100-
npm run example-client -- --endpoint https://prices.testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
100+
npm run example-client -- --endpoint https://xc-testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
101101
```
102102

103103
#### EvmRelay
@@ -111,7 +111,7 @@ npm run example-client -- --endpoint https://prices.testnet.pyth.network --price
111111
You can run this example with `npm run example-relay`. A full command that updates BTC and ETH prices on the BNB Chain testnet network looks like so:
112112

113113
```bash
114-
npm run example-relay -- --network bnb_testnet --mnemonic "my good mnemonic" --endpoint https://prices.testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
114+
npm run example-relay -- --network bnb_testnet --mnemonic "my good mnemonic" --endpoint https://xc-testnet.pyth.network --price-ids 0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6
115115
```
116116

117117
## How Pyth Works on EVM Chains
@@ -128,7 +128,7 @@ Price updates are not submitted on the EVM networks automatically: rather, when
128128

129129
Public endpoints for the Price Service are provided for both mainnet and testnet. These can be used regardless of which network you deploy your own contracts to as long as it is a Pyth supported network. For example, you can use the testnet Price Service whether you are deploying your contract to the BNB or Polygon testnet.
130130

131-
| network | url |
132-
| ------- | ----------------------------------- |
133-
| mainnet | https://prices.mainnet.pyth.network |
134-
| testnet | https://prices.testnet.pyth.network |
131+
| network | url |
132+
| ------- | ------------------------------- |
133+
| mainnet | https://xc-mainnet.pyth.network |
134+
| testnet | https://xc-testnet.pyth.network |

pyth-evm-price-pusher/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ The program accepts the following command line arguments:
7272
You can find the networks on which pyth is live and their corresponding names
7373
[here](../pyth-evm-js/src/index.ts#L13). An example is `bnb_testnet`.
7474
- `price-endpoint`: Endpoint URL for the price service. You can use
75-
`https://prices.testnet.pyth.network` for testnet and
76-
`https://prices.mainnet.pyth.network` for mainnet. It is recommended
75+
`https://xc-testnet.pyth.network` for testnet and
76+
`https://xc-mainnet.pyth.network` for mainnet. It is recommended
7777
to run a standalone price service for more resiliency.
7878
- `price-config-file`: Path to price configuration YAML file.
7979
- `cooldown-duration` (Optional): The amount of time (in seconds) to wait between pushing
@@ -89,7 +89,7 @@ For example, to push `BTC/USD` and `BNB/USD` prices on BNB testnet, run the foll
8989

9090
```sh
9191
npm run start -- --evm-endpoint "https://data-seed-prebsc-1-s1.binance.org:8545" --mnemonic-file "path/to/mnemonic.txt" \
92-
--pyth-contract bnb_testnet --price-endpoint https://prices.testnet.pyth.network \
92+
--pyth-contract bnb_testnet --price-endpoint https://xc-testnet.pyth.network \
9393
--price-config-file "price-config.testnet.sample.yaml"
9494
```
9595

pyth-terra-js/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Pyth prices before submitting them to Terra:
2626

2727
```typescript
2828
const connection = new TerraPriceServiceConnection(
29-
"https://prices.testnet.pyth.network"
29+
"https://xc-testnet.pyth.network"
3030
); // See Price Service endpoints section below for other endpoints
3131

3232
const priceIds = [
@@ -76,7 +76,7 @@ There are two examples in [examples](./src/examples/).
7676
[This example](./src/examples/TerraPriceServiceClient.ts) fetches `PriceFeed` updates using both a HTTP-request API and a streaming websocket API. You can run it with `npm run example-client`. A full command that prints BTC and LUNA price feeds, in the testnet network, looks like so:
7777

7878
```bash
79-
npm run example-client -- --endpoint https://prices.testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
79+
npm run example-client -- --endpoint https://xc-testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
8080
```
8181

8282
#### TerraRelay
@@ -90,7 +90,7 @@ npm run example-client -- --endpoint https://prices.testnet.pyth.network --price
9090
You can run this example with `npm run example-relay`. A full command that updates BTC and LUNA prices on the testnet network looks like so:
9191

9292
```bash
93-
npm run example-relay -- --network testnet --mnemonic "my good mnemonic" --endpoint https://prices.testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
93+
npm run example-relay -- --network testnet --mnemonic "my good mnemonic" --endpoint https://xc-testnet.pyth.network --price-ids f9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b 6de025a4cf28124f8ea6cb8085f860096dbc36d9c40002e221fc449337e065b2
9494
```
9595

9696
## How Pyth Works in Terra
@@ -107,7 +107,7 @@ Price updates are not submitted on the Terra network automatically: rather, when
107107

108108
Public endpoints for the Price Service are provided for both mainnet and testnet. These can be used regardless of which network you deploy your own contracts to as long as it is a Pyth supported network. For example, you can use the testnet Price Service whether you are deploying your contract to the BNB or Polygon testnet.
109109

110-
| network | url |
111-
| ------- | ----------------------------------- |
112-
| mainnet | https://prices.mainnet.pyth.network |
113-
| testnet | https://prices.testnet.pyth.network |
110+
| network | url |
111+
| ------- | ------------------------------- |
112+
| mainnet | https://xc-mainnet.pyth.network |
113+
| testnet | https://xc-testnet.pyth.network |

0 commit comments

Comments
 (0)