Skip to content
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

Merged
merged 21 commits into from
Nov 22, 2023
Merged

bulk account loader #41

merged 21 commits into from
Nov 22, 2023

Conversation

crispheaney
Copy link
Member

No description provided.

)
rpc_requests.append(rpc_request)

resp = await self.connection._provider.session.post(
Copy link
Member Author

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]]:
Copy link
Member Author

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)
Copy link
Member

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

Copy link
Member Author

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
Copy link
Member

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

Copy link
Member Author

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

@crispheaney crispheaney merged commit 8c85414 into master Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants