Skip to content

Commit

Permalink
Merge pull request #174 from InjectiveLabs/f/re-gen
Browse files Browse the repository at this point in the history
F/re gen
  • Loading branch information
achilleas-kal authored Jan 18, 2023
2 parents f03e16c + e1a25e2 commit 33960a3
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 16 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ Note that the [sync client](https://github.com/InjectiveLabs/sdk-python/blob/mas


### Changelogs
**0.5.9.6**
* Re-gen proto

**0.5.9.5**
* Add orderbook snaphot methods

Expand Down
312 changes: 312 additions & 0 deletions 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.

70 changes: 70 additions & 0 deletions pyinjective/proto/exchange/injective_portfolio_rpc_pb2_grpc.py
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)
8 changes: 4 additions & 4 deletions pyinjective/proto/injective/exchange/v1beta1/tx_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit 33960a3

Please sign in to comment.