From 5a93a08e0c4344ac7d8514d2f65e04dbcbe80b51 Mon Sep 17 00:00:00 2001 From: kbhat1 Date: Fri, 7 Oct 2022 11:24:25 -0400 Subject: [PATCH 1/3] Add to codecs --- x/dex/types/codec.go | 4 ++++ x/tokenfactory/types/codec.go | 2 ++ 2 files changed, 6 insertions(+) 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..365a3eeb20 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -15,6 +15,7 @@ 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) { @@ -25,6 +26,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgBurn{}, // &MsgForceTransfer{}, &MsgChangeAdmin{}, + &AddCreatorsToDenomFeeWhitelistProposal{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } From a92a34cab72218c595060728ce807aeef7e69a00 Mon Sep 17 00:00:00 2001 From: kbhat1 Date: Fri, 7 Oct 2022 11:39:31 -0400 Subject: [PATCH 2/3] Add govtypes --- x/tokenfactory/types/codec.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index 365a3eeb20..c1cba40a24 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" @@ -19,15 +20,25 @@ func RegisterCodec(cdc *codec.LegacyAmino) { } 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) } From 3a2fcdc40857a2b4566fc21e905e8a5389a54953 Mon Sep 17 00:00:00 2001 From: kbhat1 Date: Fri, 7 Oct 2022 11:39:49 -0400 Subject: [PATCH 3/3] Format --- x/tokenfactory/types/codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/tokenfactory/types/codec.go b/x/tokenfactory/types/codec.go index c1cba40a24..cec06c10ea 100644 --- a/x/tokenfactory/types/codec.go +++ b/x/tokenfactory/types/codec.go @@ -38,7 +38,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { // registry.RegisterImplementations((*govtypes.Content)(nil), // &MsgForceTransfer{}, // ) - + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) }