diff --git a/protocol/x/affiliates/keeper/grpc_query.go b/protocol/x/affiliates/keeper/grpc_query.go index c491e53bf5a..0d049a06a34 100644 --- a/protocol/x/affiliates/keeper/grpc_query.go +++ b/protocol/x/affiliates/keeper/grpc_query.go @@ -1,7 +1,21 @@ package keeper import ( + "context" + "github.com/dydxprotocol/v4-chain/protocol/x/affiliates/types" ) var _ types.QueryServer = Keeper{} + +func (k Keeper) AffiliateInfo(c context.Context, req *types.AffiliateInfoRequest) (*types.AffiliateInfoResponse, error) { + return nil, nil +} + +func (k Keeper) ReferredBy(ctx context.Context, req *types.ReferredByRequest) (*types.ReferredByResponse, error) { + return nil, nil +} + +func (k Keeper) AllAffiliateTiers(c context.Context, req *types.AllAffiliateTiersRequest) (*types.AllAffiliateTiersResponse, error) { + return nil, nil +} diff --git a/protocol/x/affiliates/keeper/msg_server.go b/protocol/x/affiliates/keeper/msg_server.go index 07e22279b22..d213432b7bd 100644 --- a/protocol/x/affiliates/keeper/msg_server.go +++ b/protocol/x/affiliates/keeper/msg_server.go @@ -1,6 +1,8 @@ package keeper import ( + "context" + "github.com/dydxprotocol/v4-chain/protocol/x/affiliates/types" ) @@ -8,6 +10,15 @@ type msgServer struct { Keeper } +// RegisterAffiliate implements types.MsgServer. +func (k msgServer) RegisterAffiliate(ctx context.Context, msg *types.MsgRegisterAffiliate) (*types.MsgRegisterAffiliateResponse, error) { + return nil, nil +} + +func (k msgServer) UpdateAffiliateTiers(ctx context.Context, msg *types.MsgUpdateAffiliateTiers) (*types.MsgUpdateAffiliateTiersResponse, error) { + return nil, nil +} + // NewMsgServerImpl returns an implementation of the MsgServer interface // for the provided Keeper. func NewMsgServerImpl(keeper Keeper) types.MsgServer {