def get_older_transactions(self, token_uid: bytes, timestamp: int,
                            hash_bytes: bytes,
                            count: int) -> Tuple[List[bytes], bool]:
     it = self._iter_transactions(token_uid,
                                  _TxIndex(hash_bytes, timestamp),
                                  reverse=True)
     return collect_n(it, count)
 def get_newer(self, timestamp: int, hash_bytes: bytes,
               count: int) -> Tuple[List[bytes], bool]:
     it = (x for _, x in self._iter(timestamp, hash_bytes))
     return collect_n(it, count)
 def get_newest_transactions(self, token_uid: bytes,
                             count: int) -> Tuple[List[bytes], bool]:
     it = self._iter_transactions(token_uid, reverse=True)
     return collect_n(it, count)
 def get_newest(self, count: int) -> Tuple[List[bytes], bool]:
     it = (x for _, x in self._iter(reverse=True))
     return collect_n(it, count)