88from typing import List , Any
99
1010from loguru import logger
11- from pythclient .solana import SOLANA_DEVNET_HTTP_ENDPOINT , SOLANA_DEVNET_WS_ENDPOINT
11+ from pythclient .solana import PYTHNET_HTTP_ENDPOINT , PYTHNET_WS_ENDPOINT
1212
1313sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
1414from pythclient .pythclient import PythClient # noqa
@@ -34,13 +34,13 @@ def set_to_exit(sig: Any, frame: Any):
3434async def main ():
3535 global to_exit
3636 use_program = len (sys .argv ) >= 2 and sys .argv [1 ] == "program"
37- v2_first_mapping_account_key = get_key ("devnet " , "mapping" )
38- v2_program_key = get_key ("devnet " , "program" )
37+ v2_first_mapping_account_key = get_key ("pythnet " , "mapping" )
38+ v2_program_key = get_key ("pythnet " , "program" )
3939 async with PythClient (
4040 first_mapping_account_key = v2_first_mapping_account_key ,
4141 program_key = v2_program_key if use_program else None ,
42- solana_endpoint = SOLANA_DEVNET_HTTP_ENDPOINT , # replace with the relevant cluster endpoints
43- solana_ws_endpoint = SOLANA_DEVNET_WS_ENDPOINT # replace with the relevant cluster endpoints
42+ solana_endpoint = PYTHNET_HTTP_ENDPOINT , # replace with the relevant cluster endpoints
43+ solana_ws_endpoint = PYTHNET_WS_ENDPOINT # replace with the relevant cluster endpoints
4444 ) as c :
4545 await c .refresh_all_prices ()
4646 products = await c .get_products ()
0 commit comments