diff --git a/x/sudo/module.go b/x/sudo/module.go index 41102391d..f2acb506a 100644 --- a/x/sudo/module.go +++ b/x/sudo/module.go @@ -11,7 +11,6 @@ import ( codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" @@ -48,12 +47,8 @@ func (AppModuleBasic) RegisterInterfaces(interfaceRegistry codectypes.InterfaceR pb.RegisterInterfaces(interfaceRegistry) } -func (AppModuleBasic) RegisterCodec(aminoCodec *codec.LegacyAmino) { - pb.RegisterCodec(aminoCodec) -} - func (AppModuleBasic) RegisterLegacyAminoCodec(aminoCodec *codec.LegacyAmino) { - pb.RegisterCodec(aminoCodec) + pb.RegisterLegacyAminoCodec(aminoCodec) } // DefaultGenesis returns default genesis state as raw bytes for the module. @@ -72,10 +67,6 @@ func (AppModuleBasic) ValidateGenesis( return genState.Validate() } -// RegisterRESTRoutes registers the capability module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { -} - // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. func (AppModuleBasic) RegisterGRPCGatewayRoutes( clientCtx client.Context, mux *runtime.ServeMux, @@ -121,9 +112,6 @@ func (am AppModule) Name() string { return am.AppModuleBasic.Name() } -// QuerierRoute returns the capability module's query routing key. -func (AppModule) QuerierRoute() string { return pb.QuerierRoute } - // RegisterServices registers a GRPC query service to respond to the // module-specific GRPC queries. func (am AppModule) RegisterServices(cfg module.Configurator) { diff --git a/x/sudo/pb/codec.go b/x/sudo/pb/codec.go index 9e0081502..e80538803 100644 --- a/x/sudo/pb/codec.go +++ b/x/sudo/pb/codec.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(cdc *codec.LegacyAmino) { +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgEditSudoers{}, "sudo/edit_sudoers", nil) } @@ -22,6 +22,5 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { } var ( - Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )