-
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.
(fix) Removed k8s node support for testnet. Synchronized all proto de…
…finitions with the core and indexer versions used in chain v1.22 release. Updated version number and changelog.
- Loading branch information
abel
committed
Nov 1, 2023
1 parent
520b793
commit 1f053da
Showing
10 changed files
with
366 additions
and
242 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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_campaign_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_campaign_rpc_pb2 as exchange_dot_injective__campaign__rpc__pb2 | ||
|
||
|
||
class InjectiveCampaignRPCStub(object): | ||
"""InjectiveCampaignRPC defined a gRPC service for Injective Campaigns. | ||
""" | ||
|
||
def __init__(self, channel): | ||
"""Constructor. | ||
Args: | ||
channel: A grpc.Channel. | ||
""" | ||
self.Ranking = channel.unary_unary( | ||
'/injective_campaign_rpc.InjectiveCampaignRPC/Ranking', | ||
request_serializer=exchange_dot_injective__campaign__rpc__pb2.RankingRequest.SerializeToString, | ||
response_deserializer=exchange_dot_injective__campaign__rpc__pb2.RankingResponse.FromString, | ||
) | ||
|
||
|
||
class InjectiveCampaignRPCServicer(object): | ||
"""InjectiveCampaignRPC defined a gRPC service for Injective Campaigns. | ||
""" | ||
|
||
def Ranking(self, request, context): | ||
"""Lists all trading strategies | ||
""" | ||
context.set_code(grpc.StatusCode.UNIMPLEMENTED) | ||
context.set_details('Method not implemented!') | ||
raise NotImplementedError('Method not implemented!') | ||
|
||
|
||
def add_InjectiveCampaignRPCServicer_to_server(servicer, server): | ||
rpc_method_handlers = { | ||
'Ranking': grpc.unary_unary_rpc_method_handler( | ||
servicer.Ranking, | ||
request_deserializer=exchange_dot_injective__campaign__rpc__pb2.RankingRequest.FromString, | ||
response_serializer=exchange_dot_injective__campaign__rpc__pb2.RankingResponse.SerializeToString, | ||
), | ||
} | ||
generic_handler = grpc.method_handlers_generic_handler( | ||
'injective_campaign_rpc.InjectiveCampaignRPC', rpc_method_handlers) | ||
server.add_generic_rpc_handlers((generic_handler,)) | ||
|
||
|
||
# This class is part of an EXPERIMENTAL API. | ||
class InjectiveCampaignRPC(object): | ||
"""InjectiveCampaignRPC defined a gRPC service for Injective Campaigns. | ||
""" | ||
|
||
@staticmethod | ||
def Ranking(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_campaign_rpc.InjectiveCampaignRPC/Ranking', | ||
exchange_dot_injective__campaign__rpc__pb2.RankingRequest.SerializeToString, | ||
exchange_dot_injective__campaign__rpc__pb2.RankingResponse.FromString, | ||
options, channel_credentials, | ||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata) |
Oops, something went wrong.