diff --git a/x/dex/types/codec.go b/x/dex/types/codec.go index a2f865d8ec..2f99eea06d 100644 --- a/x/dex/types/codec.go +++ b/x/dex/types/codec.go @@ -11,6 +11,7 @@ import ( func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgPlaceOrders{}, "dex/MsgPlaceOrders", nil) cdc.RegisterConcrete(&MsgCancelOrders{}, "dex/MsgCancelOrders", nil) + cdc.RegisterConcrete(&MsgRegisterContract{}, "dex/MsgRegisterContract", nil) cdc.RegisterConcrete(&RegisterPairsProposal{}, "dex/RegisterPairsProposal", nil) cdc.RegisterConcrete(&UpdateTickSizeProposal{}, "dex/UpdateTickSizeProposal", nil) cdc.RegisterConcrete(&AddAssetMetadataProposal{}, "dex/AddAssetMetadataProposal", nil) @@ -24,6 +25,9 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCancelOrders{}, ) + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgRegisterContract{}, + ) registry.RegisterImplementations((*govtypes.Content)(nil), &RegisterPairsProposal{}, ) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 93766c39d9..cec06c10ea 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -4,6 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" cdctypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" // this line is used by starport scaffolding # 1 "github.com/cosmos/cosmos-sdk/types/msgservice" @@ -15,17 +16,29 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgBurn{}, "tokenfactory/burn", nil) // cdc.RegisterConcrete(&MsgForceTransfer{}, "tokenfactory/force-transfer", nil) cdc.RegisterConcrete(&MsgChangeAdmin{}, "tokenfactory/change-admin", nil) + cdc.RegisterConcrete(&AddCreatorsToDenomFeeWhitelistProposal{}, "tokenfactory/add-creators-to-denom-fee-whitelist-proposal", nil) } func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations( - (*sdk.Msg)(nil), + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateDenom{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgMint{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgBurn{}, - // &MsgForceTransfer{}, + ) + registry.RegisterImplementations((*sdk.Msg)(nil), &MsgChangeAdmin{}, ) + registry.RegisterImplementations((*govtypes.Content)(nil), + &AddCreatorsToDenomFeeWhitelistProposal{}, + ) + // registry.RegisterImplementations((*govtypes.Content)(nil), + // &MsgForceTransfer{}, + // ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) }