diff --git a/fin_depo/defi_partisia_blockchain.py b/fin_depo/defi_partisia_blockchain.py index effd28c..361df30 100644 --- a/fin_depo/defi_partisia_blockchain.py +++ b/fin_depo/defi_partisia_blockchain.py @@ -13,7 +13,14 @@ import fin_defs import requests from frozendict import frozendict -from .data import DepoFetcher, DepoGroup, DepoSingle +from .data import ( + DepoFetcher, + DepoGroup, + DepoSingle, + DepositDetails, + DoubleRegister, + WithdrawalDetails, +) logger = logging.getLogger(__name__) @@ -179,3 +186,16 @@ class PartisiaBlockchainAccountDepoFetcher(DepoFetcher): balances.update_time, [depo_mpc, depo_byoc], ) + + def _get_withdrawals(self) -> list[WithdrawalDetails]: + raise UnsupportedOperationException("TODO") + + def _get_deposits(self) -> list[DepositDetails]: + raise UnsupportedOperationException("TODO") + + def _get_double_registers(self) -> list[DoubleRegister]: + double_registers: list[DoubleRegister] = [] + double_registers += self._get_deposits() + double_registers += self._get_withdrawals() + double_registers.sort(key=lambda x: x.executed_time) + return double_registers