Start working to compile eyes app
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user