-
Notifications
You must be signed in to change notification settings - Fork 17
/
codec.go
26 lines (21 loc) · 955 Bytes
/
codec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package types
import (
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
func RegisterCodec(_ *codec.LegacyAmino) {}
func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgFundPool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgDefundPool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreatePool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgUpdatePool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgDisablePool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgEnablePool{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgScheduleRuntimeUpgrade{})
registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCancelRuntimeUpgrade{})
}
var (
Amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)