nado-protocol 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,6 +60,7 @@ class EngineExecuteClient(NadoBaseExecute):
60
60
  self._opts: EngineClientOpts = EngineClientOpts.parse_obj(opts)
61
61
  self.url: str = self._opts.url
62
62
  self.session = requests.Session()
63
+ self.session.headers.update({"Accept-Encoding": "gzip"})
63
64
 
64
65
  def tx_nonce(self, sender: str) -> int:
65
66
  """
@@ -77,6 +77,7 @@ class EngineQueryClient:
77
77
  self.url: str = self._opts.url
78
78
  self.url_v2: str = self.url.replace("/v1", "") + "/v2"
79
79
  self.session = requests.Session() # type: ignore
80
+ self.session.headers.update({"Accept-Encoding": "gzip"})
80
81
 
81
82
  def query(self, req: QueryRequest) -> QueryResponse:
82
83
  """
@@ -72,6 +72,7 @@ class IndexerQueryClient:
72
72
  self.url = self._opts.url
73
73
  self.url_v2: str = self.url.replace("/v1", "") + "/v2"
74
74
  self.session = requests.Session()
75
+ self.session.headers.update({"Accept-Encoding": "gzip"})
75
76
 
76
77
  @singledispatchmethod
77
78
  def query(self, params: Union[IndexerParams, IndexerRequest]) -> IndexerResponse:
@@ -44,6 +44,7 @@ class TriggerExecuteClient(NadoBaseExecute):
44
44
  self._opts: TriggerClientOpts = TriggerClientOpts.parse_obj(opts)
45
45
  self.url: str = self._opts.url
46
46
  self.session = requests.Session()
47
+ self.session.headers.update({"Accept-Encoding": "gzip"})
47
48
 
48
49
  def tx_nonce(self, _: str) -> int:
49
50
  raise NotImplementedError
@@ -26,6 +26,7 @@ class TriggerQueryClient(NadoBaseExecute):
26
26
  self._opts: TriggerClientOpts = TriggerClientOpts.parse_obj(opts)
27
27
  self.url: str = self._opts.url
28
28
  self.session = requests.Session() # type: ignore
29
+ self.session.headers.update({"Accept-Encoding": "gzip"})
29
30
 
30
31
  def tx_nonce(self, _: str) -> int:
31
32
  raise NotImplementedError
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nado-protocol
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Nado Protocol SDK
5
5
  Keywords: nado protocol,nado sdk,nado protocol api
6
6
  Author: Jeury Mejia
@@ -40,21 +40,21 @@ nado_protocol/contracts/eip712/types.py,sha256=uTfYD9hjoTozsUL2WTc_-2OREijbfv9FD
40
40
  nado_protocol/contracts/loader.py,sha256=_0W3ImcARs1bTu1lLMpHMrRNuEVYjrRWctvnEbKWoVg,1500
41
41
  nado_protocol/contracts/types.py,sha256=km29Md8hCE8yivGdgbgMuQoO7GyE0yOVt9BaJatvjFY,4280
42
42
  nado_protocol/engine_client/__init__.py,sha256=RE_MxQaQVIp0K5EDhR1_uTjLJgEJBx2fLnhepc3cuAg,1137
43
- nado_protocol/engine_client/execute.py,sha256=Tmd1yvLTlvFFaSYqwOWTkzSxdE6QllGB8LHgsOim3Tc,15314
44
- nado_protocol/engine_client/query.py,sha256=v7PqRsnX5jZskNnBpv38HB7BQ7mi8RBhUgczf5msEIc,16858
43
+ nado_protocol/engine_client/execute.py,sha256=gKCdeV9Cb1YjChW8ka-2LaC5jD_i3xTdEzH2Y1g1WKY,15379
44
+ nado_protocol/engine_client/query.py,sha256=vaQ_lTA6xO7puikPW527e5xeVDtF8xlAeANO73yfPZ4,16923
45
45
  nado_protocol/engine_client/types/__init__.py,sha256=aCw_aNxCRy5PhrYpvUHuB7gQPcxHld9iMV5eTFWdEfw,2737
46
46
  nado_protocol/engine_client/types/execute.py,sha256=ANF_QwtJAqb9zvga1fjOIiSDt_wjUo4sbf8rVkc-sQ0,20709
47
47
  nado_protocol/engine_client/types/models.py,sha256=JIDyOLUBprGcMKHxW2M53_nCc7hoerglnFvfn7wgdXo,3862
48
48
  nado_protocol/engine_client/types/query.py,sha256=5j4KcYUwGAoJFF0m2bmrqYXbU4iJ5IyzUTiEIzn6rh0,12516
49
49
  nado_protocol/engine_client/types/stream.py,sha256=F_AKqU4pClzUcM6D9Dc79f6RmraahJzj2-hQSXtQ0vQ,159
50
50
  nado_protocol/indexer_client/__init__.py,sha256=ea2exePtguCxJsBlisOQPtnFk8hRmFugeQAuSAaPhoc,922
51
- nado_protocol/indexer_client/query.py,sha256=aMJoJfKXd9eE4j5me5FPOtsrHY8b5nXCpCV_NCZzh2E,13710
51
+ nado_protocol/indexer_client/query.py,sha256=f-2RvdzDRmBI7J_nosMLOPkHuR1gVpp828hppG42I9w,13775
52
52
  nado_protocol/indexer_client/types/__init__.py,sha256=p1Q0JVhx273MuH6Q2baOfVknnLkmuL8kH4TlHDSYVTc,3161
53
53
  nado_protocol/indexer_client/types/models.py,sha256=vD1YHHeK15hcU5_O4al7001Fi-gTl6EARMuR-Y8stOc,7533
54
54
  nado_protocol/indexer_client/types/query.py,sha256=g3bymk_Xpl3vK_z51178qEiDUsGAa5Oqe6jmSNhiMOc,16328
55
55
  nado_protocol/trigger_client/__init__.py,sha256=kD_WJWGOCDwX7GvGF5VGZibWR2uPYRcWpIWht31PYR4,545
56
- nado_protocol/trigger_client/execute.py,sha256=VkVla3SF6MX-ZJC_wZG72em41MPAKX-jv1_Lh4ydezU,15089
57
- nado_protocol/trigger_client/query.py,sha256=7M7opYEddNo0Wf9VQ7rha-WaoFQVv5F5OI-YLSRWrpk,2705
56
+ nado_protocol/trigger_client/execute.py,sha256=RJntq-JtVqnufOlWWlZYvvy6MRqkQetXTsM_E1zGRsg,15154
57
+ nado_protocol/trigger_client/query.py,sha256=GXapcG9x82BqCDhZ_mQQNLs0LhbLnoZ1AasN0lFsCcc,2770
58
58
  nado_protocol/trigger_client/types/__init__.py,sha256=Rj953ymGSNnVdOpDrwRuXmC_jhuPZU17BaSgBrc9cbk,183
59
59
  nado_protocol/trigger_client/types/execute.py,sha256=y1rxiFy3I7V3BHLKL8wQFDCwmf78AKuf8wB_1K8HlbU,4671
60
60
  nado_protocol/trigger_client/types/models.py,sha256=ZVDF3MFWoR39JBaTmSOTl1WnRnw46hjX-WN_a-g6zKk,1638
@@ -76,7 +76,7 @@ nado_protocol/utils/order.py,sha256=Q9TlcotvnB395dPhaKpn0EeN1WNTkpYBTUovlirr1_Y,
76
76
  nado_protocol/utils/subaccount.py,sha256=WJ7lgU2RekuzJAZH-hhCTbIBlRsl2oHozBm7OEMRV74,495
77
77
  nado_protocol/utils/time.py,sha256=tEwmrkc5VdzKLlgkJIAq2ce-nhrduJZNtVPydrrnTHs,360
78
78
  nado_protocol/utils/twap.py,sha256=hfBVK0CBa8m4uBArxTnNRoJr3o1rJucyopR_8_9gkOo,6197
79
- nado_protocol-0.3.0.dist-info/METADATA,sha256=XwDeGvx1p0yCNdya4IOvLaK4Dbgncm-CFrzSVMH35sE,9558
80
- nado_protocol-0.3.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
81
- nado_protocol-0.3.0.dist-info/entry_points.txt,sha256=Df0O9lFc-m0SyOh6_d9FHeG1OT-esxGm-p_z7rTT9h0,340
82
- nado_protocol-0.3.0.dist-info/RECORD,,
79
+ nado_protocol-0.3.1.dist-info/METADATA,sha256=QtxrPjBe9VLlQsy7i-o-iiglFaN2MXT62yikvrOEfIw,9558
80
+ nado_protocol-0.3.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
81
+ nado_protocol-0.3.1.dist-info/entry_points.txt,sha256=Df0O9lFc-m0SyOh6_d9FHeG1OT-esxGm-p_z7rTT9h0,340
82
+ nado_protocol-0.3.1.dist-info/RECORD,,