0g-chain/proto/zgc/wrappeda0gibase/query.proto

37 lines
970 B
Protocol Buffer
Raw Normal View History

2025-01-07 09:23:01 +00:00
syntax = "proto3";
package zgc.wrappeda0gibase;
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
option go_package = "github.com/0glabs/0g-chain/x/wrapped-a0gi-base/types";
option (gogoproto.goproto_getters_all) = false;
// Query defines the gRPC querier service for the wrapped a0gi base module
service Query {
2025-01-08 04:58:14 +00:00
rpc GetWA0GI(GetWA0GIRequest) returns (GetWA0GIResponse) {
option (google.api.http).get = "/0g/wrapped-a0gi-base/get-wa0gi";
}
2025-01-07 09:23:01 +00:00
rpc MinterSupply(MinterSupplyRequest) returns (MinterSupplyResponse) {
option (google.api.http).get = "/0g/wrapped-a0gi-base/minter-supply";
}
}
2025-01-08 04:58:14 +00:00
message GetWA0GIRequest {}
message GetWA0GIResponse {
bytes address = 1;
}
2025-01-07 09:23:01 +00:00
message MinterSupplyRequest {
2025-01-08 04:58:14 +00:00
bytes address = 1;
2025-01-07 09:23:01 +00:00
}
message MinterSupplyResponse {
2025-01-08 04:58:14 +00:00
bytes cap = 1; // big endian
bytes supply = 2; // big endian
2025-01-07 09:23:01 +00:00
}