Start working to compile eyes app

This commit is contained in:
Ethan Frey
2017-10-25 19:56:48 +02:00
parent 31b8abf58a
commit 53e9106b09
2 changed files with 9 additions and 11 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ GOTOOLS = github.com/mitchellh/gox \
github.com/rigelrozanski/shelldown/cmd/shelldown
TUTORIALS=$(shell find docs/guide -name "*md" -type f)
EXAMPLES := counter eyes basecoin
# EXAMPLES := counter eyes basecoin
EXAMPLES := eyes
INSTALL_EXAMPLES := $(addprefix install_,${EXAMPLES})
TEST_EXAMPLES := $(addprefix testex_,${EXAMPLES})
+6 -10
View File
@@ -8,10 +8,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk"
client "github.com/cosmos/cosmos-sdk/client/commands"
"github.com/cosmos/cosmos-sdk/modules/base"
"github.com/cosmos/cosmos-sdk/modules/eyes"
"github.com/cosmos/cosmos-sdk/server/commands"
"github.com/cosmos/cosmos-sdk/stack"
"github.com/cosmos/cosmos-sdk/util"
)
// RootCmd is the entry point for this binary
@@ -23,14 +22,11 @@ var RootCmd = &cobra.Command{
// BuildApp constructs the stack we want to use for this app
func BuildApp() sdk.Handler {
return stack.New(
base.Logger{},
stack.Recovery{},
).
// We do this to demo real usage, also embeds it under it's own namespace
Dispatch(
stack.WrapHandler(eyes.NewHandler()),
)
return sdk.ChainDecorators(
util.Logger{},
util.Recovery{},
).WithHandler(
eyes.NewHandler())
}
func main() {