@@ -12,55 +12,60 @@ import "feeds/v1beta1/params.proto";
12
12
13
13
// Query defines the gRPC querier service.
14
14
service Query {
15
- // Prices is a RPC method that returns all prices.
15
+ // Prices is an RPC method that returns all prices.
16
16
rpc Prices (QueryPricesRequest ) returns (QueryPricesResponse ) {
17
17
option (google.api.http ).get = "/feeds/v1beta1/prices" ;
18
18
}
19
19
20
- // Price is a RPC method that returns price by signal id.
20
+ // Price is an RPC method that returns price by signal id.
21
21
rpc Price (QueryPriceRequest ) returns (QueryPriceResponse ) {
22
22
option (google.api.http ).get = "/feeds/v1beta1/prices/{signal_id}" ;
23
23
}
24
24
25
- // ValidatorPrices is a RPC method that returns prices of a validator.
25
+ // ValidatorPrices is an RPC method that returns prices of a validator.
26
26
rpc ValidatorPrices (QueryValidatorPricesRequest ) returns (QueryValidatorPricesResponse ) {
27
27
option (google.api.http ).get = "/feeds/v1beta1/validators/{validator}/prices" ;
28
28
}
29
29
30
- // ValidatorPrice is a RPC method that returns price of validator by signal id.
30
+ // ValidatorPrice is an RPC method that returns price of validator by signal id.
31
31
rpc ValidatorPrice (QueryValidatorPriceRequest ) returns (QueryValidatorPriceResponse ) {
32
32
option (google.api.http ).get = "/feeds/v1beta1/prices/{signal_id}/validators/{validator}" ;
33
33
}
34
34
35
- // ValidValidator is a RPC method that returns flag to show if the validator is required to send prices.
35
+ // ValidValidator is an RPC method that returns flag to show if the validator is required to send prices.
36
36
rpc ValidValidator (QueryValidValidatorRequest ) returns (QueryValidValidatorResponse ) {
37
37
option (google.api.http ).get = "/feeds/v1beta1/validators/{validator}" ;
38
38
}
39
39
40
- // Signals is a RPC method that returns all signal-total-powers or specified signal-total-power by signal id.
40
+ // Signals is an RPC method that returns all signal-total-powers or specified signal-total-power by signal id.
41
41
rpc SignalTotalPowers (QuerySignalTotalPowersRequest ) returns (QuerySignalTotalPowersResponse ) {
42
42
option (google.api.http ).get = "/feeds/v1beta1/signal-total-powers" ;
43
43
}
44
44
45
- // Params is a RPC method that returns all parameters of the module.
45
+ // Params is an RPC method that returns all parameters of the module.
46
46
rpc Params (QueryParamsRequest ) returns (QueryParamsResponse ) {
47
47
option (google.api.http ).get = "/feeds/v1beta1/params" ;
48
48
}
49
49
50
- // PriceService is a RPC method that returns information of price service.
50
+ // PriceService is an RPC method that returns information of price service.
51
51
rpc PriceService (QueryPriceServiceRequest ) returns (QueryPriceServiceResponse ) {
52
52
option (google.api.http ).get = "/feeds/v1beta1/price-service" ;
53
53
}
54
54
55
- // DelegatorSignals is a RPC method that returns signals of a delegator
55
+ // DelegatorSignals is an RPC method that returns signals of a delegator
56
56
rpc DelegatorSignals (QueryDelegatorSignalsRequest ) returns (QueryDelegatorSignalsResponse ) {
57
57
option (google.api.http ).get = "/feeds/v1beta1/delegators/{delegator}/signals" ;
58
58
}
59
59
60
- // SupportedFeeds is a RPC method that return list of currect supported feeds
60
+ // SupportedFeeds is an RPC method that returns a list of current supported feeds
61
61
rpc SupportedFeeds (QuerySupportedFeedsRequest ) returns (QuerySupportedFeedsResponse ) {
62
62
option (google.api.http ).get = "/feeds/v1beta1/supported-feeds" ;
63
63
}
64
+
65
+ // IsFeeder is an RPC method that returns whether an account is a feeder for specified validator.
66
+ rpc IsFeeder (QueryIsFeederRequest ) returns (QueryIsFeederResponse ) {
67
+ option (google.api.http ).get = "/feeds/v1beta1/feeder/{validator_address}/{feeder_address}" ;
68
+ }
64
69
}
65
70
66
71
// QueryPricesRequest is the request type for the Query/Prices RPC method.
@@ -187,3 +192,17 @@ message QuerySupportedFeedsResponse {
187
192
// SupportedFeeds is a list of currently supported feeds, and its last update time and block.
188
193
SupportedFeeds supported_feeds = 1 [(gogoproto.nullable ) = false ];
189
194
}
195
+
196
+ // QueryIsFeederRequest is request type for the Query/IsFeeder RPC method.
197
+ message QueryIsFeederRequest {
198
+ // ValidatorAddress is a validator address
199
+ string validator_address = 1 ;
200
+ // FeederAddress is a candidate account
201
+ string feeder_address = 2 ;
202
+ }
203
+
204
+ // QueryIsFeederResponse is response type for the Query/IsFeeder RPC method.
205
+ message QueryIsFeederResponse {
206
+ // IsFeeder is true if this account has been granted by validator
207
+ bool is_feeder = 1 ;
208
+ }
0 commit comments