Skip to content
Snippets Groups Projects

Add synchronization between node and clive

Merged Krzysztof Mochocki requested to merge kmochocki/node-connection into develop
2 files
+ 9
5
Compare changes
  • Side-by-side
  • Inline
Files
2
from __future__ import annotations
from clive import models # noqa: TCH001
from clive.__private.core.node.api.api import Api
from schemas.account_history_api import response_schemas # noqa: TCH001
@@ -14,11 +15,13 @@ class AccountHistoryApi(Api):
include_reversible: bool = True,
operation_filter_low: int | None = None,
operation_filter_high: int | None = None,
) -> response_schemas.GetAccountHistory:
) -> response_schemas.GetAccountHistory[models.ApiOperationObject, models.ApiVirtualOperationObject]:
raise NotImplementedError()
@Api.method
def get_transaction(self, id_: str, include_reversible: bool = True) -> response_schemas.GetTransaction:
def get_transaction(
self, id_: str, include_reversible: bool = True
) -> response_schemas.GetTransaction[models.ApiOperationObject]:
raise NotImplementedError()
@Api.method
@@ -31,10 +34,10 @@ class AccountHistoryApi(Api):
limit: int | None = None,
include_reversible: bool = True,
group_by_block: bool = False,
) -> response_schemas.EnumVirtualOps:
) -> response_schemas.EnumVirtualOps[models.ApiVirtualOperationObject]:
raise NotImplementedError()
def get_ops_in_block(
self, block_num: int, only_virtual: bool = False, include_reversible: bool = True
) -> response_schemas.GetOpsInBlock:
) -> response_schemas.GetOpsInBlock[models.ApiOperationObject, models.ApiVirtualOperationObject]:
raise NotImplementedError()
Loading