Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuctionDecorator ¶
type AuctionDecorator struct {
// contains filtered or unexported fields
}
AuctionDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
func NewAuctionDecorator ¶
func NewAuctionDecorator(ak AuctionKeeper, txEncoder sdk.TxEncoder, lane MEVLane) AuctionDecorator
NewAuctionDecorator returns a new AuctionDecorator.
func (AuctionDecorator) AnteHandle ¶
func (ad AuctionDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle validates that the auction bid is valid if one exists. If valid it will deduct the entrance fee from the bidder's account.
Click to show internal directories.
Click to hide internal directories.