-
Notifications
You must be signed in to change notification settings - Fork 31
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: modify wasm grpc query api path. #453
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31049,7 +31049,7 @@ paths: | |
format: byte | ||
tags: | ||
- Query | ||
/line/wasm/v1/code: | ||
/lbm/wasm/v1/code: | ||
get: | ||
summary: Codes gets the metadata for all stored wasm codes | ||
operationId: Codes | ||
|
@@ -31354,7 +31354,7 @@ paths: | |
format: boolean | ||
tags: | ||
- Query | ||
'/line/wasm/v1/code/{code_id}': | ||
'/lbm/wasm/v1/code/{code_id}': | ||
get: | ||
summary: Code gets the binary code and metadata for a singe wasm code | ||
operationId: Code | ||
|
@@ -31600,7 +31600,7 @@ paths: | |
format: uint64 | ||
tags: | ||
- Query | ||
'/line/wasm/v1/code/{code_id}/contracts': | ||
'/lbm/wasm/v1/code/{code_id}/contracts': | ||
get: | ||
summary: ContractsByCode lists all smart contracts for a code id | ||
operationId: ContractsByCode | ||
|
@@ -31880,7 +31880,7 @@ paths: | |
format: boolean | ||
tags: | ||
- Query | ||
'/line/wasm/v1/contract/{address}': | ||
'/lbm/wasm/v1/contract/{address}': | ||
get: | ||
summary: ContractInfo gets the contract meta data | ||
operationId: ContractInfo | ||
|
@@ -32328,7 +32328,7 @@ paths: | |
type: string | ||
tags: | ||
- Query | ||
'/line/wasm/v1/contract/{address}/history': | ||
'/lbm/wasm/v1/contract/{address}/history': | ||
get: | ||
summary: ContractHistory gets the contract code history | ||
operationId: ContractHistory | ||
|
@@ -32650,51 +32650,23 @@ paths: | |
format: boolean | ||
tags: | ||
- Query | ||
'/line/wasm/v1/contract/{address}/state': | ||
'/lbm/wasm/v1/contract/{address}/raw/{query_data}': | ||
get: | ||
summary: AllContractState gets all raw store data for a single contract | ||
operationId: AllContractState | ||
summary: RawContractState gets single key from the raw store data of a contract | ||
operationId: RawContractState | ||
responses: | ||
'200': | ||
description: A successful response. | ||
schema: | ||
type: object | ||
properties: | ||
models: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
key: | ||
type: string | ||
format: byte | ||
title: hex-encode key to read it better (this is often ascii) | ||
value: | ||
type: string | ||
format: byte | ||
title: base64-encode raw value | ||
title: Model is a struct that holds a KV pair | ||
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 | ||
data: | ||
type: string | ||
format: byte | ||
title: Data contains the raw store data | ||
title: |- | ||
QueryAllContractStateResponse is the response type for the | ||
Query/AllContractState RPC method | ||
QueryRawContractStateResponse is the response type for the | ||
Query/RawContractState RPC method | ||
default: | ||
description: An unexpected error response | ||
schema: | ||
|
@@ -32890,59 +32862,17 @@ 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 | ||
- name: query_data | ||
in: path | ||
required: true | ||
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 | ||
format: boolean | ||
tags: | ||
- Query | ||
'/wasm/v1/contract/{address}/raw/{query_data}': | ||
'/lbm/wasm/v1/contract/{address}/smart/{query_data}': | ||
get: | ||
summary: RawContractState gets single key from the raw store data of a contract | ||
operationId: RawContractState | ||
summary: SmartContractState get smart query result from the contract | ||
operationId: SmartContractState | ||
responses: | ||
'200': | ||
description: A successful response. | ||
|
@@ -32952,10 +32882,10 @@ paths: | |
data: | ||
type: string | ||
format: byte | ||
title: Data contains the raw store data | ||
title: Data contains the json data returned from the smart contract | ||
title: |- | ||
QueryRawContractStateResponse is the response type for the | ||
Query/RawContractState RPC method | ||
QuerySmartContractStateResponse is the response type for the | ||
Query/SmartContractState RPC method | ||
default: | ||
description: An unexpected error response | ||
schema: | ||
|
@@ -33152,29 +33082,58 @@ paths: | |
required: true | ||
type: string | ||
- name: query_data | ||
description: QueryData contains the query data passed to the contract | ||
in: path | ||
required: true | ||
type: string | ||
format: byte | ||
tags: | ||
- Query | ||
'/wasm/v1/contract/{address}/smart/{query_data}': | ||
'/lbm/wasm/v1/contract/{address}/state': | ||
get: | ||
summary: SmartContractState get smart query result from the contract | ||
operationId: SmartContractState | ||
summary: AllContractState gets all raw store data for a single contract | ||
operationId: AllContractState | ||
responses: | ||
'200': | ||
description: A successful response. | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
type: string | ||
format: byte | ||
title: Data contains the json data returned from the smart contract | ||
models: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
key: | ||
type: string | ||
format: byte | ||
title: hex-encode key to read it better (this is often ascii) | ||
value: | ||
type: string | ||
format: byte | ||
title: base64-encode raw value | ||
title: Model is a struct that holds a KV pair | ||
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 | ||
title: |- | ||
QuerySmartContractStateResponse is the response type for the | ||
Query/SmartContractState RPC method | ||
QueryAllContractStateResponse is the response type for the | ||
Query/AllContractState RPC method | ||
default: | ||
description: An unexpected error response | ||
schema: | ||
|
@@ -33370,12 +33329,53 @@ paths: | |
in: path | ||
required: true | ||
type: string | ||
- name: query_data | ||
description: QueryData contains the query data passed to the contract | ||
in: path | ||
required: true | ||
- 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 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
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 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
is set. | ||
in: query | ||
required: false | ||
type: boolean | ||
format: boolean | ||
tags: | ||
- Query | ||
/lbm/consortium/v1/params: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Unnecessary line breaks in a sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swagger.yaml
file is generated bymake proto-swagger-gen
.So, we don't need to modify swagger file.