2024-02-01 04:48:40 +00:00
|
|
|
package bond
|
|
|
|
|
|
|
|
import (
|
2024-02-01 10:58:34 +00:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2024-02-01 04:48:40 +00:00
|
|
|
types "github.com/cosmos/cosmos-sdk/codec/types"
|
|
|
|
)
|
|
|
|
|
2024-02-01 10:58:34 +00:00
|
|
|
// RegisterLegacyAminoCodec registers the necessary x/bond interfaces and concrete types
|
|
|
|
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
|
|
|
// cdc.RegisterConcrete(&MsgCreateBond{}, "bond/MsgCreateBond", nil)
|
|
|
|
// cdc.RegisterConcrete(&MsgRefillBond{}, "bond/MsgRefillBond", nil)
|
|
|
|
// cdc.RegisterConcrete(&MsgWithdrawBond{}, "bond/MsgWithdrawBond", nil)
|
|
|
|
// cdc.RegisterConcrete(&MsgCancelBond{}, "bond/MsgCancelBond", nil)
|
|
|
|
}
|
|
|
|
|
2024-02-01 04:48:40 +00:00
|
|
|
// RegisterInterfaces registers the interfaces types with the interface registry.
|
|
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
2024-02-01 10:58:34 +00:00
|
|
|
// registry.RegisterImplementations((*sdk.Msg)(nil),
|
|
|
|
// &MsgCreateBond{},
|
|
|
|
// &MsgRefillBond{},
|
|
|
|
// &MsgCancelBond{},
|
|
|
|
// &MsgWithdrawBond{},
|
|
|
|
// )
|
|
|
|
// msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
2024-02-01 04:48:40 +00:00
|
|
|
}
|