app

package
v0.1.0-gridtest.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnteHandler

func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error)

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

Types

type HandlerOptions

type HandlerOptions struct {
	ante.HandlerOptions
	BankKeeper           bankkeeper.Keeper
	TokenKeeper          tokenkeeper.Keeper
	OracleKeeper         oraclekeeper.Keeper
	GuardianKeeper       guardiankeeper.Keeper
	BypassMinFeeMsgTypes []string
}

HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.

type ValidateServiceDecorator

type ValidateServiceDecorator struct{}

ValidateServiceDecorator is responsible for checking the permission to execute MsgCallService

func NewValidateServiceDecorator

func NewValidateServiceDecorator() ValidateServiceDecorator

NewValidateServiceDecorator returns an instance of ServiceAuthDecorator

func (ValidateServiceDecorator) AnteHandle

func (vsd ValidateServiceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle checks the transaction

type ValidateTokenDecorator

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

ValidateTokenDecorator is responsible for restricting the token participation of the swap prefix

func NewValidateTokenDecorator

func NewValidateTokenDecorator(tk tokenkeeper.Keeper) ValidateTokenDecorator

NewValidateTokenDecorator returns an instance of ValidateTokenDecorator

func (ValidateTokenDecorator) AnteHandle

func (vtd ValidateTokenDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

AnteHandle checks the transaction

Jump to

Keyboard shortcuts

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