WIP: Implementing App w/ tests

This commit is contained in:
Jae Kwon
2017-12-21 03:44:59 -08:00
parent 45c2e9c30b
commit 5c06e56c24
5 changed files with 167 additions and 112 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ import (
// Handler handles both ABCI DeliverTx and CheckTx requests.
// Iff ABCI.CheckTx, ctx.IsCheckTx() returns true.
type Handler func(ctx Context, ms store.MultiStore, tx Tx) Result
type Handler func(ctx Context, store store.MultiStore, tx Tx) Result
+2 -6
View File
@@ -1,14 +1,10 @@
package types
import (
cmn "github.com/tendemrint/tmlibs/common"
abci "github.com/tendermint/abci/types"
)
type KVPair struct {
Key []byte
Value []byte
}
// Result is the union of ResponseDeliverTx and ResponseCheckTx.
type Result struct {
@@ -35,5 +31,5 @@ type Result struct {
ValSetDiff []abci.Validator
// Tags are used for transaction indexing and pubsub.
Tags []KVPair
Tags []cmn.KVPair
}