ante

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAppInjectedMsg

func IsAppInjectedMsg(msg sdk.Msg) bool

IsAppInjectedMsg returns true if the given msg is an "app-injected msg". Otherwise, returns false.

func IsDisallowExternalSubmitMsg

func IsDisallowExternalSubmitMsg(msg sdk.Msg) bool

IsDisallowExternalSubmitMsg returns true if the msg is not allowed to be submitted externally.

func IsInternalMsg

func IsInternalMsg(msg sdk.Msg) bool

IsInternalMsg returns true if the given msg is an internal message.

func IsNestedMsg

func IsNestedMsg(msg sdk.Msg) bool

IsNestedMsg returns true if the given msg is a nested msg.

func IsSingleAppInjectedMsg

func IsSingleAppInjectedMsg(msgs []sdk.Msg) bool

IsSingleAppInjectedMsg returns true if the given list of msgs contains an "app-injected msg" and it's the only msg in the list. Otherwise, returns false.

func IsUnsupportedMsg

func IsUnsupportedMsg(msg sdk.Msg) bool

IsUnsupportedMsg returns true if the msg is unsupported by the app.

func ValidateNestedMsg

func ValidateNestedMsg(msg sdk.Msg) error

ValidateNestedMsg returns err if the given msg is an invalid nested msg.

Types

type AppInjectedMsgAnteWrapper

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

AppInjectedMsgAnteWrapper is a wrapper for AnteHandlers that need to be skipped for "App-injected message" tx due to the fact that the "App-injected message" txs do not have certain features of regular txs like signatures.

func NewAppInjectedMsgAnteWrapper

func NewAppInjectedMsgAnteWrapper(handler sdk.AnteDecorator) AppInjectedMsgAnteWrapper

func (AppInjectedMsgAnteWrapper) AnteHandle

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

func (AppInjectedMsgAnteWrapper) GetAnteHandler

func (imaw AppInjectedMsgAnteWrapper) GetAnteHandler() sdk.AnteDecorator

Jump to

Keyboard shortcuts

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