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
go install ./kava/cmd/kavad
go install ./kava/cmd/kavacli
go install ./cmd/kavad
go install ./cmd/kavacli

View File

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

View File

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

View File

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