diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ace1a5..965c40e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,8 +35,8 @@ ## 2.7.2 ### Changed -- Added pythtest program key and cluster url -- Updated examples to work with pythtest +- Added pythtest-conformance program key and cluster url +- Updated examples to work with pythtest-conformance ## 2.7.1 Moved solana/web3 to peerDependencies diff --git a/package-lock.json b/package-lock.json index b209053..82cc215 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pythnetwork/client", - "version": "2.15.1", + "version": "2.16.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@pythnetwork/client", - "version": "2.15.1", + "version": "2.16.0", "license": "Apache-2.0", "dependencies": { "@coral-xyz/anchor": "^0.26.0", diff --git a/package.json b/package.json index d270e1d..1d2b0db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/client", - "version": "2.15.1", + "version": "2.16.0", "description": "Client for consuming Pyth price data", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/src/cluster.ts b/src/cluster.ts index f8f38c7..fd09c0d 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -1,13 +1,14 @@ import { Cluster, clusterApiUrl, PublicKey } from '@solana/web3.js' -export type PythCluster = Cluster | 'pythtest' | 'pythnet' | 'localnet' +export type PythCluster = Cluster | 'pythtest-conformance' | 'pythnet' | 'localnet' | 'pythtest-crosschain' /** Mapping from solana clusters to the public key of the pyth program. */ const clusterToPythProgramKey: Record = { 'mainnet-beta': 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH', devnet: 'gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s', + 'pythtest-crosschain': `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s`, testnet: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz', - pythtest: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz', + 'pythtest-conformance': '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz', pythnet: 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH', localnet: 'gMYYig2utAxVoXnM9UhtTWrt8e7x2SVBZqsWZJeT5Gw', } @@ -28,7 +29,7 @@ export function getPythProgramKeyForCluster(cluster: PythCluster): PublicKey { /** Retrieves the RPC API URL for the specified Pyth cluster */ export function getPythClusterApiUrl(cluster: PythCluster): string { // TODO: Add pythnet when it's ready - if (cluster === 'pythtest') { + if (cluster === 'pythtest-conformance' || cluster === 'pythtest-crosschain') { return 'https://api.pythtest.pyth.network' } else if (cluster === 'pythnet') { return 'https://pythnet.rpcpool.com'