mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
rearrange repo
This commit is contained in:
parent
3e552c375b
commit
e27cbab60b
@ -2,5 +2,5 @@
|
||||
|
||||
## Installation
|
||||
|
||||
go install ./kava/cmd/kavad
|
||||
go install ./kava/cmd/kavacli
|
||||
go install ./cmd/kavad
|
||||
go install ./cmd/kavacli
|
||||
|
@ -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}
|
@ -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()
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user