post

package
v28.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 13 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(
	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.

Jump to

Keyboard shortcuts

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