ton-http-api 2.0.46__py3-none-any.whl → 2.0.48__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 +2 -1
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/METADATA +17 -11
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/RECORD +7 -7
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/WHEEL +1 -1
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/entry_points.txt +0 -1
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/top_level.txt +0 -0
- {ton_http_api-2.0.46.dist-info → ton_http_api-2.0.48.dist-info}/zip-safe +0 -0
pyTON/main.py
CHANGED
@@ -281,9 +281,10 @@ async def get_wallet_information(
|
|
281
281
|
"""
|
282
282
|
address = prepare_address(address)
|
283
283
|
result = await tonlib.raw_get_account_state(address)
|
284
|
-
res = {'wallet': False, 'balance': 0, 'account_state': None, 'wallet_type': None, 'seqno': None}
|
284
|
+
res = {'wallet': False, 'balance': 0, 'extra_currencies': [], 'account_state': None, 'wallet_type': None, 'seqno': None}
|
285
285
|
res["account_state"] = address_state(result)
|
286
286
|
res["balance"] = result["balance"] if (result["balance"] and int(result["balance"]) > 0) else 0
|
287
|
+
res["extra_currencies"] = result["extra_currencies"]
|
287
288
|
if "last_transaction_id" in result:
|
288
289
|
res["last_transaction_id"] = result["last_transaction_id"]
|
289
290
|
ci = sha256(result["code"])
|
@@ -1,20 +1,19 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: ton-http-api
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.48
|
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
|
7
7
|
Author-email: kdimentionaltree@gmail.com
|
8
|
-
License: UNKNOWN
|
9
|
-
Platform: UNKNOWN
|
10
8
|
Classifier: Development Status :: 3 - Alpha
|
11
9
|
Classifier: Intended Audience :: Developers
|
12
|
-
Classifier: Programming Language :: Python :: 3.7
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
14
10
|
Classifier: Programming Language :: Python :: 3.9
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
15
14
|
Classifier: License :: Other/Proprietary License
|
16
15
|
Classifier: Topic :: Software Development :: Libraries
|
17
|
-
Requires-Python: >=3.
|
16
|
+
Requires-Python: >=3.9
|
18
17
|
Description-Content-Type: text/markdown
|
19
18
|
Requires-Dist: redis==5.0.1
|
20
19
|
Requires-Dist: loguru==0.6.0
|
@@ -24,8 +23,17 @@ Requires-Dist: requests==2.28.0
|
|
24
23
|
Requires-Dist: ring==0.10.1
|
25
24
|
Requires-Dist: uvicorn==0.17.6
|
26
25
|
Requires-Dist: gunicorn==20.1.0
|
27
|
-
Requires-Dist: pytonlib==0.0.
|
26
|
+
Requires-Dist: pytonlib==0.0.64
|
28
27
|
Requires-Dist: inject==4.3.1
|
28
|
+
Dynamic: author
|
29
|
+
Dynamic: author-email
|
30
|
+
Dynamic: classifier
|
31
|
+
Dynamic: description
|
32
|
+
Dynamic: description-content-type
|
33
|
+
Dynamic: home-page
|
34
|
+
Dynamic: requires-dist
|
35
|
+
Dynamic: requires-python
|
36
|
+
Dynamic: summary
|
29
37
|
|
30
38
|

|
31
39
|
|
@@ -120,7 +128,7 @@ The service supports the following environment variables:
|
|
120
128
|
Path to config file with lite servers information. In case of native run you can pass URL to download config. Docker support only path to file.
|
121
129
|
|
122
130
|
- `TON_API_TONLIB_KEYSTORE` *(default docker: /tmp/ton_keystore local: ./ton_keystore/)*
|
123
|
-
|
131
|
+
|
124
132
|
Path to tonlib keystore.
|
125
133
|
|
126
134
|
- `TON_API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER` *(default: 50)*
|
@@ -182,5 +190,3 @@ To point the HTTP API to your own lite server you should set `TON_API_TONLIB_LIT
|
|
182
190
|
Binary file `libtonlibjson` now moved to [pytonlib](https://github.com/toncenter/pytonlib).
|
183
191
|
- Docker Compose: `docker-compose build --no-cache`.
|
184
192
|
- Local run: `pip install -U ton-http-api`.
|
185
|
-
|
186
|
-
|
@@ -1,14 +1,14 @@
|
|
1
1
|
pyTON/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
pyTON/__main__.py,sha256=s38Hio4NMli_rdk4BMFsvFVjRvjn6-ue8BmrEpVAxHI,3425
|
3
3
|
pyTON/cache.py,sha256=EmOG2sZtbQno4p40ugf9XagdmWfdCopW4eTIGCpsO9Y,1219
|
4
|
-
pyTON/main.py,sha256=
|
4
|
+
pyTON/main.py,sha256=45nUr0afMb6-j_QOqdKb7Q9mK27zMyCi-1PVkWP9inw,31292
|
5
5
|
pyTON/manager.py,sha256=HD338_UdrmOX0PuoB-J2SPZNWBotjdP7W_K8i_cL-_U,22160
|
6
6
|
pyTON/models.py,sha256=y0qc3OLCxKCp4kcnphAQG6ytbWdz_VuqcmbbDfv8Qdk,958
|
7
7
|
pyTON/settings.py,sha256=1_ni1WfiDDFoGLkxyMriuMJiEzSrxi8lDOt06QyeuxE,4217
|
8
8
|
pyTON/worker.py,sha256=R6IK4ANuJowq8NfUmd8oTOxMLmJGoU9SdRu5iMl8wms,7937
|
9
|
-
ton_http_api-2.0.
|
10
|
-
ton_http_api-2.0.
|
11
|
-
ton_http_api-2.0.
|
12
|
-
ton_http_api-2.0.
|
13
|
-
ton_http_api-2.0.
|
14
|
-
ton_http_api-2.0.
|
9
|
+
ton_http_api-2.0.48.dist-info/METADATA,sha256=WwP4EpTRn5J-nayq3GXXwtB5dQBpZrspyz9iGYhVQq4,7703
|
10
|
+
ton_http_api-2.0.48.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
11
|
+
ton_http_api-2.0.48.dist-info/entry_points.txt,sha256=SXjqOmzFEXVLM3twuvRooW5-o2F9qxuz_ReR8DR3-Ho,53
|
12
|
+
ton_http_api-2.0.48.dist-info/top_level.txt,sha256=3YNL3CNQpsgajYJ8rlVECgL2taXsBxUgXSA5rJSF2RQ,6
|
13
|
+
ton_http_api-2.0.48.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
14
|
+
ton_http_api-2.0.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|