Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
Types ¶
type HandlerOptions ¶ added in v0.0.5
type HandlerOptions struct { AccountKeeper ante.AccountKeeper BankKeeper authtypes.BankKeeper ExtensionOptionChecker ante.ExtensionOptionChecker FeegrantKeeper ante.FeegrantKeeper SignModeHandler authsigning.SignModeHandler TxFeeChecker ante.TxFeeChecker GashubKeeper ante.GashubKeeper }
HandlerOptions are the options required for constructing a greenfield AnteHandler.
type SignModeDecorator ¶
type SignModeDecorator struct {
// contains filtered or unexported fields
}
SignModeDecorator only allow EIP712 tx to be executed
func NewSignModeDecorator ¶
func NewSignModeDecorator(signModeHandler authsigning.SignModeHandler) SignModeDecorator
func (SignModeDecorator) AnteHandle ¶
func (smd SignModeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error)
AnteHandle rejects txs that includes more than one msgs
Click to show internal directories.
Click to hide internal directories.