ante

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 tss share of active keys is trying to unbond

type CheckRefundFeeDecorator

type CheckRefundFeeDecorator struct {
	// contains filtered or unexported fields
}

CheckRefundFeeDecorator record potential refund for tss and vote txs

func NewCheckRefundFeeDecorator

func NewCheckRefundFeeDecorator(registry cdctypes.InterfaceRegistry, ak antetypes.AccountKeeper, staking types.Staking, snapshotter types.Snapshotter, axelarnet types.Axelarnet) 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 tss 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 ValidateValidatorDeregisteredTssDecorator

type ValidateValidatorDeregisteredTssDecorator struct {
	// contains filtered or unexported fields
}

ValidateValidatorDeregisteredTssDecorator checks if the unbonding validator holds any tss share of active crypto keys

func NewValidateValidatorDeregisteredTssDecorator

func NewValidateValidatorDeregisteredTssDecorator(tss types.Tss, nexus types.Nexus, snapshotter types.Snapshotter) ValidateValidatorDeregisteredTssDecorator

NewValidateValidatorDeregisteredTssDecorator constructor for ValidateValidatorDeregisteredTssDecorator

func (ValidateValidatorDeregisteredTssDecorator) AnteHandle

func (d ValidateValidatorDeregisteredTssDecorator) 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 tss 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