ton-http-api 2.0.41__py3-none-any.whl → 2.0.46__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.
pyTON/main.py CHANGED
@@ -448,6 +448,24 @@ async def get_block_transactions(
448
448
  """
449
449
  return await tonlib.getBlockTransactions(workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
450
450
 
451
+ @app.get('/getBlockTransactionsExt', response_model=TonResponse, response_model_exclude_none=True, tags=['blocks','transactions'])
452
+ @json_rpc('getBlockTransactionsExt')
453
+ @wrap_result
454
+ async def get_block_transactions_ext(
455
+ workchain: int,
456
+ shard: int,
457
+ seqno: int,
458
+ root_hash: Optional[str] = None,
459
+ file_hash: Optional[str] = None,
460
+ after_lt: Optional[int] = None,
461
+ after_hash: Optional[str] = None,
462
+ count: int = 40
463
+ ):
464
+ """
465
+ Get transactions of the given block.
466
+ """
467
+ return await tonlib.getBlockTransactionsExt(workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
468
+
451
469
  @app.get('/getBlockHeader', response_model=TonResponse, response_model_exclude_none=True, tags=['blocks'])
452
470
  @json_rpc('getBlockHeader')
453
471
  @wrap_result
pyTON/manager.py CHANGED
@@ -408,6 +408,9 @@ class TonlibManager:
408
408
  async def getBlockTransactions(self, workchain, shard, seqno, count, root_hash=None, file_hash=None, after_lt=None, after_hash=None):
409
409
  return await self.dispatch_archival_request('get_block_transactions', workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
410
410
 
411
+ async def getBlockTransactionsExt(self, workchain, shard, seqno, count, root_hash=None, file_hash=None, after_lt=None, after_hash=None):
412
+ return await self.dispatch_archival_request('get_block_transactions_ext', workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
413
+
411
414
  async def getBlockHeader(self, workchain, shard, seqno, root_hash=None, file_hash=None):
412
415
  method = 'get_block_header'
413
416
  if workchain == -1 and seqno and self.consensus_block.seqno - seqno < 2000:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ton-http-api
3
- Version: 2.0.41
3
+ Version: 2.0.46
4
4
  Summary: HTTP API for TON (The Open Network)
5
5
  Home-page: https://github.com/toncenter/ton-http-api
6
6
  Author: K-Dimentional Tree
@@ -16,16 +16,16 @@ Classifier: License :: Other/Proprietary License
16
16
  Classifier: Topic :: Software Development :: Libraries
17
17
  Requires-Python: >=3.7
18
18
  Description-Content-Type: text/markdown
19
- Requires-Dist: redis ==5.0.1
20
- Requires-Dist: loguru ==0.6.0
21
- Requires-Dist: fastapi ==0.99.1
22
- Requires-Dist: pydantic ==1.10.14
23
- Requires-Dist: requests ==2.28.0
24
- Requires-Dist: ring ==0.10.1
25
- Requires-Dist: uvicorn ==0.17.6
26
- Requires-Dist: gunicorn ==20.1.0
27
- Requires-Dist: pytonlib ==0.0.58
28
- Requires-Dist: inject ==4.3.1
19
+ Requires-Dist: redis==5.0.1
20
+ Requires-Dist: loguru==0.6.0
21
+ Requires-Dist: fastapi==0.99.1
22
+ Requires-Dist: pydantic==1.10.14
23
+ Requires-Dist: requests==2.28.0
24
+ Requires-Dist: ring==0.10.1
25
+ Requires-Dist: uvicorn==0.17.6
26
+ Requires-Dist: gunicorn==20.1.0
27
+ Requires-Dist: pytonlib==0.0.58
28
+ Requires-Dist: inject==4.3.1
29
29
 
30
30
  ![splash_http_api](https://user-images.githubusercontent.com/1449561/154847286-989a6c51-1615-45e1-b40f-aec7c13014fa.png)
31
31
 
@@ -0,0 +1,14 @@
1
+ pyTON/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ pyTON/__main__.py,sha256=s38Hio4NMli_rdk4BMFsvFVjRvjn6-ue8BmrEpVAxHI,3425
3
+ pyTON/cache.py,sha256=EmOG2sZtbQno4p40ugf9XagdmWfdCopW4eTIGCpsO9Y,1219
4
+ pyTON/main.py,sha256=0dJ7qj0Vjv0MaIDDaQ2xDjbVzM61CbPEI5pq8AvCVjc,31211
5
+ pyTON/manager.py,sha256=HD338_UdrmOX0PuoB-J2SPZNWBotjdP7W_K8i_cL-_U,22160
6
+ pyTON/models.py,sha256=y0qc3OLCxKCp4kcnphAQG6ytbWdz_VuqcmbbDfv8Qdk,958
7
+ pyTON/settings.py,sha256=1_ni1WfiDDFoGLkxyMriuMJiEzSrxi8lDOt06QyeuxE,4217
8
+ pyTON/worker.py,sha256=R6IK4ANuJowq8NfUmd8oTOxMLmJGoU9SdRu5iMl8wms,7937
9
+ ton_http_api-2.0.46.dist-info/METADATA,sha256=PflrDjQm0A4v5XA2IDS35GYeg3MSwAMDKk4ohDTjdls,7488
10
+ ton_http_api-2.0.46.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
11
+ ton_http_api-2.0.46.dist-info/entry_points.txt,sha256=Y-cIEmhbB82C-YFUasJ9ntyAyX5-zVoZO0KCoHH-dBM,54
12
+ ton_http_api-2.0.46.dist-info/top_level.txt,sha256=3YNL3CNQpsgajYJ8rlVECgL2taXsBxUgXSA5rJSF2RQ,6
13
+ ton_http_api-2.0.46.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
14
+ ton_http_api-2.0.46.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.44.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,14 +0,0 @@
1
- pyTON/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- pyTON/__main__.py,sha256=s38Hio4NMli_rdk4BMFsvFVjRvjn6-ue8BmrEpVAxHI,3425
3
- pyTON/cache.py,sha256=EmOG2sZtbQno4p40ugf9XagdmWfdCopW4eTIGCpsO9Y,1219
4
- pyTON/main.py,sha256=-GfFxwyNxIg6VWz8KsiNltwm4Of-1HH-ge_iJ5qRFsU,30576
5
- pyTON/manager.py,sha256=TLOWRtBXZnl-OunSxRphbq8pUVrlcZuXI73uRB7QXxo,21860
6
- pyTON/models.py,sha256=y0qc3OLCxKCp4kcnphAQG6ytbWdz_VuqcmbbDfv8Qdk,958
7
- pyTON/settings.py,sha256=1_ni1WfiDDFoGLkxyMriuMJiEzSrxi8lDOt06QyeuxE,4217
8
- pyTON/worker.py,sha256=R6IK4ANuJowq8NfUmd8oTOxMLmJGoU9SdRu5iMl8wms,7937
9
- ton_http_api-2.0.41.dist-info/METADATA,sha256=lKuP1GCVjSQaWEGbYbJqhU-pDwInvUir5MA6QovDy3c,7498
10
- ton_http_api-2.0.41.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
11
- ton_http_api-2.0.41.dist-info/entry_points.txt,sha256=Y-cIEmhbB82C-YFUasJ9ntyAyX5-zVoZO0KCoHH-dBM,54
12
- ton_http_api-2.0.41.dist-info/top_level.txt,sha256=3YNL3CNQpsgajYJ8rlVECgL2taXsBxUgXSA5rJSF2RQ,6
13
- ton_http_api-2.0.41.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
14
- ton_http_api-2.0.41.dist-info/RECORD,,