/
query.proto
28 lines (23 loc) · 950 Bytes
/
query.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
syntax = "proto3";
package mars.safety.v1beta1;
import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
option go_package = "github.com/mars-protocol/hub/x/safety/types";
// Query defines the gRPC querier service for the safety fund module
service Query {
// Balances queries coins available in the safety fund
rpc Balances(QueryBalancesRequest) returns (QueryBalancesResponse) {
option (google.api.http).get = "/mars/safety/v1beta1/balances";
}
}
// QueBalancesRequest is the request type of the QuerBalancesRPC method
message QueryBalancesRequest {}
// QueBalancesResponse is the response type of the QuerBalancesRPC method
message QueryBalancesResponse {
// Balances is the coins available in the safety fund
repeated cosmos.base.v1beta1.Coin balances = 1 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
}