Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatorPostDecorator ¶
type AuthenticatorPostDecorator struct {
// contains filtered or unexported fields
}
AuthenticatorPostDecorator handles post-transaction tasks for smart accounts.
func NewAuthenticatorPostDecorator ¶
func NewAuthenticatorPostDecorator( cdc codec.Codec, smartAccountKeeper *smartaccountkeeper.Keeper, accountKeeper *authkeeper.AccountKeeper, sigModeHandler *txsigning.HandlerMap, next sdk.PostHandler, ) AuthenticatorPostDecorator
NewAuthenticatorPostDecorator creates a new AuthenticatorPostDecorator with necessary dependencies.
func (AuthenticatorPostDecorator) PostHandle ¶
func (ad AuthenticatorPostDecorator) PostHandle( ctx sdk.Context, tx sdk.Tx, simulate, success bool, next sdk.PostHandler, ) (newCtx sdk.Context, err error)
PostHandle runs on every transaction for a smart account after all msgs have been processed, it initializes the selected authenticator, builds an AuthenticationRequest, then call ConfirmExecution on the selected authenticator.
Click to show internal directories.
Click to hide internal directories.