ante

package
v0.28.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (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, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (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 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, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle logs all messages in blocks

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, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (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, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle fails the transaction if it finds any validator holding multiSig share of active keys is trying to unbond

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL