Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Mar 22, 2024
1 parent cd38047 commit 8963b1a
Show file tree
Hide file tree
Showing 4 changed files with 205 additions and 187 deletions.
14 changes: 9 additions & 5 deletions proto/umee/auction/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,33 @@ option go_package = "github.com/umee-network/umee/v6/x/auction";

// Query defines the gRPC querier service.
service Query {
// RewardParams queries parameters for the reward auciton.
rpc RewardParams(QueryRewardParams) returns (QueryRewardParamsResp) {
// QueryRewardParams queries parameters for the reward auciton.
rpc RewardParams(QueryRewardParams) returns (QueryRewardParamsResponse) {
option (google.api.http).get = "/umee/auction/v1/rewards/params";
}
// RewardAuction queries the information of the auction by ID. If ID is ommitted, returns
// current reward auction params.
rpc RewardAuction(QueryRewardAuction) returns (QueryRewardAuctionResp) {
rpc RewardAuction(QueryRewardAuction) returns (QueryRewardAuctionResponse) {
option (google.api.http).get = "/umee/auction/v1/rewards/{id}";
}
}

// Query type for Query/RewardParams
message QueryRewardParams {}

message QueryRewardParamsResp {
// Response type for Query/RewardParams
message QueryRewardParamsResponse {
RewardsParams params = 1 [(gogoproto.nullable) = false];
}

// Query type for QueryRewardAuction
message QueryRewardAuction {
// If zero or not present, the current auction is returned
uint32 id = 1;
}

message QueryRewardAuctionResp {
// Response type for Query/RewardAuctionResponse
message QueryRewardAuctionResponse {
uint32 id = 1;
// highest bidder
string bidder = 2;
Expand Down
17 changes: 10 additions & 7 deletions proto/umee/auction/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ service Msg {
// Rewards auction: bid umee for protocol rewards
//

rpc GovSetRewardsParams(MsgGovSetRewardsParams) returns (MsgGovSetRewardsParamsResp);
rpc RewardsBid(MsgRewardsBid) returns (MsgRewardsBidResp);
// Allows x/gov to update rewards auction parameters.
rpc GovSetRewardsParams(MsgGovSetRewardsParams) returns (MsgGovSetRewardsParamsResponse);
// Places a bid for a reword auction. Must be higher than the previous bid by at least
// RewardParams.RewardsParams.
rpc RewardsBid(MsgRewardsBid) returns (MsgRewardsBidResponse);
}

// MsgGovSetRewardsParams updates rewards parameters.
// MsgGovSetRewardsParams updates rewards auction parameters.
message MsgGovSetRewardsParams {
option (gogoproto.equal) = true;
option (gogoproto.goproto_getters) = false;
Expand All @@ -31,8 +34,8 @@ message MsgGovSetRewardsParams {
RewardsParams params = 2 [(gogoproto.nullable) = false];
}

// MsgGovSetRewardsParamsResp defines the Msg/GovSetRewardsParams response type.
message MsgGovSetRewardsParamsResp {}
// MsgGovSetRewardsParamsResponse defines the Msg/GovSetRewardsParams response type.
message MsgGovSetRewardsParamsResponse {}

// MsgRewardsBid places a bid for a reword auction.
message MsgRewardsBid {
Expand All @@ -45,5 +48,5 @@ message MsgRewardsBid {
uint32 id = 3;
}

// MsgRewardsBidResp response type for Msg/RewardsBid
message MsgRewardsBidResp {}
// MsgRewardsBidResponse response type for Msg/RewardsBid
message MsgRewardsBidResponse {}
Loading

0 comments on commit 8963b1a

Please sign in to comment.