syntax = "proto3"; package mukan.poj.v1; import "amino/amino.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "mukan/poj/v1/miner_state.proto"; import "mukan/poj/v1/params.proto"; option go_package = "mukan/x/poj/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 = "/mukan/poj/v1/params"; } // Queries a list of MinerState items. rpc MinerState(QueryGetMinerStateRequest) returns (QueryGetMinerStateResponse) { option (google.api.http).get = "/mukan/poj/v1/miner_state/{address}"; } rpc MinerStateAll(QueryAllMinerStateRequest) returns (QueryAllMinerStateResponse) { option (google.api.http).get = "/mukan/poj/v1/miner_state"; } } // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} // 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, (amino.dont_omitempty) = true ]; } message QueryGetMinerStateRequest { string address = 1; } message QueryGetMinerStateResponse { MinerState miner_state = 1 [(gogoproto.nullable) = false]; } message QueryAllMinerStateRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } message QueryAllMinerStateResponse { repeated MinerState miner_state = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; }