Skip to content

Commit

Permalink
wip: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Nov 13, 2024
1 parent 59a239a commit 5526bcf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
24 changes: 12 additions & 12 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,18 +928,18 @@ func NewApp(
genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator),
govtypes.ModuleName: gov.NewAppModuleBasic([]govclient.ProposalHandler{
paramsclient.ProposalHandler,
LegacyProposalHandler,
LegacyCancelProposalHandler,
//upgradeclient.LegacyProposalHandler,
//upgradeclient.LegacyCancelProposalHandler,
govclient.NewProposalHandler(ibcclientclient.NewTxCmd),
//ibcclientclient,
kavadistclient.ProposalHandler,
committeeclient.ProposalHandler,
earnclient.DepositProposalHandler,
earnclient.WithdrawProposalHandler,
communityclient.LendDepositProposalHandler,
communityclient.LendWithdrawProposalHandler,
//LegacyProposalHandler,
//LegacyCancelProposalHandler,
////upgradeclient.LegacyProposalHandler,
////upgradeclient.LegacyCancelProposalHandler,
//govclient.NewProposalHandler(ibcclientclient.NewTxCmd),
////ibcclientclient,
//kavadistclient.ProposalHandler,
//committeeclient.ProposalHandler,
//earnclient.DepositProposalHandler,
//earnclient.WithdrawProposalHandler,
//communityclient.LendDepositProposalHandler,
//communityclient.LendWithdrawProposalHandler,
}),
ibctm.ModuleName: ibctm.NewAppModule(),
})
Expand Down
18 changes: 7 additions & 11 deletions cmd/kava/cmd/tx.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmd

import (
"cosmossdk.io/log"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
Expand All @@ -12,19 +14,13 @@ import (
func newTxCmd() *cobra.Command {
//_, testAddresses := app.GeneratePrivKeyAddressPairs(10)
//manual := testAddresses[6:]
//encodingConfig := app.MakeEncodingConfig()
//opts := app.DefaultOptions
//opts.MempoolEnableAuth = true
//opts.MempoolAuthAddresses = manual
//
//tempApp := app.NewApp(
// log.NewNopLogger(),
// dbm.NewMemDB(),
// app.DefaultNodeHome,
// nil,
// encodingConfig,
// opts,
//)

encodingConfig := app.MakeEncodingConfig()
tempApp := app.NewApp(log.NewNopLogger(), dbm.NewMemDB(), app.DefaultNodeHome, nil, encodingConfig, app.DefaultOptions)

cmd := &cobra.Command{
Use: "tx",
Expand All @@ -45,9 +41,9 @@ func newTxCmd() *cobra.Command {
authcmd.GetDecodeCommand(),
)

//tempApp.BasicModuleManager.AddTxCommands(cmd)
tempApp.BasicModuleManager.AddTxCommands(cmd)

app.ModuleBasics.AddTxCommands(cmd)
//app.ModuleBasics.AddTxCommands(cmd)
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")

return cmd
Expand Down

0 comments on commit 5526bcf

Please sign in to comment.