Skip to content

Commit

Permalink
Merge pull request #27 from initia-labs/fix/table-entry-query
Browse files Browse the repository at this point in the history
fix: table entry query to receive key_bytes as params
  • Loading branch information
beer-1 authored Dec 5, 2023
2 parents c82131d + e914baa commit 366cc97
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 105 deletions.
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

17 changes: 4 additions & 13 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47792,9 +47792,6 @@ paths:
description: params defines the parameters of the module.
type: object
properties:
max_module_size:
type: string
format: uint64
base_denom:
type: string
base_min_gas_price:
Expand Down Expand Up @@ -48080,7 +48077,7 @@ paths:
type: boolean
tags:
- Query
/initia/move/v1/tables/{address}/entries/{key_bytes}:
/initia/move/v1/tables/{address}/entries/by_key_bytes:
get:
summary: Query table entry of the given key
operationId: TableEntry
Expand Down Expand Up @@ -48142,9 +48139,9 @@ paths:
required: true
type: string
- name: key_bytes
description: a key of the table entry
in: path
required: true
description: a key of the table entry.
in: query
required: false
type: string
format: byte
tags:
Expand Down Expand Up @@ -78616,9 +78613,6 @@ definitions:
initia.move.v1.Params:
type: object
properties:
max_module_size:
type: string
format: uint64
base_denom:
type: string
base_min_gas_price:
Expand Down Expand Up @@ -78737,9 +78731,6 @@ definitions:
description: params defines the parameters of the module.
type: object
properties:
max_module_size:
type: string
format: uint64
base_denom:
type: string
base_min_gas_price:
Expand Down
2 changes: 1 addition & 1 deletion proto/initia/move/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ service Query {

// Query table entry of the given key
rpc TableEntry(QueryTableEntryRequest) returns (QueryTableEntryResponse) {
option (google.api.http).get = "/initia/move/v1/tables/{address}/entries/{key_bytes}";
option (google.api.http).get = "/initia/move/v1/tables/{address}/entries/by_key_bytes";
}

// Query table entries with pagination
Expand Down
146 changes: 73 additions & 73 deletions x/move/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 13 additions & 17 deletions x/move/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 366cc97

Please sign in to comment.