Skip to content
Snippets Groups Projects

Beekeepy: Add session holder class and session token handling

Merged Krzysztof Mochocki requested to merge kmochocki/beekeepy into develop
Compare and Show latest version
13 files
+ 140
41
Compare changes
  • Side-by-side
  • Inline
Files
13
from __future__ import annotations
from typing import Any
from typing import TYPE_CHECKING, Any
from helpy._handles.abc.api import AbstractAsyncApi
from helpy._handles.beekeeper.api.apply_session_token import apply_session_token
from helpy._handles.beekeeper.api.session_holder import SessionHolder
from schemas.apis import beekeeper_api # noqa: TCH001
from schemas.transaction import Transaction # noqa: TCH001
if TYPE_CHECKING:
from schemas.apis import beekeeper_api
class BeekeeperApi(AbstractAsyncApi):
@@ -152,7 +153,9 @@ class BeekeeperApi(AbstractAsyncApi):
raise NotImplementedError
@api
async def sign_digest(self, *, sig_digest: str, public_key: str, wallet_name: str | None = None) -> beekeeper_api.SignDigest:
async def sign_digest(
self, *, sig_digest: str, public_key: str, wallet_name: str | None = None
) -> beekeeper_api.SignDigest:
"""Signs given digest with private key paired with given public key.
Arguments:
Loading