yeref 0.24.10__tar.gz → 0.24.12__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.10 → yeref-0.24.12}/PKG-INFO +1 -1
- {yeref-0.24.10 → yeref-0.24.12}/setup.py +1 -1
- {yeref-0.24.10 → yeref-0.24.12}/yeref/yeref.py +14 -11
- {yeref-0.24.10 → yeref-0.24.12}/yeref.egg-info/PKG-INFO +1 -1
- {yeref-0.24.10 → yeref-0.24.12}/pyproject.toml +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/setup.cfg +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref/__init__.py +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref/l_.py +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref/tonweb.js +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref.egg-info/SOURCES.txt +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref.egg-info/dependency_links.txt +0 -0
- {yeref-0.24.10 → yeref-0.24.12}/yeref.egg-info/top_level.txt +0 -0
@@ -8424,6 +8424,7 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
|
|
8424
8424
|
# Address(owner)
|
8425
8425
|
# Address(master)
|
8426
8426
|
|
8427
|
+
print(f"calculate_wallet_address {owner=}, {master=}")
|
8427
8428
|
pfx_testnet = "testnet." if is_test_only else ""
|
8428
8429
|
async with aiofiles.open(KEYS_JSON, mode='r') as f:
|
8429
8430
|
data = json.loads(await f.read())
|
@@ -8431,19 +8432,20 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
|
|
8431
8432
|
items = []
|
8432
8433
|
for provider, keys in data["ton"].items(): # provider = "tonapi" или "toncenter"
|
8433
8434
|
for it in keys: # it = {"all": "..."} или {"testnet": "..."}
|
8434
|
-
if provider == "tonapi":
|
8435
|
-
key = it.get('testnet') if is_test_only and 'testnet' in it else it.get('all')
|
8436
|
-
if key:
|
8437
|
-
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8441
|
-
|
8442
|
-
|
8443
|
-
|
8444
|
-
|
8435
|
+
if provider == "tonapi": continue
|
8436
|
+
# key = it.get('testnet') if is_test_only and 'testnet' in it else it.get('all')
|
8437
|
+
# if key:
|
8438
|
+
# items.append([
|
8439
|
+
# 'tonapi',
|
8440
|
+
# f'https://{pfx_testnet}tonapi.io/v2/accounts/{owner}/jettons/{master}',
|
8441
|
+
# {
|
8442
|
+
# 'accept': 'application/json',
|
8443
|
+
# 'Authorization': f'Bearer {key}'
|
8444
|
+
# }
|
8445
|
+
# ])
|
8445
8446
|
elif provider == "toncenter":
|
8446
8447
|
key = it.get('testnet') if is_test_only and 'testnet' in it else it.get('mainnet')
|
8448
|
+
print(f"{is_test_only=}, {key=}")
|
8447
8449
|
if key:
|
8448
8450
|
items.append([
|
8449
8451
|
'toncenter',
|
@@ -8458,6 +8460,7 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
|
|
8458
8460
|
random.shuffle(items)
|
8459
8461
|
for item in items:
|
8460
8462
|
try:
|
8463
|
+
print(f"{item=}")
|
8461
8464
|
name, url, headers = item
|
8462
8465
|
|
8463
8466
|
if name == '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
|