Rebased on develop, fixed imports
This commit is contained in:
parent
da7a36a866
commit
0b0500e8a0
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/tendermint/tmlibs/cli"
|
"github.com/tendermint/tmlibs/cli"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/app"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -54,7 +54,7 @@ func main() {
|
||||||
cobra.EnableCommandSorting = false
|
cobra.EnableCommandSorting = false
|
||||||
|
|
||||||
// TODO: set this to something real
|
// TODO: set this to something real
|
||||||
var node app.App
|
var node baseapp.BaseApp
|
||||||
|
|
||||||
// add commands
|
// add commands
|
||||||
AddGetCommand(getAccountCmd)
|
AddGetCommand(getAccountCmd)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/cosmos/cosmos-sdk/app"
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -28,7 +28,7 @@ var (
|
||||||
// a local full-node.
|
// a local full-node.
|
||||||
//
|
//
|
||||||
// Accept an application it should start
|
// Accept an application it should start
|
||||||
func NodeCommands(node app.App) *cobra.Command {
|
func NodeCommands(node baseapp.BaseApp) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "node",
|
Use: "node",
|
||||||
Short: "Run the full node",
|
Short: "Run the full node",
|
||||||
|
@ -41,7 +41,7 @@ func NodeCommands(node app.App) *cobra.Command {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func startNodeCmd(node app.App) *cobra.Command {
|
func startNodeCmd(node baseapp.BaseApp) *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "start",
|
Use: "start",
|
||||||
Short: "Run the full node",
|
Short: "Run the full node",
|
||||||
|
|
|
@ -46,6 +46,10 @@ imports:
|
||||||
version: 645ef00459ed84a119197bfb8d8205042c6df63d
|
version: 645ef00459ed84a119197bfb8d8205042c6df63d
|
||||||
- name: github.com/rigelrozanski/common
|
- name: github.com/rigelrozanski/common
|
||||||
version: f691f115798593d783b9999b1263c2f4ffecc439
|
version: f691f115798593d783b9999b1263c2f4ffecc439
|
||||||
|
- name: github.com/spf13/cobra
|
||||||
|
version: 93959269ad99e80983c9ba742a7e01203a4c0e4f
|
||||||
|
- name: github.com/spf13/viper
|
||||||
|
version: 25b30aa063fc18e48662b86996252eabdcf2f0c7
|
||||||
- name: github.com/syndtr/goleveldb
|
- name: github.com/syndtr/goleveldb
|
||||||
version: 211f780988068502fe874c44dae530528ebd840f
|
version: 211f780988068502fe874c44dae530528ebd840f
|
||||||
subpackages:
|
subpackages:
|
||||||
|
|
|
@ -28,6 +28,10 @@ import:
|
||||||
- package: golang.org/x/crypto
|
- package: golang.org/x/crypto
|
||||||
subpackages:
|
subpackages:
|
||||||
- ripemd160
|
- ripemd160
|
||||||
|
- package: github.com/spf13/cobra
|
||||||
|
version: ~0.0.1
|
||||||
|
- package: github.com/spf13/viper
|
||||||
|
version: ^1.0.0
|
||||||
testImport:
|
testImport:
|
||||||
- package: github.com/stretchr/testify
|
- package: github.com/stretchr/testify
|
||||||
version: ^1.2.1
|
version: ^1.2.1
|
||||||
|
|
Loading…
Reference in New Issue