-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from InjectiveLabs/f/re-gen
F/re gen
- Loading branch information
Showing
8 changed files
with
548 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
312 changes: 312 additions & 0 deletions
312
pyinjective/proto/exchange/injective_portfolio_rpc_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! | ||
"""Client and server classes corresponding to protobuf-defined services.""" | ||
import grpc | ||
|
||
from exchange import injective_portfolio_rpc_pb2 as exchange_dot_injective__portfolio__rpc__pb2 | ||
|
||
|
||
class InjectivePortfolioRPCStub(object): | ||
"""InjectivePortfolioRPC defines gRPC API of Exchange Portfolio provider. | ||
""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.AccountPortfolio = channel.unary_unary( | ||
'/injective_portfolio_rpc.InjectivePortfolioRPC/AccountPortfolio', | ||
request_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioRequest.SerializeToString, | ||
response_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioResponse.FromString, | ||
) | ||
|
||
|
||
class InjectivePortfolioRPCServicer(object): | ||
"""InjectivePortfolioRPC defines gRPC API of Exchange Portfolio provider. | ||
""" | ||
|
||
def AccountPortfolio(self, request, context): | ||
"""Provide the account's portfolio | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
|
||
|
||
def add_InjectivePortfolioRPCServicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'AccountPortfolio': grpc.unary_unary_rpc_method_handler( | ||
servicer.AccountPortfolio, | ||
request_deserializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioRequest.FromString, | ||
response_serializer=exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioResponse.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'injective_portfolio_rpc.InjectivePortfolioRPC', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class InjectivePortfolioRPC(object): | ||
"""InjectivePortfolioRPC defines gRPC API of Exchange Portfolio provider. | ||
""" | ||
|
||
@staticmethod | ||
def AccountPortfolio(request, | ||
target, | ||
options=(), | ||
channel_credentials=None, | ||
call_credentials=None, | ||
insecure=False, | ||
compression=None, | ||
wait_for_ready=None, | ||
timeout=None, | ||
metadata=None): | ||
return grpc.experimental.unary_unary(request, target, '/injective_portfolio_rpc.InjectivePortfolioRPC/AccountPortfolio', | ||
exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioRequest.SerializeToString, | ||
exchange_dot_injective__portfolio__rpc__pb2.AccountPortfolioResponse.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.