Lorenz Herzberger 31f52b9317
added GetMachineByPublicKey query and adjusted asset test cases
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-06-20 12:02:20 +02:00

43 lines
1.2 KiB
Protocol Buffer

syntax = "proto3";
package planetmintgo.machine;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "planetmintgo/machine/params.proto";
option go_package = "planetmint-go/x/machine/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 = "/planetmint-go/machine/params";
}
// Queries a list of GetMachineByPublicKey items.
rpc GetMachineByPublicKey (QueryGetMachineByPublicKeyRequest) returns (QueryGetMachineByPublicKeyResponse) {
option (google.api.http).get = "/planetmint-go/machine/get_machine_by_public_key/{publicKey}";
}
}
// 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];
}
message QueryGetMachineByPublicKeyRequest {
string publicKey = 1;
}
message QueryGetMachineByPublicKeyResponse {}