evm: log pagination (#544)

* evm: log pagination

* tidy
This commit is contained in:
Federico Kunze Küllmer
2021-09-09 14:26:30 +00:00
committed by GitHub
parent b0091d4355
commit 587cf78b5c
8 changed files with 352 additions and 108 deletions
+89
View File
@@ -2999,6 +2999,24 @@ paths:
description: >-
logs represents the ethereum logs generated from the given
transaction.
pagination:
description: pagination defines the pagination in the response.
type: object
properties:
next_key:
type: string
format: byte
title: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently
total:
type: string
format: uint64
title: >-
total is total number of results available if
PageRequest.count_total
was set, its value is undefined otherwise
description: QueryTxLogs is the response type for the Query/TxLogs RPC method.
default:
description: An unexpected error response.
@@ -3195,6 +3213,59 @@ paths:
in: path
required: true
type: string
- name: pagination.key
description: |-
key is a value returned in PageResponse.next_key to begin
querying the next page most efficiently. Only one of offset or key
should be set.
in: query
required: false
type: string
format: byte
- name: pagination.offset
description: >-
offset is a numeric offset that can be used when key is unavailable.
It is less efficient than using key. Only one of offset or key
should
be set.
in: query
required: false
type: string
format: uint64
- name: pagination.limit
description: >-
limit is the total number of results to be returned in the result
page.
If left empty it will default to a value to be set by each app.
in: query
required: false
type: string
format: uint64
- name: pagination.count_total
description: >-
count_total is set to true to indicate that the result set should
include
a count of the total number of items available for pagination in
UIs.
count_total is only respected when offset is used. It is ignored
when key
is set.
in: query
required: false
type: boolean
- name: pagination.reverse
description: >-
reverse is set to true if results are to be returned in the
descending order.
in: query
required: false
type: boolean
tags:
- Query
'/ethermint/evm/v1/validator_account/{cons_address}':
@@ -14526,6 +14597,24 @@ definitions:
description: >-
logs represents the ethereum logs generated from the given
transaction.
pagination:
description: pagination defines the pagination in the response.
type: object
properties:
next_key:
type: string
format: byte
title: |-
next_key is the key to be passed to PageRequest.key to
query the next page most efficiently
total:
type: string
format: uint64
title: >-
total is total number of results available if
PageRequest.count_total
was set, its value is undefined otherwise
description: QueryTxLogs is the response type for the Query/TxLogs RPC method.
ethermint.evm.v1.QueryValidatorAccountResponse:
type: object