mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 10:34:20 +01:00
21 lines
470 B
Python
21 lines
470 B
Python
from typing import Dict, Mapping, Protocol
|
|
|
|
from ..core.base import Method, MintKeyset, Unit
|
|
from ..core.db import Database
|
|
from ..lightning.base import LightningBackend
|
|
from ..mint.crud import LedgerCrud
|
|
|
|
|
|
class SupportsKeysets(Protocol):
|
|
keyset: MintKeyset
|
|
keysets: Dict[str, MintKeyset]
|
|
|
|
|
|
class SupportsBackends(Protocol):
|
|
backends: Mapping[Method, Mapping[Unit, LightningBackend]] = {}
|
|
|
|
|
|
class SupportsDb(Protocol):
|
|
db: Database
|
|
crud: LedgerCrud
|