Beispiel #1
0
 def get_event_handle_by_query_path(self, query_path):
     if AccountConfig.account_received_event_path() == query_path:
         return self.received_events
     elif AccountConfig.account_sent_event_path() == query_path:
         return self.sent_events
     else:
         libra.proof.bail("Unrecognized query path: {}", query_path)
Beispiel #2
0
 def get_events_sent(self,
                     address,
                     start_sequence_number,
                     ascending=True,
                     limit=1):
     path = AccountConfig.account_sent_event_path()
     return self.get_events(address, path, start_sequence_number, ascending,
                            limit)