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

0.9.1 to master 3076a8b #247

Merged
merged 6 commits into from
Aug 6, 2020

Conversation

alpe
Copy link
Member

@alpe alpe commented Aug 6, 2020

Upgrade to latest master:

@alpe alpe mentioned this pull request Aug 6, 2020
@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #247 into 0.9.1_to_cosmos-sdk-0.39-master will decrease coverage by 12.62%.
The diff coverage is 14.67%.

Impacted file tree graph

@@                         Coverage Diff                          @@
##           0.9.1_to_cosmos-sdk-0.39-master     #247       +/-   ##
====================================================================
- Coverage                            32.42%   19.80%   -12.63%     
====================================================================
  Files                                   24       25        +1     
  Lines                                 3830     6419     +2589     
====================================================================
+ Hits                                  1242     1271       +29     
- Misses                                2521     5079     +2558     
- Partials                                67       69        +2     
Impacted Files Coverage Δ
x/wasm/internal/types/query.pb.go 0.72% <ø> (ø)
x/wasm/internal/types/types.go 31.81% <ø> (ø)
x/wasm/internal/types/types.pb.go 0.55% <5.95%> (+<0.01%) ⬆️
x/wasm/internal/keeper/querier.go 24.00% <13.17%> (-12.14%) ⬇️
x/wasm/module.go 17.02% <18.18%> (+0.35%) ⬆️
app/app.go 91.90% <100.00%> (+0.07%) ⬆️
app/encoding.go 100.00% <100.00%> (ø)
x/wasm/internal/keeper/test_common.go 87.28% <100.00%> (+0.21%) ⬆️
x/wasm/internal/keeper/test_fuzz.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc37320...51a4745. Read the comment docs.

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for this massive upgrade.

Very curious as to how the grpc queries are routed.

@@ -63,6 +63,19 @@ To set up a single node testnet, [look at the deployment documentation](./docs/d

If you want to deploy a whole cluster, [look at the network scripts](./networks/README.md).

## Protobuf

1. Install [protoc](https://github.com/protocolbuffers/protobuf#protocol-compiler-installation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this

addr, err := sdk.AccAddressFromBech32(bech)
if err != nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, err.Error())
type grpcQuerier struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be curious for a quick explanation of the differences between the "LegacyQuerier" and the new grpc querier.

I am in the process of adding tendermint rpc queries to CosmJS and it would be great to understand this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LegacyQuerier is the handler for the the old rest queries in LCD. The grpc querier is a new endpoint to talk protobuf instead. I have not started it, yet so please consider the code WIP. There are also no tests for this.

Copy link
Member Author

@alpe alpe Aug 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note the wasmcli rest-server command is not supported in this branch anymore.

wasmd start -h
...
      --grpc.address string                             the gRPC server address to listen on (default "0.0.0.0:9090")
      --grpc.enable                                     Define if the gRPC server should be enabled (default true)

}
}

// QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay all requests and responses are defined here.

@@ -79,7 +79,9 @@ type AppModule struct {
keeper Keeper
}

func (am AppModule) RegisterQueryService(grpc.Server) {}
func (am AppModule) RegisterQueryService(server grpc.Server) {
types.RegisterQueryServer(server, NewQuerier(am.keeper))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this is the key registration line for grpc.

@ethanfrey
Copy link
Member

What is needed to take this out of draft?

@alpe alpe marked this pull request as ready for review August 6, 2020 14:31
@ethanfrey
Copy link
Member

I looked at the grpc stuff in cosmos sdk and got my head around it.

We will have to migrate it all and test it, but piece by piece... it keeps changing and the stargate branch is mainly for in app IBC testing

@ethanfrey ethanfrey merged commit e535077 into 0.9.1_to_cosmos-sdk-0.39-master Aug 6, 2020
@ethanfrey ethanfrey deleted the 0.9.1_to_master_3076a8b branch August 6, 2020 19:52
zemyblue pushed a commit to Finschia/wasmd that referenced this pull request Jan 2, 2023
zemyblue pushed a commit to Finschia/wasmd that referenced this pull request Jan 2, 2023
…ster

* remotes/gaia/master: (38 commits)
  Merge PR CosmWasm#259: Bump SDK master commit
  Exec go mod tidy (CosmWasm#267)
  Merge PR CosmWasm#265: add version v2.0.5 to CHANGELOG
  Fix broken link in delegator guide (CosmWasm#262)
  docs: removed redundant readme.md (CosmWasm#261)
  Merge PR CosmWasm#258: Bump github.com/spf13/viper from 1.6.1 to 1.6.2
  Merge PR CosmWasm#250: Docs-update
  Merge PR CosmWasm#256: Bump github.com/pkg/errors from 0.9.0 to 0.9.1
  Merge PR CosmWasm#255: Bump github.com/pkg/errors from 0.8.1 to 0.9.0
  Merge PR CosmWasm#253: Bump SDK master commit
  Merge PR CosmWasm#252: v2.0.4 Changelog
  Merge PR CosmWasm#249: docker image build and upload for release tags
  Merge PR CosmWasm#247: Update SDK Commit & Update CLI Doc
  Merge PR CosmWasm#246: Update Archive page with explorers
  Merge PR CosmWasm#245: archives
  Bump SDK commit to the latest master (CosmWasm#239)
  Merge PR CosmWasm#215: Update simulation tests
  Update join-mainnet.md (CosmWasm#229)
  Incorporate SDK's latest changes (CosmWasm#227)
  Merge PR CosmWasm#221: Hide unnecessarily exported function to better coverage report
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants