Skip to content

Commit

Permalink
Merge pull request #4 from EvgeniyZZ/paymaster-fix
Browse files Browse the repository at this point in the history
Added debts calls
  • Loading branch information
yatsunastya authored Oct 16, 2024
2 parents c6aa9eb + 9b2b35d commit 473058a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions skale/contracts/paymaster/paymaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 473058a

Please sign in to comment.