1+ syntax = "proto3" ;
2+ package side.dlc ;
3+
4+ import "gogoproto/gogo.proto" ;
5+ import "google/api/annotations.proto" ;
6+ import "cosmos/base/query/v1beta1/pagination.proto" ;
7+ import "side/dlc/params.proto" ;
8+ import "side/dlc/dlc.proto" ;
9+
10+ option go_package = "github.com/sideprotocol/side/x/dlc/types" ;
11+
12+ // Query defines the gRPC querier service.
13+ service Query {
14+ // Parameters queries the parameters of the module.
15+ rpc QueryParams (QueryParamsRequest ) returns (QueryParamsResponse ) {
16+ option (google.api.http ).get = "/side/dlc/params" ;
17+ }
18+ rpc QueryAnnouncements (QueryAnnouncementRequest ) returns (QueryAnnouncementResponse ) {
19+ option (google.api.http ).get = "/side/dlc/announcements" ;
20+ }
21+ rpc QueryPrices (QueryPriceRequest ) returns (QueryPricesResponse ) {
22+ option (google.api.http ).get = "/side/dlc/announcements" ;
23+ }
24+
25+ }
26+
27+ // QueryParamsRequest is request type for the QueryParams RPC method.
28+ message QueryParamsRequest {
29+ }
30+
31+ // QueryParamsResponse is response type for the QueryParams RPC method.
32+ message QueryParamsResponse {
33+ Params params = 1 ;
34+ }
35+
36+ // QueryAnnouncementRequest is request type for the Query/QueryAnnouncements RPC method.
37+ message QueryAnnouncementRequest {
38+ string status = 1 ;
39+ cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
40+ }
41+
42+ // QueryAnnouncementResponse is response type for the Query/QueryAnnouncements RPC method.
43+ message QueryAnnouncementResponse {
44+ repeated DLCAnnouncement announcements = 1 ;
45+ cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
46+ }
47+
48+ // QueryAnnouncementRequest is request type for the Query/QueryAnnouncements RPC method.
49+ message QueryPriceRequest {
50+ string symbol = 1 ;
51+ }
52+
53+ // QueryAnnouncementResponse is response type for the Query/QueryAnnouncements RPC method.
54+ message QueryPricesResponse {
55+ uint32 price = 1 ;
56+ }
57+
0 commit comments