2024-05-09 18:54:47 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package zgc.dasigners.v1;
|
|
|
|
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
import "zgc/dasigners/v1/dasigners.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/dasigners/v1/types";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
|
|
|
|
// Query defines the gRPC querier service for the dasigners module
|
|
|
|
service Query {
|
|
|
|
rpc EpochNumber(QueryEpochNumberRequest) returns (QueryEpochNumberResponse) {
|
2024-05-11 09:13:54 +00:00
|
|
|
option (google.api.http).get = "/0g/dasigners/v1/epoch-number";
|
2024-05-09 18:54:47 +00:00
|
|
|
}
|
|
|
|
rpc EpochSignerSet(QueryEpochSignerSetRequest) returns (QueryEpochSignerSetResponse) {
|
2024-05-11 09:13:54 +00:00
|
|
|
option (google.api.http).get = "/0g/dasigners/v1/epoch-signer-set";
|
2024-05-09 18:54:47 +00:00
|
|
|
}
|
|
|
|
rpc AggregatePubkeyG1(QueryAggregatePubkeyG1Request) returns (QueryAggregatePubkeyG1Response) {
|
2024-05-11 09:13:54 +00:00
|
|
|
option (google.api.http).get = "/0g/dasigners/v1/aggregate-pubkey-g1";
|
2024-05-09 18:54:47 +00:00
|
|
|
}
|
|
|
|
rpc Signer(QuerySignerRequest) returns (QuerySignerResponse) {
|
2024-05-11 09:13:54 +00:00
|
|
|
option (google.api.http).get = "/0g/dasigners/v1/signer";
|
2024-05-09 18:54:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message QuerySignerRequest {
|
|
|
|
string account = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QuerySignerResponse {
|
|
|
|
Signer signer = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryEpochNumberRequest {}
|
|
|
|
|
|
|
|
message QueryEpochNumberResponse {
|
|
|
|
uint64 epoch_number = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryEpochSignerSetRequest {
|
|
|
|
uint64 epoch_number = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryEpochSignerSetResponse {
|
|
|
|
repeated Signer signers = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryAggregatePubkeyG1Request {
|
|
|
|
uint64 epoch_number = 1;
|
|
|
|
bytes signersBitmap = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message QueryAggregatePubkeyG1Response {
|
|
|
|
bytes aggregate_pubkey_g1 = 1;
|
2024-05-11 09:13:54 +00:00
|
|
|
uint64 total = 2;
|
|
|
|
uint64 hit = 3;
|
2024-05-09 18:54:47 +00:00
|
|
|
}
|