yeref 0.24.15__tar.gz → 0.24.16__tar.gz
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.
- {yeref-0.24.15 → yeref-0.24.16}/PKG-INFO +1 -1
- {yeref-0.24.15 → yeref-0.24.16}/setup.py +1 -1
- {yeref-0.24.15 → yeref-0.24.16}/yeref/yeref.py +21 -20
- {yeref-0.24.15 → yeref-0.24.16}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.15 → yeref-0.24.16}/pyproject.toml +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/setup.cfg +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref/__init__.py +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref/l_.py +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref/tonweb.js +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.15 → yeref-0.24.16}/yeref.egg-info/top_level.txt +0 -0
@@ -7612,7 +7612,7 @@ async def get_smc_info(address, KEYS_JSON, is_test_only=False):
|
|
7612
7612
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
7613
7613
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
7614
7614
|
if provider == "tonapi":
|
7615
|
-
key =
|
7615
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
7616
7616
|
if key:
|
7617
7617
|
items.append([
|
7618
7618
|
'tonapi',
|
@@ -7706,7 +7706,7 @@ async def get_wallet_address(address, master, KEYS_JSON, is_test_only=False, is_
|
|
7706
7706
|
for provider, keys in data["ton"].items():
|
7707
7707
|
for it in keys:
|
7708
7708
|
if provider == "tonapi":
|
7709
|
-
key =
|
7709
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
7710
7710
|
if key:
|
7711
7711
|
items.append([
|
7712
7712
|
'tonapi',
|
@@ -7816,7 +7816,7 @@ async def get_nft_data(address, KEYS_JSON, is_test_only=False, help_link=None):
|
|
7816
7816
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
7817
7817
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
7818
7818
|
if provider == "tonapi":
|
7819
|
-
key =
|
7819
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
7820
7820
|
if key:
|
7821
7821
|
items.append([
|
7822
7822
|
'tonapi',
|
@@ -7987,7 +7987,7 @@ async def get_collection_data(address, KEYS_JSON, is_test_only=False):
|
|
7987
7987
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
7988
7988
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
7989
7989
|
if provider == "tonapi":
|
7990
|
-
key =
|
7990
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
7991
7991
|
if key:
|
7992
7992
|
items.append([
|
7993
7993
|
'tonapi',
|
@@ -8115,7 +8115,7 @@ async def get_nft_in_account(address, collection, KEYS_JSON, is_test_only=False,
|
|
8115
8115
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8116
8116
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8117
8117
|
if provider == "tonapi":
|
8118
|
-
key =
|
8118
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8119
8119
|
if key:
|
8120
8120
|
items.append([
|
8121
8121
|
'tonapi',
|
@@ -8187,7 +8187,7 @@ async def get_any_activity(address, KEYS_JSON, is_test_only=False):
|
|
8187
8187
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8188
8188
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8189
8189
|
if provider == "tonapi":
|
8190
|
-
key =
|
8190
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8191
8191
|
if key:
|
8192
8192
|
items.append([
|
8193
8193
|
'tonapi',
|
@@ -8266,7 +8266,7 @@ async def get_any_nfts(address, KEYS_JSON, is_test_only=False):
|
|
8266
8266
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8267
8267
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8268
8268
|
if provider == "tonapi":
|
8269
|
-
key =
|
8269
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8270
8270
|
if key:
|
8271
8271
|
items.append([
|
8272
8272
|
'tonapi',
|
@@ -8344,7 +8344,7 @@ async def get_any_jettons(address, KEYS_JSON, is_test_only=False):
|
|
8344
8344
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8345
8345
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8346
8346
|
if provider == "tonapi":
|
8347
|
-
key =
|
8347
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8348
8348
|
if key:
|
8349
8349
|
items.append([
|
8350
8350
|
'tonapi',
|
@@ -8432,17 +8432,18 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
|
|
8432
8432
|
items = []
|
8433
8433
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8434
8434
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8435
|
-
if provider == "tonapi": continue
|
8436
|
-
|
8437
|
-
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8441
|
-
|
8442
|
-
|
8443
|
-
|
8444
|
-
|
8445
|
-
|
8435
|
+
if provider == "tonapi": # continue
|
8436
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8437
|
+
|
8438
|
+
if key:
|
8439
|
+
items.append([
|
8440
|
+
'tonapi',
|
8441
|
+
f'https://{pfx_testnet}tonapi.io/v2/accounts/{owner}/jettons/{master}',
|
8442
|
+
{
|
8443
|
+
'accept': 'application/json',
|
8444
|
+
'Authorization': f'Bearer {key}'
|
8445
|
+
}
|
8446
|
+
])
|
8446
8447
|
elif provider == "toncenter":
|
8447
8448
|
key = next((it['testnet'] if is_test_only else it['mainnet'] for it in keys if (is_test_only and 'testnet' in it) or (not is_test_only and 'mainnet' in it)), None)
|
8448
8449
|
if key:
|
@@ -8507,7 +8508,7 @@ async def get_method_data(address, KEYS_JSON, is_test_only=False, method_name='g
|
|
8507
8508
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8508
8509
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8509
8510
|
if provider == "tonapi":
|
8510
|
-
key =
|
8511
|
+
key = random.choice([it['all'] for it in keys if 'all' in it]) if keys else None
|
8511
8512
|
if key:
|
8512
8513
|
items.append([
|
8513
8514
|
'tonapi',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|