Documentation ¶
Index ¶
- func GetOperatorAddr(val stakingtypes.ValidatorI) (sdk.ValAddress, error)
- func HasFeeGrantInUse[C context.Context](ctx C) bool
- func MustGetOperatorAddr(val stakingtypes.ValidatorI) sdk.ValAddress
- func MustValAddressFromBech32(operatorAddr string) sdk.ValAddress
- func ValidateBasic(msg sdk.Msg) error
- func WithFeeGrantInUse[C context.Context](ctx C) C
- func WithoutFeeGrantInUse[C context.Context](ctx C) C
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
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 ¶
ValidateBasic calls the ValidateBasic on the provided msg if it has that method, otherwise returns nil.
func WithFeeGrantInUse ¶ added in v1.20.0
WithFeeGrantInUse returns a new context that will indicate that a feegrant is being used.
func WithoutFeeGrantInUse ¶ added in v1.20.0
WithoutFeeGrantInUse returns a new context that will indicate that a feegrant is NOT being used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.