yeref 0.24.12__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
@@ -8444,16 +8444,14 @@ async def calculate_wallet_address(owner, master, KEYS_JSON, is_test_only=False)
8444
8444
  # }
8445
8445
  # ])
8446
8446
  elif provider == "toncenter":
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
+ 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=}")
8449
8450
  if key:
8450
8451
  items.append([
8451
8452
  'toncenter',
8452
8453
  f'https://{pfx_testnet}toncenter.com/api/v3/jetton/wallets?owner_address={owner}&jetton_address={master}&limit=1&offset=0',
8453
- {
8454
- 'accept': 'application/json',
8455
- 'X-API-Key': key
8456
- }
8454
+ {'accept': 'application/json', 'X-API-Key': key}
8457
8455
  ])
8458
8456
 
8459
8457
  while True:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.12
3
+ Version: 0.24.13
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -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,,
@@ -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=xrxiY_Fc3MYdp7qIAyzq3GIk21WRHLuQCwJE1OxQsf4,1011611
5
- yeref-0.24.12.dist-info/METADATA,sha256=dV9nyfOYsl2KXK45_LWreXjkg4NqgAWQbINXA_6l8NU,119
6
- yeref-0.24.12.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
7
- yeref-0.24.12.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.12.dist-info/RECORD,,