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

build: Merge wasmd 0.19.0 #444

Merged
merged 92 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
5259e0e
Use interface for better decoupling
alpe Jun 1, 2021
e05d786
Allow access to contract address builder
alpe Jun 1, 2021
a170260
Test Pinned contract does not loop forever
alpe Jun 7, 2021
464a024
Cleanup keeper result types
alpe Jun 11, 2021
bebb06c
Verify converted coin
alpe Jun 11, 2021
d11c6e9
revert 0f4ad5b90256b8b1cca6c81286124a10bde26a5c
loloicci Jan 14, 2022
d9b2e65
Empty submsg result does not overwrite
alpe Jun 14, 2021
3d544e1
Store contract response in event (#535)
alpe Jun 14, 2021
06a4dd7
Add cli alias (#536)
alpe Jun 14, 2021
c92fd6d
Charge gas for custom event attributes and messages (#539)
alpe Jun 25, 2021
bef9c35
Empty (non nil) reply data can overwrites response
alpe Jun 25, 2021
fd0a847
Multiply default wasm size by 2
orkunkl Jul 2, 2021
ce08ba1
Fix test
orkunkl Jul 2, 2021
b310fcf
Upgrade wasmvm v0.15.x
alpe Jun 25, 2021
aa71b3c
Upgrade Dockerfile
alpe Jul 7, 2021
660169e
Bump wasmvm and testdata to v0.16.0-rc1
ethanfrey Jul 21, 2021
add2333
IBC Code compiles (non-test)
ethanfrey Jul 21, 2021
3f1d265
Keeper tests pass
ethanfrey Jul 21, 2021
0cc2d14
fix: update tests for wasmvm 0.16.0-rc1
loloicci Feb 8, 2022
7329c21
Update to cosmwasm 0.16.0-rc3 contracts, with some fixes
ethanfrey Jul 21, 2021
310421b
Use _contract_address attribute in emitted events
ethanfrey Jul 21, 2021
72f7622
Reserve all attributes that start with _
ethanfrey Jul 22, 2021
a4f2ff2
Test for events returned from IBC
ethanfrey Jul 22, 2021
3c57d5f
Return custom events from IBC calls as well
ethanfrey Jul 22, 2021
7862abd
Contracts to v0.16.0-rc4, wasmvm to v0.16.0-rc2
ethanfrey Jul 22, 2021
48a2e6d
Fix tests
ethanfrey Jul 22, 2021
1468a35
Add error messages on invalid event attributes
ethanfrey Jul 26, 2021
9d9812f
Tests compile and pass
ethanfrey Jul 26, 2021
b0eed42
Better event tests
ethanfrey Jul 26, 2021
3aaf591
Update with PR comments
ethanfrey Jul 27, 2021
c99018a
Rename 2 fields and regenerate protobuf
ethanfrey Jul 27, 2021
31c2dc0
{Init,Migrate}Msg -> Msg in proposals as well
ethanfrey Jul 27, 2021
d5a0131
Changed references in code - 2 broken tests
ethanfrey Jul 27, 2021
ee8fae7
Rename remaining {Init,Migrate}Msg fields
ethanfrey Jul 27, 2021
545efc3
Update JSON/YAML parsing and test code
ethanfrey Jul 27, 2021
94367c0
Fix up whitespace issues
ethanfrey Jul 27, 2021
67546d7
Fixed remaining PR comments
ethanfrey Jul 27, 2021
39c63e6
Add failing tests showing nothing filtered now
ethanfrey Jul 28, 2021
d775734
Add filtering to logic, tests pass
ethanfrey Jul 28, 2021
e43687a
Update hash algorithm
ethanfrey Jul 27, 2021
de0b22a
Update tests (new default contract addr)
ethanfrey Jul 27, 2021
91cbea3
Almost all tests pass
ethanfrey Jul 27, 2021
4e681e0
Fix last tests
ethanfrey Jul 27, 2021
95ea586
PR Comment: move where truncating address length to 20
ethanfrey Jul 28, 2021
2910453
Remove source, builder from proto files
ethanfrey Jul 27, 2021
ac743f1
x/wasm/types compiles
ethanfrey Jul 27, 2021
840fcf4
x/wasm/keeper compiled
ethanfrey Jul 27, 2021
a3f1a77
keeper and types pass tests
ethanfrey Jul 27, 2021
e8695fa
All code compiles and tests
ethanfrey Jul 27, 2021
5ac2f08
Used reserved keyword in protobuf
ethanfrey Jul 28, 2021
44abeff
Change default message size cost to 0
ethanfrey Jul 27, 2021
8faaec9
Make gas register tests more flexible, fix counting bug
ethanfrey Jul 27, 2021
db51a3b
Adjust gas prices in tests
ethanfrey Jul 27, 2021
6f68f8e
Update comments
ethanfrey Jul 28, 2021
45c1b8d
Change IBCContractKeeper interface, code builds
ethanfrey Jul 28, 2021
d361977
Fix relay tests
ethanfrey Jul 28, 2021
29900c2
Use v0.16.0-rc5 contracts
ethanfrey Jul 28, 2021
9b56e40
Update gas price
ethanfrey Jul 28, 2021
e4fa80a
Remove obsolete cli params
alpe Aug 2, 2021
2a321bf
Add organisation to grpc gateway path
alpe Aug 4, 2021
8e15ff4
update wsamvm 0.16.0-rc3-testing
loloicci Feb 15, 2022
d257c0f
Merge remote-tracking branch 'origin/main' into versionup-19
loloicci Feb 16, 2022
687dfa8
Add contract features to debug logging
alpe Aug 5, 2021
cff4965
update test contracts to cosmwasm v0.16.0
ethanfrey Aug 5, 2021
8219b19
update wasmvm to v0.16.3
loloicci Feb 17, 2022
a219f28
Refactor events
alpe Aug 10, 2021
3e1213d
Update ibc reflect contract from CosmWasm PR 1046
ethanfrey Aug 11, 2021
837608a
Add tests for events
alpe Aug 11, 2021
f7cb906
Strip message events and reorder
alpe Aug 11, 2021
8c15d50
Download cosmwasm contracts
alpe Aug 11, 2021
a6d2d18
Add failing testcase showing messages make it into reply block
ethanfrey Aug 12, 2021
6cb3f03
One more test for message event without reply
ethanfrey Aug 12, 2021
f74f466
Filter messages, fix new tests, break older ones
ethanfrey Aug 12, 2021
5ec7eaf
Update tests to not expect message event
ethanfrey Aug 12, 2021
9e6ca9a
Remove (now-unneeded) filtering in DefaultWasmVMContractResponseHandl…
ethanfrey Aug 12, 2021
c9a890e
Simplify filter method
ethanfrey Aug 12, 2021
231a831
Keeper tests (#590)
husio Aug 27, 2021
b021a58
Add decorator options
alpe Aug 30, 2021
8d96b4d
Fix query handler instantiation
alpe Sep 13, 2021
e519c19
Optimize BalanceQuery
alpe Sep 13, 2021
a90266f
Ensure query isolation (#611)
alpe Sep 14, 2021
dd736f0
chore: go fmt
loloicci Feb 22, 2022
02799b3
chore: remove unused file
loloicci Feb 22, 2022
d7cd656
chore: make format
loloicci Feb 22, 2022
62a6fc6
fix: make lint-fix and fix errors
loloicci Feb 24, 2022
92e4ccf
Merge remote-tracking branch 'origin/main' into versionup-19
loloicci Feb 24, 2022
d412041
chore: make format && make lint-fix
loloicci Feb 24, 2022
5a0f90c
fix: fix proto's comment and update swagger.yaml about proto
loloicci Mar 2, 2022
2308606
build: change depended wasmvm version to 0.16.3-0.9.0
loloicci Mar 3, 2022
994e7b0
fix: remove source and builder option from wasm tx store-and-instanti…
loloicci Mar 3, 2022
9d3c659
docs: update changelog
loloicci Mar 3, 2022
1ff37cf
docs: add removed custom encoder's info to changelog
loloicci Mar 3, 2022
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
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