From bd9c1262474ea4465a24186adc31daf566a48ca8 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:32:35 -0600 Subject: [PATCH] Use proxy rpcs (#659) --- .../utils/pythClusterApiUrl.ts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/governance/xc_admin/packages/xc_admin_frontend/utils/pythClusterApiUrl.ts b/governance/xc_admin/packages/xc_admin_frontend/utils/pythClusterApiUrl.ts index 43ea49c4..42f5fe06 100644 --- a/governance/xc_admin/packages/xc_admin_frontend/utils/pythClusterApiUrl.ts +++ b/governance/xc_admin/packages/xc_admin_frontend/utils/pythClusterApiUrl.ts @@ -2,6 +2,10 @@ import { PythCluster } from '@pythnetwork/client/lib/cluster' const CLUSTER_URLS: Record = { 'mainnet-beta': [ + { + rpcUrl: 'http://mainnet.xyz.pyth.network', + wsUrl: 'ws://mainnet.xyz.pyth.network', + }, { rpcUrl: 'https://pyth-network.rpcpool.com/' + @@ -24,24 +28,40 @@ const CLUSTER_URLS: Record = { }, ], devnet: [ + { + rpcUrl: 'http://devnet.xyz.pyth.network', + wsUrl: 'ws://devnet.xyz.pyth.network', + }, { rpcUrl: 'https://api.devnet.solana.com/', wsUrl: 'wss://api.devnet.solana.com/', }, ], testnet: [ + { + rpcUrl: 'http://testnet.xyz.pyth.network', + wsUrl: 'ws://testnet.xyz.pyth.network', + }, { rpcUrl: 'https://api.testnet.solana.com/', wsUrl: 'wss://api.testnet.solana.com/', }, ], pythtest: [ + { + rpcUrl: 'http://pythtest.xyz.pyth.network', + wsUrl: 'ws://pythtest.xyz.pyth.network', + }, { rpcUrl: 'https://api.pythtest.pyth.network/', wsUrl: 'wss://api.pythtest.pyth.network/', }, ], pythnet: [ + { + rpcUrl: 'http://pythnet.xyz.pyth.network', + wsUrl: 'ws://pythnet.xyz.pyth.network', + }, { rpcUrl: 'https://pythnet.rpcpool.com/', wsUrl: 'wss://pythnet.rpcpool.com/',