Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: table entry query to receive key_bytes as params #27

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading