Skip to content

Commit

Permalink
add skeleton functions
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed Aug 20, 2024
1 parent e2dbfaa commit 342081c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions protocol/x/affiliates/keeper/grpc_query.go
Original file line number Diff line number Diff line change
@@ -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
}
11 changes: 11 additions & 0 deletions protocol/x/affiliates/keeper/msg_server.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
package keeper

import (
"context"

"github.com/dydxprotocol/v4-chain/protocol/x/affiliates/types"
)

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 {
Expand Down

0 comments on commit 342081c

Please sign in to comment.