MCPcopy Create free account
hub / github.com/Sifchain/sifnode / NewQueryServer

Function NewQueryServer

x/margin/keeper/grpc_query.go:19–21  ·  view source on GitHub ↗
(k types.Keeper)

Source from the content-addressed store, hash-verified

17}
18
19func NewQueryServer(k types.Keeper) types.QueryServer {
20 return &queryServer{k}
21}
22
23func (srv queryServer) GetMTP(ctx context.Context, request *types.MTPRequest) (*types.MTPResponse, error) {
24 mtp, err := srv.keeper.GetMTP(sdk.UnwrapSDKContext(ctx), request.Address, request.Id)

Callers 2

RegisterServicesMethod · 0.92

Calls

no outgoing calls

Tested by 1