-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bulk account loader #41
Conversation
) | ||
rpc_requests.append(rpc_request) | ||
|
||
resp = await self.connection._provider.session.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add time out
@abstractmethod | ||
def unsubscribe(self): | ||
pass | ||
|
||
@abstractmethod | ||
async def get_user_account_and_slot(self) -> Optional[DataAndSlot[User]]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should i make these not async?
@@ -72,7 +72,7 @@ def __init__( | |||
self.subaccounts = [0] | |||
|
|||
if account_subscriber is None: | |||
account_subscriber = CachedDriftClientAccountSubscriber(self.program) | |||
account_subscriber = WebsocketDriftClientAccountSubscriber(self.program) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is default to websocket? is that same as typescript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah
if "1K" in str(oracle_source): | ||
scale = 1e3 | ||
elif "1M" in str(oracle_source): | ||
scale = 1e6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: add support for the stable type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah and there is an issue with Pyth versus PYTH
No description provided.