2019-06-05 16:26:17 -07:00
|
|
|
package types
|
2019-03-28 16:27:47 -07:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2022-02-22 03:03:01 -08:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/legacy"
|
2020-07-08 01:23:34 -07:00
|
|
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
2020-10-28 12:20:45 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
2019-03-28 16:27:47 -07:00
|
|
|
)
|
|
|
|
|
2020-09-07 07:47:12 -07:00
|
|
|
// RegisterLegacyAminoCodec registers the necessary x/crisis interfaces and concrete types
|
|
|
|
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
2022-03-16 06:21:00 -07:00
|
|
|
legacy.RegisterAminoMsg(cdc, &MsgVerifyInvariant{}, "cosmos-sdk/MsgVerifyInvariant")
|
2020-07-08 01:23:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
|
|
|
registry.RegisterImplementations((*sdk.Msg)(nil),
|
|
|
|
&MsgVerifyInvariant{},
|
|
|
|
)
|
2020-10-28 12:20:45 -07:00
|
|
|
|
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
2019-03-28 16:27:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-02-22 03:03:01 -08:00
|
|
|
RegisterLegacyAminoCodec(legacy.Cdc)
|
2019-03-28 16:27:47 -07:00
|
|
|
}
|