class QueryApiImpl extends AbstractApi implements QueryApi {

  @Override
  public List<Event> listEvents(final EventFilter filter) {
    try {
      return getClient().getContractOperation().listEvents(filter);
    } catch (Exception e) {
      throw converter.convert(e);
    }
  }

}