You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Linux下编译Cosmos系Rollkit区块链时遇Proto编译错误求助

编译基于Cosmos的Rollkit区块链时proto编译错误求助

错误信息

✘ File: /root/minibar/proto/minibar/minibar/query.proto: :21:3: found "message" but expected [service comment|rpc]

对应的query.proto文件内容

syntax = "proto3";

package minibar.minibar;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "minibar/minibar/params.proto";

option go_package = "minibar/x/minibar/types";

// Query defines the gRPC querier service.
service Query {

// Parameters queries the parameters of the module.
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/minibar/minibar/params";
}

// QueryParamsResponse is response type for the Query/Params RPC method.
message QueryParamsResponse {

// params holds all the parameters of this module.
Params params = 1 [(gogoproto.nullable) = false];
}

message QueryUnitsRequest {}

message QueryUnitsResponse {
string alcotype = 1;
string country  = 2;
string name     = 3;
string volume   = 4;
}

目前正在学习相关技术,编译基于Cosmos的Rollkit区块链时遇到上述错误,尝试多种方法仍无法解决,恳请各位提供帮助。

内容的提问来源于stack exchange,提问作者crptcpchk

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.24 11:52:01