From fefcdec303cdc807cdf44611f62a5ece0a24633c Mon Sep 17 00:00:00 2001 From: Paul Chen Date: Mon, 24 Jun 2024 20:20:00 +0800 Subject: [PATCH] chore: remove unused code --- cmd/callisto/main.go | 51 -------------------------------------------- 1 file changed, 51 deletions(-) diff --git a/cmd/callisto/main.go b/cmd/callisto/main.go index 7c3a88da5..d9e2651ab 100644 --- a/cmd/callisto/main.go +++ b/cmd/callisto/main.go @@ -1,34 +1,12 @@ package main import ( - "github.com/cosmos/cosmos-sdk/types/module" "github.com/forbole/juno/v6/cmd" initcmd "github.com/forbole/juno/v6/cmd/init" parsetypes "github.com/forbole/juno/v6/cmd/parse/types" startcmd "github.com/forbole/juno/v6/cmd/start" "github.com/forbole/juno/v6/modules/messages" - "cosmossdk.io/x/evidence" - feegrantmodule "cosmossdk.io/x/feegrant/module" - "cosmossdk.io/x/upgrade" - "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/cosmos/cosmos-sdk/x/auth/vesting" - authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" - "github.com/cosmos/cosmos-sdk/x/bank" - consensus "github.com/cosmos/cosmos-sdk/x/consensus" - "github.com/cosmos/cosmos-sdk/x/crisis" - distr "github.com/cosmos/cosmos-sdk/x/distribution" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/cosmos/cosmos-sdk/x/gov" - govclient "github.com/cosmos/cosmos-sdk/x/gov/client" - groupmodule "github.com/cosmos/cosmos-sdk/x/group/module" - "github.com/cosmos/cosmos-sdk/x/mint" - "github.com/cosmos/cosmos-sdk/x/params" - paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" - "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/cosmos/cosmos-sdk/x/staking" - migratecmd "github.com/forbole/callisto/v4/cmd/migrate" parsecmd "github.com/forbole/callisto/v4/cmd/parse" "github.com/forbole/callisto/v4/utils" @@ -70,35 +48,6 @@ func main() { } } -// getBasicManagers returns the various basic managers that are used to register the encoding to -// support custom messages. -// This should be edited by custom implementations if needed. -func getBasicManagers() module.BasicManager { - return module.NewBasicManager( - auth.AppModuleBasic{}, - genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), - bank.AppModuleBasic{}, - staking.AppModuleBasic{}, - mint.AppModuleBasic{}, - distr.AppModuleBasic{}, - gov.NewAppModuleBasic( - []govclient.ProposalHandler{ - paramsclient.ProposalHandler, - }, - ), - params.AppModuleBasic{}, - crisis.AppModuleBasic{}, - slashing.AppModuleBasic{}, - feegrantmodule.AppModuleBasic{}, - upgrade.AppModuleBasic{}, - evidence.AppModuleBasic{}, - authzmodule.AppModuleBasic{}, - groupmodule.AppModuleBasic{}, - vesting.AppModuleBasic{}, - consensus.AppModuleBasic{}, - ) -} - // getAddressesParser returns the messages parser that should be used to get the users involved in // a specific message. // This should be edited by custom implementations if needed.