25 lines
638 B
Go
25 lines
638 B
Go
package types
|
|
|
|
import (
|
|
"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.MsgRequest)(nil),
|
|
&MsgGrantFeeAllowance{},
|
|
&MsgRevokeFeeAllowance{},
|
|
)
|
|
|
|
registry.RegisterInterface(
|
|
"cosmos.feegrant.v1beta1.FeeAllowanceI",
|
|
(*FeeAllowanceI)(nil),
|
|
&BasicFeeAllowance{},
|
|
&PeriodicFeeAllowance{},
|
|
)
|
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
|
}
|