ante

package
v0.21.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 6 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