Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderDecorator ¶
type BuilderDecorator struct {
// contains filtered or unexported fields
}
BuilderDecorator is an AnteDecorator that validates the auction bid and bundled transactions.
func NewBuilderDecorator ¶
func (BuilderDecorator) AnteHandle ¶
func (bd BuilderDecorator) 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.
func (BuilderDecorator) ValidateTimeout ¶ added in v1.0.1
func (bd BuilderDecorator) ValidateTimeout(ctx sdk.Context, timeout int64) error
ValidateTimeout validates that the timeout is greater than or equal to the expected block height the bid transaction will be executed in.
TODO: This will be deprecated in favor of the pre-commit hook once this available on the SDK https://github.com/skip-mev/pob/issues/147
Click to show internal directories.
Click to hide internal directories.