-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consolidate type files and add Account suffix to mirror ts
- Loading branch information
1 parent
1c1daa5
commit a46a203
Showing
21 changed files
with
167 additions
and
597 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from typing import Optional | ||
|
||
from driftpy.accounts import DataAndSlot | ||
from driftpy.types import User | ||
from driftpy.types import UserAccount | ||
|
||
from driftpy.accounts.ws.account_subscriber import WebsocketAccountSubscriber | ||
from driftpy.accounts.types import UserAccountSubscriber | ||
|
||
|
||
class WebsocketUserAccountSubscriber( | ||
WebsocketAccountSubscriber[User], UserAccountSubscriber | ||
WebsocketAccountSubscriber[UserAccount], UserAccountSubscriber | ||
): | ||
async def get_user_account_and_slot(self) -> Optional[DataAndSlot[User]]: | ||
async def get_user_account_and_slot(self) -> Optional[DataAndSlot[UserAccount]]: | ||
return self.data_and_slot |
Oops, something went wrong.