From 9b2b35dec9f263bf23afa33838c040e18b8ade71 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Wed, 16 Oct 2024 18:35:15 +0100 Subject: [PATCH] added debts calls --- skale/contracts/paymaster/paymaster.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/skale/contracts/paymaster/paymaster.py b/skale/contracts/paymaster/paymaster.py index 1c7efea1..38352cd0 100644 --- a/skale/contracts/paymaster/paymaster.py +++ b/skale/contracts/paymaster/paymaster.py @@ -138,3 +138,13 @@ def skip_time(self, seconds: int) -> TxRes: def get_effective_timestamp(self) -> int: return self.contract.functions.effectiveTimestamp().call() + + def get_debts_amount(self, debt_id: int) -> int: + return self.contrct.functions.debts(debt_id).call() + + def get_debts_begin(self) -> int: + return self.contract.functions.debtsBegin().call() + + def get_debts_end(self) -> int: + return self.contrsct.functions.debtsEnd().call() + \ No newline at end of file