Skip to content

Commit

Permalink
Merge pull request #444 from loloicci/versionup-19
Browse files Browse the repository at this point in the history
build: Merge wasmd 0.19.0
  • Loading branch information
loloicci authored Mar 3, 2022
2 parents 4bb7b33 + 1ff37cf commit 41c3954
Show file tree
Hide file tree
Showing 176 changed files with 4,758 additions and 3,533 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [Unreleased](https://github.com/line/lbm-sdk/compare/v0.44.0-rc0...HEAD)

### Features
* (x/wasm) [\#444](https://github.com/line/lbm-sdk/pull/444) Merge wasmd 0.19.0
* remove custom encoder from x/wasm/keeper.NewKeeper's arg. After the Token/collection module is added, it will be ported again.
* (cosmos-sdk) [\#437](https://github.com/line/lbm-sdk/pull/437) dump up to cosmos-sdk v0.42.11
* [changelog of cosmos-sdk v0.42.11](https://github.com/cosmos/cosmos-sdk/blob/v0.42.11/CHANGELOG.md)
* (feat) [\#434](https://github.com/line/lbm-sdk/pull/434) Revert signature mechanism using `sig_block_height`
Expand All @@ -53,4 +55,4 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Build, CI
* (makefile, ci) [\#438](https://github.com/line/lbm-sdk/pull/438) fix `make proto-format` and `make proto-check-breaking` error

### Document Updates
### Document Updates
3 changes: 2 additions & 1 deletion baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"fmt"
"io"

tmdb "github.com/line/tm-db/v2"

"github.com/line/lbm-sdk/store/cache"
"github.com/line/lbm-sdk/store/iavl"
tmdb "github.com/line/tm-db/v2"

"github.com/line/lbm-sdk/codec/types"
"github.com/line/lbm-sdk/snapshots"
Expand Down
232 changes: 106 additions & 126 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31049,7 +31049,7 @@ paths:
format: byte
tags:
- Query
/wasm/v1/code:
/line/wasm/v1/code:
get:
summary: Codes gets the metadata for all stored wasm codes
operationId: Codes
Expand All @@ -31072,10 +31072,6 @@ paths:
data_hash:
type: string
format: byte
source:
type: string
builder:
type: string
instantiate_permission:
type: object
properties:
Expand Down Expand Up @@ -31358,7 +31354,7 @@ paths:
format: boolean
tags:
- Query
'/wasm/v1/code/{code_id}':
'/line/wasm/v1/code/{code_id}':
get:
summary: Code gets the binary code and metadata for a singe wasm code
operationId: Code
Expand All @@ -31379,10 +31375,6 @@ paths:
data_hash:
type: string
format: byte
source:
type: string
builder:
type: string
instantiate_permission:
type: object
properties:
Expand Down Expand Up @@ -31608,7 +31600,7 @@ paths:
format: uint64
tags:
- Query
'/wasm/v1/code/{code_id}/contracts':
'/line/wasm/v1/code/{code_id}/contracts':
get:
summary: ContractsByCode lists all smart contracts for a code id
operationId: ContractsByCode
Expand Down Expand Up @@ -31888,7 +31880,7 @@ paths:
format: boolean
tags:
- Query
'/wasm/v1/contract/{address}':
'/line/wasm/v1/contract/{address}':
get:
summary: ContractInfo gets the contract meta data
operationId: ContractInfo
Expand Down Expand Up @@ -32336,7 +32328,7 @@ paths:
type: string
tags:
- Query
'/wasm/v1/contract/{address}/history':
'/line/wasm/v1/contract/{address}/history':
get:
summary: ContractHistory gets the contract code history
operationId: ContractHistory
Expand Down Expand Up @@ -32658,23 +32650,51 @@ paths:
format: boolean
tags:
- Query
'/wasm/v1/contract/{address}/raw/{query_data}':
'/line/wasm/v1/contract/{address}/state':
get:
summary: RawContractState gets single key from the raw store data of a contract
operationId: RawContractState
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 raw store data
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: |-
QueryRawContractStateResponse is the response type for the
Query/RawContractState RPC method
QueryAllContractStateResponse is the response type for the
Query/AllContractState RPC method
default:
description: An unexpected error response
schema:
Expand Down Expand Up @@ -32870,17 +32890,59 @@ paths:
in: path
required: true
type: string
- name: query_data
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

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}/smart/{query_data}':
'/wasm/v1/contract/{address}/raw/{query_data}':
get:
summary: SmartContractState get smart query result from the contract
operationId: SmartContractState
summary: RawContractState gets single key from the raw store data of a contract
operationId: RawContractState
responses:
'200':
description: A successful response.
Expand All @@ -32890,10 +32952,10 @@ paths:
data:
type: string
format: byte
title: Data contains the json data returned from the smart contract
title: Data contains the raw store data
title: |-
QuerySmartContractStateResponse is the response type for the
Query/SmartContractState RPC method
QueryRawContractStateResponse is the response type for the
Query/RawContractState RPC method
default:
description: An unexpected error response
schema:
Expand Down Expand Up @@ -33090,58 +33152,29 @@ 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}/state':
'/wasm/v1/contract/{address}/smart/{query_data}':
get:
summary: AllContractState gets all raw store data for a single contract
operationId: AllContractState
summary: SmartContractState get smart query result from the contract
operationId: SmartContractState
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 json data returned from the smart contract
title: |-
QueryAllContractStateResponse is the response type for the
Query/AllContractState RPC method
QuerySmartContractStateResponse is the response type for the
Query/SmartContractState RPC method
default:
description: An unexpected error response
schema:
Expand Down Expand Up @@ -33337,53 +33370,12 @@ 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
description: QueryData contains the query data passed to the contract
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
/lbm/consortium/v1/params:
Expand Down Expand Up @@ -54860,10 +54852,6 @@ definitions:
data_hash:
type: string
format: byte
source:
type: string
builder:
type: string
instantiate_permission:
type: object
properties:
Expand Down Expand Up @@ -55237,10 +55225,6 @@ definitions:
data_hash:
type: string
format: byte
source:
type: string
builder:
type: string
instantiate_permission:
type: object
properties:
Expand Down Expand Up @@ -55283,10 +55267,6 @@ definitions:
data_hash:
type: string
format: byte
source:
type: string
builder:
type: string
instantiate_permission:
type: object
properties:
Expand Down
Loading

0 comments on commit 41c3954

Please sign in to comment.