gatecheck

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

ensure that user has enough shr token to pay fee

Index

Constants

View Source
const (
	NotIdSignerErr      = "Transacation's Signer is not IdSigner"
	NotDocIssuerErr     = "Transacation's Signer is not document issuer"
	NotAuthorityErr     = "Transacation's Signer is not Authority"
	NotBackupAccountErr = "Transacation's Signer is not the backup account"
)
View Source
const (
	FEE_LEVEL_HIGH = "HIGH"
	// HIGHFEE          = 0.05
	FEE_LEVEL_MEDIUM = "MEDIUM"
	// MEDIUMFEE        = 0.03
	FEE_LEVEL_LOW = "LOW"
	// LOWFEE           = 0.02
	// MINFEE           = 0.01
	SKIP_CHECK_LEVEL = "SKIP"
)

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(ak keeper.AccountKeeper, ek electoral.Keeper, supplyKeeper types.SupplyKeeper, gmKeeper gentlemint.Keeper, idKeeper id.Keeper, sigGasConsumer ante.SignatureVerificationGasConsumer) sdk.AnteHandler

Types

type AuthAnteDecorator

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

func (AuthAnteDecorator) AnteHandle

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

type CheckAuthDecorator

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

func NewCheckAuthDecorator

func NewCheckAuthDecorator(gk gentlemint.Keeper, ik id.Keeper) CheckAuthDecorator

func (CheckAuthDecorator) AnteHandle

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

type CheckFeeDecorator

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

func NewCheckFeeDecorator

func NewCheckFeeDecorator(gk gentlemint.Keeper) CheckFeeDecorator

func (CheckFeeDecorator) AnteHandle

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

type CheckValDecorator

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

func NewCheckValDecorator

func NewCheckValDecorator(ek electoral.Keeper) CheckValDecorator

func (CheckValDecorator) AnteHandle

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

type FeeEnsureDecorator

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

func NewFeeEnsureDecorator

func NewFeeEnsureDecorator(gk gentlemint.Keeper) FeeEnsureDecorator

func (FeeEnsureDecorator) AnteHandle

func (fsd FeeEnsureDecorator) 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