30 lines
890 B
Go
30 lines
890 B
Go
package types
|
|
|
|
import (
|
|
types "github.com/cosmos/cosmos-sdk/codec/types"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
"github.com/cosmos/cosmos-sdk/x/authz/exported"
|
|
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
|
|
staking "github.com/cosmos/cosmos-sdk/x/staking/types"
|
|
)
|
|
|
|
// RegisterInterfaces registers the interfaces types with the interface registry
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|
registry.RegisterImplementations((*sdk.MsgRequest)(nil),
|
|
&MsgGrantAuthorizationRequest{},
|
|
&MsgRevokeAuthorizationRequest{},
|
|
&MsgExecAuthorizedRequest{},
|
|
)
|
|
|
|
registry.RegisterInterface(
|
|
"cosmos.authz.v1beta1.Authorization",
|
|
(*exported.Authorization)(nil),
|
|
&bank.SendAuthorization{},
|
|
&GenericAuthorization{},
|
|
&staking.StakeAuthorization{},
|
|
)
|
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
|
}
|