ante

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(
	ak keeper.AccountKeeper,
	supplyKeeper types.SupplyKeeper,
	priceKeeper pricefeed.Keeper,
	sigGasConsumer cosmosante.SignatureVerificationGasConsumer,
	stableCreditsDemon string,
) sdk.AnteHandler

NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.

Types

type MinFeeDecorator added in v1.3.2

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

MinFeeDecorator checks that each transaction containing a MsgShareDocument contains also a minimum fee amount corresponding to 0.01 euro per MsgShareDocument included into the transaction itself. The amount can be specified either using stableCreditsDenom tokens or by using any other token which price is contained inside the pricefeedKeeper.

func NewMinFeeDecorator added in v1.3.2

func NewMinFeeDecorator(priceKeeper pricefeed.Keeper, stableCreditsDenom string) MinFeeDecorator

func (MinFeeDecorator) AnteHandle added in v1.3.2

func (mfd MinFeeDecorator) 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