Skip to content

Commit d2d2d14

Browse files
committed
Add pythdev
1 parent 214de5d commit d2d2d14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cluster.ts

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

3-
export type PythCluster = Cluster | 'pythtest' | 'pythnet' | 'localnet' | 'xc-devnet'
3+
export type PythCluster = Cluster | 'pythtest' | 'pythnet' | 'localnet' | 'pythdev'
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-
'xc-devnet': `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s`,
9+
'pythdev': `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s`,
1010
testnet: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz',
1111
pythtest: '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz',
1212
pythnet: 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH',
@@ -29,7 +29,7 @@ export function getPythProgramKeyForCluster(cluster: PythCluster): PublicKey {
2929
/** Retrieves the RPC API URL for the specified Pyth cluster */
3030
export function getPythClusterApiUrl(cluster: PythCluster): string {
3131
// TODO: Add pythnet when it's ready
32-
if (cluster === 'pythtest' || cluster === 'xc-devnet') {
32+
if (cluster === 'pythtest' || cluster === 'pythdev') {
3333
return 'https://api.pythtest.pyth.network'
3434
} else if (cluster === 'pythnet') {
3535
return 'https://pythnet.rpcpool.com'

0 commit comments

Comments
 (0)