8
8
from typing import List , Any
9
9
10
10
from 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
12
12
13
13
sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
14
14
from pythclient .pythclient import PythClient # noqa
@@ -34,13 +34,13 @@ def set_to_exit(sig: Any, frame: Any):
34
34
async def main ():
35
35
global to_exit
36
36
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" )
39
39
async with PythClient (
40
40
first_mapping_account_key = v2_first_mapping_account_key ,
41
41
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
44
44
) as c :
45
45
await c .refresh_all_prices ()
46
46
products = await c .get_products ()
0 commit comments