Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyAnte = func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) { return ctx, nil } )
Define an empty ante handle
Functions ¶
This section is empty.
Types ¶
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
func (MockTx) ValidateBasic ¶
type MsgFilterDecorator ¶
type MsgFilterDecorator struct {
// contains filtered or unexported fields
}
MsgFilterDecorator is an ante.go decorator template for filtering messages.
func FilterDecorator ¶
func FilterDecorator(blockedMsgTypes ...sdk.Msg) MsgFilterDecorator
FilterDecorator returns a new MsgFilterDecorator. This errors if the transaction contains any of the blocked message types.
Example: - decorators.FilterDecorator(&banktypes.MsgSend{}) This would block any MsgSend messages from being included in a transaction if set in ante.go
func (MsgFilterDecorator) AnteHandle ¶
func (MsgFilterDecorator) HasDisallowedMessage ¶
Click to show internal directories.
Click to hide internal directories.