post

package
v25.0.3-indexer-4240526b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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(
	smartAccountKeeper *smartaccountkeeper.Keeper,
	accountKeeper *authkeeper.AccountKeeper,
	sigModeHandler authsigning.SignModeHandler,
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL