ante

package
v1.3.0-post.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const OracleMessageGas = 500

Variables

View Source
var (
	ErrOracleAnte             = registerError("oracle ante error")
	ErrMaxValidatorCommission = registerError("validator commission rate is above max")
)

app/ante "sentinel" errors

Functions

func MAX_COMMISSION added in v1.0.0

func MAX_COMMISSION() sdk.Dec

func NewErrMaxValidatorCommission added in v1.0.0

func NewErrMaxValidatorCommission(gotCommission sdk.Dec) error

func NewFixedGasMeter

func NewFixedGasMeter(fixedGas types.Gas) types.GasMeter

NewFixedGasMeter returns a reference to a new fixedGasMeter.

Types

type AnteDecoratorStakingCommission added in v1.0.0

type AnteDecoratorStakingCommission struct{}

AnteDecoratorStakingCommission: Implements sdk.AnteDecorator, enforcing the maximum staking commission for validators on the network.

func (AnteDecoratorStakingCommission) AnteHandle added in v1.0.0

func (a AnteDecoratorStakingCommission) AnteHandle(
	ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler,
) (newCtx sdk.Context, err error)

type EnsureSinglePostPriceMessageDecorator

type EnsureSinglePostPriceMessageDecorator struct{}

EnsureSinglePostPriceMessageDecorator ensures that there is only one oracle vote message in the transaction and sets the gas meter to a fixed value.

func NewPostPriceFixedPriceDecorator

func NewPostPriceFixedPriceDecorator() EnsureSinglePostPriceMessageDecorator

func (EnsureSinglePostPriceMessageDecorator) AnteHandle

func (gd EnsureSinglePostPriceMessageDecorator) AnteHandle(
	ctx sdk.Context,
	tx sdk.Tx,
	simulate bool,
	next sdk.AnteHandler,
) (newCtx sdk.Context, err error)

Jump to

Keyboard shortcuts

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