yeref 0.24.11__py3-none-any.whl → 0.24.13__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.
yeref/yeref.py
CHANGED
@@ -8432,27 +8432,26 @@ 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":
|
8436
|
-
key = it.get('testnet') if is_test_only and 'testnet' in it else it.get('all')
|
8437
|
-
if key:
|
8438
|
-
|
8439
|
-
|
8440
|
-
|
8441
|
-
|
8442
|
-
|
8443
|
-
|
8444
|
-
|
8445
|
-
|
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
|
+
# ])
|
8446
8446
|
elif provider == "toncenter":
|
8447
|
-
key = it
|
8447
|
+
key = next((it['testnet'] if is_test_only else it['mainnet']) for it in keys if
|
8448
|
+
(is_test_only and 'testnet' in it) or (not is_test_only and 'mainnet' in it)), None)
|
8449
|
+
print(f"{key=}")
|
8448
8450
|
if key:
|
8449
8451
|
items.append([
|
8450
8452
|
'toncenter',
|
8451
8453
|
f'https://{pfx_testnet}toncenter.com/api/v3/jetton/wallets?owner_address={owner}&jetton_address={master}&limit=1&offset=0',
|
8452
|
-
{
|
8453
|
-
'accept': 'application/json',
|
8454
|
-
'X-API-Key': key
|
8455
|
-
}
|
8454
|
+
{'accept': 'application/json', 'X-API-Key': key}
|
8456
8455
|
])
|
8457
8456
|
|
8458
8457
|
while True:
|
@@ -0,0 +1,8 @@
|
|
1
|
+
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
+
yeref/l_.py,sha256=7SgEs9hcn0b-AKW3BeE6DTY1Mo-ZtNCTPAKVv7RE5PM,1178681
|
3
|
+
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
+
yeref/yeref.py,sha256=AAUaqN3p5B4NontIrpm7RLRtGUUHE9UCEyGnVmKy928,1011613
|
5
|
+
yeref-0.24.13.dist-info/METADATA,sha256=3s-qOpIP6hFP8d9lZ4SU16w7J0xyB9Wdc2F_FoQRJ3g,119
|
6
|
+
yeref-0.24.13.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
7
|
+
yeref-0.24.13.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.24.13.dist-info/RECORD,,
|
yeref-0.24.11.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
-
yeref/l_.py,sha256=7SgEs9hcn0b-AKW3BeE6DTY1Mo-ZtNCTPAKVv7RE5PM,1178681
|
3
|
-
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
-
yeref/yeref.py,sha256=LUYpjeEx2iQqhSopx2Yx6UrQ9qoCQAQV-kTf8-twY2A,1011528
|
5
|
-
yeref-0.24.11.dist-info/METADATA,sha256=7MKbsvYsegN0erbcdk0p52XVJNFPkg7TVxhfPj_7Y6M,119
|
6
|
-
yeref-0.24.11.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
7
|
-
yeref-0.24.11.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.24.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|