sdk

package
v1.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 3 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

This section is empty.

Jump to

Keyboard shortcuts

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