Skip to content

Commit f8976cd

Browse files
authored
Merge pull request #69 from pyth-network/add-xc-devnet
Add pythtest-crosschain
2 parents 8612a09 + 1c1270b commit f8976cd

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535

3636
## 2.7.2
3737
### Changed
38-
- Added pythtest program key and cluster url
39-
- Updated examples to work with pythtest
38+
- Added pythtest-conformance program key and cluster url
39+
- Updated examples to work with pythtest-conformance
4040

4141
## 2.7.1
4242
Moved solana/web3 to peerDependencies

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/client",
3-
"version": "2.15.1",
3+
"version": "2.16.0",
44
"description": "Client for consuming Pyth price data",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

src/cluster.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { Cluster, clusterApiUrl, PublicKey } from '@solana/web3.js'
22

3-
export type PythCluster = Cluster | 'pythtest' | 'pythnet' | 'localnet'
3+
export type PythCluster = Cluster | 'pythtest-conformance' | 'pythnet' | 'localnet' | 'pythtest-crosschain'
44

55
/** Mapping from solana clusters to the public key of the pyth program. */
66
const clusterToPythProgramKey: Record<PythCluster, string> = {
77
'mainnet-beta': 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH',
88
devnet: 'gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s',
9+
'pythtest-crosschain': `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s`,
910
testnet: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz',
10-
pythtest: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz',
11+
'pythtest-conformance': '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz',
1112
pythnet: 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH',
1213
localnet: 'gMYYig2utAxVoXnM9UhtTWrt8e7x2SVBZqsWZJeT5Gw',
1314
}
@@ -28,7 +29,7 @@ export function getPythProgramKeyForCluster(cluster: PythCluster): PublicKey {
2829
/** Retrieves the RPC API URL for the specified Pyth cluster */
2930
export function getPythClusterApiUrl(cluster: PythCluster): string {
3031
// TODO: Add pythnet when it's ready
31-
if (cluster === 'pythtest') {
32+
if (cluster === 'pythtest-conformance' || cluster === 'pythtest-crosschain') {
3233
return 'https://api.pythtest.pyth.network'
3334
} else if (cluster === 'pythnet') {
3435
return 'https://pythnet.rpcpool.com'

0 commit comments

Comments
 (0)