cosmos-sdk/x/authz/codec.go

25 lines
593 B
Go

package authz
import (
types "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)
// RegisterInterfaces registers the interfaces types with the interface registry
func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgGrant{},
&MsgRevoke{},
&MsgExec{},
)
registry.RegisterInterface(
"cosmos.v1beta1.Authorization",
(*Authorization)(nil),
&GenericAuthorization{},
)
msgservice.RegisterMsgServiceDesc(registry, MsgServiceDesc())
}