@@ -35,6 +35,11 @@ def __init__(self, channel):
3535 request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksRequest .SerializeToString ,
3636 response_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksResponse .FromString ,
3737 _registered_method = True )
38+ self .GetBlocksV2 = channel .unary_unary (
39+ '/injective_explorer_rpc.InjectiveExplorerRPC/GetBlocksV2' ,
40+ request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Request .SerializeToString ,
41+ response_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Response .FromString ,
42+ _registered_method = True )
3843 self .GetBlock = channel .unary_unary (
3944 '/injective_explorer_rpc.InjectiveExplorerRPC/GetBlock' ,
4045 request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlockRequest .SerializeToString ,
@@ -60,6 +65,11 @@ def __init__(self, channel):
6065 request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsRequest .SerializeToString ,
6166 response_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsResponse .FromString ,
6267 _registered_method = True )
68+ self .GetTxsV2 = channel .unary_unary (
69+ '/injective_explorer_rpc.InjectiveExplorerRPC/GetTxsV2' ,
70+ request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Request .SerializeToString ,
71+ response_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Response .FromString ,
72+ _registered_method = True )
6373 self .GetTxByTxHash = channel .unary_unary (
6474 '/injective_explorer_rpc.InjectiveExplorerRPC/GetTxByTxHash' ,
6575 request_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxByTxHashRequest .SerializeToString ,
@@ -164,6 +174,13 @@ def GetBlocks(self, request, context):
164174 context .set_details ('Method not implemented!' )
165175 raise NotImplementedError ('Method not implemented!' )
166176
177+ def GetBlocksV2 (self , request , context ):
178+ """GetBlocks returns blocks based upon the request params
179+ """
180+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
181+ context .set_details ('Method not implemented!' )
182+ raise NotImplementedError ('Method not implemented!' )
183+
167184 def GetBlock (self , request , context ):
168185 """GetBlock returns block based upon the height or hash
169186 """
@@ -199,6 +216,13 @@ def GetTxs(self, request, context):
199216 context .set_details ('Method not implemented!' )
200217 raise NotImplementedError ('Method not implemented!' )
201218
219+ def GetTxsV2 (self , request , context ):
220+ """GetTxs returns transactions based upon the request params
221+ """
222+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
223+ context .set_details ('Method not implemented!' )
224+ raise NotImplementedError ('Method not implemented!' )
225+
202226 def GetTxByTxHash (self , request , context ):
203227 """GetTxByTxHash returns certain transaction information by its tx hash.
204228 """
@@ -324,6 +348,11 @@ def add_InjectiveExplorerRPCServicer_to_server(servicer, server):
324348 request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksRequest .FromString ,
325349 response_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksResponse .SerializeToString ,
326350 ),
351+ 'GetBlocksV2' : grpc .unary_unary_rpc_method_handler (
352+ servicer .GetBlocksV2 ,
353+ request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Request .FromString ,
354+ response_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Response .SerializeToString ,
355+ ),
327356 'GetBlock' : grpc .unary_unary_rpc_method_handler (
328357 servicer .GetBlock ,
329358 request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetBlockRequest .FromString ,
@@ -349,6 +378,11 @@ def add_InjectiveExplorerRPCServicer_to_server(servicer, server):
349378 request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsRequest .FromString ,
350379 response_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsResponse .SerializeToString ,
351380 ),
381+ 'GetTxsV2' : grpc .unary_unary_rpc_method_handler (
382+ servicer .GetTxsV2 ,
383+ request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Request .FromString ,
384+ response_serializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Response .SerializeToString ,
385+ ),
352386 'GetTxByTxHash' : grpc .unary_unary_rpc_method_handler (
353387 servicer .GetTxByTxHash ,
354388 request_deserializer = exchange_dot_injective__explorer__rpc__pb2 .GetTxByTxHashRequest .FromString ,
@@ -539,6 +573,33 @@ def GetBlocks(request,
539573 metadata ,
540574 _registered_method = True )
541575
576+ @staticmethod
577+ def GetBlocksV2 (request ,
578+ target ,
579+ options = (),
580+ channel_credentials = None ,
581+ call_credentials = None ,
582+ insecure = False ,
583+ compression = None ,
584+ wait_for_ready = None ,
585+ timeout = None ,
586+ metadata = None ):
587+ return grpc .experimental .unary_unary (
588+ request ,
589+ target ,
590+ '/injective_explorer_rpc.InjectiveExplorerRPC/GetBlocksV2' ,
591+ exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Request .SerializeToString ,
592+ exchange_dot_injective__explorer__rpc__pb2 .GetBlocksV2Response .FromString ,
593+ options ,
594+ channel_credentials ,
595+ insecure ,
596+ call_credentials ,
597+ compression ,
598+ wait_for_ready ,
599+ timeout ,
600+ metadata ,
601+ _registered_method = True )
602+
542603 @staticmethod
543604 def GetBlock (request ,
544605 target ,
@@ -674,6 +735,33 @@ def GetTxs(request,
674735 metadata ,
675736 _registered_method = True )
676737
738+ @staticmethod
739+ def GetTxsV2 (request ,
740+ target ,
741+ options = (),
742+ channel_credentials = None ,
743+ call_credentials = None ,
744+ insecure = False ,
745+ compression = None ,
746+ wait_for_ready = None ,
747+ timeout = None ,
748+ metadata = None ):
749+ return grpc .experimental .unary_unary (
750+ request ,
751+ target ,
752+ '/injective_explorer_rpc.InjectiveExplorerRPC/GetTxsV2' ,
753+ exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Request .SerializeToString ,
754+ exchange_dot_injective__explorer__rpc__pb2 .GetTxsV2Response .FromString ,
755+ options ,
756+ channel_credentials ,
757+ insecure ,
758+ call_credentials ,
759+ compression ,
760+ wait_for_ready ,
761+ timeout ,
762+ metadata ,
763+ _registered_method = True )
764+
677765 @staticmethod
678766 def GetTxByTxHash (request ,
679767 target ,
0 commit comments