Proposer Bid Reward [ENG-534] (#24)

This commit is contained in:
Aleksandr Bezobchuk
2023-03-17 10:38:09 -04:00
committed by GitHub
parent fdfd12a81d
commit 99b4bc2da2
14 changed files with 640 additions and 307 deletions
+27 -12
View File
@@ -8,7 +8,9 @@ import "amino/amino.proto";
option go_package = "github.com/skip-mev/pob/x/auction/types";
// GenesisState defines the genesis state of the x/auction module.
message GenesisState { Params params = 1 [ (gogoproto.nullable) = false ]; }
message GenesisState {
Params params = 1 [(gogoproto.nullable) = false];
}
// Params defines the parameters of the x/auction module.
message Params {
@@ -17,29 +19,42 @@ message Params {
// max_bundle_size is the maximum number of transactions that can be bundled
// in a single bundle.
uint32 max_bundle_size = 1;
// escrow_account_address is the address of the account that will hold the
// funds for the auctions.
// escrow_account_address is the address of the account that will receive a
// portion of the bid proceeds.
string escrow_account_address = 2;
// reserve_fee specifies the bid floor for the auction.
repeated cosmos.base.v1beta1.Coin reserve_fee = 3 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
// min_buy_in_fee specifies the fee that the bidder must pay to enter the auction.
// min_buy_in_fee specifies the fee that the bidder must pay to enter the
// auction.
repeated cosmos.base.v1beta1.Coin min_buy_in_fee = 4 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
// min_bid_increment specifies the minimum amount that the next bid must be
// greater than the previous bid.
repeated cosmos.base.v1beta1.Coin min_bid_increment = 5 [
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.nullable) = false,
(amino.dont_omitempty) = true,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
// front_running_protection specifies whether front running and sandwich attack protection
// is enabled.
// front_running_protection specifies whether front running and sandwich
// attack protection is enabled.
bool front_running_protection = 6;
// proposer_fee defines the portion of the winning bid that goes to the block
// proposer that proposed the block.
string proposer_fee = 7 [
(gogoproto.nullable) = false,
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"
];
}