rearrange repo

This commit is contained in:
rhuairahrighairigh 2018-06-16 17:21:13 +01:00
parent 3e552c375b
commit e27cbab60b
6 changed files with 16 additions and 13 deletions

View File

@ -2,5 +2,5 @@
## Installation ## Installation
go install ./kava/cmd/kavad go install ./cmd/kavad
go install ./kava/cmd/kavacli go install ./cmd/kavacli

View File

@ -19,8 +19,8 @@ import (
ibccmd "github.com/cosmos/cosmos-sdk/x/ibc/client/cli" ibccmd "github.com/cosmos/cosmos-sdk/x/ibc/client/cli"
stakecmd "github.com/cosmos/cosmos-sdk/x/stake/client/cli" stakecmd "github.com/cosmos/cosmos-sdk/x/stake/client/cli"
"github.com/kava-labs/kava/kava/app" "github.com/kava-labs/kava/internal/app"
"github.com/kava-labs/kava/kava/types" "github.com/kava-labs/kava/internal/types"
) )
// rootCmd is the entry point for this binary // rootCmd is the entry point for this binary
@ -78,3 +78,6 @@ func main() {
executor := cli.PrepareMainCmd(rootCmd, "BC", os.ExpandEnv("$HOME/.basecli")) executor := cli.PrepareMainCmd(rootCmd, "BC", os.ExpandEnv("$HOME/.basecli"))
executor.Execute() executor.Execute()
} }
func Blarg() {
45}

View File

@ -12,7 +12,7 @@ import (
"github.com/tendermint/tmlibs/log" "github.com/tendermint/tmlibs/log"
"github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server"
"github.com/kava-labs/kava/kava/app" "github.com/kava-labs/kava/internal/app"
) )
func main() { func main() {
@ -20,18 +20,18 @@ func main() {
ctx := server.NewDefaultContext() ctx := server.NewDefaultContext()
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
Use: "basecoind", Use: "kavad",
Short: "Basecoin Daemon (server)", Short: "Kava Daemon",
PersistentPreRunE: server.PersistentPreRunEFn(ctx), PersistentPreRunE: server.PersistentPreRunEFn(ctx),
} }
server.AddCommands(ctx, cdc, rootCmd, server.DefaultAppInit, server.AddCommands(ctx, cdc, rootCmd, server.DefaultAppInit,
server.ConstructAppCreator(newApp, "basecoin"), server.ConstructAppCreator(newApp, "kava"),
server.ConstructAppExporter(exportAppState, "basecoin")) server.ConstructAppExporter(exportAppState, "kava"))
// prepare and add flags // prepare and add flags
rootDir := os.ExpandEnv("$HOME/.basecoind") rootDir := os.ExpandEnv("$HOME/.kavad")
executor := cli.PrepareBaseCmd(rootCmd, "BC", rootDir) executor := cli.PrepareBaseCmd(rootCmd, "KV", rootDir)
executor.Execute() executor.Execute()
} }

View File

@ -16,7 +16,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/ibc" "github.com/cosmos/cosmos-sdk/x/ibc"
"github.com/cosmos/cosmos-sdk/x/stake" "github.com/cosmos/cosmos-sdk/x/stake"
"github.com/kava-labs/kava/kava/types" "github.com/kava-labs/kava/internal/types"
) )
const ( const (
@ -96,7 +96,7 @@ func MakeCodec() *wire.Codec {
// register custom AppAccount // register custom AppAccount
cdc.RegisterInterface((*sdk.Account)(nil), nil) cdc.RegisterInterface((*sdk.Account)(nil), nil)
cdc.RegisterConcrete(&types.AppAccount{}, "basecoin/Account", nil) cdc.RegisterConcrete(&types.AppAccount{}, "kava/Account", nil)
return cdc return cdc
} }