Skip to content

Commit

Permalink
fix(server/v2/comebft): wire missing services + fix simulation (#21964)
Browse files Browse the repository at this point in the history
(cherry picked from commit d697a3d)

# Conflicts:
#	server/v2/api/grpc/server.go
#	server/v2/cometbft/go.mod
#	server/v2/go.mod
#	server/v2/stf/branch/mergeiter.go
  • Loading branch information
julienrbrt authored and mergify[bot] committed Nov 19, 2024
1 parent 0083431 commit 919b35c
Show file tree
Hide file tree
Showing 25 changed files with 2,732 additions and 187 deletions.
981 changes: 981 additions & 0 deletions api/cosmos/base/node/v2/query.pulsar.go

Large diffs are not rendered by default.

127 changes: 127 additions & 0 deletions api/cosmos/base/node/v2/query_grpc.pb.go

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

6 changes: 3 additions & 3 deletions client/grpc/cmtservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ type (

// NewQueryServer creates a new CometBFT query server.
func NewQueryServer(
clientCtx CometRPC,
cometRPC CometRPC,
queryFn abciQueryFn,
consensusAddressCodec address.Codec,
) ServiceServer {
return queryServer{
rpc: clientCtx,
rpc: cometRPC,
queryFn: queryFn,
consensusCodec: consensusAddressCodec,
}
Expand Down Expand Up @@ -284,7 +284,7 @@ func (s queryServer) ABCIQuery(ctx context.Context, req *ABCIQueryRequest) (*ABC
func RegisterTendermintService(
clientCtx client.Context,
server gogogrpc.Server,
iRegistry codectypes.InterfaceRegistry,
_ codectypes.InterfaceRegistry,
queryFn abciQueryFn,
) {
node, err := clientCtx.GetNode()
Expand Down
22 changes: 22 additions & 0 deletions proto/cosmos/base/node/v2/query.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";
package cosmos.base.node.v2;

import "google/api/annotations.proto";

option go_package = "cosmossdk.io/server/v2/api/grpc/nodeservice";

// Service defines the gRPC querier service for node related queries.
service Service {
// Config queries for the operator configuration.
rpc Config(ConfigRequest) returns (ConfigResponse) {
option (google.api.http).get = "/cosmos/base/node/v2/config";
}
}

// ConfigRequest defines the request structure for the Config gRPC query.
message ConfigRequest {}

// ConfigResponse defines the response structure for the Config gRPC query.
message ConfigResponse {
string minimum_gas_price = 1;
}
Loading

0 comments on commit 919b35c

Please sign in to comment.