2024-07-01 06:05:28 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package cerc.onboarding.v1;
|
2024-07-03 11:38:48 +00:00
|
|
|
|
2024-07-04 05:23:26 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
|
|
import "cerc/onboarding/v1/onboarding.proto";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
|
2024-07-03 11:38:48 +00:00
|
|
|
option go_package = "git.vdb.to/cerc-io/laconicd/x/onboarding";
|
2024-07-04 05:23:26 +00:00
|
|
|
|
|
|
|
// Query defines the gRPC querier service for onboarding module
|
|
|
|
service Query {
|
|
|
|
// Participants queries Participants list
|
2024-07-15 09:33:44 +00:00
|
|
|
rpc Participants(QueryParticipantsRequest)
|
|
|
|
returns (QueryParticipantsResponse) {
|
2024-07-04 05:23:26 +00:00
|
|
|
option (google.api.http).get = "/cerc/onboarding/v1/participants";
|
|
|
|
}
|
2024-07-29 10:28:30 +00:00
|
|
|
|
|
|
|
// GetParticipantByAddress queries a participant by cosmos (laconic) address
|
|
|
|
rpc GetParticipantByAddress(QueryGetParticipantByAddressRequest)
|
|
|
|
returns (QueryGetParticipantByAddressResponse) {
|
|
|
|
option (google.api.http).get = "/cerc/onboarding/v1/participants/{address}";
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetParticipantByNitroAddress queries a participant by nitro address
|
|
|
|
rpc GetParticipantByNitroAddress(QueryGetParticipantByNitroAddressRequest)
|
|
|
|
returns (QueryGetParticipantByNitroAddressResponse) {
|
|
|
|
option (google.api.http).get =
|
|
|
|
"/cerc/onboarding/v1/participants/{nitro_address}";
|
|
|
|
}
|
2024-07-04 05:23:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryParticipantsRequest queries participants
|
|
|
|
message QueryParticipantsRequest {
|
|
|
|
// pagination defines an optional pagination for the request.
|
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
|
|
|
}
|
|
|
|
|
2024-07-29 10:28:30 +00:00
|
|
|
// QueryParticipantsResponse is response type for querying the participants
|
2024-07-04 05:23:26 +00:00
|
|
|
message QueryParticipantsResponse {
|
|
|
|
repeated Participant participants = 1
|
|
|
|
[ (gogoproto.moretags) = "json:\"participants\" yaml:\"participants\"" ];
|
|
|
|
|
|
|
|
// pagination defines the pagination in the response.
|
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
|
|
}
|
2024-07-29 10:28:30 +00:00
|
|
|
|
|
|
|
// QueryGetParticipantByAddressRequest queries participant by the laconic
|
|
|
|
// address
|
|
|
|
message QueryGetParticipantByAddressRequest {
|
|
|
|
// Laconic address
|
|
|
|
string address = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryGetParticipantByAddressResponse is response type for querying
|
|
|
|
// participant by the laconic address
|
|
|
|
message QueryGetParticipantByAddressResponse {
|
|
|
|
// Participant details
|
|
|
|
Participant participant = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryGetParticipantByNitroAddressRequest queries participant by the nitro
|
|
|
|
// address
|
|
|
|
message QueryGetParticipantByNitroAddressRequest {
|
|
|
|
// Nitro address
|
|
|
|
string nitro_address = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryGetParticipantByNitroAddressResponse is response type for querying
|
|
|
|
// participant by the nitro address
|
|
|
|
message QueryGetParticipantByNitroAddressResponse {
|
|
|
|
// Participant details
|
|
|
|
Participant participant = 1;
|
|
|
|
}
|