Skip to content

Commit ed0ce16

Browse files
authored
update dump.py to clarify PythClient args (#19)
* update dump.py to clarify PythClient args * change key back to devnet * add typing-extensions as requirements
1 parent 1fd7cb1 commit ed0ce16

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ celerybeat.pid
113113
.venv
114114
env/
115115
venv/
116+
ve/
116117
ENV/
117118
env.bak/
118119
venv.bak/

examples/dump.py

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from typing import List, Any
99

1010
from loguru import logger
11+
from pythclient.solana import SOLANA_DEVNET_HTTP_ENDPOINT, SOLANA_DEVNET_WS_ENDPOINT
1112

1213
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
1314
from pythclient.pythclient import PythClient # noqa
@@ -38,6 +39,8 @@ async def main():
3839
async with PythClient(
3940
first_mapping_account_key=v2_first_mapping_account_key,
4041
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
4144
) as c:
4245
await c.refresh_all_prices()
4346
products = await c.get_products()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
requirements = ['aiodns', 'aiohttp>=3.7.4', 'backoff', 'base58', 'dnspython', 'flake8', 'loguru']
3+
requirements = ['aiodns', 'aiohttp>=3.7.4', 'backoff', 'base58', 'dnspython', 'flake8', 'loguru', 'typing-extensions']
44

55
with open('README.md', 'r', encoding='utf-8') as fh:
66
long_description = fh.read()

0 commit comments

Comments
 (0)