Skip to content

Commit

Permalink
update params
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Mar 22, 2024
1 parent d6de406 commit a3e3a8f
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 67 deletions.
9 changes: 5 additions & 4 deletions proto/umee/auction/v1/auction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ option (gogoproto.goproto_getters_all) = false;

// RewardsParams defines parameters for the rewards auction.
message RewardsParams {
// auction_duration is duration in seconds.
int64 auction_duration = 1;
// min_bid_increment (nominal) in the base denom for each consequitive bid.
int64 min_bid_increment = 2;
// bid_duration is duration of the bid phase in seconds.
int64 bid_duration = 1;
// Duration (in seconds) at the end of each auction, when we start collecting revenues for
// the next auction.
int64 revenu_collection_shift = 2;
}
7 changes: 5 additions & 2 deletions proto/umee/auction/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ option (gogoproto.goproto_getters_all) = false;
// GenesisState defines the x/auction module's genesis state.
message GenesisState {
RewardsParams rewards_params = 1 [(gogoproto.nullable) = false];
// latest reward
uint32 reward_id = 2;
// latest active (in bid phase) reward auction.
uint32 reward_auction_id = 2;
// latest highest bid
string highest_bidder = 3;
repeated cosmos.base.v1beta1.Coin reward_tokens = 4 [(gogoproto.nullable) = false];
// tokens collected for the next auction, while the current reward auction is still in the
// bid phase.
repeated cosmos.base.v1beta1.Coin next_reward_tokens = 5 [(gogoproto.nullable) = false];
}
61 changes: 31 additions & 30 deletions x/auction/auction.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 90 additions & 31 deletions x/auction/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a3e3a8f

Please sign in to comment.