refactor(types)!: remove handler and update docs (backport #17358) (#17366)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
mergify[bot]
2023-08-11 12:29:42 +00:00
committed by GitHub
co-authored by Julien Robert
parent 5b0c08130c
commit 2f6573aef9
5 changed files with 3 additions and 13 deletions
-3
View File
@@ -1,8 +1,5 @@
package types
// Handler defines the core of the state transition function of an application.
type Handler func(ctx Context, msg Msg) (*Result, error)
// AnteHandler authenticates transactions, before their internal messages are handled.
// If newCtx.IsZero(), ctx is used instead.
type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, err error)