ante

package
v0.20.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OracleMessageGas = 500

Variables

This section is empty.

Functions

func NewFixedGasMeter

func NewFixedGasMeter(fixedGas types.Gas) types.GasMeter

NewFixedGasMeter returns a reference to a new fixedGasMeter.

Types

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