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

feat: Change wasm proto path to original cosmwasm path #617

Merged
merged 3 commits into from
Aug 2, 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 @@ -77,6 +77,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (amino) [\#600](https://github.com/line/lbm-sdk/pull/600) change amino codec path from `lbm-sdk/` to `cosmos-sdk/`
* (ostracon) [\#610](https://github.com/line/lbm-sdk/pull/610) apply change of prefix of key name in ostracon
* (ostracon) [\#614](https://github.com/line/lbm-sdk/pull/614) apply Ostracon's changes that replace `StakingPower` with `VotingPower` and `StakingPower` with `VotingPower`
* (proto) [\#617](https://github.com/line/lbm-sdk/pull/617) change wasm gRPC path to original `cosmwasm` path.

### Build, CI

Expand Down
2 changes: 1 addition & 1 deletion client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
}
},
{
"url": "./tmp-swagger-gen/lbm/wasm/v1/query.swagger.json"
"url": "./tmp-swagger-gen/cosmwasm/wasm/v1/query.swagger.json"
},
{
"url": "./tmp-swagger-gen/lbm/foundation/v1/query.swagger.json",
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

126 changes: 63 additions & 63 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32779,7 +32779,7 @@ paths:
format: byte
tags:
- Query
/lbm/wasm/v1/code:
/cosmwasm/wasm/v1/code:
get:
summary: Codes gets the metadata for all stored wasm codes
operationId: Codes
Expand Down Expand Up @@ -33095,7 +33095,7 @@ paths:
format: boolean
tags:
- Query
'/lbm/wasm/v1/code/{code_id}':
'/cosmwasm/wasm/v1/code/{code_id}':
get:
summary: Code gets the binary code and metadata for a singe wasm code
operationId: Code
Expand Down Expand Up @@ -33341,7 +33341,7 @@ paths:
format: uint64
tags:
- Query
'/lbm/wasm/v1/code/{code_id}/contracts':
'/cosmwasm/wasm/v1/code/{code_id}/contracts':
get:
summary: ContractsByCode lists all smart contracts for a code id
operationId: ContractsByCode
Expand Down Expand Up @@ -33632,7 +33632,7 @@ paths:
format: boolean
tags:
- Query
/lbm/wasm/v1/codes/pinned:
/cosmwasm/wasm/v1/codes/pinned:
get:
summary: PinnedCodes gets the pinned code ids
operationId: PinnedCodes
Expand Down Expand Up @@ -33918,7 +33918,7 @@ paths:
format: boolean
tags:
- Query
'/lbm/wasm/v1/contract/{address}':
'/cosmwasm/wasm/v1/contract/{address}':
get:
summary: ContractInfo gets the contract meta data
operationId: ContractInfo
Expand Down Expand Up @@ -33978,18 +33978,6 @@ paths:
ordering of transactions.
ibc_port_id:
type: string
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
extension:
type: object
properties:
Expand Down Expand Up @@ -34165,6 +34153,18 @@ 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 @@ -34366,7 +34366,7 @@ paths:
type: string
tags:
- Query
'/lbm/wasm/v1/contract/{address}/history':
'/cosmwasm/wasm/v1/contract/{address}/history':
get:
summary: ContractHistory gets the contract code history
operationId: ContractHistory
Expand Down Expand Up @@ -34699,7 +34699,7 @@ paths:
format: boolean
tags:
- Query
'/lbm/wasm/v1/contract/{address}/raw/{query_data}':
'/cosmwasm/wasm/v1/contract/{address}/raw/{query_data}':
get:
summary: RawContractState gets single key from the raw store data of a contract
operationId: RawContractState
Expand Down Expand Up @@ -34918,7 +34918,7 @@ paths:
format: byte
tags:
- Query
'/lbm/wasm/v1/contract/{address}/smart/{query_data}':
'/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}':
get:
summary: SmartContractState get smart query result from the contract
operationId: SmartContractState
Expand Down Expand Up @@ -35138,7 +35138,7 @@ paths:
format: byte
tags:
- Query
'/lbm/wasm/v1/contract/{address}/state':
'/cosmwasm/wasm/v1/contract/{address}/state':
get:
summary: AllContractState gets all raw store data for a single contract
operationId: AllContractState
Expand Down Expand Up @@ -67794,7 +67794,7 @@ definitions:

chain.
description: QueryParamsResponse is the response type for the Query/Params RPC method.
lbm.wasm.v1.AbsoluteTxPosition:
cosmwasm.wasm.v1.AbsoluteTxPosition:
type: object
properties:
block_height:
Expand All @@ -67812,7 +67812,7 @@ definitions:
description: |-
AbsoluteTxPosition is a unique transaction position that allows for global
ordering of transactions.
lbm.wasm.v1.AccessConfig:
cosmwasm.wasm.v1.AccessConfig:
type: object
properties:
permission:
Expand All @@ -67833,7 +67833,7 @@ definitions:
address:
type: string
description: AccessConfig access control type.
lbm.wasm.v1.AccessType:
cosmwasm.wasm.v1.AccessType:
type: string
enum:
- ACCESS_TYPE_UNSPECIFIED
Expand All @@ -67848,7 +67848,7 @@ definitions:
- ACCESS_TYPE_ONLY_ADDRESS: AccessTypeOnlyAddress restricted to an address
- ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted
title: AccessType permission types
lbm.wasm.v1.CodeInfoResponse:
cosmwasm.wasm.v1.CodeInfoResponse:
type: object
properties:
code_id:
Expand Down Expand Up @@ -67881,7 +67881,7 @@ definitions:
type: string
description: AccessConfig access control type.
title: CodeInfoResponse contains code meta data from CodeInfo
lbm.wasm.v1.ContractCodeHistoryEntry:
cosmwasm.wasm.v1.ContractCodeHistoryEntry:
type: object
properties:
operation:
Expand Down Expand Up @@ -67924,7 +67924,7 @@ definitions:
type: string
format: byte
description: ContractCodeHistoryEntry metadata to a contract.
lbm.wasm.v1.ContractCodeHistoryOperationType:
cosmwasm.wasm.v1.ContractCodeHistoryOperationType:
type: string
enum:
- CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED
Expand All @@ -67939,7 +67939,7 @@ definitions:
- CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: ContractCodeHistoryOperationTypeMigrate code migration
- CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: ContractCodeHistoryOperationTypeGenesis based on genesis data
title: ContractCodeHistoryOperationType actions that caused a code change
lbm.wasm.v1.ContractInfo:
cosmwasm.wasm.v1.ContractInfo:
type: object
properties:
code_id:
Expand Down Expand Up @@ -67984,18 +67984,6 @@ definitions:
ordering of transactions.
ibc_port_id:
type: string
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
extension:
type: object
properties:
Expand Down Expand Up @@ -68155,8 +68143,20 @@ 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
lbm.wasm.v1.ContractStatus:
cosmwasm.wasm.v1.ContractStatus:
type: string
enum:
- CONTRACT_STATUS_UNSPECIFIED
Expand All @@ -68168,7 +68168,7 @@ definitions:
- CONTRACT_STATUS_ACTIVE: ContractStatus active
- CONTRACT_STATUS_INACTIVE: ContractStatus inactive
title: ContractStatus types
lbm.wasm.v1.Model:
cosmwasm.wasm.v1.Model:
type: object
properties:
key:
Expand All @@ -68180,7 +68180,7 @@ definitions:
format: byte
title: base64-encode raw value
title: Model is a struct that holds a KV pair
lbm.wasm.v1.QueryAllContractStateResponse:
cosmwasm.wasm.v1.QueryAllContractStateResponse:
type: object
properties:
models:
Expand Down Expand Up @@ -68218,7 +68218,7 @@ definitions:
title: |-
QueryAllContractStateResponse is the response type for the
Query/AllContractState RPC method
lbm.wasm.v1.QueryCodeResponse:
cosmwasm.wasm.v1.QueryCodeResponse:
type: object
properties:
code_info:
Expand Down Expand Up @@ -68258,7 +68258,7 @@ definitions:
type: string
format: byte
title: QueryCodeResponse is the response type for the Query/Code RPC method
lbm.wasm.v1.QueryCodesResponse:
cosmwasm.wasm.v1.QueryCodesResponse:
type: object
properties:
code_infos:
Expand Down Expand Up @@ -68315,7 +68315,7 @@ definitions:

was set, its value is undefined otherwise
title: QueryCodesResponse is the response type for the Query/Codes RPC method
lbm.wasm.v1.QueryContractHistoryResponse:
cosmwasm.wasm.v1.QueryContractHistoryResponse:
type: object
properties:
entries:
Expand Down Expand Up @@ -68386,7 +68386,7 @@ definitions:
title: >-
QueryContractHistoryResponse is the response type for the
Query/ContractHistory RPC method
lbm.wasm.v1.QueryContractInfoResponse:
cosmwasm.wasm.v1.QueryContractInfoResponse:
type: object
properties:
address:
Expand Down Expand Up @@ -68437,18 +68437,6 @@ definitions:
ordering of transactions.
ibc_port_id:
type: string
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
extension:
type: object
properties:
Expand Down Expand Up @@ -68614,11 +68602,23 @@ 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
RPC method
lbm.wasm.v1.QueryContractsByCodeResponse:
cosmwasm.wasm.v1.QueryContractsByCodeResponse:
type: object
properties:
contracts:
Expand Down Expand Up @@ -68647,7 +68647,7 @@ definitions:
title: |-
QueryContractsByCodeResponse is the response type for the
Query/ContractsByCode RPC method
lbm.wasm.v1.QueryPinnedCodesResponse:
cosmwasm.wasm.v1.QueryPinnedCodesResponse:
type: object
properties:
code_ids:
Expand Down Expand Up @@ -68676,7 +68676,7 @@ definitions:
title: |-
QueryPinnedCodesResponse is the response type for the
Query/PinnedCodes RPC method
lbm.wasm.v1.QueryRawContractStateResponse:
cosmwasm.wasm.v1.QueryRawContractStateResponse:
type: object
properties:
data:
Expand All @@ -68686,7 +68686,7 @@ definitions:
title: |-
QueryRawContractStateResponse is the response type for the
Query/RawContractState RPC method
lbm.wasm.v1.QuerySmartContractStateResponse:
cosmwasm.wasm.v1.QuerySmartContractStateResponse:
type: object
properties:
data:
Expand Down
Loading