Skip to content

Commit 070ab3f

Browse files
authored
Merge pull request #661 from line/feat/wasm_refactor
x/wasm refactoring - detaching the custom wasm proto part of lbm-sdk
2 parents ded22b3 + 2c25dba commit 070ab3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+6861
-2384
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
6767
* (x/token) [\#636](https://github.com/line/lbm-sdk/pull/636) add creator into x/token EventIssue
6868
* (x/token) [\#637](https://github.com/line/lbm-sdk/pull/637) rename x/token events
6969
* (x/collection) [\#639](https://github.com/line/lbm-sdk/pull/639) rename x/collection events
70+
* (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))
7071

7172
### Bug Fixes
7273
* (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path

client/docs/config.json

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@
200200
"Params": "FeegrantParams"
201201
}
202202
}
203+
},
204+
{
205+
"url": "./tmp-swagger-gen/lbm/wasm/v1/query.swagger.json"
203206
}
204207
]
205208
}

client/docs/statik/statik.go

+4-5
Large diffs are not rendered by default.

client/docs/swagger-ui/swagger.yaml

+224-48
Original file line numberDiff line numberDiff line change
@@ -31616,18 +31616,6 @@ paths:
3161631616
"@type": "type.googleapis.com/google.protobuf.Duration",
3161731617
"value": "1.212s"
3161831618
}
31619-
status:
31620-
title: Status is a status of a contract
31621-
type: string
31622-
enum:
31623-
- CONTRACT_STATUS_UNSPECIFIED
31624-
- CONTRACT_STATUS_ACTIVE
31625-
- CONTRACT_STATUS_INACTIVE
31626-
default: CONTRACT_STATUS_UNSPECIFIED
31627-
description: |-
31628-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
31629-
- CONTRACT_STATUS_ACTIVE: ContractStatus active
31630-
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
3163131619
title: ContractInfo stores a WASM contract instance
3163231620
title: >-
3163331621
QueryContractInfoResponse is the response type for the
@@ -44320,6 +44308,183 @@ paths:
4432044308
format: boolean
4432144309
tags:
4432244310
- Query
44311+
/lbm/wasm/v1/inactive_contracts:
44312+
get:
44313+
summary: InactiveContracts queries all inactive contracts
44314+
operationId: InactiveContracts
44315+
responses:
44316+
'200':
44317+
description: A successful response.
44318+
schema:
44319+
type: object
44320+
properties:
44321+
addresses:
44322+
type: array
44323+
items:
44324+
type: string
44325+
title: addresses is the inactive address list
44326+
pagination:
44327+
title: pagination defines the pagination in the response
44328+
type: object
44329+
properties:
44330+
next_key:
44331+
type: string
44332+
format: byte
44333+
title: |-
44334+
next_key is the key to be passed to PageRequest.key to
44335+
query the next page most efficiently
44336+
total:
44337+
type: string
44338+
format: uint64
44339+
title: >-
44340+
total is total number of results available if
44341+
PageRequest.count_total
44342+
44343+
was set, its value is undefined otherwise
44344+
description: >-
44345+
PageResponse is to be embedded in gRPC response messages where
44346+
the
44347+
44348+
corresponding request message has used PageRequest.
44349+
44350+
message SomeResponse {
44351+
repeated Bar results = 1;
44352+
PageResponse page = 2;
44353+
}
44354+
description: >-
44355+
QueryInactiveContractsResponse is the response type for the
44356+
Query/InactiveContract RPC method.
44357+
default:
44358+
description: An unexpected error response
44359+
schema:
44360+
type: object
44361+
properties:
44362+
error:
44363+
type: string
44364+
code:
44365+
type: integer
44366+
format: int32
44367+
message:
44368+
type: string
44369+
details:
44370+
type: array
44371+
items:
44372+
type: object
44373+
properties:
44374+
type_url:
44375+
type: string
44376+
value:
44377+
type: string
44378+
format: byte
44379+
parameters:
44380+
- name: pagination.key
44381+
description: |-
44382+
key is a value returned in PageResponse.next_key to begin
44383+
querying the next page most efficiently. Only one of offset or key
44384+
should be set.
44385+
in: query
44386+
required: false
44387+
type: string
44388+
format: byte
44389+
- name: pagination.offset
44390+
description: >-
44391+
offset is a numeric offset that can be used when key is unavailable.
44392+
44393+
It is less efficient than using key. Only one of offset or key
44394+
should
44395+
44396+
be set.
44397+
in: query
44398+
required: false
44399+
type: string
44400+
format: uint64
44401+
- name: pagination.limit
44402+
description: >-
44403+
limit is the total number of results to be returned in the result
44404+
page.
44405+
44406+
If left empty it will default to a value to be set by each app.
44407+
in: query
44408+
required: false
44409+
type: string
44410+
format: uint64
44411+
- name: pagination.count_total
44412+
description: >-
44413+
count_total is set to true to indicate that the result set should
44414+
include
44415+
44416+
a count of the total number of items available for pagination in
44417+
UIs.
44418+
44419+
count_total is only respected when offset is used. It is ignored
44420+
when key
44421+
44422+
is set.
44423+
in: query
44424+
required: false
44425+
type: boolean
44426+
format: boolean
44427+
- name: pagination.reverse
44428+
description: >-
44429+
reverse is set to true if results are to be returned in the
44430+
descending order.
44431+
44432+
44433+
Since: cosmos-sdk 0.43
44434+
in: query
44435+
required: false
44436+
type: boolean
44437+
format: boolean
44438+
tags:
44439+
- Query
44440+
'/lbm/wasm/v1/inactive_contracts/{address}':
44441+
get:
44442+
operationId: InactiveContract
44443+
responses:
44444+
'200':
44445+
description: A successful response.
44446+
schema:
44447+
type: object
44448+
properties:
44449+
inactivated:
44450+
type: boolean
44451+
format: boolean
44452+
title: >-
44453+
inactivated is the result if the contract is inactive contract
44454+
or not
44455+
description: >-
44456+
QueryInactiveContractsResponse is the response type for the
44457+
Query/IsInactiveContract RPC method.
44458+
default:
44459+
description: An unexpected error response
44460+
schema:
44461+
type: object
44462+
properties:
44463+
error:
44464+
type: string
44465+
code:
44466+
type: integer
44467+
format: int32
44468+
message:
44469+
type: string
44470+
details:
44471+
type: array
44472+
items:
44473+
type: object
44474+
properties:
44475+
type_url:
44476+
type: string
44477+
value:
44478+
type: string
44479+
format: byte
44480+
parameters:
44481+
- name: address
44482+
description: address is the address of the contract
44483+
in: path
44484+
required: true
44485+
type: string
44486+
tags:
44487+
- Query
4432344488
securityDefinitions:
4432444489
kms:
4432544490
type: basic
@@ -66902,31 +67067,7 @@ definitions:
6690267067
"@type": "type.googleapis.com/google.protobuf.Duration",
6690367068
"value": "1.212s"
6690467069
}
66905-
status:
66906-
title: Status is a status of a contract
66907-
type: string
66908-
enum:
66909-
- CONTRACT_STATUS_UNSPECIFIED
66910-
- CONTRACT_STATUS_ACTIVE
66911-
- CONTRACT_STATUS_INACTIVE
66912-
default: CONTRACT_STATUS_UNSPECIFIED
66913-
description: |-
66914-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
66915-
- CONTRACT_STATUS_ACTIVE: ContractStatus active
66916-
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
6691767070
title: ContractInfo stores a WASM contract instance
66918-
cosmwasm.wasm.v1.ContractStatus:
66919-
type: string
66920-
enum:
66921-
- CONTRACT_STATUS_UNSPECIFIED
66922-
- CONTRACT_STATUS_ACTIVE
66923-
- CONTRACT_STATUS_INACTIVE
66924-
default: CONTRACT_STATUS_UNSPECIFIED
66925-
description: |-
66926-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
66927-
- CONTRACT_STATUS_ACTIVE: ContractStatus active
66928-
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
66929-
title: ContractStatus types
6693067071
cosmwasm.wasm.v1.Model:
6693167072
type: object
6693267073
properties:
@@ -67361,18 +67502,6 @@ definitions:
6736167502
"@type": "type.googleapis.com/google.protobuf.Duration",
6736267503
"value": "1.212s"
6736367504
}
67364-
status:
67365-
title: Status is a status of a contract
67366-
type: string
67367-
enum:
67368-
- CONTRACT_STATUS_UNSPECIFIED
67369-
- CONTRACT_STATUS_ACTIVE
67370-
- CONTRACT_STATUS_INACTIVE
67371-
default: CONTRACT_STATUS_UNSPECIFIED
67372-
description: |-
67373-
- CONTRACT_STATUS_UNSPECIFIED: ContractStatus unspecified
67374-
- CONTRACT_STATUS_ACTIVE: ContractStatus active
67375-
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
6737667505
title: ContractInfo stores a WASM contract instance
6737767506
title: >-
6737867507
QueryContractInfoResponse is the response type for the Query/ContractInfo
@@ -70737,3 +70866,50 @@ definitions:
7073770866
description: >-
7073870867
QueryAllowancesResponse is the response type for the Query/Allowances RPC
7073970868
method.
70869+
lbm.wasm.v1.QueryInactiveContractResponse:
70870+
type: object
70871+
properties:
70872+
inactivated:
70873+
type: boolean
70874+
format: boolean
70875+
title: inactivated is the result if the contract is inactive contract or not
70876+
description: >-
70877+
QueryInactiveContractsResponse is the response type for the
70878+
Query/IsInactiveContract RPC method.
70879+
lbm.wasm.v1.QueryInactiveContractsResponse:
70880+
type: object
70881+
properties:
70882+
addresses:
70883+
type: array
70884+
items:
70885+
type: string
70886+
title: addresses is the inactive address list
70887+
pagination:
70888+
title: pagination defines the pagination in the response
70889+
type: object
70890+
properties:
70891+
next_key:
70892+
type: string
70893+
format: byte
70894+
title: |-
70895+
next_key is the key to be passed to PageRequest.key to
70896+
query the next page most efficiently
70897+
total:
70898+
type: string
70899+
format: uint64
70900+
title: >-
70901+
total is total number of results available if
70902+
PageRequest.count_total
70903+
70904+
was set, its value is undefined otherwise
70905+
description: |-
70906+
PageResponse is to be embedded in gRPC response messages where the
70907+
corresponding request message has used PageRequest.
70908+
70909+
message SomeResponse {
70910+
repeated Bar results = 1;
70911+
PageResponse page = 2;
70912+
}
70913+
description: >-
70914+
QueryInactiveContractsResponse is the response type for the
70915+
Query/InactiveContract RPC method.

0 commit comments

Comments
 (0)