ante

package
v8.0.0-...-2960480 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendBlockDecorator

type SendBlockDecorator struct {
	Options SendBlockOptions
}

func NewSendBlockDecorator

func NewSendBlockDecorator(options SendBlockOptions) *SendBlockDecorator

func (*SendBlockDecorator) AnteHandle

func (decorator *SendBlockDecorator) AnteHandle(
	ctx sdk.Context,
	tx sdk.Tx,
	simulate bool,
	next sdk.AnteHandler,
) (newCtx sdk.Context, err error)

func (*SendBlockDecorator) CheckIfBlocked

func (decorator *SendBlockDecorator) CheckIfBlocked(msgs []sdk.Msg) error

CheckIfBlocked returns error if following are true: 1. decorator.permittedOnlySendTo has msg.GetSigners() has its key, and 2-1. msg is not a SendMsg, or 2-2. msg is SendMsg and the destination is not decorator.permittedOnlySendTo[msg.Sender]

type SendBlockOptions

type SendBlockOptions struct {
	PermittedOnlySendTo map[string]string
}

func NewSendBlockOptions

func NewSendBlockOptions(appOpts servertypes.AppOptions) SendBlockOptions

Jump to

Keyboard shortcuts

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