usawa

Signed, immutable accounting.
Info | Log | Files | Refs | Submodules | LICENSE

commit 133f99202b42ae66a7ab263c96b617dd5384afd2
parent fcfd936b1edd67796b97bac64127394627118109
Author: Carlosokumu <carlosokumu254@gmail.com>
Date:   Mon,  2 Mar 2026 08:40:59 +0300

add getter for assets bytes and next serial in the ledger state

Diffstat:
Mdummy/usawa/gui/controllers/entry_controller.py | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/dummy/usawa/gui/controllers/entry_controller.py b/dummy/usawa/gui/controllers/entry_controller.py @@ -62,4 +62,14 @@ class EntryController: def notify_entry_created(self): for callback in self._entry_created_listeners: - callback() -\ No newline at end of file + callback() + + + def next_serial(self, entries: list | None = None) -> int: + if entries is None: + entries = self.get_all_entries() + return len(entries) + 1 + + + def get_asset_bytes(self, digest: bytes) -> bytes: + return self.entry_service.get_asset_bytes(digest=digest) +\ No newline at end of file