Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchDecorator ¶ added in v0.36.0
type BatchDecorator struct {
// contains filtered or unexported fields
}
BatchDecorator unwraps batch requests and passes them to the next AnteHandler
func NewBatchDecorator ¶ added in v0.36.0
func NewBatchDecorator(cdc codec.Codec) BatchDecorator
NewBatchDecorator is the constructor for BatchDecorator
func (BatchDecorator) AnteHandle ¶ added in v0.36.0
func (b BatchDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle record qualified refund for the multiSig and vote transactions
type CheckCommissionRate ¶ added in v0.18.0
type CheckCommissionRate struct {
// contains filtered or unexported fields
}
CheckCommissionRate checks if the validator commission rate is eligible
func NewCheckCommissionRate ¶ added in v0.18.0
func NewCheckCommissionRate(staking types.Staking) CheckCommissionRate
NewCheckCommissionRate constructor for CheckCommissionRate
func (CheckCommissionRate) AnteHandle ¶ added in v0.18.0
func (d CheckCommissionRate) AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
AnteHandle fails the transaction if it finds any validator registering a commission rate that is below the minimum
type CheckProxy ¶ added in v0.8.1
type CheckProxy struct {
// contains filtered or unexported fields
}
CheckProxy checks if the proxy already sent its readiness message
func NewCheckProxy ¶ added in v0.8.1
func NewCheckProxy(snapshotter types.Snapshotter) CheckProxy
NewCheckProxy constructor for CheckProxyReadiness
func (CheckProxy) AnteHandle ¶ added in v0.8.1
func (d CheckProxy) AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
AnteHandle fails the transaction if it finds any validator holding multiSig share of active keys is trying to unbond
type CheckRefundFeeDecorator ¶
type CheckRefundFeeDecorator struct {
// contains filtered or unexported fields
}
CheckRefundFeeDecorator record potential refund for multiSig and vote txs
func NewCheckRefundFeeDecorator ¶
func NewCheckRefundFeeDecorator(registry cdctypes.InterfaceRegistry, ak antetypes.AccountKeeper, staking types.Staking, snapshotter types.Snapshotter, reward types.Reward) CheckRefundFeeDecorator
NewCheckRefundFeeDecorator constructor for CheckRefundFeeDecorator
func (CheckRefundFeeDecorator) AnteHandle ¶
func (d CheckRefundFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle record qualified refund for the multiSig and vote transactions
type HandlerDecorator ¶
type HandlerDecorator struct {
// contains filtered or unexported fields
}
HandlerDecorator is an ante decorator wrapper for an ante handler
func NewAnteHandlerDecorator ¶
func NewAnteHandlerDecorator(handler sdk.AnteHandler) HandlerDecorator
NewAnteHandlerDecorator constructor for HandlerDecorator
func (HandlerDecorator) AnteHandle ¶
func (decorator HandlerDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
AnteHandle wraps the next AnteHandler to perform custom pre- and post-processing
type LimitSimulationGasDecorator ¶ added in v1.0.0
type LimitSimulationGasDecorator struct {
// contains filtered or unexported fields
}
LimitSimulationGasDecorator ante decorator to limit gas in simulation calls This is a fix for cosmwasm's LimitSimulationGasDecorator. The original implementation discards any gas consumption before this decorator is called.
func NewLimitSimulationGasDecorator ¶ added in v1.0.0
func NewLimitSimulationGasDecorator(gasLimit *sdk.Gas) *LimitSimulationGasDecorator
NewLimitSimulationGasDecorator constructor accepts nil value to fallback to block gas limit.
func (LimitSimulationGasDecorator) AnteHandle ¶ added in v1.0.0
func (d LimitSimulationGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)
AnteHandle that limits the maximum gas available in simulations only. Fixed from the original implementation by carrying over the consumed gas in the discarded gas meter.
type LogMsgDecorator ¶
type LogMsgDecorator struct {
// contains filtered or unexported fields
}
LogMsgDecorator logs all messages in blocks
func NewLogMsgDecorator ¶
func NewLogMsgDecorator(cdc codec.Codec) LogMsgDecorator
NewLogMsgDecorator is the constructor for LogMsgDecorator
func (LogMsgDecorator) AnteHandle ¶
func (d LogMsgDecorator) AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
AnteHandle logs all messages in blocks
type MessageAnteDecorator ¶ added in v0.35.0
type MessageAnteDecorator interface {
AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
}
MessageAnteDecorator is analogous to the sdk's AnteDecorator, but works on messages instead of the full Tx
type MessageAnteHandler ¶ added in v0.35.0
MessageAnteHandler is analogous to the sdk's AnteHandler, but works on messages instead of the full Tx
func ChainMessageAnteDecorators ¶ added in v0.35.0
func ChainMessageAnteDecorators(chain ...MessageAnteDecorator) MessageAnteHandler
ChainMessageAnteDecorators combines multiple MessageAnteDecorators into a single MessageAnteHandler
func (MessageAnteHandler) ToAnteHandler ¶ added in v0.35.0
func (m MessageAnteHandler) ToAnteHandler() sdk.AnteHandler
ToAnteHandler converts a MessageAnteHandler to an AnteHandler
type RestrictedTx ¶ added in v0.9.0
type RestrictedTx struct {
// contains filtered or unexported fields
}
RestrictedTx checks if the signer is authorized to send restricted transactions
func NewRestrictedTx ¶ added in v0.9.0
func NewRestrictedTx(permission types.Permission) RestrictedTx
NewRestrictedTx constructor for RestrictedTx
func (RestrictedTx) AnteHandle ¶ added in v0.9.0
func (d RestrictedTx) AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
AnteHandle fails if the signer is not authorized to send the transaction
type UndelegateDecorator ¶ added in v0.21.0
type UndelegateDecorator struct {
// contains filtered or unexported fields
}
UndelegateDecorator checks if the unbonding validator holds any multiSig share of active crypto keys
func NewUndelegateDecorator ¶ added in v0.21.0
func NewUndelegateDecorator(multiSig types.MultiSig, nexus types.Nexus, snapshotter types.Snapshotter) UndelegateDecorator
NewUndelegateDecorator constructor for UndelegateDecorator
func (UndelegateDecorator) AnteHandle ¶ added in v0.21.0
func (d UndelegateDecorator) AnteHandle(ctx sdk.Context, msgs []sdk.Msg, simulate bool, next MessageAnteHandler) (sdk.Context, error)
AnteHandle fails the transaction if it finds any validator holding multiSig share of active keys is trying to unbond