Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobKeeper ¶
type BlobShareDecorator ¶
type BlobShareDecorator struct {
// contains filtered or unexported fields
}
BlobShareDecorator helps to prevent a PFB from being included in a block but not fitting in a data square because the number of shares occupied by the PFB exceeds the max number of shares available to blob data in a data square.
func NewBlobShareDecorator ¶
func NewBlobShareDecorator(k BlobKeeper) BlobShareDecorator
func (BlobShareDecorator) AnteHandle ¶
func (d BlobShareDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle implements the Cosmos SDK AnteHandler function signature. It returns an error if tx contains a MsgPayForBlobs where the shares occupied by the PFB exceeds the max number of shares in a data square.
type MaxTotalBlobSizeDecorator ¶
type MaxTotalBlobSizeDecorator struct {
// contains filtered or unexported fields
}
MaxTotalBlobSizeDecorator helps to prevent a PFB from being included in a block but not fitting in a data square.
func NewMaxTotalBlobSizeDecorator ¶
func NewMaxTotalBlobSizeDecorator(k BlobKeeper) MaxTotalBlobSizeDecorator
func (MaxTotalBlobSizeDecorator) AnteHandle ¶
func (d MaxTotalBlobSizeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle implements the Cosmos SDK AnteHandler function signature. It returns an error if tx contains a MsgPayForBlobs where the total blob size is greater than the max total blob size.
type MinGasPFBDecorator ¶
type MinGasPFBDecorator struct {
// contains filtered or unexported fields
}
MinGasPFBDecorator helps to prevent a PFB from being included in a block but running out of gas in DeliverTx (effectively getting DA for free) This decorator should be run after any decorator that consumes gas.
func NewMinGasPFBDecorator ¶
func NewMinGasPFBDecorator(k BlobKeeper) MinGasPFBDecorator
func (MinGasPFBDecorator) AnteHandle ¶
func (d MinGasPFBDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle implements the AnteHandler interface. It checks to see if the transaction contains a MsgPayForBlobs and if so, checks that the transaction has allocated enough gas.