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