github.com/cosmos/cosmos-sdk@v0.50.10/x/slashing/types/codec.go (about)

     1  package types
     2  
     3  import (
     4  	"github.com/cosmos/cosmos-sdk/codec"
     5  	"github.com/cosmos/cosmos-sdk/codec/legacy"
     6  	"github.com/cosmos/cosmos-sdk/codec/types"
     7  	sdk "github.com/cosmos/cosmos-sdk/types"
     8  	"github.com/cosmos/cosmos-sdk/types/msgservice"
     9  )
    10  
    11  // RegisterLegacyAminoCodec registers concrete types on LegacyAmino codec
    12  func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
    13  	cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/slashing/Params", nil)
    14  	legacy.RegisterAminoMsg(cdc, &MsgUnjail{}, "cosmos-sdk/MsgUnjail")
    15  	legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/slashing/MsgUpdateParams")
    16  }
    17  
    18  // RegisterInterfaces registers the interfaces types with the Interface Registry.
    19  func RegisterInterfaces(registry types.InterfaceRegistry) {
    20  	registry.RegisterImplementations((*sdk.Msg)(nil),
    21  		&MsgUnjail{},
    22  		&MsgUpdateParams{},
    23  	)
    24  
    25  	msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
    26  }