mirror of
https://github.com/logos-blockchain/logos-blockchain-block-explorer-template.git
synced 2026-01-02 13:13:10 +00:00
21 lines
462 B
Python
21 lines
462 B
Python
from abc import ABC, abstractmethod
|
|
from typing import List
|
|
|
|
from node.models.blocks import Block
|
|
from node.models.health import Health
|
|
from node.models.transactions import Transaction
|
|
|
|
|
|
class NodeApi(ABC):
|
|
@abstractmethod
|
|
async def get_health_check(self) -> Health:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def get_transactions(self) -> List[Transaction]:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def get_blocks(self) -> List[Block]:
|
|
pass
|