From 6e34ad603ee0639fdc83a71d5b6c5dfaf7c7d550 Mon Sep 17 00:00:00 2001 From: Kevin Hoerr Date: Mon, 4 May 2026 17:15:24 -0400 Subject: Remove counter from store --- src/app/store/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/app/store/mod.rs') diff --git a/src/app/store/mod.rs b/src/app/store/mod.rs index 213c4a2..a840976 100644 --- a/src/app/store/mod.rs +++ b/src/app/store/mod.rs @@ -55,8 +55,12 @@ impl Default for AppContext { pub trait Store { fn init(&mut self) -> Result<(), ContextError>; - fn get_counter(&self) -> Result; - fn set_counter(&mut self, new_count: u8) -> Result; + fn get_accounts(&self) -> Result, ContextError>; + fn get_symbols(&self) -> Result, ContextError>; + fn get_events(&self) -> Result, ContextError>; + fn add_account(&mut self, account: &FiduciaryAccount) -> Result<(), ContextError>; + fn add_symbol(&mut self, symbol: &EquitySymbol) -> Result<(), ContextError>; + fn add_event(&mut self, event: &EquityChangeEvent) -> Result<(), ContextError>; } impl AppContext { -- cgit v1.3