decorators

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MinSelfDelegation = "50000000000000000000000"

Copied from https://github.com/CudoVentures/cosmos-sdk/blob/3816012a2d4ea5c9bbb3d8e6174d3b96ff91a039/x/staking/types/msg.go#L20

Variables

View Source
var (
	ErrAdminOnly = errors.New("sender has no admin tokens")
)

Copied from https://github.com/CudoVentures/cosmos-sdk/blob/3816012a2d4ea5c9bbb3d8e6174d3b96ff91a039/x/crisis/keeper/msg_server.go#L11

Functions

This section is empty.

Types

type MinSelfDelegationDecorator

type MinSelfDelegationDecorator struct{}

func NewMinSelfDelegationDecorator

func NewMinSelfDelegationDecorator() *MinSelfDelegationDecorator

func (*MinSelfDelegationDecorator) AnteHandle

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

type OnlyAdminVerifyInvariantDecorator added in v1.2.3

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

func NewOnlyAdminVerifyInvariantDecorator added in v1.2.3

func NewOnlyAdminVerifyInvariantDecorator(bankKeeper bankkeeper.ViewKeeper) *OnlyAdminVerifyInvariantDecorator

func (*OnlyAdminVerifyInvariantDecorator) AnteHandle added in v1.2.3

func (od *OnlyAdminVerifyInvariantDecorator) 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