From 9c29f694daecce8d1d932ecd750f6df5effec094 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Wed, 18 Sep 2024 11:56:00 +0530 Subject: [PATCH] Regenerate proto bindings --- api/cerc/auction/v1/auction.pulsar.go | 9 ++++++--- proto/cerc/auction/v1/auction.proto | 13 +++++++------ proto/cerc/auction/v1/tx.proto | 4 +--- x/auction/auction.pb.go | 9 ++++++--- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/api/cerc/auction/v1/auction.pulsar.go b/api/cerc/auction/v1/auction.pulsar.go index d18f396d..4a0c3538 100644 --- a/api/cerc/auction/v1/auction.pulsar.go +++ b/api/cerc/auction/v1/auction.pulsar.go @@ -3932,13 +3932,16 @@ type Auction struct { RevealFee *v1beta1.Coin `protobuf:"bytes,9,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee,omitempty"` // Minimum acceptable bid amount for a valid commit MinimumBid *v1beta1.Coin `protobuf:"bytes,10,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid,omitempty"` - // Addresses of the winners (one for vickrey auctions and can be multiple for provider auctions) + // Addresses of the winners (one for vickrey auctions and can be multiple for + // provider auctions) WinnerAddresses []string `protobuf:"bytes,11,rep,name=winner_addresses,json=winnerAddresses,proto3" json:"winner_addresses,omitempty"` // Winning bids, i.e., the best bids WinningBids []*v1beta1.Coin `protobuf:"bytes,12,rep,name=winning_bids,json=winningBids,proto3" json:"winning_bids,omitempty"` - // Amount the winner pays, i.e. the second best bid + // Amount the winner pays (vickrey auction) or gets paid (provider auction), + // i.e. the second best bid WinningPrice *v1beta1.Coin `protobuf:"bytes,13,opt,name=winning_price,json=winningPrice,proto3" json:"winning_price,omitempty"` - // Maximum acceptable bid amount for a valid commit for service provider auctions + // Maximum acceptable bid amount for a valid commit for service provider + // auctions MaxPrice *v1beta1.Coin `protobuf:"bytes,14,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"` // Number of providers to be selected NumProviders int32 `protobuf:"varint,15,opt,name=num_providers,json=numProviders,proto3" json:"num_providers,omitempty"` diff --git a/proto/cerc/auction/v1/auction.proto b/proto/cerc/auction/v1/auction.proto index c4ad059a..3379fed9 100644 --- a/proto/cerc/auction/v1/auction.proto +++ b/proto/cerc/auction/v1/auction.proto @@ -54,9 +54,7 @@ message Auction { string id = 1; // Auction's kind (vickrey | provider) - string kind = 2 [ - (gogoproto.moretags) = "json:\"kind\" yaml:\"kind\"" - ]; + string kind = 2 [ (gogoproto.moretags) = "json:\"kind\" yaml:\"kind\"" ]; string status = 3; @@ -101,7 +99,8 @@ message Auction { (gogoproto.moretags) = "json:\"minimum_bid\" yaml:\"minimum_bid\"" ]; - // Addresses of the winners (one for vickrey auctions and can be multiple for provider auctions) + // Addresses of the winners (one for vickrey auctions and can be multiple for + // provider auctions) repeated string winner_addresses = 11; // Winning bids, i.e., the best bids @@ -110,13 +109,15 @@ message Auction { (gogoproto.moretags) = "json:\"winning_bids\" yaml:\"winning_bids\"" ]; - // Amount the winner pays (vickrey auction) or gets paid (provider auction), i.e. the second best bid + // Amount the winner pays (vickrey auction) or gets paid (provider auction), + // i.e. the second best bid cosmos.base.v1beta1.Coin winning_price = 13 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"winning_price\" yaml:\"winning_price\"" ]; - // Maximum acceptable bid amount for a valid commit for service provider auctions + // Maximum acceptable bid amount for a valid commit for service provider + // auctions cosmos.base.v1beta1.Coin max_price = 14 [ (gogoproto.nullable) = false, (gogoproto.moretags) = "json:\"max_price\" yaml:\"max_price\"" diff --git a/proto/cerc/auction/v1/tx.proto b/proto/cerc/auction/v1/tx.proto index b4545513..2349a7c6 100644 --- a/proto/cerc/auction/v1/tx.proto +++ b/proto/cerc/auction/v1/tx.proto @@ -78,9 +78,7 @@ message MsgCreateAuction { [ (gogoproto.moretags) = "json:\"signer\" yaml:\"signer\"" ]; // Auction's kind (vickrey | provider) - string kind = 7 [ - (gogoproto.moretags) = "json:\"kind\" yaml:\"kind\"" - ]; + string kind = 7 [ (gogoproto.moretags) = "json:\"kind\" yaml:\"kind\"" ]; // Maximum acceptable bid amount (for service provider auctions) cosmos.base.v1beta1.Coin max_price = 8 [ diff --git a/x/auction/auction.pb.go b/x/auction/auction.pb.go index fc50802a..619052f1 100644 --- a/x/auction/auction.pb.go +++ b/x/auction/auction.pb.go @@ -130,13 +130,16 @@ type Auction struct { RevealFee types.Coin `protobuf:"bytes,9,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee" json:"reveal_fee" yaml:"reveal_fee"` // Minimum acceptable bid amount for a valid commit MinimumBid types.Coin `protobuf:"bytes,10,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid" json:"minimum_bid" yaml:"minimum_bid"` - // Addresses of the winners (one for vickrey auctions and can be multiple for provider auctions) + // Addresses of the winners (one for vickrey auctions and can be multiple for + // provider auctions) WinnerAddresses []string `protobuf:"bytes,11,rep,name=winner_addresses,json=winnerAddresses,proto3" json:"winner_addresses,omitempty"` // Winning bids, i.e., the best bids WinningBids []types.Coin `protobuf:"bytes,12,rep,name=winning_bids,json=winningBids,proto3" json:"winning_bids" json:"winning_bids" yaml:"winning_bids"` - // Amount the winner pays, i.e. the second best bid + // Amount the winner pays (vickrey auction) or gets paid (provider auction), + // i.e. the second best bid WinningPrice types.Coin `protobuf:"bytes,13,opt,name=winning_price,json=winningPrice,proto3" json:"winning_price" json:"winning_price" yaml:"winning_price"` - // Maximum acceptable bid amount for a valid commit for service provider auctions + // Maximum acceptable bid amount for a valid commit for service provider + // auctions MaxPrice types.Coin `protobuf:"bytes,14,opt,name=max_price,json=maxPrice,proto3" json:"max_price" json:"max_price" yaml:"max_price"` // Number of providers to be selected NumProviders int32 `protobuf:"varint,15,opt,name=num_providers,json=numProviders,proto3" json:"num_providers,omitempty"`