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

refactor: change tmblock to sdkblock #11390

Merged
merged 21 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
449 changes: 226 additions & 223 deletions api/cosmos/base/tendermint/v1beta1/query.pulsar.go

Large diffs are not rendered by default.

3,084 changes: 3,084 additions & 0 deletions api/cosmos/base/tendermint/v1beta1/types.pulsar.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions api/cosmos/feegrant/v1beta1/feegrant.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/cosmos/feegrant/v1beta1/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion api/cosmos/group/v1/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

151 changes: 76 additions & 75 deletions client/grpc/tmservice/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions client/grpc/tmservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s queryServer) GetLatestBlock(ctx context.Context, _ *GetLatestBlockReques

return &GetLatestBlockResponse{
BlockId: &protoBlockID,
Block: protoBlock,
Block: convertBlock(protoBlock),
}, nil
}

Expand All @@ -78,9 +78,10 @@ func (s queryServer) GetBlockByHeight(ctx context.Context, req *GetBlockByHeight
if err != nil {
return nil, err
}

return &GetBlockByHeightResponse{
BlockId: &protoBlockID,
Block: protoBlock,
Block: convertBlock(protoBlock),
}, nil
}

Expand Down
2 changes: 2 additions & 0 deletions client/grpc/tmservice/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (s IntegrationTestSuite) TestQueryLatestBlock() {
s.Require().NoError(err)
var blockInfoRes tmservice.GetLatestBlockResponse
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
s.Require().Contains(blockInfoRes.Block.Header.ProposerAddress, "cosmosvaloper")
}

func (s IntegrationTestSuite) TestQueryBlockByHeight() {
Expand All @@ -95,6 +96,7 @@ func (s IntegrationTestSuite) TestQueryBlockByHeight() {
s.Require().NoError(err)
var blockInfoRes tmservice.GetBlockByHeightResponse
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(restRes, &blockInfoRes))
s.Require().Contains(blockInfoRes.Block.Header.ProposerAddress, "cosmosvaloper")
}

func (s IntegrationTestSuite) TestQueryLatestValidatorSet() {
Expand Down
Loading