Skip to content

Commit

Permalink
chore: add legacy amino registraction
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Sep 27, 2023
1 parent 4187749 commit 90d6c17
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/posts/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand All @@ -31,6 +32,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {

cdc.RegisterConcrete(&Params{}, "desmos/x/posts/Params", nil)
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "desmos/x/posts/MsgUpdateParams")

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/profiles/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/auth/vesting/exported"

Expand Down Expand Up @@ -43,6 +44,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&CosmosMultiSignature{}, "desmos/CosmosMultiSignature", nil)

cdc.RegisterConcrete(&Profile{}, "desmos/Profile", nil)

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/reactions/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand All @@ -20,6 +21,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgEditRegisteredReaction{}, "desmos/MsgEditRegisteredReaction")
legacy.RegisterAminoMsg(cdc, &MsgRemoveRegisteredReaction{}, "desmos/MsgRemoveRegisteredReaction")
legacy.RegisterAminoMsg(cdc, &MsgSetReactionsParams{}, "desmos/MsgSetReactionsParams")

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/relationships/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgCreateRelationship{}, "desmos/MsgCreateRelationship")
legacy.RegisterAminoMsg(cdc, &MsgDeleteRelationship{}, "desmos/MsgDeleteRelationship")
legacy.RegisterAminoMsg(cdc, &MsgBlockUser{}, "desmos/MsgBlockUser")
legacy.RegisterAminoMsg(cdc, &MsgUnblockUser{}, "desmos/MsgUnblockUser")

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/reports/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand All @@ -22,6 +23,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "desmos/x/reports/MsgUpdateParams")

cdc.RegisterConcrete(&Params{}, "desmos/x/reports/Params", nil)

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/subspaces/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand Down Expand Up @@ -41,6 +42,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&GroupGrantee{}, "desmos/GroupGrantee", nil)

legacy.RegisterAminoMsg(cdc, &MsgUpdateSubspaceFeeTokens{}, "desmos/MsgUpdateSubspaceFeeTokens")

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
3 changes: 3 additions & 0 deletions x/tokenfactory/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
Expand All @@ -17,6 +18,8 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "desmos/x/tokenfactory/MsgUpdateParams")

cdc.RegisterConcrete(&Params{}, "desmos/x/tokenfactory/Params", nil)

legacytx.RegisterLegacyAminoCodec(cdc)
}

func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
Expand Down

0 comments on commit 90d6c17

Please sign in to comment.