@@ -11,47 +11,47 @@ option go_package = "github.com/sideprotocol/side/x/dlc/types";
1111
1212// Query defines the gRPC querier service.
1313service Query {
14- // Parameters queries the parameters of the module.
15- rpc QueryParams (QueryParamsRequest ) returns (QueryParamsResponse ) {
14+ // Params queries the parameters of the module.
15+ rpc Params (QueryParamsRequest ) returns (QueryParamsResponse ) {
1616 option (google.api.http ).get = "/side/dlc/params" ;
1717 }
18- rpc QueryAnnouncements (QueryAnnouncementRequest ) returns (QueryAnnouncementResponse ) {
19- option (google.api.http ).get = "/side/dlc/announcements" ;
18+ // Announcements queries the announcements by the given status.
19+ rpc Announcements (QueryAnnouncementsRequest ) returns (QueryAnnouncementsResponse ) {
20+ option (google.api.http ).get = "/side/dlc/announcements" ;
2021 }
21- rpc QueryPrices (QueryPriceRequest ) returns (QueryPricesResponse ) {
22- option (google.api.http ).get = "/side/dlc/announcements" ;
22+ // Price queries the current price by the given symbol.
23+ rpc Price (QueryPriceRequest ) returns (QueryPriceResponse ) {
24+ option (google.api.http ).get = "/side/dlc/price" ;
2325 }
24-
2526}
2627
27- // QueryParamsRequest is request type for the QueryParams RPC method.
28+ // QueryParamsRequest is request type for the Query/Params RPC method.
2829message QueryParamsRequest {
2930}
3031
31- // QueryParamsResponse is response type for the QueryParams RPC method.
32+ // QueryParamsResponse is response type for the Query/Params RPC method.
3233message QueryParamsResponse {
3334 Params params = 1 ;
3435}
3536
36- // QueryAnnouncementRequest is request type for the Query/QueryAnnouncements RPC method.
37- message QueryAnnouncementRequest {
37+ // QueryAnnouncementsRequest is request type for the Query/Announcements RPC method.
38+ message QueryAnnouncementsRequest {
3839 string status = 1 ;
3940 cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
4041}
41-
42- // QueryAnnouncementResponse is response type for the Query/QueryAnnouncements RPC method.
43- message QueryAnnouncementResponse {
42+
43+ // QueryAnnouncementsResponse is response type for the Query/Announcements RPC method.
44+ message QueryAnnouncementsResponse {
4445 repeated DLCAnnouncement announcements = 1 ;
4546 cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
4647}
47-
48- // QueryAnnouncementRequest is request type for the Query/QueryAnnouncements RPC method.
48+
49+ // QueryPriceRequest is request type for the Query/Price RPC method.
4950message QueryPriceRequest {
5051 string symbol = 1 ;
5152}
52-
53- // QueryAnnouncementResponse is response type for the Query/QueryAnnouncements RPC method.
54- message QueryPricesResponse {
53+
54+ // QueryPriceResponse is response type for the Query/Price RPC method.
55+ message QueryPriceResponse {
5556 uint32 price = 1 ;
5657}
57-
0 commit comments