9 lines
375 B
Go
9 lines
375 B
Go
package types
|
|
|
|
// Handler defines the core of the state transition function of an application.
|
|
type Handler func(ctx Context, msg Msg) Result
|
|
|
|
// 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, result Result, abort bool)
|