1
1
import { Cluster , clusterApiUrl , PublicKey } from '@solana/web3.js'
2
2
3
- export type PythCluster = Cluster | 'pythtest' | 'pythnet' | 'localnet' | 'pythdev '
3
+ export type PythCluster = Cluster | 'pythtest-conformance ' | 'pythnet' | 'localnet' | 'pythtest-crosschain '
4
4
5
5
/** Mapping from solana clusters to the public key of the pyth program. */
6
6
const clusterToPythProgramKey : Record < PythCluster , string > = {
7
7
'mainnet-beta' : 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH' ,
8
8
devnet : 'gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s' ,
9
- 'pythdev ' : `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s` ,
9
+ 'pythtest-crosschain ' : `gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s` ,
10
10
testnet : '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz' ,
11
- pythtest : '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz' ,
11
+ ' pythtest-conformance' : '8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz' ,
12
12
pythnet : 'FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH' ,
13
13
localnet : 'gMYYig2utAxVoXnM9UhtTWrt8e7x2SVBZqsWZJeT5Gw' ,
14
14
}
@@ -29,8 +29,8 @@ export function getPythProgramKeyForCluster(cluster: PythCluster): PublicKey {
29
29
/** Retrieves the RPC API URL for the specified Pyth cluster */
30
30
export function getPythClusterApiUrl ( cluster : PythCluster ) : string {
31
31
// TODO: Add pythnet when it's ready
32
- if ( cluster === 'pythtest' || cluster === 'pythdev ' ) {
33
- return 'https://api.pythtest.pyth.network'
32
+ if ( cluster === 'pythtest-conformance ' || cluster === 'pythtest-crosschain ' ) {
33
+ return 'https://api.pythtest-conformance .pyth.network'
34
34
} else if ( cluster === 'pythnet' ) {
35
35
return 'https://pythnet.rpcpool.com'
36
36
} else if ( cluster === 'localnet' ) {
0 commit comments