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) { option (google.api.http).get = "/0g/dasigners/v1/epoch-number"; } rpc EpochSignerSet(QueryEpochSignerSetRequest) returns (QueryEpochSignerSetResponse) { option (google.api.http).get = "/0g/dasigners/v1/epoch-signer-set"; } rpc AggregatePubkeyG1(QueryAggregatePubkeyG1Request) returns (QueryAggregatePubkeyG1Response) { option (google.api.http).get = "/0g/dasigners/v1/aggregate-pubkey-g1"; } rpc Signer(QuerySignerRequest) returns (QuerySignerResponse) { option (google.api.http).get = "/0g/dasigners/v1/signer"; } } 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; uint64 total = 2; uint64 hit = 3; }