cosmos-sdk/types/handler.go

11 lines
376 B
Go
Raw Normal View History

2017-12-01 14:08:37 -08:00
package types
2018-02-04 16:59:11 -08:00
// core function variable which application runs for transactions
2018-01-26 06:22:56 -08:00
type Handler func(ctx Context, msg Msg) Result
2018-04-16 05:15:03 -07:00
// core function variable which application runs to handle fees
type FeeHandler func(ctx Context, tx Tx, fee Coins)
2018-04-16 05:15:03 -07:00
2018-01-26 05:11:01 -08:00
// If newCtx.IsZero(), ctx is used instead.
2018-01-12 14:30:02 -08:00
type AnteHandler func(ctx Context, tx Tx) (newCtx Context, result Result, abort bool)