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
- type NoOpEventManager
- func (x NoOpEventManager) ABCIEvents() []abci.Event
- func (x NoOpEventManager) EmitEvent(_ sdk.Event)
- func (x NoOpEventManager) EmitEvents(_ sdk.Events)
- func (x NoOpEventManager) EmitTypedEvent(_ proto.Message) error
- func (x NoOpEventManager) EmitTypedEvents(_ ...proto.Message) error
- func (x NoOpEventManager) Events() sdk.Events
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 ¶
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().