partisia blockchain double registers wip
This commit is contained in:
parent
6e3c9a117b
commit
ffc95d8f99
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user