Coverage for src/fluree_py/http/protocol/ledger.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-02 03:03 +0000

1from typing import Protocol 

2 

3from fluree_py.http.protocol.endpoint import ( 

4 CreateBuilder, 

5 HistoryBuilder, 

6 QueryBuilder, 

7 TransactionBuilder, 

8) 

9 

10 

11class SupportsLedgerOperations(Protocol): 

12 """Protocol defining core ledger operations.""" 

13 

14 def create(self) -> CreateBuilder: ... 

15 def transaction(self) -> TransactionBuilder: ... 

16 def query(self) -> QueryBuilder: ... 

17 def history(self) -> HistoryBuilder: ...