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

x/wasm refactoring - detaching the custom wasm proto part of lbm-sdk #661

Merged
merged 5 commits into from
Sep 6, 2022
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (x/token) [\#636](https://github.com/line/lbm-sdk/pull/636) add creator into x/token EventIssue
* (x/token) [\#637](https://github.com/line/lbm-sdk/pull/637) rename x/token events
* (x/collection) [\#639](https://github.com/line/lbm-sdk/pull/639) rename x/collection events
* (x/wasm) [\#661](https://github.com/line/lbm-sdk/pull/661) x/wasm refactoring - detaching the custom wasm proto part of lbm-sdk. (apply changes of [\#625](https://github.com/line/lbm-sdk/pull/625) and [\#655](https://github.com/line/lbm-sdk/pull/655))

### Bug Fixes
* (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path
Expand Down
3 changes: 3 additions & 0 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
"Params": "FeegrantParams"
}
}
},
{
"url": "./tmp-swagger-gen/lbm/wasm/v1/query.swagger.json"
}
]
}
9 changes: 4 additions & 5 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

272 changes: 224 additions & 48 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31616,18 +31616,6 @@ paths:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
status:
title: Status is a status of a contract
type: string
enum:
- CONTRACT_STATUS_UNSPECIFIED
- CONTRACT_STATUS_ACTIVE
- CONTRACT_STATUS_INACTIVE
default: CONTRACT_STATUS_UNSPECIFIED
description: |-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
- CONTRACT_STATUS_ACTIVE: ContractStatus active
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
title: ContractInfo stores a WASM contract instance
title: >-
QueryContractInfoResponse is the response type for the
Expand Down Expand Up @@ -44320,6 +44308,183 @@ paths:
format: boolean
tags:
- Query
/lbm/wasm/v1/inactive_contracts:
get:
summary: InactiveContracts queries all inactive contracts
operationId: InactiveContracts
responses:
'200':
description: A successful response.
schema:
type: object
properties:
addresses:
type: array
items:
type: string
title: addresses is the inactive address list
pagination:
title: 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: >-
PageResponse is to be embedded in gRPC response messages where
the

corresponding request message has used PageRequest.

message SomeResponse {
repeated Bar results = 1;
PageResponse page = 2;
}
description: >-
QueryInactiveContractsResponse is the response type for the
Query/InactiveContract RPC method.
default:
description: An unexpected error response
schema:
type: object
properties:
error:
type: string
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
type_url:
type: string
value:
type: string
format: byte
parameters:
- 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
format: boolean
- name: pagination.reverse
description: >-
reverse is set to true if results are to be returned in the
descending order.


Since: cosmos-sdk 0.43
in: query
required: false
type: boolean
format: boolean
tags:
- Query
'/lbm/wasm/v1/inactive_contracts/{address}':
get:
operationId: InactiveContract
responses:
'200':
description: A successful response.
schema:
type: object
properties:
inactivated:
type: boolean
format: boolean
title: >-
inactivated is the result if the contract is inactive contract
or not
description: >-
QueryInactiveContractsResponse is the response type for the
Query/IsInactiveContract RPC method.
default:
description: An unexpected error response
schema:
type: object
properties:
error:
type: string
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
type_url:
type: string
value:
type: string
format: byte
parameters:
- name: address
description: address is the address of the contract
in: path
required: true
type: string
tags:
- Query
securityDefinitions:
kms:
type: basic
Expand Down Expand Up @@ -66902,31 +67067,7 @@ definitions:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
status:
title: Status is a status of a contract
type: string
enum:
- CONTRACT_STATUS_UNSPECIFIED
- CONTRACT_STATUS_ACTIVE
- CONTRACT_STATUS_INACTIVE
default: CONTRACT_STATUS_UNSPECIFIED
description: |-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
- CONTRACT_STATUS_ACTIVE: ContractStatus active
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
title: ContractInfo stores a WASM contract instance
cosmwasm.wasm.v1.ContractStatus:
type: string
enum:
- CONTRACT_STATUS_UNSPECIFIED
- CONTRACT_STATUS_ACTIVE
- CONTRACT_STATUS_INACTIVE
default: CONTRACT_STATUS_UNSPECIFIED
description: |-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
- CONTRACT_STATUS_ACTIVE: ContractStatus active
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
title: ContractStatus types
cosmwasm.wasm.v1.Model:
type: object
properties:
Expand Down Expand Up @@ -67361,18 +67502,6 @@ definitions:
"@type": "type.googleapis.com/google.protobuf.Duration",
"value": "1.212s"
}
status:
title: Status is a status of a contract
type: string
enum:
- CONTRACT_STATUS_UNSPECIFIED
- CONTRACT_STATUS_ACTIVE
- CONTRACT_STATUS_INACTIVE
default: CONTRACT_STATUS_UNSPECIFIED
description: |-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
- CONTRACT_STATUS_ACTIVE: ContractStatus active
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
title: ContractInfo stores a WASM contract instance
title: >-
QueryContractInfoResponse is the response type for the Query/ContractInfo
Expand Down Expand Up @@ -70737,3 +70866,50 @@ definitions:
description: >-
QueryAllowancesResponse is the response type for the Query/Allowances RPC
method.
lbm.wasm.v1.QueryInactiveContractResponse:
type: object
properties:
inactivated:
type: boolean
format: boolean
title: inactivated is the result if the contract is inactive contract or not
description: >-
QueryInactiveContractsResponse is the response type for the
Query/IsInactiveContract RPC method.
lbm.wasm.v1.QueryInactiveContractsResponse:
type: object
properties:
addresses:
type: array
items:
type: string
title: addresses is the inactive address list
pagination:
title: 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: |-
PageResponse is to be embedded in gRPC response messages where the
corresponding request message has used PageRequest.

message SomeResponse {
repeated Bar results = 1;
PageResponse page = 2;
}
description: >-
QueryInactiveContractsResponse is the response type for the
Query/InactiveContract RPC method.
Loading