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

This commit is contained in:
Julien Robert
2023-08-11 10:45:42 +00:00
committed by GitHub
parent 840482f50d
commit f8f4c35a9f
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)