sdk

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOperatorAddr

func GetOperatorAddr(val stakingtypes.ValidatorI) (sdk.ValAddress, error)

GetOperatorAddr returns the validator's operator address.

func HasFeeGrantInUse added in v1.20.0

func HasFeeGrantInUse[C context.Context](ctx C) bool

HasFeeGrantInUse checks the context to see if the a feegrant is being used.

func MustGetOperatorAddr

func MustGetOperatorAddr(val stakingtypes.ValidatorI) sdk.ValAddress

MustGetOperatorAddr returns the validator's operator address and panics on ierror.

func MustValAddressFromBech32

func MustValAddressFromBech32(operatorAddr string) sdk.ValAddress

MustValAddressFromBech32 calls sdk.ValAddressFromBech32 and panics on error.

func ValidateBasic

func ValidateBasic(msg sdk.Msg) error

ValidateBasic calls the ValidateBasic on the provided msg if it has that method, otherwise returns nil.

func WithFeeGrantInUse added in v1.20.0

func WithFeeGrantInUse[C context.Context](ctx C) C

WithFeeGrantInUse returns a new context that will indicate that a feegrant is being used.

func WithoutFeeGrantInUse added in v1.20.0

func WithoutFeeGrantInUse[C context.Context](ctx C) C

WithoutFeeGrantInUse returns a new context that will indicate that a feegrant is NOT being used.

Types

type NoOpEventManager added in v1.20.0

type NoOpEventManager struct{}

NoOpEventManager is an event manager that satisfies the sdk.EventManagerI interface, but does nothing.

func NewNoOpEventManager added in v1.20.0

func NewNoOpEventManager() *NoOpEventManager

NewNoOpEventManager returns a new event manager that does nothing.

func (NoOpEventManager) ABCIEvents added in v1.20.0

func (x NoOpEventManager) ABCIEvents() []abci.Event

ABCIEvents returns sdk.EmptyABCIEvents().

func (NoOpEventManager) EmitEvent added in v1.20.0

func (x NoOpEventManager) EmitEvent(_ sdk.Event)

EmitEvent ignores the provided event and does nothing.

func (NoOpEventManager) EmitEvents added in v1.20.0

func (x NoOpEventManager) EmitEvents(_ sdk.Events)

EmitEvents ignores the provided events and does nothing.

func (NoOpEventManager) EmitTypedEvent added in v1.20.0

func (x NoOpEventManager) EmitTypedEvent(_ proto.Message) error

EmitTypedEvent ignores the provided argument, does nothing, and always returns nil.

func (NoOpEventManager) EmitTypedEvents added in v1.20.0

func (x NoOpEventManager) EmitTypedEvents(_ ...proto.Message) error

EmitTypedEvents ignores the provided arguments, does nothing, and always returns nil.

func (NoOpEventManager) Events added in v1.20.0

func (x NoOpEventManager) Events() sdk.Events

Events returns sdk.EmptyEvents().

Jump to

Keyboard shortcuts

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