Rebased on develop, fixed imports

This commit is contained in:
Ethan Frey 2018-02-07 17:22:49 +01:00 committed by Ethan Buchman
parent da7a36a866
commit 0b0500e8a0
4 changed files with 13 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/tendermint/tmlibs/cli"
"github.com/cosmos/cosmos-sdk/app"
"github.com/cosmos/cosmos-sdk/baseapp"
)
const (
@ -54,7 +54,7 @@ func main() {
cobra.EnableCommandSorting = false
// TODO: set this to something real
var node app.App
var node baseapp.BaseApp
// add commands
AddGetCommand(getAccountCmd)

View File

@ -3,7 +3,7 @@ package main
import (
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/app"
"github.com/cosmos/cosmos-sdk/baseapp"
)
const (
@ -28,7 +28,7 @@ var (
// a local full-node.
//
// Accept an application it should start
func NodeCommands(node app.App) *cobra.Command {
func NodeCommands(node baseapp.BaseApp) *cobra.Command {
cmd := &cobra.Command{
Use: "node",
Short: "Run the full node",
@ -41,7 +41,7 @@ func NodeCommands(node app.App) *cobra.Command {
return cmd
}
func startNodeCmd(node app.App) *cobra.Command {
func startNodeCmd(node baseapp.BaseApp) *cobra.Command {
cmd := &cobra.Command{
Use: "start",
Short: "Run the full node",

4
glide.lock generated
View File

@ -46,6 +46,10 @@ imports:
version: 645ef00459ed84a119197bfb8d8205042c6df63d
- name: github.com/rigelrozanski/common
version: f691f115798593d783b9999b1263c2f4ffecc439
- name: github.com/spf13/cobra
version: 93959269ad99e80983c9ba742a7e01203a4c0e4f
- name: github.com/spf13/viper
version: 25b30aa063fc18e48662b86996252eabdcf2f0c7
- name: github.com/syndtr/goleveldb
version: 211f780988068502fe874c44dae530528ebd840f
subpackages:

View File

@ -28,6 +28,10 @@ import:
- package: golang.org/x/crypto
subpackages:
- ripemd160
- package: github.com/spf13/cobra
version: ~0.0.1
- package: github.com/spf13/viper
version: ^1.0.0
testImport:
- package: github.com/stretchr/testify
version: ^1.2.1