github.com/cosmos/cosmos-sdk@v0.50.10/x/mint/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 the LegacyAmino codec
    12  func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
    13  	cdc.RegisterConcrete(Params{}, "cosmos-sdk/x/mint/Params", nil)
    14  	legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/mint/MsgUpdateParams")
    15  }
    16  
    17  // RegisterInterfaces registers the interfaces types with the interface registry.
    18  func RegisterInterfaces(registry types.InterfaceRegistry) {
    19  	registry.RegisterImplementations(
    20  		(*sdk.Msg)(nil),
    21  		&MsgUpdateParams{},
    22  	)
    23  
    24  	msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
    25  }